/* The same pair of devices appears in the homepage feature and the companion tour. */
.device-pair {
  position: absolute; inset: 0; isolation: isolate; container-type: size;
  perspective: 1100px; pointer-events: none;
}
.field-ring {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(ellipse at 52% 50%, #ffc0721f, transparent 68%);
}
.field-ring::before {
  content: ""; position: absolute; inset: -15%;
  background: repeating-radial-gradient(ellipse at 50% 53%, transparent 0 36px, #f6bb7d15 37px, transparent 38px 55px);
  mask-image: radial-gradient(ellipse, black 5%, transparent 68%);
}
.handset, .timepiece {
  position: absolute; top: 49%; left: 46%; transform-origin: center;
  transition: transform .85s cubic-bezier(.2,.8,.2,1), opacity .55s, filter .65s;
}
.handset {
  height: 81%; aspect-ratio: 650 / 1413; border-radius: 15% / 7%;
  padding: max(3px,.78cqh); background: linear-gradient(115deg,#c9c1ab,#403e37 17%,#151513 63%,#aea593);
  box-shadow: inset 0 0 0 1px #ffffff60, 2px 2px 0 #4d4c45, 5px 6px 0 #2c2b28, 0 22px 35px #0008;
  transform: translate(-58%,-50%) rotateY(-12deg) rotateZ(-7deg);
}
.handset img { position: absolute; inset: max(3px,.78cqh); width: calc(100% - max(6px,1.56cqh)); height: calc(100% - max(6px,1.56cqh)); border-radius: 13% / 6%; background: #0d0b08; transition: opacity .55s; }
.sync-screen, .notes-screen { opacity: 0; }
.timepiece {
  top: 61%; left: 65%; height: 29%; aspect-ratio: .85; z-index: 1;
  transform: translate(-50%,-50%) rotateY(-12deg) rotateZ(8deg);
}
.timepiece::before {
  content: ""; position: absolute; inset: -44% 16%; border-radius: 23% / 17%;
  background: repeating-linear-gradient(0deg,#292924 0 2px,#4f4c40 3px,#49463b 4px);
  box-shadow: inset 5px 0 6px #92856d59,inset -8px 0 12px #111, 4px 8px 15px #0006;
}
.watch-case {
  position: absolute; inset: 0; padding: max(3px,.8cqh); border-radius: 25%;
  background: linear-gradient(140deg,#c7bd9d,#746e60 24%,#282721 58%,#8c8470 95%);
  box-shadow: inset 0 0 0 1px #b1ab97, 2px 2px 1px #34332d, 0 9px 15px #0008;
}
.watch-case::after {
  content: ""; position: absolute; left: 99%; top: 21%; width: 6%; height: 21%; border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(0deg,#585448 0 1px,#afa48d 1px 2px);
}
.watch-case img { display: block; width: 100%; height: 100%; border-radius: 21%; }
[data-scene="iphone"] .handset, [data-scene="sync"] .handset, [data-scene="library"] .handset {
  transform: translate(-42%,-50%) rotateY(0) rotateZ(0) scale(1.06);
}
[data-scene="iphone"] .timepiece, [data-scene="sync"] .timepiece, [data-scene="library"] .timepiece {
  transform: translate(-4%,-38%) rotateZ(9deg) scale(.7); opacity: 0;
}
[data-scene="watch"] .timepiece { transform: translate(-94%,-84%) rotateZ(-4deg) scale(1.42); }
[data-scene="watch"] .handset { transform: translate(-88%,-49%) rotateY(-24deg) rotateZ(-8deg) scale(.82); opacity: .17; filter: blur(1px); }
[data-scene="sync"] .sync-screen, [data-scene="library"] .notes-screen { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .handset, .timepiece, .handset img { transition: none; }
}
