/* ==========================================================================
   Sponsor page (frame 5)
   title ink y=129..196 (h=68) · lede ink y=227..245 (h=19)
   card 420x420 at y=308 · QR inside
   ========================================================================== */

.sponsor {
  min-height: 100dvh;
  padding-top: calc(var(--nav-h) + 2px);
  display: flex;
  flex-direction: column;
}

.sponsor__head {
  padding-top: 40px;
  text-align: center;
}

.sponsor__title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.006em;
}

/* ink 19px tall, sits 31px under the title ink */
.sponsor__lede {
  margin-top: 22px;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-synthesis: none;
  font-size: 21px;
  line-height: 1.2;
  -webkit-font-smoothing: none;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.sponsor__card {
  width: 420px;
  margin: 54px auto 0;
  padding: 50px 53px;
  border-radius: 32px;
  background: var(--card-sponsor);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 74px rgba(0, 0, 0, 0.66);
}

.sponsor__qr {
  position: relative;
  width: 100%;
  aspect-ratio: 826 / 903;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.sponsor__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* a single quiet sweep so the code reads as live, not a screenshot */
.sponsor__qr::after {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 38%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(254, 19, 176, 0.12) 60%,
    transparent
  );
  animation: qr-sweep 4.4s var(--ease) 0.8s infinite;
  pointer-events: none;
}

@keyframes qr-sweep {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(370%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor__qr::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .sponsor__head {
    padding-top: clamp(26px, 7vw, 40px);
  }
  .sponsor__title {
    font-size: clamp(38px, 11vw, 72px);
  }
  .sponsor__lede {
    margin-top: 16px;
    font-size: 15px;
  }
  .sponsor__card {
    width: min(100%, 420px);
    margin-top: clamp(28px, 7vw, 54px);
    padding: clamp(26px, 7vw, 50px) clamp(24px, 7vw, 53px);
    border-radius: 26px;
  }
  .sponsor__qr {
    border-radius: 16px;
  }
}
