/* Invitation landing page.
   Layout follows the width of the invitation itself (container queries), not the browser
   window, so the same page works full-width on a desktop, on a phone, in the editor's
   preview and in the small thumbnails on the home page. */
.invite {
  --accent: #8fa55a;
  --paper: #ffffff;
  --paper-alt: #f4f6ec;
  --ink: #2b3626;
  --soft: #6d7a62;
  --deep: #2f3d28;
  --on-deep: #f7f9f0;
  --line: color-mix(in srgb, var(--ink) 22%, transparent);
  --script-font: "Allison", "Great Vibes", "Snell Roundhand", cursive;
  --display-font: "DM Serif Display", "Playfair Display", Georgia, serif;
  --text-font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --hero-h: min(46rem, 175cqw);
  container: invite / inline-size;
  position: relative;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text-font);
  font-size: clamp(1rem, 0.6rem + 1.4cqw, 1.2rem);
  line-height: 1.65;
  text-align: center;
  /* clip, not hidden: hidden would stop the background layer from staying in view. */
  overflow: clip;
}

.invite p,
.invite h1,
.invite h2,
.invite ol {
  margin: 0;
  padding: 0;
}

.invite img {
  display: block;
  max-width: 100%;
}

.inv-script {
  font-family: var(--script-font);
  font-weight: 400;
  line-height: 0.9;
  color: var(--accent);
}

.inv-display {
  font-family: var(--display-font);
  font-weight: 400;
  line-height: 1.1;
}

.inv-caps {
  font-size: 0.8em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.inv-names {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.35em;
  overflow-wrap: anywhere;
}

.inv-ornament {
  width: min(15rem, 60%);
  aspect-ratio: 4 / 1;
  margin-inline: auto;
  background: var(--accent);
  -webkit-mask: url("/img/branch.svg") center / contain no-repeat;
  mask: url("/img/branch.svg") center / contain no-repeat;
}

.inv-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inv-placeholder {
  display: grid;
  place-items: center;
  min-height: 8rem;
  background:
    linear-gradient(135deg, transparent 49.6%, color-mix(in srgb, var(--accent) 35%, transparent) 49.6% 50.4%, transparent 50.4%),
    color-mix(in srgb, var(--accent) 16%, var(--paper));
  color: var(--soft);
  font-size: 0.75em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* First screen */
.inv-hero {
  display: grid;
  grid-template-rows: minmax(0, 1.25fr) auto;
  min-height: var(--hero-h);
}

.inv-hero-media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--paper-alt);
}

.inv-hero.no-photo .inv-hero-media::after {
  content: "";
  position: absolute;
  inset: 12%;
  background: var(--accent);
  opacity: 0.5;
  -webkit-mask: url("/img/sprig.svg") center / contain no-repeat;
  mask: url("/img/sprig.svg") center / contain no-repeat;
}

.inv-hero-photo {
  position: absolute;
  inset: 0;
}

.inv-hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.25rem 2.5rem;
}

.inv-hero-script {
  margin-top: -0.55em !important;
  font-size: clamp(3.2rem, 21cqw, 8rem);
  transform: rotate(-4deg);
  text-shadow: 0 0 1.2rem var(--paper);
}

.inv-hero-word {
  font-family: var(--display-font);
  font-size: clamp(2.6rem, 17cqw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deep);
}

.inv-hero-names {
  font: 500 clamp(0.95rem, 4.4cqw, 1.5rem) var(--text-font);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.inv-hero-date {
  color: var(--soft);
}

.inv-hero-tag {
  font-size: clamp(2rem, 11cqw, 3.6rem);
}

.inv-hero-kicker,
.inv-hero .inv-ornament {
  display: none;
}

.inv-open {
  margin-top: 0.75rem;
  padding: 0.6em 1.6em;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 0.75em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Sections */
.inv-section {
  padding: clamp(3rem, 12cqw, 6.5rem) clamp(1.25rem, 6cqw, 4rem);
}

.inv-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 64rem;
  margin-inline: auto;
}

.inv-text {
  max-width: 36em;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.inv-lead {
  font-size: 1.1em;
}

.inv-kicker {
  color: var(--accent);
}

.inv-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
}

.inv-heading .inv-script {
  font-size: clamp(4rem, 24cqw, 9rem);
  transform: rotate(-4deg);
}

.inv-heading-plain {
  margin-top: -0.35em;
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 7cqw, 2.6rem);
  color: var(--deep);
}

.inv-button {
  display: inline-block;
  padding: 0.85em 2em;
  border: 0;
  border-radius: 0.2rem;
  background: var(--deep);
  color: var(--on-deep);
  font: inherit;
  font-size: 0.85em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.inv-button:disabled {
  opacity: 0.6;
}

/* Announcement */
.inv-couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
}

.inv-person-name {
  font-size: clamp(3rem, 17cqw, 6.5rem);
  color: var(--accent);
  overflow-wrap: anywhere;
}

.inv-person-family {
  margin-top: 0.4rem !important;
  color: var(--soft);
}

.inv-couple-amp {
  font: 400 clamp(3rem, 14cqw, 5rem) / 0.8 var(--script-font);
  color: var(--deep);
}

/* Date and countdown */
.inv-when {
  background: var(--paper-alt);
}

.inv-bigdate {
  font-size: clamp(1.7rem, 8.4cqw, 6rem);
  color: var(--deep);
  text-wrap: balance;
}

.inv-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 3cqw, 2rem);
  width: min(34rem, 100%);
  margin-top: 0.75rem;
}

.inv-count {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.25rem;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.inv-count-number {
  font: 400 clamp(1.8rem, 9cqw, 3.4rem) / 1.1 var(--display-font);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.inv-count-label {
  font-size: 0.7em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

/* Place */
.inv-venue {
  font-size: clamp(2.2rem, 11cqw, 5rem);
  text-transform: uppercase;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.inv-hall {
  padding: 0.5em 2.5em;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* Schedule */
.inv-schedule {
  background: var(--paper-alt);
}

.inv-timeline {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem !important;
  list-style: none;
}

.inv-timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding-top: 1.75rem;
}

.inv-timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 1.25rem;
  background: var(--deep);
}

.inv-timeline-time {
  font-size: clamp(1.6rem, 7cqw, 2.4rem);
  color: var(--deep);
}

.inv-timeline-title {
  overflow-wrap: anywhere;
}

/* A few words from each partner */
.inv-notes .inv-wrap {
  gap: clamp(2.5rem, 9cqw, 5rem);
}

.inv-note {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
}

.inv-note-photo {
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 12rem 12rem 0.25rem 0.25rem;
}

.inv-note-words {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.inv-note-name {
  font-size: clamp(1.8rem, 8cqw, 3rem);
  text-transform: uppercase;
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* Milestones */
.inv-story {
  background: var(--deep);
  color: var(--on-deep);
}

.inv-story .inv-heading-plain {
  color: var(--on-deep);
}

.inv-milestones {
  display: grid;
  gap: 1.75rem;
  width: 100%;
  max-width: 40rem;
  margin-top: 1rem !important;
  list-style: none;
  text-align: left;
}

.inv-milestones li {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--on-deep) 25%, transparent);
}

.inv-milestones li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.inv-milestone-when {
  font-size: 1.6em;
  color: var(--accent);
}

/* Album: a collage, not a uniform grid */
.inv-album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(0.4rem, 1.5cqw, 0.9rem);
  width: 100%;
}

.inv-album-photo {
  aspect-ratio: 4 / 5;
  height: auto;
}

.inv-album-photo:nth-child(5n + 1) {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

/* Dress code */
.inv-dress {
  background: var(--paper-alt);
}

.inv-dress-title {
  font-size: clamp(1.8rem, 8cqw, 3rem);
  text-transform: uppercase;
  color: var(--deep);
}

.inv-palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.inv-swatch {
  width: clamp(2.5rem, 11cqw, 3.75rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
}

/* Thanks */
.inv-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem !important;
}

.inv-sign-names {
  font-size: clamp(3rem, 15cqw, 5rem);
}

/* Reply form */
.inv-rsvp {
  background: var(--paper-alt);
}

.inv-rsvp-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.inv-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(30rem, 100%);
  padding: clamp(1.25rem, 5cqw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: left;
}

.inv-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9em;
}

.inv-field input,
.inv-field select,
.inv-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: max(16px, 1em);
}

.inv-form .inv-button {
  align-self: center;
}

.inv-form-status {
  min-height: 1.5em;
  text-align: center;
  font-size: 0.9em;
}

.inv-trap {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.inv-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(3rem, 12cqw, 5rem) 1.25rem;
  background: var(--deep);
  color: var(--on-deep);
}

.inv-closing-names {
  font-size: clamp(3.4rem, 18cqw, 6rem);
}

/* Wide layout: two columns where it helps, once the invitation itself is wide enough. */
@container invite (min-width: 46rem) {
  .inv-hero {
    grid-template-rows: none;
    grid-template-columns: 1.1fr 1fr;
    min-height: max(var(--hero-h), 38rem);
  }

  .inv-hero-text {
    justify-content: center;
    padding: 3rem 2.5rem 3rem 0;
  }

  .inv-hero-script {
    margin-top: 0 !important;
    margin-left: -32% !important;
    font-size: clamp(5rem, 13cqw, 10rem);
  }

  .inv-hero-word {
    font-size: clamp(4rem, 9cqw, 8rem);
  }

  .inv-couple {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.5rem, 5cqw, 4rem);
  }

  .inv-person {
    flex: 1 1 0;
  }

  .inv-person:first-child {
    text-align: right;
  }

  .inv-person:last-child {
    text-align: left;
  }

  .inv-person-name {
    font-size: clamp(3.5rem, 9cqw, 7rem);
  }

  .inv-couple-amp {
    align-self: center;
  }

  .inv-timeline {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    border-top: 1px solid var(--deep);
  }

  .inv-note {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: clamp(2rem, 6cqw, 5rem);
  }

  .inv-note:nth-child(even) .inv-note-photo {
    order: 2;
  }

  .inv-album-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .inv-album-photo:nth-child(5n + 1) {
    grid-row: span 2;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .inv-rsvp .inv-wrap {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 6cqw, 5rem);
  }

  .inv-rsvp-intro {
    flex: 1 1 0;
  }
}

/* The home page thumbnails show the first screen only. */
.invite.m-cover {
  --hero-h: 150cqw;
}

/* ---------- Midnight Gala: navy and gold, art-deco lines, centred and formal. ---------- */
.t-midnight {
  --paper: #0e1730;
  --paper-alt: #131f40;
  --ink: #eef0f6;
  --soft: #aab3cc;
  --deep: #080e1f;
  --on-deep: #eef0f6;
  --script-font: "Great Vibes", "Snell Roundhand", cursive;
  --display-font: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --text-font: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 0.7rem + 1.5cqw, 1.35rem);
}

.t-midnight .inv-ornament {
  width: min(11rem, 45%);
  aspect-ratio: 2 / 1;
  -webkit-mask-image: url("/img/fan.svg");
  mask-image: url("/img/fan.svg");
}

/* First screen: the photo fills it, with the names inside a gold frame. */
.t-midnight .inv-hero {
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  min-height: var(--hero-h);
  background:
    radial-gradient(circle at 12% 9%, var(--accent) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 6%, var(--accent) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 68% 17%, var(--accent) 0 1px, transparent 2px),
    radial-gradient(circle at 26% 22%, var(--accent) 0 1px, transparent 2px),
    radial-gradient(circle at 91% 31%, var(--accent) 0 2px, transparent 3px),
    radial-gradient(circle at 7% 44%, var(--accent) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 71%, var(--accent) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 15% 83%, var(--accent) 0 2px, transparent 3px),
    radial-gradient(circle at 73% 92%, var(--accent) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 42% 95%, var(--accent) 0 1px, transparent 2px),
    linear-gradient(180deg, #080e1f, #17274a);
}

.t-midnight .inv-hero-media,
.t-midnight .inv-hero-text {
  grid-area: 1 / 1;
}

.t-midnight .inv-hero-media {
  align-self: stretch;
  justify-self: stretch;
  background: none;
}

.t-midnight .inv-hero.no-photo .inv-hero-media::after {
  content: none;
}

.t-midnight .inv-hero .inv-placeholder {
  display: none;
}

.t-midnight .inv-hero-media:has(img)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(8 14 31 / 0.55), rgb(8 14 31 / 0.8));
}

.t-midnight .inv-hero-text {
  justify-content: center;
  gap: 1rem;
  width: min(34rem, 100% - 2.5rem);
  margin-block: 2rem;
  padding: clamp(2.5rem, 10cqw, 4rem) clamp(1rem, 5cqw, 2.5rem);
  border: 1px solid var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: -0.5rem;
  z-index: 2;
  color: var(--ink);
}

.t-midnight .inv-hero-script,
.t-midnight .inv-hero-word,
.t-midnight .inv-hero-tag {
  display: none;
}

.t-midnight .inv-hero-kicker,
.t-midnight .inv-hero .inv-ornament {
  display: block;
}

.t-midnight .inv-hero-kicker {
  color: var(--accent);
}

.t-midnight .inv-hero-names {
  font: 400 clamp(3.4rem, 17cqw, 6rem) / 1.05 var(--script-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

.t-midnight .inv-hero-names .inv-names {
  flex-direction: column;
  align-items: center;
}

.t-midnight .inv-hero-names .inv-amp {
  font-size: 0.5em;
  color: var(--soft);
}

.t-midnight .inv-open {
  color: var(--accent);
}

.t-midnight .inv-heading .inv-script {
  transform: none;
  font-size: clamp(3.2rem, 16cqw, 6rem);
}

.t-midnight .inv-heading-plain {
  margin-top: 0.1em;
  font-size: clamp(1rem, 4.5cqw, 1.5rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}

.t-midnight .inv-person-name {
  font: 400 clamp(3.4rem, 17cqw, 6.5rem) / 1.05 var(--script-font);
}

.t-midnight .inv-couple-amp {
  color: var(--soft);
}

.t-midnight .inv-bigdate,
.t-midnight .inv-timeline-time,
.t-midnight .inv-dress-title {
  color: var(--ink);
  letter-spacing: 0.06em;
}

.t-midnight .inv-bigdate {
  font-size: clamp(1.4rem, 7.2cqw, 4.5rem);
}

.t-midnight .inv-venue {
  font-size: clamp(1.8rem, 8.5cqw, 4rem);
  letter-spacing: 0.06em;
}

.t-midnight .inv-count {
  border: 1px solid var(--accent);
}

.t-midnight .inv-timeline li::before {
  background: var(--accent);
}

.t-midnight .inv-button {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
}

.t-midnight .inv-form .inv-button {
  background: var(--accent);
  color: var(--deep);
}

.t-midnight .inv-note-photo {
  border-radius: 0;
  outline: 1px solid var(--accent);
  outline-offset: 0.5rem;
}

.t-midnight .inv-note-name {
  font-size: clamp(1.4rem, 6cqw, 2.2rem);
  letter-spacing: 0.1em;
}

.t-midnight .inv-story,
.t-midnight .inv-closing {
  background: var(--deep);
}

.t-midnight .inv-swatch {
  border-color: var(--accent);
}

@container invite (min-width: 46rem) {
  .t-midnight .inv-hero {
    grid-template: 1fr / 1fr;
  }

  .t-midnight .inv-hero-text {
    padding: 4rem 3rem;
  }

  .t-midnight .inv-timeline {
    border-top-color: var(--accent);
  }
}

/* ---------- Motion ---------- */

/* Background layer: stays in view while the invitation scrolls underneath it. */
.inv-sky {
  position: sticky;
  top: 0;
  z-index: 6;
  height: var(--sky-h, 100svh);
  margin-bottom: calc(-1 * var(--sky-h, 100svh));
  overflow: hidden;
  pointer-events: none;
}

.invite.m-cover .inv-sky {
  position: absolute;
  inset: 0;
  height: auto;
  margin: 0;
}

.inv-sky span {
  position: absolute;
  width: var(--size);
  height: var(--size);
}

.inv-sky-stars span {
  background: var(--accent);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: inv-twinkle 3s ease-in-out infinite;
}

.inv-sky-petals span {
  top: -5%;
  border-radius: 80% 0 55% 50% / 55% 0 80% 50%;
  background: color-mix(in srgb, var(--accent) 55%, #ffffff);
  opacity: 0.7;
  animation: inv-fall 12s linear infinite;
}

@keyframes inv-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
  }

  50% {
    opacity: 0.9;
    transform: scale(1) rotate(45deg);
  }
}

@keyframes inv-fall {
  from {
    transform: translate(0, 0) rotate(0deg);
  }

  to {
    transform: translate(var(--sway), calc(var(--sky-h, 100svh) * 1.1)) rotate(320deg);
  }
}

/* Opening animation: a layer over what is on screen while the page moves on beneath it. */
.inv-transition {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  overflow: hidden;
  perspective: 1800px;
  pointer-events: none;
}

.inv-leaf {
  position: absolute;
  inset: 0;
  background: var(--paper);
  box-shadow: 0 0 3rem rgb(0 0 0 / 0.35);
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.3, 1), filter 1.4s ease;
}

.inv-leaf > .inv-hero {
  height: 100%;
  min-height: 0 !important;
}

.inv-leaf-left {
  clip-path: inset(0 50% 0 0);
  transform-origin: left center;
}

.inv-leaf-right {
  clip-path: inset(0 0 0 50%);
  transform-origin: right center;
}

.inv-transition-book.is-playing .inv-leaf-left {
  transform: rotateY(-100deg);
  filter: brightness(0.7);
}

.inv-transition-book.is-playing .inv-leaf-right {
  transform: rotateY(100deg);
  filter: brightness(0.7);
}

.inv-transition-curtain.is-playing .inv-leaf-left {
  transform: translateX(-50.5%);
}

.inv-transition-curtain.is-playing .inv-leaf-right {
  transform: translateX(50.5%);
}

.inv-transition-glow,
.inv-transition-rise {
  transition: opacity 0.9s ease;
}

.inv-transition.is-leaving {
  opacity: 0;
}

.inv-transition-glow span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0 35%, color-mix(in srgb, var(--accent) 60%, #ffffff) 55%, transparent 72%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.8s cubic-bezier(0.5, 0, 0.8, 0.4);
}

.inv-transition-glow.is-playing span {
  transform: translate(-50%, -50%) scale(7);
}

.inv-transition-rise span {
  position: absolute;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.inv-transition-rise.is-playing span {
  opacity: 1;
}

.invite.is-arriving #invitation .inv-wrap {
  animation: inv-arrive 0.9s ease both;
}

@keyframes inv-arrive {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
  }
}

/* Sections ease in as they are scrolled to (guest view only). */
.inv-section.will-reveal .inv-wrap {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.inv-section.will-reveal.is-in .inv-wrap {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .inv-sky-petals {
    display: none;
  }

  .inv-sky-stars span {
    animation: none;
    opacity: 0.5;
  }
}
