.white-rabbit {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: max-content;
  margin: 22px auto 0;
  color: #c7c9ce;
  font: 400 10px/1.4 var(--mono);
  letter-spacing: 0.08em;
}
.white-rabbit svg {
  width: 20px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  animation: rabbit-bounce 1.8s ease-in-out infinite;
  animation-play-state: paused;
}
.is-ambient-active .white-rabbit svg { animation-play-state: running; }
.white-rabbit:hover { color: #fff; }
.white-rabbit:focus-visible { outline: 1px solid #fff; outline-offset: 8px; }
@keyframes rabbit-bounce { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

.wormhole-surface, .wormhole-wire, .wormhole-links { display: none; }

@media (min-width: 901px) {
  .work-section {
    --pill-scene-size: calc(100svh - 96px - var(--pill-title-size) * 1.1 - var(--pill-gap) - var(--pill-padding) * 2 - 62px);
  }
  .white-rabbit { margin-top: 8px; }
  .wormhole-enabled {
    position: relative;
    height: calc(100svh - 96px + var(--wormhole-travel, 220svh));
    background: transparent;
  }
  .wormhole-enabled .wormhole-pin {
    position: sticky;
    top: 96px;
    height: calc(100svh - 96px);
    overflow: hidden;
    isolation: isolate;
    background: transparent;
  }
  .wormhole-enabled #work,
  .wormhole-enabled #publisher {
    position: absolute;
    inset: 0;
    height: 100%;
    margin-block: 0;
    background: transparent;
  }
  .wormhole-enabled #work { border: 0; }
  .wormhole-enabled #publisher {
    opacity: 0;
    pointer-events: none;
  }
  .wormhole-enabled .wormhole-surface,
  .wormhole-enabled .wormhole-wire {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
  }
  .wormhole-surface { z-index: 4; }
  .wormhole-wire { z-index: 1; }
  .wormhole-enabled[data-wormhole-phase="transit"] .wormhole-links {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
  }
  .wormhole-links a { cursor: pointer; }
  .wormhole-links path { fill: transparent; pointer-events: fill; }
  .wormhole-links a:focus-visible { outline: none; }
  .wormhole-links a:focus-visible path { stroke: #fff; stroke-width: 1; }
  .wormhole-enabled[data-wormhole-phase="transit"] :is(.wormhole-surface, .wormhole-wire) { opacity: 1; }
  .wormhole-enabled[data-wormhole-phase="transit"] #work { visibility: hidden; }
  .wormhole-enabled[data-wormhole-phase="after"] #work { visibility: hidden; }
  .wormhole-enabled[data-wormhole-phase="after"] #publisher { opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .white-rabbit svg { animation: none; }
}
