/* Motion shared by every page: a quiet page-to-page crossfade and short fade-up reveals.
   Depth comes from layered shadows, not from motion; nothing follows the cursor. */

/* Cross-page transitions: the header stays put while the page crossfades. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 180ms ease-out both depth-page-out; }
::view-transition-new(root) { animation: 260ms ease-out 40ms both depth-page-in; }
@keyframes depth-page-out { to { opacity: 0; } }
@keyframes depth-page-in { from { opacity: 0; transform: translateY(6px); } }

/* Elements waiting for their reveal (only set when JavaScript runs). */
.depth-pending { opacity: 0; }

/* Cards lift slightly on hover; shadows carry the sense of depth. */
.v2-service, .v2-method-grid li, .legal-glance li, .help-topic,
main:not(.home-v2):not(.legal) .gap-px.bg-border.border > a {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}
.v2-service:hover, .help-topic:hover,
main:not(.home-v2):not(.legal) .gap-px.bg-border.border > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(25, 25, 25, 0.04), 0 18px 34px -22px rgba(25, 25, 25, 0.4);
}
html[data-theme="dark"] .v2-service:hover, html[data-theme="dark"] .help-topic:hover { box-shadow: 0 18px 34px -20px rgba(0, 0, 0, 0.8); }

/* Headline line masks (set up by depth.js) */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-inner { display: block; will-change: transform; }
.v2-film { overflow: hidden; border-radius: 12px; }

/* Arrows nudge forward on hover. */
.v2-button svg, .v2-text-link span[aria-hidden], .text-link span[aria-hidden], .action-primary span[aria-hidden], .legal-help a span[aria-hidden] { display: inline-block; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.v2-button:hover svg, .v2-text-link:hover span[aria-hidden], .legal-help a:hover span[aria-hidden], .action-primary:hover span[aria-hidden] { transform: translateX(3px); }
.v2-button:hover svg[viewBox] { transform: translate(2px, -2px); }

/* Press feedback on buttons. */
.v2-button, .action-primary, .action-secondary, .legal-help a, .help-contact > a, .robotics-cta, .career-role-toggle, main button[type="submit"] { transition: transform 0.1s ease-out, background-color 0.15s, color 0.15s, border-color 0.15s; }
.v2-button:active, .action-primary:active, .action-secondary:active, .legal-help a:active, .help-contact > a:active, .robotics-cta:active, .career-role-toggle:active, main button[type="submit"]:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
  .v2-button:active, .action-primary:active, main button[type="submit"]:active { transform: none; }
  @view-transition { navigation: none; }
  .depth-pending { opacity: 1; }
  .v2-service:hover, .help-topic:hover, main .gap-px.bg-border.border > a:hover { transform: none; }
}
@media print {
  .depth-pending { opacity: 1 !important; }
}
