@keyframes twinkle {
  0%,72%,100% {
    opacity: 0;
    transform: translate(-50%,-50%) rotate(45deg) scale(.5);
  }

  76% {
    opacity: .9;
    transform: translate(-50%,-50%) rotate(45deg) scale(1.35);
  }

  80% {
    opacity: .16;
  }

  84% {
    opacity: .72;
    transform: translate(-50%,-50%) rotate(45deg) scale(.85);
  }

  88% {
    opacity: 0;
  }
}

@keyframes signatureSheen {
  0%,58% {
    background-position: 120% 0;
  }

  76%,100% {
    background-position: -120% 0;
  }
}

@keyframes discoLight {
  0% {
    transform: rotate(0deg);
    opacity: .25;
  }

  50% {
    opacity: .48;
  }

  100% {
    transform: rotate(360deg);
    opacity: .25;
  }
}

@keyframes breathe {
  0%,100% {
    opacity: .55;
    transform: scale(.98);
  }

  50% {
    opacity: .9;
    transform: scale(1.025);
  }
}

@keyframes butterflyLight {
  0%,100% {
    transform: translate3d(0,0,0);
    opacity: .2;
  }

  50% {
    transform: translate3d(0,-2px,0);
    opacity: .45;
  }
}

.signature-sheen {
  animation: signatureSheen 7.5s ease-in-out 1.2s infinite;
}

.disco-sheen {
  animation: discoLight 28s linear infinite;
}

.sun-glow {
  animation: breathe 8s ease-in-out infinite;
}

.butterfly-sheen {
  animation: butterflyLight 6s ease-in-out infinite;
}

.butterfly-sheen--small {
  animation-delay: -2.2s;
}

.stage.beginning .gold-wash {
  animation: goldWash 1.05s ease-out both;
}

.stage.beginning .signature-sheen {
  animation: signatureBurst .85s ease-out both;
}

.stage.beginning .glints i {
  animation-duration: 1.05s;
}

.stage.beginning .disco-sheen {
  opacity: .62;
}

@keyframes goldWash {
  0% {
    opacity: 0;
  }

  42% {
    opacity: .48;
  }

  100% {
    opacity: 0;
  }
}

@keyframes signatureBurst {
  0% {
    background-position: 130% 0;
    opacity: .2;
  }

  55% {
    opacity: .72;
  }

  100% {
    background-position: -130% 0;
    opacity: .3;
  }
}

@media(prefers-reduced-motion:reduce) {
  .signature-sheen,.disco-sheen,.sun-glow,.butterfly-sheen,.glints i {
    animation: none!important;
  }

  .reactive-dust {
    transform: none!important;
  }
}

@keyframes slide02Glow {
  0%,100% {
    opacity: .45;
    transform: scale(.985);
  }

  50% {
    opacity: .85;
    transform: scale(1.018);
  }
}

@keyframes slide02Butterfly {
  0%,100% {
    opacity: .18;
    transform: translate3d(0,1px,0);
  }

  50% {
    opacity: .44;
    transform: translate3d(0,-2px,0);
  }
}

@keyframes slide02Twinkle {
  0%,72%,100% {
    opacity: 0;
    transform: translate(-50%,-50%) rotate(45deg) scale(.55);
  }

  78% {
    opacity: .9;
    transform: translate(-50%,-50%) rotate(45deg) scale(1.25);
  }

  84% {
    opacity: .12;
  }

  88% {
    opacity: .62;
  }

  92% {
    opacity: 0;
  }
}

.stage--02.is-visible .slide02-sun-glow {
  animation: slide02Glow 8s ease-in-out infinite;
}

.stage--02.is-visible .slide02-butterfly-glow {
  animation: slide02Butterfly 6.5s ease-in-out infinite;
}

.stage--02.is-visible .slide02-butterfly-glow--right {
  animation-delay: -2.3s;
}

.stage--02.is-visible .slide02-glints i {
  animation: slide02Twinkle 5.2s var(--d) infinite;
}

@media(prefers-reduced-motion:reduce) {
  .stage--02.is-visible .slide02-sun-glow,.stage--02.is-visible .slide02-butterfly-glow,.stage--02.is-visible .slide02-glints i {
    animation: none!important;
  }

}

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

@keyframes secondHandIn {
  to {
    opacity: .76;
  }
}

@keyframes clockSweep {
  0% {
    background-position: 130% 0;
    opacity: 0;
  }

  20% {
    opacity: .18;
  }

  50% {
    opacity: .55;
  }

  100% {
    background-position: -130% 0;
    opacity: .08;
  }
}

@keyframes withYouSweep {
  0% {
    background-position: 130% 0;
    opacity: 0;
  }

  30% {
    opacity: .55;
  }

  100% {
    background-position: -130% 0;
    opacity: .12;
  }
}

@keyframes disco03 {
  0% {
    transform: rotate(0);
    opacity: .18;
  }

  50% {
    opacity: .42;
  }

  100% {
    transform: rotate(360deg);
    opacity: .18;
  }
}

@keyframes twinkle03 {
  0%,72%,100% {
    opacity: 0;
    transform: translate(-50%,-50%) rotate(45deg) scale(.55);
  }

  78% {
    opacity: .9;
    transform: translate(-50%,-50%) rotate(45deg) scale(1.25);
  }

  88% {
    opacity: .5;
  }

  92% {
    opacity: 0;
  }
}

.stage--03.is-visible .countdown-values span {
  animation: countReveal .75s ease-out forwards;
}

.stage--03.is-visible .countdown-values span:nth-child(1) {
  animation-delay: .55s;
}

.stage--03.is-visible .countdown-values span:nth-child(2) {
  animation-delay: .68s;
}

.stage--03.is-visible .countdown-values span:nth-child(3) {
  animation-delay: .81s;
}

.stage--03.is-visible .countdown-values span:nth-child(4) {
  animation-delay: .94s;
}

.stage--03.is-visible .clock-second-hand,.stage--03.is-visible .clock-pin {
  animation: secondHandIn .8s .25s ease-out forwards;
}

.stage--03.is-visible .slide03-clock-sheen {
  animation: clockSweep 2.3s .15s ease-out both;
}

.stage--03.is-visible .slide03-withyou-sheen {
  animation: withYouSweep 1.8s .65s ease-out both;
}

.stage--03.is-visible .slide03-disco-sheen {
  animation: disco03 30s linear infinite;
}

.stage--03.is-visible .slide03-glints i {
  animation: twinkle03 5.4s var(--d) infinite;
}

@media(prefers-reduced-motion:reduce) {
  .stage--03.is-visible .countdown-values span {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .stage--03.is-visible .clock-second-hand,.stage--03.is-visible .clock-pin {
    animation: none;
    opacity: .65;
  }

  .stage--03.is-visible .slide03-clock-sheen,.stage--03.is-visible .slide03-withyou-sheen,.stage--03.is-visible .slide03-disco-sheen,.stage--03.is-visible .slide03-glints i {
    animation: none!important;
  }
}

.stage--03 .clock-quote {
  transition: opacity .55s ease,transform .55s ease;
}

@keyframes decorativeSecond {
  to {
    transform: translate(-50%,-100%) rotate(360deg);
  }
}

@keyframes secondBurst {
  from {
    transform: translate(-50%,-100%) rotate(0deg);
  }

  to {
    transform: translate(-50%,-100%) rotate(720deg);
  }
}

/* the decorative second hand must rotate continuously.
   This deliberately overrides the earlier entrance-only animation. */

@keyframes decorativeSecondV082 {
  from {
    opacity: .82;
    transform: translate(-50%,-100%) rotate(0deg);
  }

  to {
    opacity: .82;
    transform: translate(-50%,-100%) rotate(360deg);
  }
}

@keyframes secondBurstV082 {
  from {
    opacity: .88;
    transform: translate(-50%,-100%) rotate(0deg);
  }

  to {
    opacity: .88;
    transform: translate(-50%,-100%) rotate(720deg);
  }
}

.stage--03 .clock-second-hand,
.stage--03.is-visible .clock-second-hand {
  animation: decorativeSecondV082 60s linear infinite;
  opacity: .82;
}

.stage--03.clock-burst .clock-second-hand,
.stage--03.is-visible.clock-burst .clock-second-hand {
  animation: secondBurstV082 .9s cubic-bezier(.2,.8,.2,1);
}

@media(prefers-reduced-motion:reduce) {
  .stage--03 .clock-second-hand,.stage--03.is-visible .clock-second-hand {
    animation: none;
    opacity: .82;
  }
}

/* Slide 04 sequence */

@keyframes planMaskDown {
  0% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }

  70% {
    opacity: .94;
  }

  100% {
    opacity: 0;
    transform: translateY(46px) scaleY(.18);
  }
}

@keyframes ticketFlyIn {
  0% {
    opacity: 0;
    transform: translate(-55%,-420%) rotate(-22deg) scale(.78);
  }

  18% {
    opacity: 1;
  }

  42% {
    transform: translate(18%,-240%) rotate(14deg) scale(.92);
  }

  68% {
    transform: translate(-12%,-95%) rotate(-7deg) scale(1.02);
  }

  86% {
    transform: translate(2%,-18%) rotate(11deg) scale(.99);
  }

  100% {
    opacity: 1;
    transform: translate(0,0) rotate(8.5deg) scale(1);
  }
}

@keyframes ticketTap {
  0% {
    transform: rotate(8.5deg) scale(1);
  }

  45% {
    transform: rotate(8.5deg) scale(.96);
  }

  75% {
    transform: rotate(8.5deg) scale(1.035);
  }

  100% {
    transform: rotate(8.5deg) scale(1);
  }
}

@keyframes twinkle04 {
  0%,72%,100% {
    opacity: 0;
    transform: translate(-50%,-50%) rotate(45deg) scale(.55);
  }

  78% {
    opacity: .9;
    transform: translate(-50%,-50%) rotate(45deg) scale(1.25);
  }

  90% {
    opacity: .25;
  }
}

@keyframes desktopGlitterDrift {
  from {
    background-position: 0 0,0 0,0 0,0 0,0 0;
  }

  to {
    background-position: 18px -32px,-21px -24px,13px -29px,-17px -37px,11px -25px;
  }
}

.stage--04.is-visible .plan-reveal-mask--title {
  animation: planMaskDown .78s .28s cubic-bezier(.22,.75,.2,1) forwards;
}

.stage--04.is-visible .plan-reveal-mask--copy {
  animation: planMaskDown .82s 1.02s cubic-bezier(.22,.75,.2,1) forwards;
}

.stage--04.is-visible .plan-reveal-mask--heart {
  animation: planMaskDown .66s 1.78s cubic-bezier(.22,.75,.2,1) forwards;
}

.stage--04.is-visible .slide04-glints i {
  animation: twinkle04 5.3s var(--d) infinite;
}

.stage--04.is-visible .fearless-ticket {
  animation: ticketFlyIn 2.25s 2.72s cubic-bezier(.18,.68,.22,1) forwards;
}

.stage--04.ticket-landed .fearless-ticket:active {
  animation: ticketTap .42s ease-out;
}

@media(prefers-reduced-motion:reduce) {
  .stage--04 .plan-reveal-mask {
    opacity: 0!important;
  }

  .stage--04 .fearless-ticket {
    opacity: 1;
    transform: rotate(8.5deg);
    animation: none!important;
  }

  .stage--04 .slide04-glints i,body:after {
    animation: none!important;
  }
}

/* itinerary cascade + glittering ticket */

@keyframes planRowCascade {
  0% {
    opacity: 0;
    transform: translateY(-34px);
    filter: blur(.7px);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes planSpineGrow {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: .58;
    transform: scaleY(1);
  }
}

@keyframes ticketSparkleFly {
  0%,100% {
    opacity: 0;
    transform: scale(.5) rotate(0);
  }

  18% {
    opacity: .9;
  }

  38% {
    opacity: .25;
  }

  55% {
    opacity: 1;
    transform: scale(1.08) rotate(35deg);
  }

  72% {
    opacity: .2;
  }

  88% {
    opacity: .75;
  }

  100% {
    transform: scale(.75) rotate(75deg);
  }
}

@keyframes ticketLandingShine {
  0% {
    filter: brightness(1) drop-shadow(0 9px 10px rgba(88,54,15,.18));
  }

  45% {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(232,185,79,.7));
  }

  100% {
    filter: brightness(1) drop-shadow(0 9px 10px rgba(88,54,15,.18));
  }
}

.stage--04.is-visible .plan-spine {
  animation: planSpineGrow .65s .25s ease-out forwards;
}

.stage--04.is-visible .plan-row {
  animation: planRowCascade .72s cubic-bezier(.18,.78,.22,1) forwards;
  animation-delay: calc(.45s + var(--i) * .48s);
}

/* Override V09 ticket timing: starts only after all six rows have arrived. */

.stage--04.is-visible .fearless-ticket {
  animation: ticketFlyIn 2.25s 3.95s cubic-bezier(.18,.68,.22,1) forwards;
}

.stage--04.is-visible .fearless-ticket::after {
  animation: ticketSparkleFly .95s 4.02s ease-in-out 2;
}

.stage--04.ticket-landed .fearless-ticket {
  filter: drop-shadow(0 9px 10px rgba(88,54,15,.18));
  animation-name: ticketFlyIn,ticketLandingShine;
  animation-duration: 2.25s,.8s;
  animation-delay: 3.95s,0s;
  animation-timing-function: cubic-bezier(.18,.68,.22,1),ease-out;
  animation-fill-mode: forwards,both;
}

@media(prefers-reduced-motion:reduce) {
  .stage--04 .plan-row {
    opacity: 1!important;
    transform: none!important;
    filter: none!important;
    animation: none!important;
  }

  .stage--04 .plan-spine {
    opacity: .58!important;
    transform: none!important;
    animation: none!important;
  }

  .stage--04 .fearless-ticket::after {
    animation: none!important;
  }
}

/* restrained editorial reveal over the original artwork. */

/* sparse non-sweeping glitter, each sparkle separated in time. */

@keyframes slide02TwinkleV33 {
  0%,89%,100% {
    opacity: 0;
    transform: translate(-50%,-50%) rotate(45deg) scale(.45);
  }

  91% {
    opacity: .75;
    transform: translate(-50%,-50%) rotate(45deg) scale(1.05);
  }

  93% {
    opacity: 0;
  }
}

.stage--02.is-visible .slide02-glints i {
  animation: slide02TwinkleV33 9s var(--d) infinite!important;
}

@media(prefers-reduced-motion:reduce) {
  .stage--02.is-visible .slide02-glints i {
    animation: none!important;
  }
}

/* progressive timeline, paper dots and delicate icon gestures */

.stage--04.is-visible .plan-spine {
  animation: planSpineGrow 3.15s .35s linear forwards;
}

.stage--04 .plan-dot {
  transform: scale(0);
  transition: transform .32s cubic-bezier(.18,1.5,.4,1);
}

.stage--04.is-visible .plan-dot {
  animation: v35Dot .36s calc(.5s + var(--i) * .48s) cubic-bezier(.18,1.5,.4,1) forwards;
}

@keyframes v35Dot {
  to {
    transform: scale(1);
  }
}

.stage--04.is-visible .plan-row:nth-of-type(3) .plan-icon {
  animation: v35Flash .45s 1.25s ease-out both;
}

.stage--04.is-visible .plan-row:nth-of-type(5) .plan-icon {
  animation: v35Note .5s 2.2s ease-in-out both;
}

.stage--04.is-visible .plan-row:nth-of-type(6) .plan-icon {
  animation: v35Disco .65s 2.7s ease-out both;
}

.stage--04.is-visible .plan-row:nth-of-type(7) .plan-icon svg path {
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  animation: v35Heart 1s 3.05s ease-out forwards;
}

@keyframes v35Flash {
  45% {
    filter: drop-shadow(0 0 7px #fff1b0);
  }

  to {
    filter: none;
  }
}

@keyframes v35Note {
  50% {
    transform: rotate(-8deg) translateY(-2px);
  }
}

@keyframes v35Disco {
  50% {
    transform: rotate(20deg);
  }
}

@keyframes v35Heart {
  to {
    stroke-dashoffset: 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  .stage--04 .plan-dot {
    transform: scale(1)!important;
    animation: none!important;
  }

  .stage--04 .plan-icon,.stage--04 .plan-icon svg path {
    animation: none!important;
    stroke-dashoffset: 0!important;
  }
}

/* completely suppress signature sweep and any broad light overlays on slide 02. */

/* 12 envelopes and interactive secret */

.gift-envelope-rain i {
  border-radius: 0;
}

@keyframes giftEnvelopeFall {
  0% {
    opacity: 0;
    transform: translate(-50%,-10cqw) rotate(var(--r));
  }

  12% {
    opacity: .94;
  }

  50% {
    transform: translate(calc(-50% + var(--drift)),75cqw) rotate(calc(var(--r) * -1));
  }

  88% {
    opacity: .9;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% - var(--drift)),183cqw) rotate(var(--r));
  }
}

.gift-secret {
  position: absolute;
  left: 62%;
  top: 34.3%;
  width: 24%;
  height: 13%;
  z-index: 20;
  pointer-events: none;
  transform: rotate(13deg);
  perspective: 600px;
}

.gift-secret-flap,.gift-secret-front {
  position: absolute;
  inset: 0;
  border: 1px solid #ad824a;
  background: #ebd1a5;
  box-shadow: 0 5px 12px #56371833;
}

.gift-secret-flap {
  clip-path: polygon(0 0,50% 58%,100% 0);
  transform-origin: top;
  z-index: 3;
  transition: transform .55s ease;
}

.gift-secret-front {
  clip-path: polygon(0 100%,50% 42%,100% 100%);
  display: grid;
  place-items: end center;
  color: #936328;
  font-size: 3cqw;
  z-index: 4;
}

.gift-secret-note {
  position: absolute;
  left: 5%;
  width: 90%;
  top: 5%;
  height: 85%;
  display: grid;
  place-content: center;
  text-align: center;
  background: #fff4de;
  border: 1px solid #bb9357;
  color: #80604f;
  font-family: HughsonBold,cursive;
  font-size: clamp(10px,2.15cqw,24px);
  line-height: 1.15;
  transition: transform .65s .18s ease;
  z-index: 2;
  box-shadow: 0 3px 12px #56371825;
}

.stage--10.envelope-open .gift-secret-flap {
  transform: rotateX(160deg);
}

.stage--10.envelope-open .gift-secret-note {
  transform: translateY(-83%);
}

.gift-envelope-hotspot {
  z-index: 24;
}

.stage--09 .stage-secret-message {
  font-family: HughsonBold,cursive!important;
  text-shadow: 0 0 18px #ffe5a4,0 0 32px #ffd16b;
}

.stage--09.stage-message .stage-secret-message {
  animation: stageSecretBurst 1.9s ease both;
}

@keyframes stageSecretBurst {
  0% {
    opacity: 0;
    transform: scale(.7);
  }

  25%,80% {
    opacity: 1;
    transform: scale(1.07);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.stage--05 .palette-hotspots button {
  clip-path: polygon(0 12%,12% 0,88% 0,100% 12%,100% 88%,88% 100%,12% 100%,0 88%,0 12%);
}

@media(prefers-reduced-motion:reduce) {
  .gift-secret-flap,.gift-secret-note {
    transition: none!important;
  }

  .stage--09.stage-message .stage-secret-message {
    animation: none!important;
    opacity: 1;
  }
}
