/* TapMirror's card on limcore.org's home page, in the look of TapMirror's own banner
   (docs/images/social-preview.png in its repository): a dark navy gradient in either theme, the big
   blue icon, a pale blue subtitle and two phones with the app on the right. The front phone's
   "Start mirroring" button gets tapped now and then. Everything is scoped to .project--tapmirror. */
.project--tapmirror {
  --tm-ink: #fff;
  --tm-sub: #c9d4e8;
  --tm-muted: #8597b7;
  --tm-accent: #4d8dff;
  --tm-line: rgba(160, 190, 255, .14);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "Noto Sans", Roboto, system-ui, sans-serif;
  color: var(--tm-ink);
  background: linear-gradient(165deg, #121929 0%, #152038 45%, #1d3156 100%);
  border: 1px solid var(--tm-line);
  color-scheme: dark;
}
.project--tapmirror:hover { box-shadow: 0 30px 80px -30px rgba(40, 90, 200, .55); }
.project--tapmirror .tm-icon { width: 64px; height: 64px; border-radius: 15px; }
.project--tapmirror .project__kicker { color: var(--tm-muted); opacity: 1; }
.project--tapmirror .project__title { font-weight: 700; letter-spacing: -.02em; font-size: 46px; }
.project--tapmirror .project__text { color: var(--tm-sub); font-size: 17px; line-height: 1.5; max-width: 360px; }
.project--tapmirror .project__chips { gap: 0; font-size: 14px; }
.project--tapmirror .project__chips li { padding: 0; color: var(--tm-muted); }
.project--tapmirror .project__chips li + li::before { content: "·"; margin: 0 10px; }
.project--tapmirror .project__cta { color: var(--tm-sub); }
.project--tapmirror .project__by { color: var(--tm-muted); opacity: 1; }

/* two phones, as on the banner: the front one on the left, the back one lower on the right */
.tm-scene { position: absolute; inset: 0; overflow: hidden; }
.tm-phone {
  position: absolute;
  width: 44%;
  max-width: 250px;
  aspect-ratio: 540 / 1090;
  padding: 5px;
  border-radius: 30px;
  background: #000;
  border: 1px solid #2a2f3a;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.tm-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 25px; }
.tm-phone--front { right: calc(22% + 26px); top: 4px; z-index: 1; }
.tm-phone--back { right: 22px; top: 44px; }
.project--tapmirror:hover .tm-phone--front { transform: translateY(-8px); }
.project--tapmirror:hover .tm-phone--back { transform: translateY(-4px); }
.tm-tap { position: absolute; left: 50%; top: 42.5%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255, 255, 255, .6); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .tm-tap { animation: tm-tap 5s infinite 1s; }
}
@media (prefers-reduced-motion: reduce) { .tm-phone { transition: none; } }
@keyframes tm-tap { 0%, 70% { opacity: 0; transform: scale(.4); } 75% { opacity: 1; transform: scale(1); } 88%, 100% { opacity: 0; transform: scale(2); } }
@media (max-width: 560px) {
  .project--tapmirror .project__title { font-size: 38px; }
  .tm-phone { width: 44%; }
  .tm-phone--front { right: calc(18% + 14px); }
  .tm-phone--back { right: 14px; }
}
