/*
 * Doc: Original DTC motion timings for the approved static pages
 * Status: Local review candidate
 * Last verified: 2026-11-05
 * Values are copied from the original bundle (Dt header, Ts hero, Z, Bs, Oe,
 * Us, F, Ks, li). Ease [0.22, 1, 0.36, 1] is the original K/Rs/Je/pe curve.
 * The original app had no MotionConfig, so framer-motion entrance reveals ran
 * even with reduced motion; components handle reduced motion themselves.
 */
:root { --om-ease: cubic-bezier(0.22, 1, 0.36, 1); }

/* Mount wrappers around original cards must not add a box. */
.om-contents { display: contents; }

/* ---------------------------------------------------------- header (Dt) */
@keyframes om-header-in {
  from { opacity: 0; transform: translateY(-28px); }
  to { opacity: 1; transform: none; }
}
[data-om-header] { animation: om-header-in 0.6s var(--om-ease) both; }

/* ---------------------------------------------------------- hero (Ts) */
@keyframes om-rise {
  from { opacity: 0; transform: translateY(var(--om-from-y)); }
  to { opacity: 1; transform: none; }
}
@keyframes om-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
[data-om-hero="h1"] { --om-from-y: 20px; animation: om-rise 0.75s var(--om-ease) both; }
[data-om-hero="intro"] { --om-from-y: 18px; animation: om-rise 0.7s var(--om-ease) 0.12s both; }
[data-om-hero="cta"] { --om-from-y: 16px; animation: om-rise 0.7s var(--om-ease) 0.22s both; }
[data-om-hero="channels"] { --om-from-y: 12px; animation: om-rise 0.7s var(--om-ease) 0.34s both; }
/* Original orbit fade sets duration .8 and delay .5 with no ease; framer's
   default opacity tween curve is ease-out, verified in the original motion chunk. */
[data-om-hero="orbit"] { animation: om-fade 0.8s ease-out 0.5s both; }

/* ---------------------------------------------------------- whileInView reveals
   Parameters arrive as inline custom properties written by prepare_motion.py. */
html.om-js [data-om-reveal="rise"] {
  transition:
    opacity var(--om-d, 0.6s) var(--om-ease) var(--om-delay, 0s),
    transform var(--om-d, 0.6s) var(--om-ease) var(--om-delay, 0s);
}
html.om-js [data-om-reveal="rise"]:not(.om-in) {
  opacity: 0;
  transform: translateY(var(--om-y, 16px)) scale(var(--om-s, 1));
}

/* Ks bar fills: width 0 to their target width, delay .2 + i * .1. */
html.om-js [data-om-reveal="width"] {
  transition: clip-path var(--om-d, 1s) var(--om-ease) var(--om-delay, 0s);
  clip-path: inset(0 0 0 0);
}
html.om-js [data-om-reveal="width"]:not(.om-in) { clip-path: inset(0 100% 0 0); }

@media print {
  html.om-js [data-om-reveal] { opacity: 1 !important; transform: none !important; width: 100% !important; }
}

/* ---------------------------------------------------------- offer CTA (li)
   whileHover scale 1.015, whileTap scale .985, .18s original ease. */
[data-om-press] {
  transition: transform 0.18s var(--om-ease), background-color 0.15s, color 0.15s !important;
}
[data-om-press]:hover { transform: scale(1.015); }
[data-om-press]:active { transform: scale(0.985); }

/* Keep the navigation readable while content scrolls below the pill. */
[data-om-header-pill].glass { background: rgba(255,255,255,.98) !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
