.hero-copy.hero-copy-holiday {
  --holiday-inset: 45px;
  justify-content: flex-start;
  padding-block-start: 0;
  padding-inline-start: var(--holiday-inset);
}

.holiday-decoration {
  position: relative;
  isolation: isolate;
  flex: none;
  width: min(600px, calc(100% + var(--holiday-inset)));
  aspect-ratio: 2.1;
  margin-inline-start: calc(-1 * var(--holiday-inset));
  margin-block-end: 12px;
  transform: translate(-2.5%, -4%);
  pointer-events: none;
}

.holiday-fir,
.holiday-bauble-image {
  display: block;
  width: 100%;
  height: auto;
}

.holiday-fir {
  position: relative;
  z-index: 2;
}

.holiday-bauble {
  position: absolute;
  z-index: 1;
  left: var(--bauble-x);
  top: var(--bauble-y);
  width: var(--bauble-width);
  container-type: inline-size;
  transform: translateX(-50%);
}

.holiday-bauble-swing {
  display: grid;
  transform-origin: 50% 0;
}

.holiday-bauble-swing::before {
  content: "";
  justify-self: center;
  width: 1px;
  height: var(--bauble-thread-height);
  margin-block-end: -1px;
  background: linear-gradient(#acada9, #f1ede5 58%, #838c95);
}

.holiday-bauble-ruby {
  --bauble-x: 12%;
  --bauble-y: 40%;
  --bauble-width: 14%;
  --bauble-thread-height: 12cqw;
  --bauble-swing: -7.5deg;
  --bauble-delay: 0s;
}

.holiday-bauble-pearl {
  --bauble-x: 30.4%;
  --bauble-y: 50%;
  --bauble-width: 13.3%;
  --bauble-thread-height: 12cqw;
  --bauble-swing: -8.5deg;
  --bauble-delay: 0.15s;
}

.holiday-bauble-blue {
  --bauble-x: 49.7%;
  --bauble-y: 50%;
  --bauble-width: 16.7%;
  --bauble-thread-height: 11cqw;
  --bauble-swing: -10deg;
  --bauble-delay: 0.06s;
}

.holiday-bauble-midnight {
  --bauble-x: 69.4%;
  --bauble-y: 49%;
  --bauble-width: 13.8%;
  --bauble-thread-height: 12cqw;
  --bauble-swing: -8deg;
  --bauble-delay: 0.26s;
}

.holiday-bauble-champagne {
  --bauble-x: 89%;
  --bauble-y: 36%;
  --bauble-width: 14.4%;
  --bauble-thread-height: 12cqw;
  --bauble-swing: -7deg;
  --bauble-delay: 0.12s;
}

.holiday-bauble-hit {
  position: absolute;
  inset: 24% 0 0;
  clip-path: ellipse(49% 49% at 50% 50%);
  pointer-events: auto;
}

.holiday-bauble-face {
  position: relative;
}


.holiday-light {
  position: absolute;
  z-index: 3;
  top: var(--light-y);
  left: var(--light-x);
  width: 12%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d6d9 0%, #ffce67a6 13%, #ffb23d45 32%, transparent 69%);
  opacity: 0;
}

.holiday-light:nth-child(1) { --light-x: 21.7%; --light-y: 36.4%; --light-delay: 0s; }
.holiday-light:nth-child(2) { --light-x: 33.7%; --light-y: 47.4%; --light-delay: 0.4s; }
.holiday-light:nth-child(3) { --light-x: 42.7%; --light-y: 53.5%; --light-delay: 0.12s; }
.holiday-light:nth-child(4) { --light-x: 55%; --light-y: 51.3%; --light-delay: 0.56s; }
.holiday-light:nth-child(5) { --light-x: 73.2%; --light-y: 37.1%; --light-delay: 0.25s; }
.holiday-light:nth-child(6) { --light-x: 85.1%; --light-y: 30.7%; --light-delay: 0.68s; }

@media (prefers-reduced-motion: no-preference) {
  :root:not([data-contrast=high]) .holiday-motion .holiday-bauble-swing:not(.holiday-sway-hover) {
    animation: holiday-sway 4.5s ease-in-out var(--bauble-delay) both;
  }

  .holiday-bauble-swing.holiday-sway-hover {
    animation: holiday-sway 3.6s ease-in-out both;
  }

  :root:not([data-contrast=high]) .holiday-motion .holiday-light {
    animation: holiday-glow 2.05s ease-in-out var(--light-delay) 2 both;
  }
}

@keyframes holiday-sway {
  0%, 100% { transform: rotate(0); }
  17% { transform: rotate(var(--bauble-swing)); }
  40% { transform: rotate(calc(-.85 * var(--bauble-swing))); }
  62% { transform: rotate(calc(.62 * var(--bauble-swing))); }
  82% { transform: rotate(calc(-.32 * var(--bauble-swing))); }
}

@keyframes holiday-glow {
  0%, 100% { opacity: 0; }
  46% { opacity: .92; }
}

@media (max-width: 1199px) {
  .hero-copy.hero-copy-holiday { --holiday-inset: 35px; }
}

@media (max-width: 960px) {
  .hero-copy.hero-copy-holiday { --holiday-inset: 30px; }
}

@media (max-width: 700px) {
  .hero-copy.hero-copy-holiday { --holiday-inset: 25px; }
  .holiday-decoration { width: min(390px, calc(100% + var(--holiday-inset))); }
}

@media (max-width: 360px) {
  .hero-copy.hero-copy-holiday { --holiday-inset: 20px; }
}

@media print {
  .holiday-decoration { display: none; }
}
