/* DM Motion: static helpers. Every motion value lives in dm-motion.js.
   Everything here is scoped under html.dmm-on (set by the engine only when motion runs),
   so with motion off, in the editor, or in reduced motion this file changes nothing.
   Tokens: --dmm-out = cubic-bezier(.22,1,.36,1) entrances, --dmm-ease = the hover layer's out-quad. */

:root{--dmm-out:cubic-bezier(.22,1,.36,1);--dmm-ease:cubic-bezier(.22,.61,.36,1);--dmm-coral:#FE6F5E;--dmm-coral-dark:#ED5B2E;--dmm-ink:#3E2723;--dmm-yellow:#FFCA32}

/* line masks from the splitter: room under the line so Hebrew descenders (ק ך ן ף ץ) and the
   handwriting flourishes are not clipped */
.dmm-mask{padding-bottom:.14em;margin-bottom:-.14em;padding-top:.06em;margin-top:-.06em}
.dmm-line{will-change:transform}

/* ------------------------------------------------------------------ cursor */
/* The paw cursor. Fixed, pointer-events none, transform only (no filter: a filter on a fixed
   layer repaints every frame and blurs on WebKit). Created by JS only on a real fine pointer. */
.dmm-cur{position:fixed;left:0;top:0;z-index:2147483000;pointer-events:none;contain:layout style;opacity:0;transition:opacity 160ms linear}
html.dmm-cursor-in .dmm-cur{opacity:1}
html.dmm-cursor-text .dmm-cur{opacity:0}
.dmm-dot{width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--dmm-ink);transition:opacity 160ms linear,transform 0s}
.dmm-paw{width:34px;height:34px;margin:-5px 0 0 -3px}
.dmm-paw-in{width:100%;height:100%;transform-origin:30% 20%;transition:transform 260ms var(--dmm-out)}
.dmm-paw svg{display:block;width:100%;height:100%;overflow:visible}
.dmm-paw svg path,.dmm-paw svg ellipse{fill:var(--dmm-coral);fill-opacity:.88;stroke:var(--dmm-ink);stroke-width:0;transition:fill 200ms var(--dmm-ease),fill-opacity 200ms linear,stroke-width 200ms linear}
/* over anything you can press: the paw grows, turns yellow and gets an ink outline (reads on coral and on cream) */
html.dmm-cur-act .dmm-paw-in{transform:scale(1.7) rotate(-12deg)}
html.dmm-cur-act .dmm-paw svg path,html.dmm-cur-act .dmm-paw svg ellipse{fill:var(--dmm-yellow);fill-opacity:1;stroke-width:1.4px}
html.dmm-cur-act .dmm-dot{opacity:0}
/* over a whole clickable card: bigger still, sniffing */
html.dmm-cur-card .dmm-paw-in{transform:scale(2.1) rotate(10deg)}
html.dmm-cur-card .dmm-paw svg path,html.dmm-cur-card .dmm-paw svg ellipse{fill:var(--dmm-yellow);fill-opacity:1;stroke-width:1.1px}
html.dmm-cur-card .dmm-dot{opacity:0}
/* press */
html.dmm-cur-down .dmm-paw-in{transform:scale(.78) rotate(0deg);transition-duration:90ms}
html.dmm-cur-act.dmm-cur-down .dmm-paw-in,html.dmm-cur-card.dmm-cur-down .dmm-paw-in{transform:scale(1.35) rotate(-6deg)}

/* paw prints left behind: a pool of 12, CSS animation only (off the main thread) */
.dmm-print{position:fixed;left:0;top:0;width:15px;height:15px;margin:-7.5px 0 0 -7.5px;z-index:2147482999;pointer-events:none;opacity:0}
.dmm-print svg{display:block;width:100%;height:100%;transform:rotate(var(--r,0deg))}
.dmm-print svg path,.dmm-print svg ellipse{fill:var(--dmm-coral)}
.dmm-print.is-on{animation:dmm-print 1100ms var(--dmm-out) forwards}
.dmm-print.is-stamp{width:30px;height:30px;margin:-15px 0 0 -15px}
@keyframes dmm-print{0%{opacity:.5;transform:var(--t) scale(.6)}18%{opacity:.42;transform:var(--t) scale(1)}100%{opacity:0;transform:var(--t) scale(.92)}}

/* the native cursor is hidden only while the paw is live, and never over text you type into */
html.dmm-cursor,html.dmm-cursor body,html.dmm-cursor body *{cursor:none!important}
html.dmm-cursor :is(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,select,[contenteditable="true"],iframe),
html.dmm-cursor :is(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,select,[contenteditable="true"]) *{cursor:auto!important}
html.dmm-cursor :is(input,textarea,[contenteditable="true"]):not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not(select){cursor:text!important}

/* ----------------------------------------------------------- hover gestures */
/* Additions on top of build/hover.css, never a copy of it. hover.css owns colour, shadow and the
   2px button lift; this layer adds MOVEMENT with the individual `translate` property, which composes
   with hover.css's `transform` instead of replacing it. Hosts of a card-wide link (.dm-hv-linked,
   .e-loop-item) never get translate, transform, filter or will-change: only their children move.
   Same guard as hover.css: (hover:hover) and :where(html:not(.dm-touch)). */
@media (hover:hover) and (pointer:fine){
  /* Rule of this block (hover-latch-and-stretched-link-traps, trap 5): the element that :hover listens
     to never moves. The parent is the hover target, the child is what rises. */
  /* menu items: the li is the target, the link inside it rises 3px (the magnetic pull in JS adds the sideways part) */
  :where(html.dmm-on:not(.dm-touch)) .elementor-nav-menu .menu-item>.elementor-item{transition:translate 260ms var(--dmm-out),color 240ms var(--dmm-ease)}
  :where(html.dmm-on:not(.dm-touch)) .elementor-nav-menu--main .menu-item:hover>.elementor-item{translate:0 -3px}
  /* list links (footer contact, card lists) slide 4px toward the reading direction (RTL: left) */
  :where(html.dmm-on:not(.dm-touch)) .elementor-icon-list-item>a{transition:translate 260ms var(--dmm-out)}
  :where(html.dmm-on:not(.dm-touch)) .elementor-icon-list-item:hover>a{translate:-4px 0}
  /* 17.11: text in a card never moves on hover; only the icon tile lifts 6px and comes back */
  :where(html.dmm-on:not(.dm-touch)) .dm-hv-surface>img{transition:translate 420ms var(--dmm-out)}
  :where(html.dmm-on:not(.dm-touch)) .dm-hv-surface.is-hover>img{translate:0 -6px}
  /* form fields: the group is the target, the field rises 2px; focus keeps its ring from hover.css */
  :where(html.dmm-on:not(.dm-touch)) .elementor-field-group .elementor-field{transition:translate 240ms var(--dmm-out),border-color 240ms var(--dmm-ease),box-shadow 240ms var(--dmm-ease),background-color 240ms var(--dmm-ease)}
  :where(html.dmm-on:not(.dm-touch)) .elementor-field-group:hover>.elementor-field,
  :where(html.dmm-on:not(.dm-touch)) .elementor-field-group:hover>.elementor-select-wrapper>.elementor-field,
  :where(html.dmm-on:not(.dm-touch)) .elementor-field-group .elementor-field:focus{translate:0 -2px}
  /* 17.11: the lift of the chip and info-card contents was removed (text in a clickable card stays put) */
}

/* every state where motion must be off: nothing here moves */
@media (prefers-reduced-motion:reduce){
  .dmm-cur,.dmm-print{display:none!important}
}
html.dm-a-motion .dmm-cur,html.dm-a-motion .dmm-print,html.dm-motion-off .dmm-cur,html.dm-motion-off .dmm-print{display:none!important}
