html.cover-document,
.cover-page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-wine);
}

.cover-page {
  color: var(--color-ink);
}

.cover {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.cover__image,
.cover__poster,
.cover__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover__poster {
  display: none;
}

.cover__image--open {
  opacity: 0;
}

.cover__video {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cover__video.is-playing {
  opacity: 1;
}

.ticket {
  --ticket-offset-x: 0px;

  position: absolute;
  bottom: 20%;
  left: 35%;
  width: 260px;
  margin-left: var(--ticket-offset-x);
  transform: translateX(-50%);
}

.ticket__content {
  position: relative;
  width: 100%;
  aspect-ratio: 540 / 326;
  opacity: 0;
}

.ticket__content.is-visible,
.cover-cta.is-visible,
.cover__image--open.is-visible {
  opacity: 1;
}

.ticket__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ticket__details {
  position: absolute;
  top: 35%;
  right: 11%;
  bottom: 10%;
  left: 11%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-olive);
  text-align: center;
}

.ticket__guest {
  max-width: 100%;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.ticket__passes {
  min-width: 48%;
  margin-top: clamp(10px, 1.5vw, 18px);
  padding-top: clamp(8px, 1vw, 12px);
  border-top: 1px solid rgba(64, 73, 53, 0.35);
  color: var(--color-wine);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cover-cta {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 5%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  gap: 6px;
  color: var(--color-white);
  font-family: var(--font-heading);
  text-decoration: none;
  opacity: 0;
}

.cover-cta__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
}

.cover-cta__text {
  font-size: var(--font-size-button);
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.cover-page .preloader {
  z-index: 100;
}

.cover-page .page-transition {
  z-index: 90;
}
