/* Bidwell site: screens of the app, from RevRun's clips. The picture sits in the iPhone frame's screen,
   the frame on top; on phones the row scrolls sideways, one clip at a time. Kept apart from
   site.css so a browser still holding an older site.css lays the clips out too. */
.clips { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 36px; }
.clip { width: min(100%, 264px); margin: 0; }
.device { position: relative; width: 100%; aspect-ratio: 1428 / 2959; }
.screen { position: absolute; left: 3.78%; top: 1.62%; width: 92.44%; height: 96.86%; overflow: hidden; border-radius: 16.7% / 7.7%; background: #fff; transform: translateZ(0); }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.clip-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin: 6px 0 0 -12px;
  background: none; border: 0; border-radius: 10px; color: var(--ink-2); cursor: pointer;
  font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}
.clip-toggle:hover { color: var(--violet-text); }
.clip-toggle:focus-visible { outline: 2px solid var(--violet-text); outline-offset: 2px; }
.clip figcaption h3 { font: 700 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 4px; }
.clip figcaption p { margin: 0; color: var(--ink-2); font-size: 15px; }
.clips-note { color: var(--ink-2); font-size: 16px; text-align: center; margin: 30px 0 0; }
.clips-note .after-tour { display: none; color: var(--ink); font-weight: 700; }
.clips-note.round-done .after-tour { display: inline; animation: clips-note-in 0.9s ease both; }
@keyframes clips-note-in { from { opacity: 0; } to { opacity: 1; } }
details .clip { width: min(100%, 240px); margin: 8px 0 4px; }

/* The home page's tour: the clips play one after another. The phone playing is lifted on a soft
   violet glow, the others rest a little lighter, and a bar under each phone fills as it plays.
   When the row first comes into view the phones rise in one after another. */
.clips[data-tour] .device { cursor: pointer; }
.clips[data-tour] .clip { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.clips[data-tour] .device { transition: filter 0.5s ease; }
.clips.touring .clip:not(.is-current) { opacity: 0.6; }
.clips.touring .clip.is-current { transform: translateY(-8px); }
.clips.touring .clip.is-current .device { filter: drop-shadow(0 20px 26px rgba(90, 49, 244, 0.32)); }
.clips.touring .clip.is-current figcaption h3 { color: var(--violet-text); }
.clip-progress { height: 3px; margin: 16px 2px 0; border-radius: 3px; background: var(--line); overflow: hidden; }
.clip-progress span { display: block; height: 100%; background: var(--violet-text); transform: scaleX(0); transform-origin: left center; }
.clips.tour-ready .clip { opacity: 0; transform: translateY(26px); }
.clips.tour-ready.tour-in .clip {
  opacity: 1; transform: none;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}
@media print {
  .clips.tour-ready .clip, .clips.touring .clip { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .clips[data-tour] .clip, .clips[data-tour] .device { transition: none; }
  .clips.touring .clip.is-current { transform: none; }
  .clips-note.round-done .after-tour { animation: none; }
}
@media (max-width: 640px) {
  .clips {
    flex-wrap: nowrap; justify-content: flex-start; gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: -14px -20px 0; padding: 14px 20px 8px; scroll-padding: 0 20px; scrollbar-width: none;
  }
  .clips::-webkit-scrollbar { display: none; }
  .clips .clip { flex: 0 0 68%; scroll-snap-align: start; }
  .clips-note { text-align: left; }
}

/* Bidwell shows still screens in the frames, not recordings */
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
