/* Convergis Partners — editorial motion and enhanced calls to action.
   Deliberately restrained: the original palette and layout are unchanged. */

/* The primary action is immediately legible against the dark hero. */
.hero-actions > a.button {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
  gap: 13px;
  box-shadow: 0 5px 15px rgba(var(--navy-rgb), .18);
  transition: background-color .24s ease, border-color .24s ease,
    box-shadow .24s ease, transform .24s cubic-bezier(.2,.7,.3,1);
}
.hero-actions > a.button::after,
.final-cta a.button::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .24s cubic-bezier(.2,.7,.3,1);
}
.final-cta a.button { gap: 13px; }
.hero-actions > a.button:focus-visible { border-color: var(--copper); }
.hero-actions > .text-link { text-decoration-color: rgba(var(--cream-rgb),.6); }
.primary-nav > .nav-contact {
  transition: background-color .24s, border-color .24s, box-shadow .24s,
    transform .24s, font-size var(--header-motion,0s), padding var(--header-motion,0s);
}

:is(a.card,.related-grid a)::before {
  transform-origin: left center;
  transition: opacity .24s, transform .3s cubic-bezier(.2,.7,.3,1);
}
:is(a.card,.related-grid a) :is(.card-link,em) {
  transition: color .24s, text-decoration-color .24s;
}
.card-link > span[aria-hidden="true"] {
  display: inline-block;
  transition: transform .24s cubic-bezier(.2,.7,.3,1);
}

@media (hover: hover) and (pointer: fine) {
  .hero-actions > a.button:hover {
    background: var(--white);
    border-color: var(--copper);
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
  }
  .hero-actions > a.button:hover::after,
  .final-cta a.button:hover::after { transform: translateX(3px) rotate(45deg); }
  .primary-nav > .nav-contact:hover { background: #293c4d; }
  :is(a.card,.related-grid a):hover::before { transform: scaleY(1.6); }
  a.card:hover .card-link > span[aria-hidden="true"] { transform: translateX(3px); }
  .section-visual img { transition: transform .65s cubic-bezier(.2,.7,.3,1); }
  .section-visual:hover img { transform: scale(1.018); }
}

/* Motion is progressive enhancement, never a condition for visibility. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes editorial-arrival {
    from { opacity: .72; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes panel-arrival {
    from { opacity: .82; transform: translateY(11px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes copper-rule {
    from { transform: scaleX(.08); opacity: .3; }
    to { transform: scaleX(1); opacity: 1; }
  }
  .hero-copy > .eyebrow { animation: editorial-arrival .42s ease-out backwards; }
  .hero-copy > h1 { animation: editorial-arrival .55s cubic-bezier(.2,.7,.3,1) .045s backwards; }
  .hero-copy > .hero-intro { animation: editorial-arrival .52s cubic-bezier(.2,.7,.3,1) .095s backwards; }
  .hero-copy > .hero-actions { animation: editorial-arrival .48s cubic-bezier(.2,.7,.3,1) .15s backwards; }
  .hero-panel { animation: panel-arrival .6s cubic-bezier(.2,.7,.3,1) .09s backwards; }
  .hero-panel::before {
    transform-origin: left center;
    animation: copper-rule .66s cubic-bezier(.2,.7,.3,1) .15s backwards;
  }
  .hero-method-steps > li {
    animation: editorial-arrival .45s cubic-bezier(.2,.7,.3,1) .14s backwards;
  }
  .hero-method-steps > li:nth-child(2) { animation-delay: .19s; }
  .hero-method-steps > li:nth-child(3) { animation-delay: .24s; }
  .hero-method-steps > li:nth-child(4) { animation-delay: .29s; }

  .motion-in { animation: editorial-arrival .44s cubic-bezier(.2,.7,.3,1) backwards; }
  .cards > .motion-in:nth-child(2), .related-grid > .motion-in:nth-child(2) { animation-delay: .045s; }
  .cards > .motion-in:nth-child(3), .related-grid > .motion-in:nth-child(3) { animation-delay: .09s; }
  .cards > .motion-in:nth-child(n+4), .related-grid > .motion-in:nth-child(n+4) { animation-delay: .12s; }

  .method-panel[role="tabpanel"]:not([hidden]) {
    animation: editorial-arrival .32s cubic-bezier(.2,.7,.3,1) backwards;
  }
  .faq-list details[open] > p {
    animation: editorial-arrival .24s ease-out backwards;
  }

  /* Do not delay focus or apply motion when someone is interacting. */
  .motion-in:focus-within,
  .hero-copy:focus-within > *,
  .hero-panel:focus-within,
  .method-panel:focus-within { animation: none; }

  @media (max-width: 820px) {
    .cards > .motion-in, .related-grid > .motion-in { animation-delay: 0s !important; }
  }
}

/* In addition to the original stylesheet's global reduced-motion rule. */
@media (prefers-reduced-motion: reduce) {
  .motion-in, .hero-copy > *, .hero-panel, .hero-panel::before,
  .hero-method-steps > li, .method-panel, .faq-list details > p {
    animation: none !important;
  }
  :is(.button,.nav-contact,.menu-toggle,a.card,.related-grid a):is(:hover,:focus-visible),
  .section-visual:hover img { transform: none; }
  .hero-actions > a.button:hover::after,
  .final-cta a.button:hover::after { transform: rotate(45deg); }
  a.card:hover .card-link > span[aria-hidden="true"] { transform: none; }
}
