/* Homepage motion only. Layout, type, and artwork stay as they are. */
body.page-home .hero {
  position: relative;
}
body.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(241, 237, 255, 0.55) 48%, rgba(255, 255, 255, 0) 100%);
  background-size: 180% 180%;
  animation: home-wash 14s ease-in-out infinite;
}
body.page-home .hero-grid { position: relative; z-index: 1; }

body.page-home .hero h1 span {
  background-image: linear-gradient(90deg, #6546e8, #8b6cf6, #6546e8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: home-text 8s linear infinite;
}

body.page-home .hero-art-in { position: relative; }
body.page-home .hero-glow {
  position: absolute;
  left: 8%;
  right: 6%;
  top: 16%;
  bottom: 8%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.14), rgba(139, 92, 246, 0.06) 42%, transparent 70%);
  animation: home-glow 12s ease-in-out infinite;
  pointer-events: none;
}
body.page-home .hero-art img {
  position: relative;
  z-index: 1;
  transform-origin: center center;
  animation: home-float 10s ease-in-out infinite;
}
body.page-home .float-tag-bob {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  animation: home-bob 6s ease-in-out infinite;
}
body.page-home .tag-digitization .float-tag-bob { animation-delay: 1s; }
body.page-home .tag-learning .float-tag-bob { animation-delay: 2s; }
body.page-home .note-top { animation: home-note 9s ease-in-out infinite; }
body.page-home .note-bottom { animation: home-note-b 11s ease-in-out infinite; }

body.page-home .btn,
.header-cta {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}
body.page-home .btn:hover,
.header-cta:hover {
  transform: translate3d(0, -1px, 0) scale(1.03);
}
body.page-home .btn:active,
.header-cta:active {
  transform: translate3d(0, 0, 0) scale(0.98);
}
body.page-home .btn-primary:hover,
.header-cta:hover {
  box-shadow: 0 8px 25px rgba(109, 61, 245, 0.2);
}
body.page-home .btn:hover svg,
.header-cta:hover svg {
  transform: translateX(4px);
}
body.page-home .btn-link:hover {
  transform: none;
  box-shadow: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}
.nav-links a:hover { color: #17183d; }
.nav-links a.is-active:hover { color: var(--purple); }

body.page-home .foundation .pillar,
body.page-home .service,
body.page-home .project,
body.page-home .benefit-row article {
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease;
}
body.page-home .foundation .pillar:hover,
body.page-home .service:hover,
body.page-home .project:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 14px 28px rgba(80, 60, 150, 0.1);
}
body.page-home .foundation .pillar:hover .icon-bubble,
body.page-home .service:hover .icon-bubble,
body.page-home .benefit-row article:hover .icon-bubble {
  box-shadow: 0 0 0 6px rgba(112, 72, 245, 0.08);
  transform: scale(1.08);
}
body.page-home .icon-bubble { transition: transform 300ms ease, box-shadow 300ms ease; }
body.page-home .project-media { overflow: hidden; }
body.page-home .project-media img {
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.page-home .project:hover .project-media img { transform: scale(1.04); }

body.page-home .cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 160px at 20% 50%, rgba(255, 255, 255, 0.14), transparent 70%);
  animation: home-cta 12s ease-in-out infinite;
}

@keyframes home-wash {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes home-text {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes home-glow {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.85; }
  50% { transform: translate3d(12px, -6px, 0); opacity: 1; }
}
@keyframes home-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -8px, 0) scale(1.015); }
}
@keyframes home-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}
@keyframes home-note {
  0%, 100% { transform: rotate(8deg) translate3d(0, 0, 0); }
  50% { transform: rotate(8deg) translate3d(0, -6px, 0); }
}
@keyframes home-note-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}
@keyframes home-cta {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, 0, 0); }
}

@media (max-width: 767px) {
  body.page-home .hero-art img,
  body.page-home .float-tag-bob,
  body.page-home .note-top,
  body.page-home .note-bottom,
  body.page-home .hero-glow,
  body.page-home .hero::before,
  body.page-home .cta-banner::before,
  body.page-home .hero h1 span {
    animation: none;
  }
  body.page-home .hero h1 span {
    background: none;
    color: #6546e8;
  }
}
