.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;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(18, 24, 39, .42) 36%, rgba(8, 13, 24, .62));
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 16px;
  box-shadow:
    0 24px 60px rgba(1, 5, 14, .34),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  pointer-events: auto;
}

.site-showcase-panel::before {
  position: absolute;
  top: -55%;
  left: -15%;
  width: 68%;
  height: 110%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  filter: blur(28px);
  content: '';
  pointer-events: none;
}

.site-showcase-copy,
.site-showcase-nav {
  position: relative;
  z-index: 1;
}

.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(235, 244, 255, .7);
  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(239, 246, 255, .82);
  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, .25);
  border-radius: 10px;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-showcase-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.site-showcase-nav button.is-active {
  border-color: #ffbc00;
  color: #171717;
  background: #ffbc00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

::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,
  .site-showcase-nav button {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-showcase-panel {
    background: rgba(10, 16, 28, .96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
