/* iPhone 16 Plus (titanium) drawn in CSS from the Figma spec. 1em = 1 design px; the tour script sets font-size = width / 264.97 */
.xt-ip { position: relative; width: 100%; }
.ip { position: absolute; left: 0; top: 0; width: 264.97em; height: 546.14em; font-size: 1px; }
.ip > * { position: absolute; }
/* titanium frame */
.ip-ti { inset: 0; border-radius: 40.17em; background: linear-gradient(135deg, #F1EDCB 0%, #E7E3BF 40%, #CFC9A4 100%);
  box-shadow: inset 0 0 0 .65em #524B40, inset 0 0 0 1.94em #C3C3C3, inset 0 0 1.3em 2.2em rgba(255,255,255,.55), 0 30em 50em -10em rgba(0,0,0,.45), 0 8em 16em rgba(0,0,0,.25); }
/* black bezel with a hairline highlight */
.ip-bz { left: 3.17em; top: 3.17em; width: 259.79em; height: 540.96em; border-radius: 37.58em; background: #000100; box-shadow: inset 0 0 2.3em rgba(255,255,255,.12), 0 0 0 .26em rgba(255,255,255,.7); }
/* the display */
.ip-screen { left: 8.4em; top: 8.4em; width: 248.17em; height: 529.34em; border-radius: 33.69em; overflow: hidden; background: #F6F5FA; }
.ip-screen .at-stage { border-radius: 0; }
.ip-island { left: 96.5em; top: 19em; width: 71.26em; height: 20.08em; border-radius: 13em; background: #030303; z-index: 5; }
.ip-island b { position: absolute; right: 5em; top: 4em; width: 12.46em; height: 12.46em; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #2A2A52 0 18%, #161424 30%, #0E0B0F 70%); }
.ip-glare { left: 8.4em; top: 8.4em; width: 248.17em; height: 529.34em; border-radius: 33.69em; background: linear-gradient(125deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 30%); pointer-events: none; z-index: 6; }
/* side buttons */
.ip-btn { width: 3.24em; background: linear-gradient(90deg, #F0ECE3, #D8D2BE); box-shadow: inset 1.3em 0 1em -.5em rgba(0,0,0,.5), inset 0 .9em .6em -.4em rgba(255,255,255,.9); }
.ip-btn.l1 { left: -2.6em; top: 68.75em; height: 20.08em; border-radius: 1.3em 0 0 1.3em; }
.ip-btn.l2 { left: -2.6em; top: 106.29em; height: 36.28em; border-radius: 1.3em 0 0 1.3em; }
.ip-btn.l3 { left: -2.6em; top: 151.98em; height: 36.28em; border-radius: 1.3em 0 0 1.3em; }
.ip-btn.r1 { right: -2.6em; top: 128em; height: 64.8em; border-radius: 0 1.3em 1.3em 0; background: linear-gradient(270deg, #F0ECE3, #D8D2BE); }

/* tilted pairs, like the Figma groups: both phones lean the same way, one higher than the other */
.ip-pair { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1.22; margin: 0 auto; }
.ip-pair .xt-ip { position: absolute; width: 43%; }
.ip-pair .xt-ip:nth-child(1) { left: 4%; } .ip-pair .xt-ip:nth-child(2) { right: 4%; }
.ip-pair.a .xt-ip { rotate: -15deg; } .ip-pair.b .xt-ip { rotate: 15deg; }
.ip-pair.a .xt-ip:nth-child(1) { top: 17%; } .ip-pair.a .xt-ip:nth-child(2) { top: 0; }
.ip-pair.b .xt-ip:nth-child(1) { top: 0; } .ip-pair.b .xt-ip:nth-child(2) { top: 17%; }
.ip-pair .xt-ip { filter: drop-shadow(0 22px 28px rgba(0,0,0,.35)); }
@keyframes ipFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hiw-row__visual.is-visible .ip-pair .xt-ip { animation: ipFloat 4.2s ease-in-out infinite; }
.hiw-row__visual.is-visible .ip-pair .xt-ip:nth-child(2) { animation-delay: 1.4s; }
@media (max-width: 860px) { .ip-pair { max-width: 440px; } }
@media (prefers-reduced-motion: reduce) { .hiw-row__visual.is-visible .ip-pair .xt-ip { animation: none; } }

/* the hand ends softly instead of with a hard cut */
.xt-hand2 .xt-frame { -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 99%); mask-image: linear-gradient(to bottom, #000 84%, transparent 99%); }
