.home-stage {
  position: relative;
  isolation: isolate;
}

/* The video holds its position while the opaque work section rises over it. */
.intro--video {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--color-black);
  color: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-video-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: var(--hero-shade, 0.16);
  pointer-events: none;
}

.hero-video-window {
  position: absolute;
  inset: 0;
  background: #000;
}

.hero-brand {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 16px;
  width: min(180px, calc(100% - 160px));
  aspect-ratio: 846.09 / 321.31;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-brand__bubble {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-brand__logo {
  position: absolute;
  left: calc(48 / 846.09 * 100%);
  top: calc(48 / 321.31 * 100%);
  width: calc(750.09 / 846.09 * 100%);
  height: calc(225.31 / 321.31 * 100%);
}

.hero-accessible-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-video-toggle {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle img { filter: invert(1); }
.hero-video-toggle:hover { background: rgba(0, 0, 0, 0.65); }
.hero-video-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.home-stage > .work-section {
  z-index: 2;
  background: var(--page-background);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.12);
}

@media (max-width: 700px) {
  .hero-brand {
    top: 14px;
    width: min(140px, calc(100% - 144px));
  }
  .hero-video-toggle {
    right: 18px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro--video { position: relative; }
}
