.brand-lockup { display: inline-block; position: relative; }
.brand-lockup img { display: block; }
.brand-court { display: none; }

@media (prefers-reduced-motion: no-preference) {
  :is([data-reveal-on-load], [data-reveal-on-return]) { --court-reveal-iterations: 1; }

  /* Keep the original wordmark visible while the court draws over its own area. */
  .brand[data-playing] img { clip-path: inset(0 0 0 28%); }
  .brand[data-playing] .brand-court {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  [data-court-reveal][data-playing] :is(.reveal-frame, .reveal-service, .reveal-tin) {
    stroke-dasharray: 1 1;
    animation-duration: 5s;
    animation-iteration-count: var(--court-reveal-iterations, infinite);
    animation-fill-mode: both;
  }
  [data-court-reveal][data-playing] .reveal-frame { animation-name: reveal-frame; }
  [data-court-reveal][data-playing] .reveal-service { animation-name: reveal-service; }
  [data-court-reveal][data-playing] .reveal-tin { animation-name: reveal-tin; }
  [data-court-reveal][data-playing] .reveal-ball {
    transform-box: fill-box;
    transform-origin: center;
    animation: reveal-ball 5s ease-out var(--court-reveal-iterations, infinite) both;
  }
  @keyframes reveal-frame {
    from { stroke-dashoffset: 1; }
    23%, to { stroke-dashoffset: 0; }
  }
  @keyframes reveal-service {
    from, 21% { stroke-dashoffset: 1; }
    30%, to { stroke-dashoffset: 0; }
  }
  @keyframes reveal-tin {
    from, 28% { stroke-dashoffset: 1; }
    35%, to { stroke-dashoffset: 0; }
  }
  @keyframes reveal-ball {
    from, 32% { opacity: 0; transform: translate(8px, 6px) scale(.85); }
    40%, to { opacity: 1; transform: none; }
  }
}
