/* Restrained entrance and interaction motion; no scroll hijacking or layout movement. */
@media(prefers-reduced-motion:no-preference) {
 .dgm-motion-item:not(.is-visible) { opacity:0; transform:translateY(22px); }
 .dgm-motion-item { transition:opacity .65s ease var(--dgm-reveal-delay,0ms),transform .65s cubic-bezier(.22,1,.36,1) var(--dgm-reveal-delay,0ms),border-color .22s ease,box-shadow .22s ease; }
 .dgm-motion-item.is-visible { opacity:1; }
 @media(hover:hover) and (pointer:fine) {
  :is(.dgm-identity-card,.dgm-service-card,.dgm-project-card,.dgm-cpt-card):hover { transform:translateY(-6px); border-color:var(--dgm-color-secondary); box-shadow:0 18px 38px color-mix(in srgb,var(--dgm-color-primary) 16%,transparent); transition-delay:0ms; }
  .dgm-animated-graphic svg { transition:transform .5s cubic-bezier(.22,1,.36,1); }
  .dgm-animated-graphic:hover svg { transform:perspective(1000px) rotateX(2deg) rotateY(-3deg) scale(1.015); }
  .wp-element-button { transition:transform .2s ease,box-shadow .2s ease; }
  .wp-element-button:hover { transform:translateY(-2px); box-shadow:0 8px 20px color-mix(in srgb,var(--dgm-color-primary) 20%,transparent); }
 }
}
:is(.dgm-faq details,details.wp-block-details).dgm-accordion>summary { position:relative; list-style:none; padding-inline-end:3rem; }
.dgm-accordion>summary::-webkit-details-marker { display:none; }
.dgm-accordion>summary::after { content:'+'; position:absolute; inset-inline-end:.6rem; top:50%; width:1.2em; text-align:center; line-height:1; transform:translateY(-50%); transition:transform .3s ease; color:var(--dgm-color-primary); }
.dgm-accordion[open]:not([data-dgm-expanded="false"])>summary::after { transform:translateY(-50%) rotate(45deg); }
.dgm-accordion>summary:focus-visible { outline:2px solid var(--dgm-color-primary); outline-offset:-2px; border-radius:4px; }
/* All semantic defaults follow the current palette. Explicit native block colours win. */
html[data-dgm-theme="light"] :is(.dgm-sea-feature,.dgm-cta):not(.has-background):not(.has-dgm-light-background) { background:radial-gradient(circle at 76% 50%,color-mix(in srgb,var(--dgm-color-secondary) 10%,transparent),transparent 26rem),var(--dgm-light-surface); }
html[data-dgm-theme="light"] :where(.dgm-sea-feature,.dgm-cta) :is(h1,h2,h3,h4,h5,h6):not(.has-text-color):not([style*="color:"]) { color:var(--dgm-context-text,var(--dgm-light-text)); }
html[data-dgm-theme="light"] :where(.dgm-sea-feature,.dgm-cta) :is(p,li):not(.has-text-color):not([style*="color:"]) { color:var(--dgm-context-text,var(--dgm-light-muted)); }
.editor-styles-wrapper .dgm-motion-item { opacity:1!important; transform:none!important; }
@media(prefers-reduced-motion:reduce) { .dgm-motion-item { opacity:1;transform:none;transition:none; } .dgm-accordion>summary::after {transition:none;} }
