/* ==========================================================
   REVEAL ANIMATIONS + MEDIA QUERIES (tablet / mobile overrides)
   ========================================================== */

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.22, .75, .22, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* MEDIA QUERIES */
@media (max-width: 900px) {
  .enter-gate::before {
    background-image:
      linear-gradient(180deg, rgba(255, 253, 248, 0.45), rgba(247, 236, 215, 0.7)),
      url("../assets/images/mobile-bg.webp") !important;
    background-position: center top !important;
    background-size: cover !important;
  }

  .nav-links a:not(.nav-rsvp) {
    display: none;
  }

  .events-heading {
    display: block;
    margin-bottom: 34px;
  }

  .slide-hint {
    margin-top: 24px;
  }
}

@media (max-width: 650px) {
  .gate-content {
    padding: 32px 18px;
    border-radius: 28px;
  }

  .gate-seal {
    width: 95px;
    height: 95px;
  }

  .site-nav {
    top: 9px;
    min-height: 54px;
  }

  .nav-sub {
    display: none;
  }

  .nav-rsvp {
    padding: 10px 16px;
  }

  .hero {
    min-height: auto;
    padding-left: 22px;
    padding-right: 22px;
  }

  .countdown {
    gap: 6px;
  }

  .count-unit {
    padding: 14px 5px 12px;
    border-radius: 14px;
  }

  .events {
    padding: 76px 0 90px;
  }

  .event-card {
    top: 84px;
    border-radius: 26px;
  }

  .event-card+.event-card {
    margin-top: 40svh;
  }

  .event-media {
    border-radius: 19px 19px 0 0;
  }

  .event-copy {
    padding: 4px 18px 20px;
  }

  .event-stack {
    width: calc(100% - 24px);
  }

  .firework-button {
    right: 13px;
    bottom: max(13px, env(safe-area-inset-bottom));
    min-height: 46px;
    padding: 11px 15px;
  }

  .firework-button span {
    font-size: 9px;
  }

  .music-button {
    left: 13px;
    bottom: max(13px, env(safe-area-inset-bottom));
    min-height: 46px;
    padding: 11px 14px;
  }

  .music-button span {
    font-size: 9px;
  }

  .footer-line {
    display: block;
    line-height: 2;
    text-align: center;
  }

  .footer-line span {
    display: block;
  }
}

@media (max-width: 380px) {
  .hashtag-enter strong {
    padding: 12px 20px;
    letter-spacing: .03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

#gateTitle {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 0px;
  flex-direction: column;
}
