/* ---- my.alli welcome-page demo reel --------------------------------
   Player chrome + scene animations, adapted from the LESSDESK splash
   demo player (landing/demo.css + styles.css). Scenes are inline SVG
   injected by reel.js; the .da/.dp/.db/.dr/.dc classes drive motion. */

.reel-player { max-width: 760px; margin: 0 auto; }

.demo-stagewrap { position: relative; }
.demo-stagewrap.ended::after { content: ""; position: absolute; inset: 0;
  background: rgba(16, 48, 54, .38); border-radius: 18px; }
.demo-replay { position: absolute; inset: 0; margin: auto; z-index: 3;
  width: 104px; height: 104px; border-radius: 50%; border: 0; background: #fff;
  color: var(--navy); font-size: 34px; line-height: 1; font-weight: 800;
  cursor: pointer; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform .18s ease; }
.demo-replay:hover { transform: scale(1.05); }
.demo-replay span { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.demo-replay[hidden] { display: none; }

.demo-stage { border-radius: 18px; overflow: hidden; background: #f7fbfa;
  border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(30, 58, 95, 0.14); }
.demo-stage svg { display: block; width: auto; height: auto; max-width: 100%;
  max-height: clamp(220px, calc(100vh - 350px), 560px); margin: 0 auto; }
.demo-stage.paused * { animation-play-state: paused !important; }

.demo-bar { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.demo-caption { flex: 1 1 300px; margin: 0; font-weight: 750; color: var(--navy);
  font-size: 16px; min-height: 24px; }
.demo-controls { display: flex; align-items: center; gap: 12px; }
.demo-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 14px; font-weight: 800; cursor: pointer; }
.demo-segs { display: flex; gap: 6px; }
.demo-segs button { width: 26px; height: 6px; border-radius: 3px; border: 0; padding: 0;
  background: rgba(31, 90, 99, .15); cursor: pointer; transition: background .25s ease; }
.demo-segs button.done { background: rgba(31, 90, 99, .38); }
.demo-segs button.is-active { background: #2d6a74; }
.demo-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* Scene element animations. transform-box makes scale/origin behave
   for SVG elements; delays are set inline per element. */
.da, .dp, .db, .dr, .dc { transform-box: fill-box; transform-origin: center; }
.da { opacity: 0; animation: daIn .55s ease forwards; }
@keyframes daIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dp { opacity: 0; animation: daPop .5s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes daPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.db { transform: scaleX(0); transform-origin: left center; animation: daBar 1.1s ease forwards; }
@keyframes daBar { to { transform: scaleX(1); } }
.dr { opacity: 0; animation: daRip .9s ease forwards; }
@keyframes daRip { 0% { opacity: .65; transform: scale(.25); } 100% { opacity: 0; transform: scale(1.7); } }
.dc { animation: daCaret 1s step-end infinite; }
@keyframes daCaret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .da, .dp, .db { animation: none; opacity: 1; transform: none; }
}
