/* go.telomeds.com — iPhone fixes on top of the lp stylesheet (app.min.css). Loaded after it. */

/* Hero. A phone never gets a <video>. iOS refuses to autoplay one in Low Power Mode and when
   "Auto-Play Video Previews" is off, and while one buffers it draws its own play button over the
   poster — the owner saw all of it (2026-09-27), and the earlier "swap in an image when play()
   is refused" fix left a transparent overlay until the image finished downloading. Now the phone
   hero is an animated image of the same 8 s clip (hero-motion-mobile.avif, 15 fps) drawn over
   the poster, which paints first; the video keeps only its desktop source (same query, inverted,
   on its <source media> in index.html), so a phone downloads no MP4 at all. A browser without
   animated AVIF shows the still poster — never a play button. */
.intro-video .hero-motion { display: none; }
@media (max-width: 767px), (max-height: 500px) {
  .intro-video video { display: none; }
  .intro-video .hero-motion { display: block; position: absolute; inset: 0; }
  .intro-video .hero-motion img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% center; }
}
.intro-video video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.intro-video video::-webkit-media-controls { display: none !important; }

/* Ingredient cards. Safari ignores backface-visibility on these faces (they carry their own layers:
   the gradient overlay, the buttons, overflow:hidden), so a flipped card showed the front mirrored
   through the back. Each face is now hidden outright at the midpoint of the 0.25 s turn — the
   moment it is edge-on — which works in every browser. */
.flip-card-front, .flip-card-back { transition: visibility 0s linear .12s; }
.flip-card-back { visibility: hidden; }
.is-flipped .flip-card-back { visibility: visible; }
.is-flipped .flip-card-front { visibility: hidden; }

/* Tablet animation. When iOS blocks the video the animated image takes its place, but a leftover
   rule (.rex-image .image img { min-height: 600px }) stretched it and cropped it. Same box as the
   video: fill the square, show all of it. */
.rex-image [data-motion-media] .motion-fallback img,
.rex-image [data-motion-media] .motion-poster { min-height: 0; width: 100%; height: 100%; object-fit: contain; }
