/* Restrained movement that supports hierarchy without slowing the experience. */
.hero-copy {
  animation: hero-arrival 700ms cubic-bezier(.2,.75,.25,1) both;
}

.hero-mark-ring {
  animation: hero-glow 4.4s ease-in-out infinite;
}

.hero-mark-ring::before {
  border-top-color: var(--gold);
  border-right-color: rgba(208,166,64,.45);
  animation: orbit-ring 12s linear infinite;
}

.hero-mark-ring::after {
  border-bottom-color: rgba(208,166,64,.6);
  animation: orbit-ring-reverse 17s linear infinite;
}

.button,
.division-card,
.solution-grid article,
.resource-grid > a,
.training-path-grid article,
.client-logo-grid > div,
.faq-grid details {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -70%;
  width: 35%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent);
  transition: left 520ms ease;
  pointer-events: none;
}

.button:hover::after,
.button:focus-visible::after {
  left: 135%;
}

.client-logo-grid > div:hover {
  transform: translateY(-4px);
  border-color: #caa23d;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.division-card:hover,
.resource-grid > a:hover,
.training-path-grid article:hover {
  transform: translateY(-5px);
  border-color: #6d5828;
}

.faq-grid details[open] {
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

.motion-enabled .reveal {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 760ms cubic-bezier(.2,.75,.25,1),
    transform 760ms cubic-bezier(.2,.75,.25,1);
  transition-delay: calc(var(--reveal-order, 0) * 60ms);
}

.motion-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-arrival {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-glow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(208,166,64,.05); }
  50% { transform: scale(1.025); box-shadow: 0 0 78px rgba(208,166,64,.22); }
}

@keyframes orbit-ring {
  to { transform: rotate(360deg); }
}

@keyframes orbit-ring-reverse {
  to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .motion-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}
