@media (max-width: 600px) {
  .hero-visual .tag-code {
    bottom: -4px;
    left: 5%;
    animation-name: mobileBadgeFloat;
  }
  .hero-visual .visual-coordinate {
    bottom: -26px;
  }
}

@keyframes mobileBadgeFloat {
  0%,
  100% {
    transform: translateY(0) rotate(4deg);
  }
  50% {
    transform: translateY(-5px) rotate(4deg);
  }
}

.design-cursor {
  animation: designTrace 5.5s ease-in-out infinite;
}
.design-swatch i {
  animation: swatchLift 5.5s ease-in-out infinite;
}
.design-swatch i:nth-child(2) {
  animation-delay: -0.5s;
}
.design-swatch i:nth-child(3) {
  animation-delay: -1s;
}
.design-swatch i:nth-child(4) {
  animation-delay: -1.5s;
}
.design-lines {
  position: relative;
  overflow: hidden;
}
.design-lines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #c9f56a88, transparent);
  animation: designSweep 3s ease-in-out infinite;
}
@keyframes designTrace {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  30% {
    transform: translate(35px, -38px) rotate(-10deg);
  }
  60% {
    transform: translate(18px, -14px) rotate(7deg);
  }
}
@keyframes swatchLift {
  0%,
  65%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-12px);
  }
}
@keyframes designSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.calendar-grid .booked i {
  transform-origin: left center;
  animation: appointmentFill 4.5s ease-in-out infinite;
}
.calendar-grid .booked:nth-child(2n) i {
  animation-delay: -1.4s;
}
.calendar-grid .booked:nth-child(3n) i {
  animation-delay: -2.8s;
}
.floating-record > i {
  animation: statusPulse 3s ease-in-out infinite;
}
@keyframes appointmentFill {
  0%,
  100% {
    transform: scaleX(0.35);
    opacity: 0.45;
  }
  40%,
  65% {
    transform: scaleX(1);
    opacity: 1;
  }
}
@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.green-chart i {
  transform-origin: bottom;
  animation: chartGrow 4s ease-in-out infinite;
}
.green-chart i:nth-child(2n) {
  animation-delay: -0.6s;
}
.green-chart i:nth-child(3n) {
  animation-delay: -1.3s;
}
.green-chart i:nth-child(4n) {
  animation-delay: -2s;
}
.green-panel .mini-check {
  display: inline-block;
  animation: statusPulse 3s ease-in-out infinite;
}
.green-panel p:nth-of-type(2) .mini-check {
  animation-delay: -1s;
}
.green-panel p:nth-of-type(3) .mini-check {
  animation-delay: -2s;
}
@keyframes chartGrow {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.65;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.kanban-card {
  animation: taskAdvance 5s ease-in-out infinite;
}
.kanban-column:nth-child(2) .kanban-card {
  animation-delay: -1.6s;
}
.kanban-column:nth-child(3) .kanban-card {
  animation-delay: -3.2s;
}
.kanban-card .kanban-dot {
  animation: statusPulse 3s ease-in-out infinite;
}
.kanban-card .placeholder-line {
  transform-origin: left;
  animation: appointmentFill 5s ease-in-out infinite;
}
@keyframes taskAdvance {
  0%,
  75%,
  100% {
    transform: translateY(0);
    border-color: #d1baff10;
  }
  35% {
    transform: translateY(-5px);
    border-color: #d1baff66;
  }
}

.data-page i {
  transform-origin: left;
  animation: appointmentFill 3.5s ease-in-out infinite;
}
.data-page i:nth-of-type(2) {
  animation-delay: -0.7s;
}
.data-page i:nth-of-type(3) {
  animation-delay: -1.4s;
}
.data-table p {
  animation: dataRow 3.6s ease-in-out infinite;
}
.data-table p:nth-of-type(2) {
  animation-delay: -0.6s;
}
.data-table p:nth-of-type(3) {
  animation-delay: -1.2s;
}
.data-table p:nth-of-type(4) {
  animation-delay: -1.8s;
}
.data-connector {
  position: relative;
}
.data-connector::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  top: 50%;
  left: 50%;
  box-shadow: 0 0 12px currentColor;
  animation: dataTransfer 2.4s ease-in-out infinite;
}
@keyframes dataRow {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-3px);
  }
  45%,
  70% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes dataTransfer {
  0% {
    transform: translate(-20px, -50%);
    opacity: 0;
  }
  30%,
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(20px, -50%);
    opacity: 0;
  }
}

.story-stage:not(.is-in-view) .scene-layer *,
.story-stage:not(.is-in-view) .scene-layer *::after,
.scene-layer:not(.active) *,
.scene-layer:not(.active) *::after,
.project-art:not(.is-in-view) *,
.project-art:not(.is-in-view) *::after {
  animation-play-state: paused !important;
}
[data-motion-paused] .scene-layer *,
[data-motion-paused] .scene-layer *::after,
[data-motion-paused] .project-art *,
[data-motion-paused] .project-art *::after {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
