.button[download] svg,
.button .note-icon svg {
  transition: transform 0.22s ease;
  transform-origin: center;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button[download]:hover svg {
    animation: download-nudge 0.65s ease;
  }
  .button:hover .note-icon svg {
    transform: rotate(-12deg) scale(1.12);
  }
}
.button[download]:active svg {
  transform: translateY(3px) scale(0.92);
}
.button:active .note-icon svg {
  transform: rotate(8deg) scale(0.9);
}
@keyframes download-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(4px);
  }
}
@media (min-width: 651px) {
  #main-navigation.has-sliding-line {
    position: relative;
  }
  #main-navigation.has-sliding-line a:not(.nav-contact)::after {
    display: none;
  }
  .nav-sliding-line {
    position: absolute;
    height: 2px;
    background: var(--green);
    pointer-events: none;
    transition:
      left 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
      width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}
@media (max-width: 650px) {
  .nav-sliding-line {
    display: none;
  }
}
.learning-map .map-dot {
  animation: pathway-glow 9s ease-in-out infinite;
  animation-play-state: paused;
}
.learning-map li:nth-child(2) .map-dot {
  animation-delay: 3s;
}
.learning-map li:nth-child(3) .map-dot {
  animation-delay: 6s;
}
.learning-map .map-star {
  animation-play-state: paused;
}
.learning-map.map-motion-on .map-dot,
.learning-map.map-motion-on .map-star,
.learning-map.map-motion-on .map-progress {
  animation-play-state: running;
}
@keyframes pathway-glow {
  0%,
  32%,
  100% {
    box-shadow: 0 0 0 0 #c8ad4820;
    transform: scale(1);
  }
  12%,
  20% {
    box-shadow: 0 0 0 6px #c8ad4828;
    transform: scale(1.06);
  }
}
.map-motion-toggle {
  margin-left: auto;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--green);
  border-radius: 50%;
}
.map-motion-toggle[hidden] {
  display: none;
}
.map-foot .map-motion-toggle svg {
  width: 36px;
  height: 36px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.map-progress-track {
  opacity: 0.15;
}
.map-progress {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: map-progress-loop 9s linear infinite paused;
}
.map-pause {
  stroke-linecap: round;
}
.map-play {
  display: none;
  fill: currentColor;
  stroke: none;
}
.map-motion-toggle[aria-pressed="true"] .map-play {
  display: block;
}
.map-motion-toggle[aria-pressed="true"] .map-pause {
  display: none;
}
.map-motion-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
@keyframes map-progress-loop {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button[download] svg,
  .button .note-icon svg,
  .nav-sliding-line {
    transition: none;
    animation: none;
  }
  .button[download]:active svg,
  .button:active .note-icon svg {
    transform: none;
  }
  .learning-map .map-dot,
  .learning-map .map-star,
  .learning-map .map-progress {
    animation: none;
  }
}

/* Smooth navigation text hover */
@media (min-width: 651px) and (hover: hover) {
  #main-navigation a:not(.nav-contact) {
    transition: color 0.3s ease;
  }

  #main-navigation a:not(.nav-contact):hover {
    color: var(--green);
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  #main-navigation a:not(.nav-contact) {
    transition: none;
  }
}
