/* NIRA glimpse: the waitlist's live invitation card (enhances the overlay styled in style.css) */
.wlx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 23rem); gap: 3rem clamp(2.5rem, 5vw, 6rem); align-items: center; }
.wlx > .form { min-width: 0; }
html:not(.js) .ivt { display: none; }

.ivt { margin: 0; width: 100%; justify-self: end; }
.ivt__k { margin: 0 0 1rem; font: 400 .75rem/1.4 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }

.ivt__card {
  position: relative; container-type: inline-size; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--ivory); color: var(--ink);
  box-shadow: 0 1px 0 rgba(46, 58, 79, .06), 0 26px 60px -30px rgba(46, 58, 79, .5);
}
.ivt__card::before { content: ''; position: absolute; inset: 4cqw; border: 1px solid rgba(46, 58, 79, .24); pointer-events: none; }
.ivt__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 13cqw 11cqw 10cqw; }
.ivt__in p { margin: 0; }
.ivt__logo { display: block; width: 30cqw; height: auto; flex: none; }
.ivt__ed { margin-top: 4.4cqw !important; font: 400 3.2cqw/1 var(--caps); letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; }
.ivt__mid { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; justify-content: center; }
.ivt__for { font: italic 400 5.4cqw/1.1 var(--serif); color: var(--berry); }
.ivt__name {
  margin-top: 2.2cqw !important; font: 400 10.5cqw/1.05 var(--serif); letter-spacing: -.01em;
  overflow-wrap: anywhere; text-wrap: balance;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding-bottom: .04em;
}
.ivt__city { margin-top: 4.4cqw !important; font: 400 3.2cqw/1.3 var(--caps); letter-spacing: .28em; padding-left: .28em; text-transform: uppercase; }
.ivt [data-empty] { color: var(--ink-2); }
.ivt__name[data-empty] { font-style: italic; }
.ivt__rule { display: block; width: 100%; height: 1px; flex: none; background: rgba(46, 58, 79, .4); transform-origin: left center; }
.ivt__foot { width: 100%; display: flex; justify-content: space-between; gap: 1em; margin-top: 3.4cqw !important; font: 400 2.8cqw/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.ivt__seal { color: var(--berry); visibility: hidden; opacity: 0; transition: opacity 1.2s ease .9s, visibility 0s linear .9s; }
.ivt__band { position: absolute; left: 0; right: 0; bottom: 0; height: 1.4cqw; display: flex; }
.ivt__band i { flex: 1; }
.ivt__band i:nth-child(1) { background: var(--blush); }
.ivt__band i:nth-child(2) { background: var(--powder-2); }
.ivt__band i:nth-child(3) { background: var(--butter); }

/* joined: the card settles, the seal appears, the keep / share actions arrive */
.wl.is-done .ivt__seal { visibility: visible; opacity: 1; }
.js .wl.is-done .ivt__card { animation: ivtSettle 1.8s var(--slow) both; }
.js .wl.is-done .ivt__rule { animation: ivtRule 1.4s var(--slow) .5s both; }
@keyframes ivtSettle {
  0% { transform: none; }
  38% { transform: translateY(-14px) rotate(-.7deg); box-shadow: 0 1px 0 rgba(46, 58, 79, .06), 0 40px 80px -30px rgba(46, 58, 79, .55); }
  100% { transform: none; }
}
@keyframes ivtRule { from { transform: scaleX(0); } }
@keyframes ivtRise { from { opacity: 0; transform: translateY(.9rem); } }

.ivt__acts { display: none; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; }
.wl.is-done .ivt__acts { display: flex; }
.js .wl.is-done .ivt__acts { animation: ivtRise 1.2s var(--slow) .9s both; }
.ivt__save, .ivt__share {
  min-height: 48px; padding: 0 1.5em; border-radius: 0; cursor: pointer;
  font: 400 .8125rem/1 var(--caps); letter-spacing: .22em; text-transform: uppercase;
  transition: background-color .4s ease, color .4s ease;
}
.ivt__save { color: var(--ivory); background: var(--ink); border: 1px solid var(--ink); }
.ivt__save:hover { background: #1F2838; }
.ivt__share { color: var(--ink); background: transparent; border: 1px solid var(--ink); }
.ivt__share:hover { background: rgba(255, 255, 255, .35); }
.ivt__save:focus-visible, .ivt__share:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ivt__save:disabled, .ivt__share:disabled { opacity: .7; cursor: progress; }
.ivt__msg { flex-basis: 100%; min-height: 1.5em; margin: 0; font: 400 .9375rem/1.5 var(--sans); color: var(--ink); overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .wlx { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
  .ivt { justify-self: start; max-width: 22rem; }
}
@media (max-width: 760px) {
  .ivt { max-width: 21rem; margin-bottom: 2rem; }
  .ivt__save { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js .wl.is-done .ivt__card, .js .wl.is-done .ivt__rule, .js .wl.is-done .ivt__acts { animation: none; }
  .ivt__seal { transition: none; }
}
