.dd-opening {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
}
.dd-opening > .dd-hero-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #fff7e7;
}
.dd-hero-frame > .dd-scene-image {
  max-width: none;
  object-fit: contain;
  aspect-ratio: 600 / 360;
  --dd-final-poster: url("assets/motion/final-tablet.png");
}
.dd-hero-frame > .dd-motion-canvas,
.dd-hero-frame > .dd-motion-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}
.dd-hero-frame > .dd-motion-canvas[hidden] { display: none; }
.dd-opening > .dd-gif-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.dd-opening[data-dd-image-error] > .dd-gif-heading {
  z-index: 1;
  inset: 38% 8% auto;
  width: auto;
  height: auto;
  margin: 0;
  text-align: center;
  color: #842d31;
  clip-path: none;
  white-space: normal;
}
@media (max-width: 599px) {
  .dd-hero-frame > .dd-scene-image { aspect-ratio: 390 / 510; --dd-final-poster: url("assets/motion/final-phone.png"); }
  .dd-opening:not([data-dd-ready]) > .dd-hero-frame > .dd-scene-image { content: url("assets/motion/first-phone.png"); }
}
@media (min-width: 1024px) {
  .dd-hero-frame > .dd-scene-image { aspect-ratio: 1920 / 864; --dd-final-poster: url("assets/motion/final-desktop-hd.webp"); }
  .dd-opening:not([data-dd-ready]) > .dd-hero-frame > .dd-scene-image { content: url("assets/motion/first-desktop-hd.webp"); }
}

html.dd-entrance-off #collection > .dd-hero-frame > .dd-scene-image { content: url("assets/motion/final-tablet.png"); }
@media (max-width: 599px) {
  html.dd-entrance-off #collection > .dd-hero-frame > .dd-scene-image { content: url("assets/motion/final-phone.png"); }
}
@media (min-width: 1024px) {
  html.dd-entrance-off #collection > .dd-hero-frame > .dd-scene-image { content: url("assets/motion/final-desktop-hd.webp"); }
}

/* Paint each photograph at the display's pixel density. The static backdrop and
   the branding are separate from the five independently moving photo layers. */
.dd-live-scene, .dd-stage-back, .dd-stage-iris, .dd-stage-front, .dd-speed-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.dd-live-scene { z-index: 1; background: #f8dc79; }
.dd-live-scene[hidden], .dd-live-scene [hidden] { display: none !important; }
.dd-stage-iris { background: #fff9ec; }
.dd-live-scene .dd-stage-picture, .dd-live-scene .dd-stage-sprite, .dd-stage-accent {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  margin: 0;
  border: 0;
  padding: 0;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
.dd-live-scene .dd-stage-picture { width: 100%; height: 100%; }
.dd-live-scene .dd-stage-sprite { height: auto; transform-origin: center; }
.dd-live-scene [data-sprite="elephant"], .dd-live-scene [data-sprite="runner"], .dd-live-scene .dd-food {
  filter: drop-shadow(0 4px 4px rgba(115,50,38,.23));
  will-change: transform;
}
.dd-stage-streak { position: absolute; border-radius: 8px; }
.dd-stage-accent {
  background: #cf733d;
  clip-path: polygon(50% 0,63% 38%,100% 50%,63% 61%,50% 100%,37% 61%,0 50%,37% 38%);
}
