/* Homepage evidence stage, second design (18 Nov 2026). Built by home-motion-scenes.js inside the dark artifact card.
   The stage is decorative; every figure comes from the linked case records.
   Colours are the site tokens: card ink #32335D, accent #5877F3, pale blue #A9B8FF / #DCE3FF, check green #38D68F. */
.hm-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 32px 24px;
  overflow: hidden;
  color: #F6F6F8;
  font-family: "Mulish", "Instrument Sans", "Inter var", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
}
.hm-stage p { margin: 0; }

/* Ambient light: three soft blooms that drift slowly while the stage plays. */
.hm-aurora { position: absolute; inset: -18%; filter: blur(46px); opacity: .95; }
.hm-aurora i { position: absolute; border-radius: 50%; will-change: transform; animation: hm-drift 22s ease-in-out infinite alternate; animation-play-state: paused; }
.hm-aurora i:nth-child(1) { left: 2%; top: 0; width: 62%; height: 46%; background: radial-gradient(closest-side, rgba(88,119,243,.55), rgba(88,119,243,0)); }
.hm-aurora i:nth-child(2) { right: 0; top: 30%; width: 58%; height: 50%; background: radial-gradient(closest-side, rgba(142,123,255,.34), rgba(142,123,255,0)); animation-duration: 27s; animation-delay: -9s; }
.hm-aurora i:nth-child(3) { left: 18%; bottom: 0; width: 60%; height: 40%; background: radial-gradient(closest-side, rgba(63,92,207,.5), rgba(63,92,207,0)); animation-duration: 31s; animation-delay: -15s; }
.hm-stage.is-playing .hm-aurora i { animation-play-state: running; }
@keyframes hm-drift { from { transform: translate3d(-6%, -4%, 0) scale(1); } to { transform: translate3d(8%, 7%, 0) scale(1.14); } }
.hm-grid {
  position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(rgba(246,246,248,.16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(110% 80% at 50% 45%, #000 20%, transparent 76%);
  mask-image: radial-gradient(110% 80% at 50% 45%, #000 20%, transparent 76%);
}

/* Scenes are stacked; the active one fades and settles in. */
.hm-scenes { position: relative; flex: 1 1 auto; min-height: 0; }
.hm-scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; transform: translate3d(0, 12px, 0);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.hm-scene.is-active { opacity: 1; transform: none; }
.hm-scene > * { transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); opacity: 0; transform: translate3d(0, 10px, 0); }
.hm-scene.is-active > * { opacity: 1; transform: none; }
.hm-scene.is-active > :nth-child(2) { transition-delay: .06s; }
.hm-scene.is-active > :nth-child(3) { transition-delay: .12s; }
.hm-scene.is-active > :nth-child(4) { transition-delay: .2s; }
.hm-scene.is-active > :nth-child(5) { transition-delay: .28s; }

.hm-head { display: flex; align-items: center; gap: 12px; }
.hm-pill {
  padding: 5px 11px 4px; border-radius: 999px;
  background: rgba(246,246,248,.1); box-shadow: inset 0 0 0 1px rgba(246,246,248,.16);
  color: #F6F6F8; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
}
.hm-kind { color: rgba(246,246,248,.66); font-size: 12.5px; font-weight: 500; letter-spacing: .01em; }
.hm-title { margin-top: 18px !important; color: #FFFFFF; font-size: 27px; font-weight: 300; line-height: 1.2; letter-spacing: -.005em; }
.hm-metric { display: flex; align-items: flex-end; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(246,246,248,.13); }
.hm-num { color: #FFFFFF; font-size: 62px; font-weight: 300; line-height: .92; letter-spacing: -.025em; white-space: nowrap; }
.hm-num i { margin-left: 2px; color: rgba(246,246,248,.62); font-size: .5em; font-style: normal; font-weight: 400; letter-spacing: 0; }
.hm-cap { display: flex; flex-direction: column; gap: 3px; padding-bottom: 5px; }
.hm-cap b { color: rgba(246,246,248,.6); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hm-cap span { color: rgba(246,246,248,.92); font-size: 15px; font-weight: 500; }
.hm-foot { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(246,246,248,.13); }
.hm-foot b { color: rgba(246,246,248,.86); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.hm-foot span { color: rgba(246,246,248,.6); font-size: 12px; font-weight: 400; }

/* Case 07: the sampled trade tape */
.hm-plot { position: relative; flex: 1 1 auto; min-height: 0; margin: 18px 0 16px; }
.hm-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hm-gridline { stroke: rgba(246,246,248,.1); stroke-width: 1; }
.hm-axis { fill: rgba(246,246,248,.5); font: 500 10.5px "Mulish", system-ui, sans-serif; }
.hm-line { fill: none; stroke: url(#hmLine); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.hm-line-glow { fill: none; stroke: #5877F3; stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; opacity: .6; }
.hm-cutline { stroke: rgba(56,214,143,.75); stroke-width: 1.2; stroke-dasharray: 3 5; }
.hm-hair { stroke: rgba(246,246,248,.3); stroke-width: 1; stroke-dasharray: 2 5; }
.hm-halo { fill: rgba(169,184,255,.3); }
.hm-halo2 { fill: rgba(169,184,255,.12); }
.hm-dot { fill: #FFFFFF; filter: drop-shadow(0 0 6px rgba(169,184,255,.95)); }
.hm-cut {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  margin-left: 9px !important; padding: 6px 10px 5px; border-radius: 6px;
  background: rgba(22,60,48,.5); box-shadow: inset 0 0 0 1px rgba(56,214,143,.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  white-space: nowrap;
}
.hm-cut[hidden] { display: none; }
.hm-cut.is-flipped { margin-left: 0 !important; transform: translateX(calc(-100% - 9px)); }
.hm-cut b { color: #7DE6B6; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hm-cut span { color: rgba(246,246,248,.74); font-size: 10.5px; font-weight: 500; }
.hm-wait { position: absolute; left: 0; top: 40%; color: rgba(246,246,248,.7); font-size: 13px; }
.hm-wait[hidden] { display: none; }

/* Case 14: two recorded pairs */
.hm-rings { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; margin: 14px 0; container-type: size; }
.hm-ring { position: relative; display: flex; flex-direction: column; align-items: center; }
.hm-ring-box { position: relative; width: min(100%, 200px, 100cqh - 44px); aspect-ratio: 1; }
.hm-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.hm-ring circle { fill: none; stroke-width: 7; }
.hm-ring-track { stroke: rgba(246,246,248,.1); }
.hm-ring-a { stroke: #A9B8FF; filter: drop-shadow(0 0 7px rgba(88,119,243,.9)); }
.hm-ring-b { stroke: #38D68F; filter: drop-shadow(0 0 6px rgba(56,214,143,.6)); }
.hm-ring-n { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.hm-ring-n b { color: #FFFFFF; font-size: 32px; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.hm-ring-n i { padding-top: 7px; border-top: 1px solid rgba(246,246,248,.18); color: #7DE6B6; font-size: 19px; font-style: normal; font-weight: 500; line-height: 1; }
.hm-ring-l { margin-top: 16px !important; color: rgba(246,246,248,.82); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }

/* Case 02: three recorded executions (separate columns, not a path) */
.hm-cols { position: relative; flex: 1 1 auto; min-height: 0; margin: 20px 0 16px; padding: 0 0 46px 38px; }
.hm-gl { position: absolute; left: 38px; right: 0; bottom: calc(46px + (100% - 46px) * var(--v) / 100 * .82); height: 1px; background: rgba(246,246,248,.1); }
.hm-gl i { position: absolute; left: -38px; top: -7px; color: rgba(246,246,248,.5); font-size: 10.5px; font-style: normal; font-weight: 500; }
.hm-colrow { position: relative; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0 10px; }
.hm-col { position: relative; height: 100%; opacity: .5; transition: opacity .5s ease; }
.hm-col.is-done { opacity: .78; }
.hm-col.is-lit { opacity: 1; }
.hm-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--p) * .82% * var(--g, 1)); min-height: 3px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #A9B8FF 0%, #5877F3 38%, rgba(88,119,243,.16) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 -6px 22px -4px rgba(88,119,243,.75);
}
.hm-bar b { position: absolute; left: 0; bottom: calc(100% + 9px); color: #FFFFFF; font-size: 21px; font-weight: 400; letter-spacing: -.01em; white-space: nowrap; opacity: var(--g, 1); }
.hm-col p { position: absolute; left: 0; right: 0; top: calc(100% + 11px); display: flex; flex-direction: column; gap: 2px; }
.hm-col strong { color: rgba(246,246,248,.9); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hm-col p span { color: rgba(246,246,248,.6); font-size: 11.5px; }

/* Which of the three cases is playing, and how far along it is. */
.hm-progress { position: relative; display: flex; gap: 6px; margin-top: 16px; }
.hm-progress i { flex: 1 1 0; height: 2px; border-radius: 2px; background: rgba(246,246,248,.16); overflow: hidden; }
.hm-progress i[hidden] { display: none; }
.hm-progress b { display: block; height: 100%; background: #DCE3FF; transform: scaleX(0); transform-origin: left center; }

/* Desktop: the copy column is at least as tall as the card needs, and sits centred beside it. */
@media (min-width: 901px) {
  .msr-architecture.verify-site .home-motion-hero .v-hero-grid { min-height: 512px; align-content: center; }
}
@media (max-width: 900px) {
  .hm-stage { padding: 20px 20px 16px; }
  .hm-title { margin-top: 12px !important; font-size: 22px; }
  .hm-metric { gap: 14px; margin-top: 12px; padding-top: 12px; }
  .hm-num { font-size: 44px; }
  .hm-cap span { font-size: 13.5px; }
  .hm-plot { margin: 10px 0 10px; }
  .hm-foot { padding-top: 10px; gap: 2px; }
  .hm-foot b, .hm-foot span { font-size: 11px; }
  .hm-rings { gap: 16px; margin: 8px 0; }
  .hm-ring-box { width: min(100%, 132px, 100cqh - 30px); }
  .hm-ring-n b { font-size: 22px; }
  .hm-ring-n i { font-size: 14px; padding-top: 5px; }
  .hm-ring-l { margin-top: 8px !important; font-size: 11.5px; }
  .hm-cols { margin: 12px 0 10px; padding-bottom: 40px; }
  .hm-gl { bottom: calc(40px + (100% - 40px) * var(--v) / 100 * .82); }
  .hm-colrow { gap: 12px; padding: 0 4px; }
  .hm-bar b { font-size: 16px; }
  .hm-progress { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-aurora i { animation: none; }
  .hm-scene, .hm-scene > * { transition: none; }
}
@media print { .hm-stage { display: none !important; } }
