/* Midnights is independent of the 1989 cover. */
#invitation-content { background: #101322; }
.midnights {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff9f0;
  background: #101322;
}
.midnights__backdrop, .midnights__portrait, .midnights__gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.midnights__backdrop { display: none; z-index: -3; }
.midnights__portrait {
  z-index: -2;
  background: #181625 url("assets/midnights-poster.jpg") center center / cover no-repeat;
}
.midnights video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1400ms ease;
}
.midnights video.is-playing { opacity: 1; }
.midnights__gradient {
  z-index: -1;
  background: linear-gradient(180deg, rgb(10 15 36 / 78%) 0%, rgb(29 25 48 / 63%) 25%, rgb(29 25 48 / 19%) 43%, rgb(21 21 42 / 2%) 57%, rgb(20 17 34 / 4%) 75%, rgb(9 13 29 / 84%) 100%);
}
.midnights__copy {
  width: min(100%, 540px);
  margin: 0 auto;
  padding: max(36px, calc(env(safe-area-inset-top) + 20px)) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  text-align: center;
  text-shadow: 0 2px 18px rgb(8 9 25 / 40%);
}
.midnights__eyebrow {
  margin: 0;
  font-size: clamp(9px, 2.5vw, 11px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .3em;
  padding-left: .3em;
}
.midnights__name {
  margin: 12px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 19vw, 100px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.midnights__era {
  margin: 0;
  font-size: clamp(9px, 2.5vw, 11px);
  line-height: 1.6;
  letter-spacing: .17em;
}
.midnights__date {
  display: inline-block;
  margin: 22px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgb(218 213 236 / 40%);
  color: #e3ddec;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .2em;
}
.midnights__discover {
  position: absolute;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 32px);
  min-height: 44px;
  margin: 0 auto;
  padding: 6px 12px;
  text-align: center;
  color: #f0eaf6;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .07em;
  text-decoration: none;
  text-shadow: 0 2px 12px #101322;
}
.midnights__discover:focus-visible { outline: 1px solid #e3ddec; outline-offset: 5px; border-radius: 3px; }
.midnights__arrow { width: 20px; height: 30px; }
.midnight-enter { opacity: 0; }
.midnights.is-active { animation: midnight-scene 1400ms ease both; }
.midnights.is-active .midnight-enter { animation: midnight-arrive 1200ms cubic-bezier(.2,.6,.3,1) both; }
.midnights.is-active .midnight-enter--intro { animation-delay: 400ms; }
.midnights.is-active .midnight-enter--name { animation-delay: 750ms; }
.midnights.is-active .midnight-enter--date { animation-delay: 1100ms; }
.midnights.is-active .midnight-enter--discover { animation-delay: 1600ms; }
.midnights.is-visible .midnights__arrow { animation: midnight-drift 3200ms ease-in-out 2800ms infinite; }
@keyframes midnight-scene { from { opacity: 0; } to { opacity: 1; } }
@keyframes midnight-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes midnight-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
/* Empty landing area reserved for the next section; no content designed yet. */
#event-details { min-height: 100vh; min-height: 100svh; outline: none; }

@media (min-aspect-ratio: 1/1) {
  .midnights__backdrop {
    display: block;
    inset: -28px;
    background: url("assets/midnights-poster.jpg") center / cover;
    filter: blur(24px) brightness(.38) saturate(.7);
  }
  .midnights__portrait {
    width: calc(100svh * 576 / 1016);
    max-width: 100%;
    margin-inline: auto;
  }
  .midnights__copy { width: min(100%, calc(100svh * 576 / 1016)); padding-inline: 12px; }
  .midnights__name { font-size: clamp(40px, 10svh, 96px); }
}
@media (max-height: 650px) {
  .midnights__copy { padding-top: max(18px, calc(env(safe-area-inset-top) + 8px)); }
  .midnights__eyebrow { font-size: 8px; letter-spacing: .18em; }
  .midnights__name { font-size: clamp(34px, 10svh, 65px); margin: 7px 0; }
  .midnights__era { font-size: 8px; letter-spacing: .09em; }
  .midnights__date { margin-top: 10px; padding-top: 7px; font-size: 8px; }
  .midnights__discover { bottom: max(8px, env(safe-area-inset-bottom)); gap: 3px; font-size: 9px; }
  .midnights__arrow { height: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .midnight-enter { opacity: 1; }
  .midnights video { opacity: 0 !important; }
}

/* Midnights logo replaces the word inside the eyebrow. */
.midnights__eyebrow .midnights__logo { display: block; height: clamp(26px, 7.5vw, 38px); margin: 8px auto 0; filter: brightness(1.35) drop-shadow(0 1px 8px rgb(0 0 0 / 35%)); }
