/* ================= HERO POSTER ================= */
.hero-poster {
  /* hero.png is 1366 × 871 — keep this ratio so the full image shows */
  --hero-ratio: 1366 / 871;
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-ratio);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--section-bg);
}

.hero-poster__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-poster__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-poster__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 247, 242, 0.08) 0%,
    rgba(250, 247, 242, 0.02) 35%,
    rgba(92, 80, 68, 0.06) 100%
  );
  pointer-events: none;
}

.hero-poster__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  margin-top: 0;
  color: var(--hero-text);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1.2s ease 0.3s,
    transform 1.2s ease 0.3s;
}

.hero-poster.in-view .hero-poster__content {
  opacity: 1;
  transform: translateY(0);
}

.hero-poster__tagline {
  font-family: var(--accent-font);
  font-size: clamp(11px, 2.2vw, 14px);
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: inherit;
  margin: 0 0 14px;
}

.hero-poster__names {
  font-family: var(--heading-font);
  font-size: clamp(52px, 11vw, 96px);
  font-weight: 400;
  line-height: 1.1;
  color: inherit;
  margin: 0;
  text-shadow: 0 1px 24px rgba(193, 156, 108, 0.25);
}

.hero-poster__amp {
  font-family: var(--heading-font);
  font-style: normal;
  display: inline-block;
  margin: 0 0.08em;
  color: inherit;
}

.hero-poster__date {
  font-family: var(--accent-font);
  font-size: clamp(12px, 2.4vw, 15px);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: inherit;
  margin: 16px 0 0;
}

/* Scroll-down cue */
.hero-poster__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hero-scroll);
  opacity: 0;
  transition:
    opacity 1s ease 1s,
    color 0.3s ease;
}

.hero-poster.in-view .hero-poster__scroll {
  opacity: 1;
}

.hero-poster__scroll:hover {
  color: var(--hero-text);
}

.hero-poster__scroll-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scroll-bob 2.2s ease-in-out infinite;
}

.hero-poster__scroll-ring svg {
  width: 14px;
  height: 14px;
}

.hero-poster__scroll-label {
  font-family: "Josefin Sans", sans-serif;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

@keyframes scroll-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (max-width: 768px) {
  .hero-poster__content {
    padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 56px;
    width: 100%;
  }

  .hero-poster__names {
    font-size: clamp(44px, 12vw, 72px);
  }

  .hero-poster__scroll {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .hero-poster__content {
    padding: calc(12px + env(safe-area-inset-top, 0px)) clamp(16px, 5vw, 24px)
      48px;
  }

  .hero-poster__tagline {
    letter-spacing: 0.3em;
  }

  .hero-poster__date {
    letter-spacing: 0.25em;
  }

  .hero-poster__names {
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: clamp(40px, 11vw, 60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-poster__scroll-ring {
    animation: none;
  }

  .hero-poster__content {
    transition-delay: 0s;
  }

  .hero-poster__scroll {
    transition-delay: 0s;
  }
}

/* ================= INVITE BANNER ================= */
.invite-banner {
  --invite-ratio: 1366 / 627;
  position: relative;
  width: 100%;
  aspect-ratio: var(--invite-ratio);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--section-bg);
}

.invite-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.invite-banner__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.invite-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 clamp(24px, 6vw, 56px);
  max-width: 780px;
}

.invite-banner__text {
  margin: 0 auto;
  width: 100%;
  max-width: 34em;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(24px, 5.2vw, 36px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: var(--brand-text);
  text-align: center;
}

.invite-banner__line {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(28px) scale(0.98);
  text-shadow: 0 2px 24px rgba(250, 247, 242, 0.55);
}

.invite-banner.in-view .invite-banner__line {
  animation: inviteLineReveal 1.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.invite-banner.in-view .invite-banner__line:nth-child(2) {
  animation-delay: 0.42s;
}

@keyframes inviteLineReveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(28px) scale(0.98);
  }
  55% {
    opacity: 0.85;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .invite-banner__content {
    padding: 0 clamp(12px, 3.5vw, 28px);
    max-width: min(96vw, 560px);
    margin-top: clamp(-8px, -1.5vw, 0px);
  }

  .invite-banner__text {
    font-size: clamp(12px, 3.6vw, 18px);
    line-height: 1.58;
    max-width: 100%;
  }

  .invite-banner__line:first-child {
    white-space: nowrap;
    letter-spacing: 0.02em;
  }

  .invite-banner__line + .invite-banner__line {
    margin-top: 0.2em;
  }
}

@media (max-width: 480px) {
  .invite-banner__text {
    font-size: clamp(11px, 3.4vw, 16px);
    line-height: 1.52;
  }
}

@media (max-width: 360px) {
  .invite-banner__text {
    font-size: clamp(10px, 3.1vw, 14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .invite-banner__line {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none !important;
  }
}

/* ================= VENUE BANNER ================= */
.venue-banner {
  --venue-ratio: 2561 / 1633;

  position: relative;
  width: 100%;
  aspect-ratio: var(--venue-ratio);
  height: auto;
  overflow: hidden;
  background: var(--section-bg);
  padding: 0;
}

.venue-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.venue-banner__frame {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.venue-banner__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.venue-banner__intro {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(22px, 4.8vw, 42px) clamp(72px, 14vw, 120px) 0;
}

.venue-banner__heading {
  margin: 0 0 clamp(4px, 0.9vw, 8px);
  font-family: var(--heading-font);
  font-size: clamp(2.65rem, 9.5vw, 4.1rem);
  font-weight: 400;
  line-height: 1;
  color: var(--brand-text);
  opacity: 0;
  transform: translateY(14px);
}

.venue-banner__location,
.venue-banner__hall {
  margin: 0;
  font-family: "Cinzel", "Riccione", serif;
  font-size: clamp(8px, 1.55vw, 10.5px);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brand-text);
  opacity: 0;
}

.venue-banner__location {
  margin-top: clamp(-6px, -0.6vw, -2px);
  transform: translateY(14px);
}

.venue-banner__hall {
  position: absolute;
  left: 50%;
  bottom: clamp(32px, 7vw, 52px);
  transform: translate(-50%, 14px);
  width: calc(100% - clamp(96px, 18vw, 160px));
  text-align: center;
  z-index: 2;
  font-size: var(--venue-hall-size);
}

.venue-banner.in-view .venue-banner__heading {
  animation: venueTextReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.venue-banner.in-view .venue-banner__location {
  animation: venueTextReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.venue-banner.in-view .venue-banner__hall {
  animation: venueHallReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

@keyframes venueTextReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes venueHallReveal {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (min-width: 769px) {
  .venue-banner__heading {
    margin-bottom: clamp(10px, 1.4vw, 16px);
  }

  .venue-banner__location {
    margin-top: clamp(4px, 0.55vw, 8px);
  }
}

@media (max-width: 768px) {
  .venue-banner__intro {
    padding: clamp(4px, 1.8vw, 14px) clamp(56px, 13vw, 92px) 0;
  }

  .venue-banner__heading {
    font-size: var(--banner-heading-size-mobile);
  }

  .venue-banner__hall {
    bottom: clamp(26px, 6vw, 42px);
    font-size: var(--venue-hall-size-mobile);
  }
}

@media (max-width: 480px) {
  .venue-banner__intro {
    padding: clamp(0px, 1.2vw, 8px) clamp(48px, 12vw, 68px) 0;
  }

  .venue-banner__heading {
    font-size: var(--banner-heading-size-mobile-sm);
  }

  .venue-banner__location {
    letter-spacing: 0.26em;
    font-size: clamp(7.5px, 2vw, 9.5px);
  }

  .venue-banner__hall {
    bottom: clamp(20px, 5vw, 34px);
    width: calc(100% - clamp(72px, 16vw, 120px));
    letter-spacing: 0.26em;
    font-size: var(--venue-hall-size-mobile-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .venue-banner__heading,
  .venue-banner__location,
  .venue-banner__hall {
    opacity: 1 !important;
    animation: none !important;
  }

  .venue-banner__heading,
  .venue-banner__location {
    transform: none !important;
  }

  .venue-banner__hall {
    transform: translate(-50%, 0) !important;
  }
}
