/* A brief welcome sequence; the illustration is fully visible without motion. */
.public-header .brand-animation {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
}

/* Reuse precisely the original PNG bars, without changing the logo artwork.
   Clip coordinates refer to the original 1254 × 1254 pixel canvas. */
.public-header .brand-accent {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 75.2%;
}
.brand-accent-black { clip-path: inset(74.3% 78.9% 23.8% 6.8%); }
.brand-accent-red { clip-path: inset(74.3% 63.4% 23.8% 22.3%); }
.brand-accent-gold { clip-path: inset(74.3% 46.9% 23.8% 37.7%); }

.public-header .brand-word-wave {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* The tower stays still. Original letter clips make one small wave. */
  .public-header .brand-animation > .product-logo {
    animation: brand-wave-original 2.24s step-end both;
  }
  .public-header .brand-word-wave {
    display: block;
    animation: brand-wave-layer 2.24s step-end both;
  }
  .brand-wave-part {
    animation: brand-letter-wave .8s cubic-bezier(.45, 0, .55, 1) both;
  }
  .brand-wave-part-1 { animation-delay: .15s; }
  .brand-wave-part-2 { animation-delay: .24s; }
  .brand-wave-part-3 { animation-delay: .33s; }
  .brand-wave-part-4 { animation-delay: .42s; }
  .brand-wave-part-5 { animation-delay: .51s; }
  .brand-wave-part-6 { animation-delay: .6s; }
  .brand-wave-part-7 { animation-delay: .69s; }
  .brand-wave-part-8 { animation-delay: .78s; }
  .brand-wave-part-9 { animation-delay: .87s; }
  .brand-wave-part-10 { animation-delay: .96s; }
  .brand-wave-part-11 { animation-delay: 1.05s; }
  .brand-wave-part-12 { animation-delay: 1.14s; }
  .brand-wave-part-13 { animation-delay: 1.23s; }
  .brand-wave-part-14 { animation-delay: 1.32s; }
  .brand-wave-part-15 { animation-delay: 1.41s; }

  /* Keep the accepted soft bar sequence, starting after the wave settles. */
  .public-header .brand-accent {
    animation: event-brand-accent 1.2s cubic-bezier(.45, 0, .55, 1) both;
  }
  .public-header .brand-accent-black { animation-delay: 2.35s; }
  .public-header .brand-accent-red { animation-delay: 3.05s; }
  .public-header .brand-accent-gold { animation-delay: 3.75s; }

  .auth-intro .illustration-calendar {
    animation: event-calendar-welcome 4.6s cubic-bezier(.37, 0, .2, 1) both;
    transform-origin: 50% 70%;
  }

  .auth-intro .illustration-ticket {
    animation: event-ticket-welcome 4.2s .15s cubic-bezier(.37, 0, .2, 1) both;
  }

  .auth-intro .calendar-dots i:nth-child(7) {
    animation: event-day-welcome 1.4s .55s ease-in-out both;
  }

  .auth-intro .calendar-check {
    animation: event-check-welcome 1.2s 1.05s cubic-bezier(.22, 1, .36, 1) both;
  }

  .auth-intro .calendar-check .icon path {
    stroke-dasharray: 22;
    animation: event-check-draw .65s 1.25s ease-out both;
  }
}

@keyframes brand-wave-original {
  from { visibility: hidden; }
  to { visibility: visible; }
}
@keyframes brand-wave-layer {
  from { visibility: visible; }
  to { visibility: hidden; }
}
@keyframes brand-letter-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes event-brand-accent {
  0%, 100% { opacity: 0; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.8); }
}

@keyframes event-calendar-welcome {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  30% { transform: translateY(-8px) rotate(-5deg); }
  64% { transform: translateY(-3px) rotate(-8deg); }
  83% { transform: translateY(-5px) rotate(-6deg); }
}

@keyframes event-ticket-welcome {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  35% { transform: translateY(-5px) rotate(2deg); }
  70% { transform: translateY(-2px) rotate(5deg); }
}

@keyframes event-day-welcome {
  0%, 100% { transform: scale(1); }
  48% { transform: scale(1.15); }
}

@keyframes event-check-welcome {
  0% { transform: scale(.88); }
  45% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes event-check-draw {
  from { stroke-dashoffset: 22; }
  to { stroke-dashoffset: 0; }
}

@media print {
  .auth-intro .illustration *,
  .public-header .brand-animation > .product-logo,
  .public-header .brand-word-wave,
  .brand-wave-part,
  .public-header .brand-accent { animation: none !important; }
  .public-header .brand-word-wave { display: none; }
}
