/* Two 16:9 engine demos. Stacked under 860px, side by side above. */
.engine-demos { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 860px) {
  .engine-demos { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}
.engine-card { margin: 0; }
.engine-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0B0D10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E6E8EB;
}
body.layout-v3 .engine-frame.is-916 { aspect-ratio: 9 / 16; max-width: 420px; margin-inline: auto; }
.engine-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0B0D10;
}
.engine-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.engine-play picture, .engine-play img { display: block; width: 100%; height: 100%; object-fit: contain; }
.engine-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(11, 13, 16, .72) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 7v10l8-5z'/></svg>") center / 28px 28px no-repeat;
}
.engine-frame.is-playing .engine-play { display: none; }
.engine-sound {
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 4;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  background: rgba(10, 10, 13, .8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 .85rem/1.1 inherit;
  cursor: pointer;
  white-space: nowrap;
}
.engine-sound:hover, .engine-sound:focus-visible { background: #ec0017; border-color: #ec0017; }
.engine-sound[hidden] { display: none; }
.engine-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}
/* Paired columns: Walter over Runa, Bianca over Brody.
   One column under 860px, two columns above. */
.engine-stack { display: grid; gap: 28px; }
@media (min-width: 860px) {
  .engine-demos { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}
