.agent-motion {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: white;
}

.agent-motion .eyebrow {
  color: var(--accent-soft);
}

.motion-copy {
  max-width: 720px;
}

.motion-copy h2 {
  color: white;
}

.motion-copy p {
  max-width: 620px;
  color: rgb(255 255 255 / 68%);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.motion-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 0.72fr) minmax(150px, 1fr);
  grid-template-rows: minmax(430px, 1fr) auto;
  min-height: 560px;
  gap: 18px 18px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 8%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 8%) 1px, transparent 1px),
    rgb(255 255 255 / 4%);
  background-size: 84px 84px;
}

.motion-stage::before,
.motion-stage::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(217 235 231 / 78%), transparent);
}

.motion-stage::before {
  left: 18%;
}

.motion-stage::after {
  right: 18%;
}

.motion-column {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 18px;
}

.motion-column-right {
  text-align: right;
}

.motion-label {
  color: rgb(255 255 255 / 68%);
  font-size: clamp(0.98rem, 1.1vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.motion-chip {
  display: inline-flex;
  width: min(100%, 220px);
  min-height: 54px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 12px 16px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  color: var(--ink);
  background: #f4f0e8;
  box-shadow: 0 18px 44px rgb(0 0 0 / 22%);
  font-weight: 800;
  opacity: 0.6;
  filter: saturate(0.78);
  transform: scale(1);
  animation: taskPulse 9.6s ease-in-out infinite;
}

.motion-column-right .motion-chip {
  justify-self: end;
  background: var(--accent-soft);
}

.chip-b,
.chip-c,
.chip-d,
.chip-e,
.chip-f {
  animation-delay: 0s;
}

.chip-a {
  animation-delay: 0s;
}

.chip-d {
  animation-delay: 1.2s;
}

.chip-b {
  animation-delay: 2.4s;
}

.chip-e {
  animation-delay: 3.6s;
}

.chip-c {
  animation-delay: 4.8s;
}

.chip-f {
  animation-delay: 6s;
}

.motion-agent {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.agent-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: clamp(132px, 12vw, 174px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  color: white;
  background: var(--accent);
  box-shadow: 0 28px 80px rgb(0 0 0 / 36%);
}

.agent-core span {
  display: block;
  align-self: end;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  font-weight: 850;
  line-height: 0.9;
}

.agent-core small {
  align-self: start;
  color: rgb(255 255 255 / 70%);
  font-weight: 800;
}

.agent-ring {
  position: absolute;
  width: clamp(170px, 18vw, 260px);
  aspect-ratio: 1;
  border: 1px solid rgb(217 235 231 / 28%);
  border-radius: 50%;
  animation: agentPulse 4.8s ease-in-out infinite;
}

.ring-two {
  width: clamp(220px, 24vw, 340px);
  opacity: 0.45;
  animation-delay: 1.2s;
}

.motion-metric {
  position: relative;
  grid-column: 1 / -1;
  justify-self: end;
  z-index: 3;
  max-width: 320px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 22%);
  text-align: right;
}

.motion-metric strong {
  display: block;
  font-size: clamp(2.9rem, 5.4vw, 5.8rem);
  line-height: 0.9;
}

.motion-metric span {
  color: rgb(255 255 255 / 62%);
  font-weight: 700;
}

@keyframes taskPulse {
  0%,
  10% {
    transform: scale(1.09);
    opacity: 1;
    filter: saturate(1.18);
    box-shadow:
      0 22px 58px rgb(0 0 0 / 28%),
      0 0 0 1px rgb(255 255 255 / 26%),
      0 0 34px rgb(217 235 231 / 34%);
  }

  16%,
  100% {
    transform: scale(1);
    opacity: 0.6;
    filter: saturate(0.78);
    box-shadow: 0 18px 44px rgb(0 0 0 / 22%);
  }
}

@keyframes agentPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.28;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.72;
  }
}

@media (max-width: 980px) {
  .agent-motion {
    grid-template-columns: 1fr;
  }

  .motion-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .motion-stage::before,
  .motion-stage::after {
    display: none;
  }

  .motion-agent {
    min-height: 240px;
  }

  .motion-column-right {
    text-align: left;
  }

  .motion-column-right .motion-chip {
    justify-self: start;
  }

  .motion-metric {
    position: static;
    max-width: none;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-chip,
  .agent-ring {
    animation: none;
  }

  .motion-chip {
    opacity: 1;
    filter: none;
  }
}
