/* AIU Signature New Year Header Decoration (20261203v2)
 * Champagne gold + frosted ice palette, tailored to AIU indigo square emblem.
 * Pure SVG + CSS animations, pointer-events: none, zero layout shift.
 */

.aiu-ny-logo-wrap {
  position: relative !important;
  overflow: visible !important;
}

/* Velvet festive hat seated squarely and centered on top of the 46x46 AIU square emblem */
.aiu-ny-hat {
  position: absolute;
  top: -24px;
  left: 1px;
  width: 52px;
  height: 36px;
  transform: rotate(0deg);
  transform-origin: 45% bottom;
  pointer-events: none;
  z-index: 60;
  filter: drop-shadow(0 2px 4px rgba(18, 16, 48, 0.28));
}

.aiu-ny-hat-pompom {
  transform-origin: 48px 18px;
  animation: aiuNyPompom 3.6s ease-in-out infinite;
}

.aiu-ny-sparkle {
  transform-origin: center;
  transform-box: fill-box;
  animation: aiuNySparkle 2.8s ease-in-out infinite;
}

.aiu-ny-sparkle--d1 {
  animation-delay: 0.9s;
}

.aiu-ny-sparkle--d2 {
  animation-delay: 1.7s;
}

/* Bottom garland & ornaments bar attached to <header> */
.aiu-ny-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  z-index: 55;
}

/* Soft frost mist under sticky header (no harsh white seam) */
.aiu-ny-frost {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(225, 238, 255, 0.16) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.aiu-ny-bar--sticky .aiu-ny-frost {
  display: block;
}

/* Champagne-gold & frosted-ice pine garland */
.aiu-ny-garland {
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 36px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.aiu-ny-garland svg {
  display: block;
  width: 2400px;
  height: 36px;
}

.aiu-ny-bulb-glow {
  animation: aiuNyTwinkle 2.6s ease-in-out infinite;
}

.aiu-ny-bulb-glow--g1 { animation-delay: 0s; }
.aiu-ny-bulb-glow--g2 { animation-delay: 0.65s; }
.aiu-ny-bulb-glow--g3 { animation-delay: 1.3s; }
.aiu-ny-bulb-glow--g4 { animation-delay: 1.95s; }

/* Refined hanging winter ornaments positioned away from center faces */
.aiu-ny-ornaments {
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 76px;
  pointer-events: none;
  z-index: 3;
}

.aiu-ny-ornament {
  position: absolute;
  top: 0;
  transform-origin: top center;
  will-change: transform;
  filter: drop-shadow(0 3px 6px rgba(15, 18, 45, 0.28));
}

/* Left cluster (past logo) */
.aiu-ny-ornament--1 {
  left: 16%;
  animation: aiuNySway 4.8s ease-in-out infinite;
}

.aiu-ny-ornament--2 {
  left: 20.5%;
  animation: aiuNySway 4.1s ease-in-out infinite -1.3s;
}

/* Right cluster (near navigation right side, away from hero center) */
.aiu-ny-ornament--3 {
  right: 22%;
  animation: aiuNySway 5.2s ease-in-out infinite -2.1s;
}

.aiu-ny-ornament--4 {
  right: 17.5%;
  animation: aiuNySway 4.4s ease-in-out infinite -0.7s;
}

.aiu-ny-ornament--5 {
  right: 13.5%;
  animation: aiuNySway 4.9s ease-in-out infinite -1.8s;
}

/* Mode: hat-only hides garland and ornaments */
html[data-aiu-ny-mode="hat-only"] .aiu-ny-bar {
  display: none !important;
}

@keyframes aiuNyPompom {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(5deg); }
}

@keyframes aiuNySparkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.72);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes aiuNyTwinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes aiuNySway {
  0%, 100% { transform: rotate(-3.5deg); }
  50% { transform: rotate(3.5deg); }
}

@media (max-width: 1100px) {
  .aiu-ny-ornament--2,
  .aiu-ny-ornament--4 {
    display: none;
  }
  .aiu-ny-ornament--1 { left: 22%; }
  .aiu-ny-ornament--3 { right: 20%; }
  .aiu-ny-ornament--5 { right: 12%; }
}

@media (max-width: 640px) {
  .aiu-ny-hat {
    top: -19px;
    left: 1px;
    width: 42px;
    height: 30px;
  }

  .aiu-ny-ornament--1,
  .aiu-ny-ornament--3 {
    display: none;
  }

  .aiu-ny-ornament--5 {
    right: 10%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aiu-ny-hat-pompom,
  .aiu-ny-sparkle,
  .aiu-ny-bulb-glow,
  .aiu-ny-ornament {
    animation: none !important;
  }
}
