/* Site reel: a laptop (and phone) whose screens play a slow scroll of a real page. Colours follow the section. */
.ps-p-section-site-reel .rl-list { display: grid; gap: clamp(64px, 9vw, 120px); margin-top: clamp(32px, 5vw, 56px); }
.ps-p-section-site-reel .rl-item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ps-p-section-site-reel .rl-item:nth-child(even) .rl-stage { order: 2; }

/* the devices */
.ps-p-section-site-reel .rl-stage { position: relative; padding-bottom: 6%; padding-right: 9%; }
.ps-p-section-site-reel .rl-laptop { background: #0d0f12; border: 1px solid rgba(127, 127, 127, .35); border-radius: 10px; padding: 0 0 10px; overflow: hidden; }
.ps-p-section-site-reel .rl-bar { height: 26px; display: flex; align-items: center; gap: 6px; padding-left: 12px; }
.ps-p-section-site-reel .rl-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.ps-p-section-site-reel .rl-laptop .rl-screen { aspect-ratio: 16 / 10; margin: 0 10px; }
.ps-p-section-site-reel .rl-phone { position: absolute; right: 0; bottom: 0; width: 24%; min-width: 92px; background: #0d0f12; border: 1px solid rgba(127, 127, 127, .35); border-radius: 22px; padding: 8px; }
.ps-p-section-site-reel .rl-phone .rl-screen { aspect-ratio: 9 / 19.5; border-radius: 15px; }
.ps-p-section-site-reel .rl-screen { position: relative; overflow: hidden; background: #fff; border-radius: 3px; outline-offset: 3px; }
.ps-p-section-site-reel .rl-pan img { display: block; width: 100%; height: auto; max-width: none; }
.ps-p-section-site-reel .rl-pan { will-change: transform; }

/* the slow scroll: down, a pause at the bottom, back up, a pause at the top (distance and time set by section.js) */
.ps-p-section-site-reel .rl-on .rl-pan { animation: rl-pan var(--rl-dur, 40s) ease-in-out infinite; animation-play-state: paused; }
.ps-p-section-site-reel .rl-on.rl-live .rl-pan { animation-play-state: running; }
.ps-p-section-site-reel .rl-on .rl-screen:hover .rl-pan,
.ps-p-section-site-reel .rl-on .rl-screen:focus .rl-pan { animation-play-state: paused; }
/* it starts moving at once (a quick, soft start); the only pause at the top comes at the end of each loop */
@keyframes rl-pan {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(.25, .35, .5, 1); }
  47%, 53% { transform: translateY(var(--rl-dist, 0px)); animation-timing-function: ease-in-out; }
  94%, 100% { transform: translateY(0); }
}
/* no panning: the screen scrolls by hand instead */
.ps-p-section-site-reel .rl-still .rl-screen { overflow-y: auto; }

/* the words */
.ps-p-section-site-reel .rl-copy { display: grid; gap: 16px; align-content: center; }
.ps-p-section-site-reel .rl-name { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.ps-p-section-site-reel .rl-place { margin: 0; opacity: .7; font-size: 15px; }
.ps-p-section-site-reel .rl-text { margin: 0; opacity: .86; }
.ps-p-section-site-reel .rl-quote { margin: 4px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--c-accent, currentColor); }
.ps-p-section-site-reel .rl-quote p { margin: 0; font-size: 19px; line-height: 1.4; }
.ps-p-section-site-reel .rl-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; opacity: .7; }
.ps-p-section-site-reel .rl-link { justify-self: start; color: inherit; font-weight: 600; text-underline-offset: 4px; }

@media (max-width: 860px) {
  .ps-p-section-site-reel .rl-item { grid-template-columns: minmax(0, 1fr); }
  .ps-p-section-site-reel .rl-item:nth-child(even) .rl-stage { order: 0; }
}
