:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #090709;
  color: #f8f4f1;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(136, 21, 53, 0.26), transparent 34%),
    radial-gradient(circle at 84% 88%, rgba(93, 34, 118, 0.2), transparent 38%),
    radial-gradient(circle at 50% 42%, rgba(91, 19, 39, 0.22), transparent 48%),
    #090709;
}

.teaser {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 4vw, 48px);
}

.ambient {
  position: absolute;
  z-index: -1;
  width: min(70vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 27, 78, 0.26);
  filter: blur(100px);
  opacity: 0.64;
  animation: drift 12s ease-in-out infinite alternate;
}

.ambient--one {
  top: -38%;
  left: -18%;
}

.ambient--two {
  right: -24%;
  bottom: -44%;
  background: rgba(109, 38, 144, 0.24);
  opacity: 0.5;
  animation-delay: -5s;
}

.teaser__frame {
  --glow-x: 50%;
  --glow-y: 50%;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: clamp(22px, 4vw, 42px);
  background: #0b090c;
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.62),
    0 0 100px rgba(255, 30, 82, 0.14),
    0 0 42px rgba(114, 40, 144, 0.08);
  transform: perspective(1100px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transform-style: preserve-3d;
  transition:
    transform 180ms ease-out,
    box-shadow 260ms ease;
  will-change: transform;
}

.teaser__frame::before,
.teaser__frame::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.teaser__frame::before {
  z-index: 2;
  background: radial-gradient(
    circle at var(--glow-x) var(--glow-y),
    rgba(255, 72, 111, 0.15),
    transparent 32%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 240ms ease;
}

.teaser__frame::after {
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 38px rgba(255, 49, 94, 0.03);
}

.teaser__frame[data-active="true"] {
  box-shadow:
    0 52px 135px rgba(0, 0, 0, 0.68),
    0 0 115px rgba(255, 30, 82, 0.2),
    0 0 52px rgba(114, 40, 144, 0.12);
}

.teaser__frame[data-active="true"]::before {
  opacity: 1;
}

.teaser__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
}

.teaser__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 2, 4, 0.74) 0%, transparent 30%),
    linear-gradient(0deg, rgba(4, 2, 4, 0.88) 0%, transparent 38%);
  pointer-events: none;
}

.teaser__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 5vw, 52px);
  pointer-events: none;
}

.teaser__content p {
  margin: 0;
  text-transform: uppercase;
}

.teaser__content p {
  align-self: flex-end;
  font-size: clamp(0.8rem, 1.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.38em;
  color: #ff426c;
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes drift {
  to {
    transform: translate3d(8%, 6%, 0) scale(1.1);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.48;
  }
}

@media (max-width: 600px) {
  .teaser {
    padding: 12px;
  }

  .teaser__frame {
    width: min(100%, calc(100svh - 24px));
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 26px;
  }

  .teaser__video {
    object-fit: contain;
    transform: none;
  }

  .teaser__content {
    padding: 28px 24px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .teaser__content p {
    animation: none;
  }

  .teaser__frame {
    transform: none;
    transition: none;
  }
}
