/* A short, replayable scene using the homepage's existing photo. */
.dynamai-home .home-hero-visual .studio-split {
  grid-template-columns: minmax(0,.99fr) minmax(0,1.01fr);
  gap: clamp(32px, 4.6vw, 68px);
}
.motion-reel {
  --reel-progress: 0;
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 0;
}
.motion-reel::before {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  inset: 2% -9% 3% -9%;
  background: radial-gradient(ellipse at 69% 21%,#f582b264,transparent 44%),
              radial-gradient(ellipse at 18% 52%,#d7ec5940,transparent 52%);
  filter: blur(41px);
}
.motion-scene {
  isolation: isolate;
  position: relative;
  aspect-ratio: 1.34;
  min-height: 292px;
  border-radius: 24px 44px 14px 14px;
  overflow: hidden;
  border: 1px solid #e9bbd597;
  background: #442342;
  box-shadow: 0 26px 64px #1c102a69;
}
.motion-photo,.motion-scrim,.motion-trace,.motion-stage {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}
.motion-photo {
  display: block;
  object-fit: cover;
  object-position: 50% 44%;
  transform-origin: 56% 39%;
  animation: motion-camera 17s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.motion-running .motion-photo { animation-play-state: running; }
.motion-scrim {
  pointer-events: none;
  background: linear-gradient(180deg,#2f13285c 0%, transparent 34%, #30133625 48%, #2b1539ba 100%);
}
.motion-trace {
  pointer-events: none;
  stroke: #fce3f7;
  stroke-width: 1.35;
  opacity: .74;
}
.trace-base { opacity: .38; }
.trace-live {
  stroke: #effa8d;
  stroke-width: 1.65;
  stroke-dasharray: 46 900;
  stroke-dashoffset: calc(45 - 660 * var(--reel-progress));
  filter: drop-shadow(0 0 4px #d9f65c);
}
.motion-reel-title,.motion-scene-number {
  position: absolute;
  top: 14px;
  color: #fff6fc;
  border: 1px solid #ffffff48;
  background: #2a1236c9;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 8px;
  padding: .48rem .61rem;
  font: 800 .65rem/1 Manrope,sans-serif;
  letter-spacing: .08em;
}
.motion-reel-title { left: 13px; }
.motion-reel-title i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #e2f764;
  box-shadow: 0 0 9px #e5fa70;
}
.motion-scene-number { right: 13px; letter-spacing: .055em; color: #eed8eb; }
.motion-scene-number b { color: #e6f788; font-weight: 800; }
.motion-stage { pointer-events: none; }
.motion-beat {
  --slip-accent: #792950;
  --slip-pale: #f6dfee;
  --stamp-fill: #ede5b6;
  position: absolute;
  inset: 0;
}
.motion-beat[hidden], .motion-strip[hidden] { display: none; }
.motion-beat.beat-jobs { --slip-accent: #582676; --slip-pale: #eadef5; --stamp-fill: #f3ddee; }
.motion-beat.beat-paid { --slip-accent: #53611e; --slip-pale: #e9f1c8; --stamp-fill: #dcf484; }
.motion-slip {
  position: absolute;
  left: 18px;
  bottom: 19px;
  min-width: 0;
  width: min(60%, 266px);
  padding: clamp(.78rem,1.25vw,1.05rem);
  border-radius: 14px;
  background: #fffcf8;
  color: #2f1934;
  border: 1px solid #fff9f5;
  border-left: 4px solid var(--slip-accent);
  box-shadow: 0 13px 30px #150d24a2;
  animation: motion-slip-in .62s cubic-bezier(.18,.72,.21,1) both;
}
.motion-slip-top {
  display: flex;
  align-items: center;
  gap: .64rem;
}
.motion-glyph {
  flex: 0 0 37px;
  height: 37px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--slip-accent);
  background: var(--slip-pale);
}
.motion-glyph svg { width: 20px; height: 20px; }
.motion-slip-top strong {
  display: block;
  margin-top: .14rem;
  font: 800 clamp(.94rem,1.45vw,1.14rem)/1.12 Manrope,sans-serif;
  letter-spacing: -.035em;
}
.slip-eyebrow {
  color: var(--slip-accent);
  display: block;
  font: 800 .61rem/1.2 Manrope,sans-serif;
  letter-spacing: .1em;
}
.motion-checks {
  display: grid;
  gap: .29rem;
  margin: .6rem 0 0;
  padding: .52rem 0 0;
  list-style: none;
  border-top: 1px solid #eadce7;
}
.motion-checks li {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  color: #563c58;
  line-height: 1.14;
}
.motion-checks li svg { width: 12px; height: 12px; color: var(--slip-accent); }
.motion-stamp {
  position: absolute;
  right: 16px;
  bottom: 50px;
  max-width: 34%;
  border-radius: 11px;
  padding: .53rem .65rem;
  border: 1px solid #ffffff7a;
  background: var(--stamp-fill);
  color: #2e2430;
  box-shadow: 0 9px 24px #180c2955;
  transform: rotate(-3deg);
  animation: motion-stamp-in .61s .16s cubic-bezier(.18,.72,.21,1) both;
}
.stamp-kicker { display: block; font-size: .62rem; font-weight: 700; color: #4a3d48; }
.stamp-label { display: flex; gap: .26rem; align-items: center; margin-top: .12rem; font: 800 .72rem/1.18 Manrope,sans-serif; }
.stamp-label svg { flex: 0 0 13px; width: 13px; height: 13px; }
.motion-strip {
  display: flex;
  gap: .42rem;
  align-items: stretch;
  padding: .45rem;
  margin: .52rem 0 0;
  border: 1px solid #f2d5ed4d;
  border-radius: 13px;
  background: #34183e;
}
.motion-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); flex: 1; min-width: 0; gap: .3rem; }
.motion-nav button,.motion-toggle {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  justify-content: center;
  align-items: center;
  gap: .33rem;
  padding: .37rem .36rem;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #ffffff0c;
  color: #f6e2ee;
  font: 800 .78rem/1.1 Manrope,sans-serif;
  cursor: pointer;
}
.motion-nav button:hover,.motion-toggle:hover { background: #ffffff1c; color: white; }
.motion-nav button[aria-pressed="true"] {
  background: #f8e7f1;
  color: #40193f;
  border-color: #fff2fa;
}
.motion-num { color: #eeb0d4; font-size: .63rem; }
.motion-nav button[aria-pressed="true"] .motion-num { color: #8a345d; }
.motion-timing {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(var(--reel-progress));
  transform-origin: 0 50%;
  background: #8a9b35;
}
.motion-nav button[aria-pressed="true"] .motion-timing { display: block; }
.motion-toggle { flex: 0 0 40px; color: #e3f67a; border-color: #ffffff32; }
.motion-toggle svg { width: 17px; height: 17px; }
.motion-toggle .motion-play,.motion-toggle.motion-is-paused .motion-pause { display: none; }
.motion-toggle.motion-is-paused .motion-play { display: block; }
.motion-caption {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin: .52rem .18rem 0;
  color: #f2d8e9;
  font-size: .7rem;
}
.motion-caption span:last-child { color: #f4e5f4; }
@keyframes motion-camera {
  from { transform: scale(1.025) translate(0,0); }
  to { transform: scale(1.12) translate(-1%,1%); }
}
@keyframes motion-slip-in {
  from { opacity: 0; transform: translate(-8px,12px) rotate(-1deg); }
  to { opacity: 1; transform: translate(0,0) rotate(0); }
}
@keyframes motion-stamp-in {
  from { opacity: 0; transform: translate(8px,7px) rotate(2deg); }
  to { opacity: 1; transform: translate(0,0) rotate(-3deg); }
}
@media(max-width:960px) {
  .motion-slip { left: 12px; bottom: 13px; }
  .motion-stamp { right: 11px; max-width: 35%; padding: .46rem .43rem; }
}
@media(max-width:760px) {
  .dynamai-home .home-hero-visual .studio-split { grid-template-columns: 1fr; gap: clamp(22px,5vw,34px); }
  .motion-reel { max-width: 560px; width: 100%; }
}
@media(max-width:490px) {
  .motion-scene { min-height: 249px; aspect-ratio: 1.2; border-radius: 15px 28px 11px 11px; }
  .motion-slip { width: min(75%,238px); }
  .motion-stamp { display: none; }
  .motion-reel-title,.motion-scene-number { top: 10px; font-size: .58rem; padding: .4rem .45rem; }
  .motion-reel-title { left: 10px; }
  .motion-scene-number { right: 10px; }
  .motion-nav button { min-height: 39px; padding-inline: .23rem; font-size: .71rem; }
  .motion-toggle { flex-basis: 34px; min-height: 39px; }
  .motion-num { font-size: .56rem; }
}
@media(prefers-reduced-motion:reduce) {
  .motion-photo,.motion-slip,.motion-stamp { animation: none; }
  .motion-photo { transform: scale(1.025); }
  .trace-live,.motion-timing { display: none !important; }
}
