/* ==========================================================================
   Our Manifest — Alliance Jiu Jitsu Northwest Arkansas
   ========================================================================== */

.manifest {
  --manifest-bg: #000000;
  --manifest-text: #ffffff;
  --manifest-gold: #ffc033;
  --manifest-font: "Montserrat", sans-serif;
  --manifest-pad-x: clamp(1.25rem, 5vw, 4rem);

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  min-height: 85svh;
  padding: clamp(3.5rem, 8vw, 6rem) var(--manifest-pad-x);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--manifest-bg);
  color: var(--manifest-text);
  font-family: var(--manifest-font);
  text-align: center;
}

.manifest__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  background-color: var(--manifest-bg);
}

.manifest__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
}

.manifest__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.7)
  );
}

.manifest__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.manifest__eyebrow {
  margin: 0;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--manifest-text);
}

.manifest__heading {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 5.75rem);
  font-weight: 800;
  font-style: normal;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--manifest-gold);
}

.manifest__quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 40rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.manifest__quote p {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--manifest-text);
}

.manifest__quote footer {
  margin: 0;
}

.manifest__quote cite {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--manifest-text);
}

.manifest__watch {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.25rem;
  color: var(--manifest-text);
  text-decoration: none;
}

.manifest__watch-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.manifest__watch-icon::before,
.manifest__watch-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background-color: rgba(0, 0, 0, 0.2);
  animation: manifest-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.manifest__watch-icon::after {
  animation-delay: 1.2s;
}

.manifest__watch-icon svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.9));
}

.manifest__watch-label {
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

.manifest__watch-label span {
  color: var(--manifest-gold);
  font-weight: 700;
}

.manifest__watch:hover .manifest__watch-icon,
.manifest__watch:focus-visible .manifest__watch-icon {
  transform: scale(1.06);
}

.manifest__watch:focus-visible {
  outline: 2px solid var(--manifest-gold);
  outline-offset: 8px;
}

@keyframes manifest-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    opacity: 0.15;
  }

  100% {
    transform: scale(2.15);
    opacity: 0;
  }
}

/* Video dialog */
.manifest-dialog {
  width: min(56rem, calc(100vw - 2rem));
  max-width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  color: var(--manifest-text);
}

.manifest-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.manifest-dialog__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.manifest-dialog__close:focus-visible {
  outline: 2px solid var(--manifest-gold);
  outline-offset: 2px;
}

.manifest-dialog__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.manifest-dialog__player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .manifest {
    min-height: 75svh;
    gap: 1.25rem;
  }

  .manifest__watch-icon {
    width: 3.75rem;
    height: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manifest__watch-icon {
    transition: none;
  }

  .manifest__watch-icon::before,
  .manifest__watch-icon::after {
    animation: none;
  }
}
