/* Motion polish: preserve all existing dimensions and document flow. */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
@keyframes panelArrival { from { opacity: .35; } to { opacity: 1; } }
@keyframes menuArrival { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fieldArrival { from { opacity: .25; } to { opacity: 1; } }
.hero, .box, body > main { animation: panelArrival 800ms var(--motion-ease); }
.form-box { animation: panelArrival 1100ms var(--motion-ease); }
.custom-select.open .select-menu { animation: menuArrival 220ms var(--motion-ease); }
.field:not(.hidden), .damage-options:not(.hidden) { animation: fieldArrival 320ms var(--motion-ease); }
button, input, textarea, .card, .choice, .upload-card, .unable-media, main > a {
  transition-property: transform, box-shadow, border-color, background-color, opacity;
  transition-duration: 260ms;
  transition-timing-function: var(--motion-ease);
}
button:focus-visible, main > a:focus-visible, .select-option:focus-visible {
  outline: 3px solid #2867a8;
  outline-offset: 4px;
}
.select-option:focus-visible { background: rgba(45,212,191,.22); }
.choice:focus-within, .unable-media:focus-within, .upload-panel:has(.file-input:focus-visible) .upload-card {
  outline: 3px solid #2867a8;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  main > a:hover, body > main button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(16,32,51,.2); }
}
/* Animate only paint/compositing properties: no changes to layout geometry. */
@keyframes contentArrival {
  from { opacity: .35; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero > h1, .hero > p, .box > h1, .box > p, .box > .pill {
  animation: contentArrival 900ms var(--motion-ease) both;
}
.box > p { animation-delay: 90ms; }
.box > .pill { animation-delay: 160ms; }
input, textarea { transition-property: box-shadow, border-color, background-color; }
.select-button:active, .submit:active { transition-duration: 100ms; }
.submit:disabled { cursor: wait; opacity: .7; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .upload-card:hover { box-shadow: 0 18px 38px rgba(45,212,191,.16); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* Animated elements need a visible, centered resting position. */
  .drone { transform: translateX(-50%); }
  .drone-train { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .drone { transform: translateX(-50%) scale(.78); }
  .drone-train { transform: translateX(-180px) scale(.55); }
}
