/* Shared motion for every route other than Home, which has its own sequence.
   Animate complete sections/cards so cropped artwork and its controls stay aligned. */
@media (prefers-reduced-motion:no-preference) {
  body:not([data-page="home"]) .main> :is(section,article)> :is(section,header,div,h1,p,form) {
    animation:infra-rise .65s .08s backwards;
  }
  body:not([data-page="home"]) .main> :is(section,article)> :nth-child(2) { animation-delay:.16s; }
  body:not([data-page="home"]) .main> :is(section,article)> :nth-child(3) { animation-delay:.24s; }
  body:not([data-page="home"]) .main> :is(section,article)> :nth-child(n+4) { animation-delay:.32s; }
  body:not([data-page="home"]) .main :is(
    .about-pillar-card,.cap-module-card,.why-benefit-card,.full-vendor-card,
    .full-how-step,.full-update-row,.full-roadmap-row,.contact-method,
    .design-card,.usecase-card,.module-card,.doc-section
  ) { animation:infra-rise .65s .18s backwards;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; }
  body:not([data-page="home"]) .main :is(
    .about-pillar-card,.cap-module-card,.why-benefit-card,.full-vendor-card,
    .full-how-step,.full-update-row,.full-roadmap-row,.contact-method,
    .design-card,.usecase-card,.module-card,.doc-section
  ):nth-child(2n) { animation-delay:.26s; }
  body:not([data-page="home"]) .main :is(
    .about-pillar-card,.cap-module-card,.why-benefit-card,.full-vendor-card,
    .full-how-step,.full-update-row,.full-roadmap-row,.contact-method,
    .design-card,.usecase-card,.module-card,.doc-section
  ):nth-child(3n) { animation-delay:.34s; }
  body:not([data-page="home"]) .main h1 em {
    background:linear-gradient(105deg,#ff5100 20%,#ff5100 42%,#ffac4b 50%,#ff5100 58%,#ff5100 80%);
    background-size:250% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;
    animation:infra-text-light 2.1s .65s both;
  }
  body:not([data-page="home"]) .main :is(.btn,.contact-outline,.tab,.reference-tabs button) {
    transition:transform .22s ease,box-shadow .22s ease,background-color .22s ease;
  }
  body:not([data-page="home"]) .main :is(.btn,.contact-outline,.tab,.reference-tabs button):focus-visible {
    transform:translateY(-2px);box-shadow:0 7px 18px #ff5b0030;
  }
  .main :is(input,textarea,select) { transition:border-color .2s ease,box-shadow .2s ease; }
  .main :is(input,textarea,select):focus {
    border-color:#ff7931;box-shadow:0 0 0 3px #ff5b0018;
  }
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) {
  body:not([data-page="home"]) .main :is(
    a.about-pillar-card,button.about-pillar-card,.cap-module-card,.why-benefit-card,
    .full-vendor-card,.full-how-step,a.contact-method,button.contact-method,
    a.design-card,a.usecase-card,.module-card
  ):hover { transform:translateY(-5px);box-shadow:0 12px 28px #17385818,inset 0 0 0 1px #ff9a62; }
  body:not([data-page="home"]) .main :is(.btn,.contact-outline,.tab,.reference-tabs button):hover {
    transform:translateY(-2px);box-shadow:0 7px 18px #ff5b0030;
  }
}
@media (prefers-reduced-motion:reduce) {
  .main *,.main *::before,.main *::after {
    animation:none!important;transition:none!important;scroll-behavior:auto!important;
  }
}
