/* VIDEO MODAL */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.6s var(--ease-premium),
    visibility 0.6s;
}

/* ACTIVE */

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* BACKDROP */

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);

  opacity: 0;
  transition: opacity 0.6s ease;
}

.video-modal.is-open .video-modal__backdrop {
  opacity: 1;
}

/* CONTENT */

.video-modal__content {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;

  padding: 56px 6vw;

  display: flex;
  flex-direction: column;
  justify-content: center;

  transform: scale(0.8);
  opacity: 0;

  transition:
    transform 0.7s var(--ease-premium),
    opacity 0.6s ease;
}

.video-modal.is-open .video-modal__content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.video-modal__close {
  position: fixed;
  top: 36px;
  right: 46px;
  z-index: 3;

  width: 56px;
  height: 56px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);

  color: white;
  font-size: 42px;
  line-height: 1;

  cursor: pointer;
  backdrop-filter: blur(12px);

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.35s var(--ease-premium),
    background 0.35s var(--ease-premium),
    color 0.35s var(--ease-premium);
}

.video-modal__close:hover {
  transform: scale(1.04);
  background: white;
  color: black;
}

.video-modal__text {
  width: min(1200px, 88vw);
  margin: 0 auto 24px;
  color: white;
}

.video-modal__eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.video-modal__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.video-modal__frame {
  width: min(1200px, 88vw);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: #111;
  overflow: hidden;
  border-radius: 14px;
}

.video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

body.video-open {
  overflow: hidden;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .video-modal__content {
    padding: 72px 20px 32px;
  }

  .video-modal__close {
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 36px;
  }

  .video-modal__frame {
    width: 100%;
    border-radius: 10px;
  }
}