
  .petal {
    position: fixed;
    top: -120px;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, opacity;
    animation-fill-mode: forwards;
    animation-name: leafFall;
    animation-timing-function: linear;
  }

  /*
    Directional leaf-like fall:
    - --drift is always one direction (negative = left, positive = right)
    - --wiggle adds small wobble but never crosses past drift direction
    - fades near bottom
  */
  @keyframes leafFall {
    0% {
      transform: translate3d(0, -120px, 0) rotate(var(--rot-start));
      opacity: 1;
    }
    25% {
      transform: translate3d(
        calc(var(--drift) * 0.25 + var(--wiggle) * 0.4),
        25vh,
        0
      ) rotate(calc(var(--rot-start) + 90deg));
      opacity: 1;
    }
    50% {
      transform: translate3d(
        calc(var(--drift) * 0.55 + var(--wiggle) * 0.7),
        55vh,
        0
      ) rotate(calc(var(--rot-start) + 180deg));
      opacity: 1;
    }
    75% {
      transform: translate3d(
        calc(var(--drift) * 0.85 + var(--wiggle) * 0.9),
        80vh,
        0
      ) rotate(calc(var(--rot-start) + 270deg));
      opacity: 1;
    }
    90% { opacity: 0.4; }
    100% {
      transform: translate3d(
        calc(var(--drift) * 1.05 + var(--wiggle)),
        110vh,
        0
      ) rotate(calc(var(--rot-start) + 360deg));
      opacity: 0;
    }
  }