.site-showcase {
  isolation: isolate;
  overflow: hidden;
  background: #12100f;
}

.site-showcase-media,
.site-showcase-video,
.site-showcase-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-showcase-video {
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(.9) brightness(.76);
  transition: opacity 900ms cubic-bezier(.16, 1, .3, 1), filter 900ms cubic-bezier(.16, 1, .3, 1);
}

.site-showcase-video.is-active {
  opacity: 1;
  filter: saturate(1) brightness(.82);
}

.site-showcase-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(13, 14, 16, .82) 0, rgba(13, 14, 16, .56) 32rem, rgba(13, 14, 16, .12) 65%, rgba(13, 14, 16, .3) 100%),
    linear-gradient(0deg, rgba(6, 7, 9, .46), transparent 42%);
}

.site-showcase-panel {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 12;
  width: min(27rem, calc(100vw - 48px));
  padding: 18px;
  color: #fff;
  background: rgba(18, 20, 24, .82);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 16px;
  pointer-events: auto;
}

.site-showcase-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: start;
}

.site-showcase-copy > span {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .64);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.site-showcase-copy strong {
  font-size: 22px;
  letter-spacing: -.02em;
}

.site-showcase-copy p {
  grid-column: 1 / -1;
  max-width: 36ch;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.65;
}

.site-showcase-copy a {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: #fff;
  font-weight: 700;
  text-underline-offset: 4px;
}

.site-showcase-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 16px;
}

.site-showcase-nav button {
  min-height: 40px;
  padding: 7px 6px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .06);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.site-showcase-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.site-showcase-nav button.is-active {
  border-color: #ffbc00;
  color: #171717;
  background: #ffbc00;
}

::selection {
  color: #171717;
  background: #ffbc00;
}

@media (max-width: 1180px) {
  .site-showcase-panel {
    bottom: max(14px, env(safe-area-inset-bottom));
    width: min(34rem, calc(100vw - 28px));
  }

  .site-showcase-copy p {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-showcase-video {
    object-position: 62% center;
    filter: saturate(.9) brightness(.6);
  }

  .site-showcase-video.is-active {
    filter: saturate(.95) brightness(.64);
  }

  .site-showcase-shade {
    background: linear-gradient(180deg, rgba(9, 10, 12, .48), rgba(9, 10, 12, .7));
  }

  .site-showcase-panel {
    right: 14px;
    left: 14px;
    width: auto;
    padding: 10px;
    border-radius: 14px;
  }

  .site-showcase-copy {
    align-items: center;
  }

  .site-showcase-copy > span {
    display: none;
  }

  .site-showcase-copy strong {
    font-size: 17px;
  }

  .site-showcase-copy a {
    min-height: 36px;
  }

  .site-showcase-nav {
    margin-top: 7px;
  }

  .site-showcase-nav button {
    min-height: 44px;
    font-size: 11px;
  }

  .site-showcase-panel + .main .scroll-down {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-showcase-video {
    transition: none;
  }
}
