.theme-scene,
    .theme-scene * {
      box-sizing: border-box;
    }

    .theme-scene {
      --scene-background: #f5f7f9;
      position: relative;
      display: grid;
      min-height: var(--theme-height);
      place-items: center;
      overflow: hidden;
      isolation: isolate;
      background: var(--scene-background);
    }

    /* Only the background layer is animated. The video stays above it. */
    .theme-scene__wipe {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }

    .theme-scene__stage {
      position: relative;
      z-index: 1;
      width: min(100vw, calc(var(--theme-height) * 1920 / 920));
      aspect-ratio: 1920 / 920;
      pointer-events: none;
    }

    .theme-scene__video {
      position: absolute;
      top: 50%;
      left: 50%;
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      transform: translate(-50%, -50%);
      background: transparent;
      object-fit: contain;
      pointer-events: none;
    }

    .theme-scene__controls {
      position: absolute;
      inset: 0;
      z-index: 2;
      pointer-events: none;
    }

    .theme-scene__button {
      --hover-scale: 1;
      position: absolute;
      top: 50%;
      display: grid;
      width: calc(100% / 24);
      min-width: 44px;
      aspect-ratio: 1;
      place-items: center;
      padding: 0;
      border: 0;
      border-radius: 50%;
      transform: translateY(-50%) scale(var(--hover-scale));
      transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      pointer-events: auto;
    }

    @media (hover: hover) and (pointer: fine) {
      .theme-scene__button:hover {
        --hover-scale: 1.08;
      }

      .theme-scene__button--dark:hover .theme-scene__icon {
        filter: brightness(0);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .theme-scene__button {
        transition: none;
      }
    }

    .theme-scene__button--light {
      left: 11.875%;
      background: #fff;
      color: #161616;
    }

    .theme-scene__button--dark {
      right: 11.875%;
      background: #111;
      color: #fff;
    }

    .theme-scene__icon {
      display: block;
      pointer-events: none;
      user-select: none;
    }

    .theme-scene__button--light .theme-scene__icon {
      width: 55%;
      height: 55%;
    }

    .theme-scene__button--dark .theme-scene__icon {
      width: 42.5%;
      height: 42.5%;
    }

    .theme-scene__button:focus-visible {
      outline: 2px solid currentColor;
      outline-offset: 5px;
    }

    .theme-scene__play {
      position: absolute;
      z-index: 3;
      top: 50%;
      left: 50%;
      padding: 12px 20px;
      border: 0;
      border-radius: 24px;
      background: #fff;
      color: #161616;
      font: 14px/1.4 system-ui, sans-serif;
      transform: translate(-50%, -50%);
      cursor: pointer;
    }

    .theme-scene [hidden] {
      display: none;
    }

    @media (max-width: 767px) {
      .theme-scene__stage {
        width: 100%;
        height: var(--theme-height);
        min-height: 440px;
        aspect-ratio: auto;
      }

      .theme-scene__video {
        top: 43%;
        width: min(250vw, calc(1.4 * var(--theme-height)));
      }

      .theme-scene__controls {
        inset: auto 0 max(40px, calc(.11 * var(--theme-height)));
        display: flex;
        justify-content: center;
        gap: 24px;
      }

      .theme-scene__button {
        position: static;
        width: 56px;
        flex: none;
        transform: scale(var(--hover-scale));
      }
    }
