@font-face {
  font-family: "neuehaasdisplayroman";
  src: url("/assets/fonts/neuehaasdisplayroman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#pw-unlocking-block {
  --unlock-progress: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 160vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: #030208;
  pointer-events: auto;
  text-align: center;
  overflow: clip;
}

#pw-unlocking-block .pw-unlock-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  perspective-origin: 50% 42%;
  overflow: hidden;
}

#pw-unlocking-block .pw-unlock-fan {
  position: relative;
  width: min(280px, 58vw);
  aspect-ratio: 9 / 14;
  transform-style: preserve-3d;
  will-change: transform;
  margin-bottom: 18vh;
}

#pw-unlocking-block .pw-unlock-card {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
  background: #12080c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  opacity: 0;
}

#pw-unlocking-block .pw-unlock-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
}

#pw-unlocking-block .pw-unlock-card.is-hero {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 90px rgba(255, 90, 20, 0.28),
    0 0 60px rgba(255, 110, 30, 0.18);
}

#pw-unlocking-block .pw-unlock-card.is-hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 55%, rgba(255, 120, 40, 0.35), transparent 58%);
  pointer-events: none;
  z-index: -1;
  animation: pw-unlock-glow 3.6s ease-in-out infinite;
}

#pw-unlocking-block .pw-unlock-stage .pw-unlock-copy {
  position: absolute;
  left: 50%;
  bottom: max(10vh, 72px);
  transform: translateX(-50%);
  width: min(720px, 92vw);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}

#pw-unlocking-block.is-active .pw-unlock-copy {
  opacity: 1;
  translate: 0 0;
}

#pw-unlocking-block .pw-unlock-title {
  color: #fff;
  font-family: "neuehaasdisplayroman", "DM Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0 auto 28px;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.65);
}

#pw-unlocking-block .pw-unlock-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-family: "neuehaasdisplayroman", "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 24px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.25s ease, background-color 0.2s ease;
  cursor: pointer;
  background: transparent;
  pointer-events: auto;
}

#pw-unlocking-block .pw-unlock-cta:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

@keyframes pw-unlock-glow {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes pw-unlock-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

#pw-unlocking-block.is-active .pw-unlock-fan {
  animation: pw-unlock-float 5.5s ease-in-out infinite;
}

@media (max-width: 480px) {
  #pw-unlocking-block {
    min-height: 140vh;
  }

  #pw-unlocking-block .pw-unlock-fan {
    width: min(210px, 62vw);
  }

  #pw-unlocking-block .pw-unlock-card {
    border-radius: 26px;
  }

  #pw-unlocking-block .pw-unlock-copy {
    bottom: max(8vh, 56px);
  }

  #pw-unlocking-block .pw-unlock-title {
    max-width: 14ch;
    margin-bottom: 22px;
  }

  #pw-unlocking-block .pw-unlock-cta {
    font-size: 16px;
    min-height: 46px;
    padding: 0 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pw-unlocking-block.is-active .pw-unlock-fan,
  #pw-unlocking-block .pw-unlock-card.is-hero::after {
    animation: none;
  }

  #pw-unlocking-block .pw-unlock-copy {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}
