.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 340px);
}
.hero-actions .button {
  width: 100%;
  height: 52px;
  min-width: 0;
  justify-content: space-between;
  gap: 12px;
}
.hero-actions .button > span {
  font-size: 17px;
  line-height: 1;
}
.hero-topics {
  gap: 22px;
}

.lab-stack {
  animation: paper-drift 9s ease-in-out infinite;
}
.payroll-ledger {
  animation: ledger-drift 10s ease-in-out infinite;
}
.lab-art:hover .lab-stack,
.payroll-art:hover .payroll-ledger {
  animation-play-state: paused;
}
@keyframes paper-drift {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -6px;
    rotate: 1deg;
  }
}
@keyframes ledger-drift {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -5px;
    rotate: 1.5deg;
  }
}

.profile-dossier {
  animation: dossier-drift 10s ease-in-out infinite;
}
.profile-dossier:hover {
  animation-play-state: paused;
}
.monogram-star {
  display: block;
  transform-origin: center;
  animation: compass-turn 32s linear infinite;
}
@keyframes dossier-drift {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -7px;
    rotate: -1.2deg;
  }
}
@keyframes compass-turn {
  to {
    transform: rotate(360deg);
  }
}

.workshop:not(.is-running) .flow-line > i {
  animation: transmit 6s linear infinite;
}
.workshop:not(.is-running) .flow-line:nth-of-type(4) > i {
  animation-delay: 1.5s;
}
.workshop:not(.is-running) .flow-line:nth-of-type(6) > i {
  animation-delay: 3s;
}
.workshop:not(.is-running) .node-icon {
  animation: node-breathe 8s ease-in-out infinite;
}
.workshop:not(.is-running) [data-step='1'] .node-icon {
  animation-delay: 1.5s;
}
.workshop:not(.is-running) [data-step='2'] .node-icon {
  animation-delay: 3s;
}
.workshop:not(.is-running) [data-step='3'] .node-icon {
  animation-delay: 4.5s;
}
@keyframes node-breathe {
  0%,
  15%,
  55%,
  100% {
    box-shadow: 0 0 0 #d2b77e00;
    border-color: #9ba18333;
  }
  30%,
  40% {
    box-shadow: 0 0 22px #d2b77e18;
    border-color: #d2b77e99;
  }
}

.contact-orbit {
  --contact-radius: 180px;
  animation: orbit-breathe 9s ease-in-out infinite;
}
.contact-orbit > div {
  top: 50%;
  left: 50%;
  margin: -4px;
  animation: contact-travel 22s linear infinite;
}
@keyframes contact-travel {
  from {
    transform: rotate(0deg) translateX(var(--contact-radius));
  }
  to {
    transform: rotate(360deg) translateX(var(--contact-radius));
  }
}
@keyframes orbit-breathe {
  0%,
  100% {
    scale: 1;
    opacity: 0.8;
  }
  50% {
    scale: 1.025;
    opacity: 1;
  }
}

.case-visual {
  position: relative;
  overflow: hidden;
}
.case-visual:after {
  content: '';
  position: absolute;
  top: 46%;
  left: -50%;
  width: 40%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #d2b77e90, transparent);
  animation: system-trace 9s ease-in-out infinite;
}
.arch-services > div {
  animation: service-breathe 9s ease-in-out infinite;
}
.arch-services > div:nth-child(2) {
  animation-delay: 2s;
}
.arch-services > div:nth-child(3) {
  animation-delay: 4s;
}
.arch-ui:after {
  background: linear-gradient(180deg, #b0b78e22, #d2b77e, #b0b78e22);
  background-size: 100% 200%;
  animation: connector-flow 4s linear infinite;
}
@keyframes system-trace {
  0%,
  10% {
    left: -50%;
    opacity: 0;
  }
  20% {
    opacity: 0.65;
  }
  80% {
    opacity: 0.65;
  }
  90%,
  100% {
    left: 110%;
    opacity: 0;
  }
}
@keyframes service-breathe {
  0%,
  15%,
  65%,
  100% {
    box-shadow: inset 0 0 0 #d2b77e00;
    border-color: #b0b78e55;
  }
  35%,
  45% {
    box-shadow: inset 0 0 22px #d2b77e0c;
    border-color: #d2b77ea0;
  }
}
@keyframes connector-flow {
  to {
    background-position: 0 200%;
  }
}

@media (max-width: 580px) {
  .hero-actions {
    gap: 10px;
    max-width: 340px;
  }
  .hero-actions .button {
    height: 49px;
    padding: 12px;
    gap: 6px;
    font-size: 10px;
  }
  .hero-actions .button > span {
    font-size: 16px;
  }
  .contact-orbit {
    --contact-radius: 140px;
  }
  .workshop:not(.is-running) .flow-line > i {
    animation-name: transmit-vertical;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lab-stack,
  .payroll-ledger,
  .profile-dossier,
  .monogram-star,
  .workshop:not(.is-running) .flow-line > i,
  .workshop:not(.is-running) .node-icon,
  .contact-orbit,
  .contact-orbit > div,
  .case-visual:after,
  .arch-services > div,
  .arch-ui:after {
    animation: none !important;
  }
  .case-visual:after {
    opacity: 0;
  }
  .contact-orbit > div {
    transform: translateX(var(--contact-radius));
  }
}
