/* ==========================================================================
   Code Vise - public website scroll reveal  (assets/reveal.css)
   --------------------------------------------------------------------------
   Loaded ONLY by public pages. Every rule is scoped to the .cv-r* classes,
   which assets/reveal.js adds at runtime. Nothing here matches an element
   that reveal.js has not tagged, and the admin panel never loads this file.

   - Without JavaScript nothing is ever tagged, so all content stays visible.
   - Only opacity, translate, scale and clip-path are animated (no layout work,
     no layout shift). Individual transform properties are used so an element's
     own transform (e.g. a featured pricing card) is never overwritten.
   - reveal.js removes these classes once an element has finished revealing, so
     each element's own hover/transition styles are restored untouched.
   ========================================================================== */

/* Resting (hidden) state - applied to an element only while it waits to be seen */
html .cv-r {
  opacity: 0 !important;
  transition-property: opacity, translate, scale, clip-path !important;
  transition-duration: var(--cv-dur, 700ms) !important;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  transition-delay: var(--cv-d, 0ms) !important;
}

/* Entrance directions / styles (subtle: 20-32px, no bounce, no spin) */
html .cv-r.cv-r--up    { translate: 0 28px !important; }
html .cv-r.cv-r--down  { translate: 0 -22px !important; }
html .cv-r.cv-r--left  { translate: -32px 0 !important; }   /* enters from the left  */
html .cv-r.cv-r--right { translate: 32px 0 !important; }    /* enters from the right */
html .cv-r.cv-r--zoom  { scale: 0.95 !important; --cv-dur: 750ms; }
html .cv-r.cv-r--text  { translate: 0 22px !important; --cv-dur: 800ms; }
html .cv-r.cv-r--img   { scale: 1.05 !important; clip-path: inset(0 0 14% 0) !important; --cv-dur: 900ms; }
html .cv-r.cv-r--fade  { /* opacity only */ }

/* Revealed state (must stay after the modifiers above) */
html .cv-r.cv-in {
  opacity: 1 !important;
  translate: 0 0 !important;
  scale: 1 !important;
  clip-path: inset(0 0 0 0) !important;
}

/* Used for content that was already scrolled past: show it without animating */
html .cv-r.cv-now { transition: none !important; }

/* Keep slide-in elements from ever creating a horizontal scrollbar.
   (overflow-x: clip does not create a scroll container, so sticky headers keep working.) */
html.cv-rv body { overflow-x: clip; }

/* Cards stack vertically on phones, so slide sideways becomes a gentle rise */
@media (max-width: 700px) {
  html .cv-r.cv-r--left,
  html .cv-r.cv-r--right { translate: 0 24px !important; }
}

/* Respect the visitor's reduced-motion setting (reveal.js also never runs in that case) */
@media (prefers-reduced-motion: reduce) {
  html .cv-r {
    opacity: 1 !important;
    translate: none !important;
    scale: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}
