.scene-dooh {
  container-type: size;
  background: #0054fd;
  color: #000;
}

.dooh-artboard {
  --dooh-unit: min(100cqw / 1800, 100cqh / 890);
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(1800 * var(--dooh-unit));
  height: calc(890 * var(--dooh-unit));
  transform: translateX(-50%);
}

#dooh-headline {
  position: absolute;
  z-index: 2;
  top: calc(210 * var(--dooh-unit));
  left: calc(900.5 * var(--dooh-unit));
  transform: translate(-50%, -100%);
  margin: 0;
  color: #fff;
  font-size: calc(52 * var(--dooh-unit));
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02885em;
  text-align: center;
  white-space: nowrap;
}

.dooh-stage {
  position: absolute;
  top: calc(258 * var(--dooh-unit));
  left: calc(120 * var(--dooh-unit));
  width: calc(1560 * var(--dooh-unit));
  height: calc(512 * var(--dooh-unit));
}

.dooh-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(28 * var(--dooh-unit));
  background: #fff;
}

.dooh-sky :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 80.5%;
}

.dooh-sky video {
  opacity: 0;
  transition: opacity 320ms ease;
}

.dooh-sky[data-video-visible] video { opacity: 1; }

.dooh-sky::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 52%, rgb(255 255 255 / .36) 79%);
  content: '';
  pointer-events: none;
}

.dooh-work, .dooh-results {
  position: absolute;
  z-index: 2;
  width: max-content;
  margin: 0;
  font-size: calc(22 * var(--dooh-unit));
  line-height: 1.1;
  letter-spacing: -.03746em;
}

.dooh-work, .dooh-results ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dooh-work {
  top: 22.46%;
  right: 10.489%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(129 * var(--dooh-unit));
  padding-left: calc(22 * var(--dooh-unit));
  border-left: calc(6 * var(--dooh-unit)) solid #0054fd;
}

.dooh-results {
  top: 58.008%;
  right: 9.4635%;
}

.dooh-results p {
  margin: 0 0 calc(8 * var(--dooh-unit));
  color: #0054fd;
  font-size: calc(40 * var(--dooh-unit));
  font-weight: 500;
  letter-spacing: -.0206em;
}

.dooh-billboard {
  position: absolute;
  z-index: 1;
  bottom: calc(-120 * var(--dooh-unit));
  left: calc(-68 * var(--dooh-unit));
  width: calc(974 * var(--dooh-unit));
  height: calc(757 * var(--dooh-unit));
}

.dooh-billboard-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dooh-billboard-crop :is(img, canvas, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The still supplies the metal frame and its alpha. Only the screen is animated. */
.dooh-billboard video {
  clip-path: polygon(8.81% 1.62%, 96.74% 26.48%, 98.96% 76.19%, 9.04% 61.43%);
  visibility: hidden;
}
.dooh-billboard[data-video-visible] video { visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  .dooh-sky video { transition: none; }
}

@media (orientation: portrait) {
  .dooh-artboard {
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: min(4cqh, 5cqw);
    width: auto;
    height: auto;
    padding: min(6cqw, 4cqh);
    transform: none;
  }

  #dooh-headline {
    position: static;
    transform: none;
    font-size: min(6cqw, 5.8cqh, 58px);
    white-space: normal;
  }

  .dooh-stage {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: clamp(6px, 2cqh, 20px);
    width: auto;
    height: auto;
    padding: min(4.5cqw, 4cqh);
  }

  .dooh-sky { border-radius: min(18px, 4cqw); }

  .dooh-sky :is(img, video) { object-position: center; }

  .dooh-sky::after {
    background: linear-gradient(180deg, transparent 44%, rgb(255 255 255 / .55) 80%);
  }

  .dooh-billboard {
    container-type: size;
    position: relative;
    inset: auto;
    grid-row: 1;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .dooh-billboard-crop {
    inset: 50% auto auto 50%;
    width: min(100cqw, 100cqh * 974 / 757);
    aspect-ratio: 974 / 757;
    transform: translate(-50%, -50%);
  }

  .dooh-work, .dooh-results {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 0;
    font-size: min(4.1cqw, 3.5cqh, 24px);
  }

  .dooh-work {
    grid-row: 2;
    padding-left: .7em;
    border-left-width: .18em;
  }

  .dooh-results { grid-row: 3; }

  .dooh-results p {
    margin-bottom: .2em;
    font-size: 1.65em;
  }
}
