/* Source animations; all surrounding UI uses Nourix theme tokens. */
html[data-theme] .nx-ngin-v21 .ng-motion-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}
html[data-theme] .nx-ngin-v21 .ng-motion-heading p{max-width:420px}
.ng-motion-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
html[data-theme] .nx-ngin-v21 .ng-motion-tabs button{font:inherit;font-size:15px;padding:12px 20px;min-height:48px;border-radius:12px;border:1px solid var(--nx-border);background:var(--nx-surface);color:var(--nx-copy);cursor:pointer}
html[data-theme] .nx-ngin-v21 .ng-motion-tabs button[aria-pressed=true]{background:var(--nx-ink);color:var(--nx-ground);border-color:var(--nx-ink)}
.ng-motion-panel[hidden]{display:none!important}
.ng-motion-copy{display:flex;justify-content:space-between;gap:32px;align-items:start;margin-bottom:20px}
.ng-motion-copy p{max-width:580px}
.ng-motion-media{position:relative;aspect-ratio:16/9;border:1px solid var(--nx-border);border-radius:22px;overflow:hidden;background:var(--nx-ground)}
.ng-motion-media video{display:block;width:100%;height:100%;object-fit:contain}
html[data-theme] .nx-ngin-v21 .ng-motion-play{position:absolute;inset-inline-end:16px;bottom:16px;min-height:44px;padding:10px 16px;border:1px solid var(--nx-border);border-radius:12px;font:inherit;font-size:13px;background:var(--nx-surface);color:var(--nx-ink);cursor:pointer}
.ng-motion-error{position:absolute;inset:0;place-content:center;text-align:center;background:var(--nx-ground);pointer-events:none}
.ng-motion-error:not([hidden]){display:grid}
.ng-motion-play{z-index:2}
.ng-motion button:focus-visible{outline:2px solid var(--nx-complement);outline-offset:3px}
@media(max-width:760px){html[data-theme] .nx-ngin-v21 .ng-motion-heading,.ng-motion-copy{display:block}.ng-motion-heading h2,.ng-motion-copy h3{margin-bottom:10px!important}.ng-motion-tabs{gap:6px;margin-bottom:20px}html[data-theme] .nx-ngin-v21 .ng-motion-tabs button{flex:1 0 42%;padding:10px 12px;font-size:14px}.ng-motion-media{border-radius:14px}.ng-motion-copy{margin-bottom:16px}html[data-theme] .nx-ngin-v21 .ng-motion-play{bottom:6px;inset-inline-end:6px;min-height:36px;font-size:11px;padding:7px 10px}}
@media(prefers-reduced-motion:reduce){.ng-motion *{transition:none!important;animation:none!important}}
/* The site's global button reset sets position:relative; playback overlays must remain absolute. */
html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-play{position:absolute!important;z-index:3}

/* Compact square demonstrations below the main feature panel. */
.ng-motion-small-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px;margin-top:48px}
.ng-motion-card{min-width:0;display:flex;flex-direction:column}
.ng-motion-card-copy{margin-bottom:14px;flex:1}
html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-card-copy h3{font-size:18px!important;line-height:1.7;margin:0 0 8px!important}
html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-card-copy p{font-size:14px!important;line-height:1.9;margin:0}
.ng-motion-card .ng-motion-media{aspect-ratio:1;border-radius:16px}
html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-card .ng-motion-play{bottom:7px;inset-inline-end:7px;padding:6px 9px;min-height:32px;font-size:11px}
@media(max-width:1050px){.ng-motion-small-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px;margin-inline:auto;gap:28px 22px}}
@media(max-width:560px){.ng-motion-small-grid{grid-template-columns:1fr;max-width:320px;gap:28px;margin-top:32px}}

/* Quiet controls: two-second reveal on playback; hover, keyboard or tap to return. */
html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-play{opacity:1;transition:opacity 350ms ease,transform 350ms ease!important;transform:translateY(0)}
html[data-theme] body.n-site.nx-ngin-v21 #features .ng-controls-idle .ng-motion-play{opacity:0;pointer-events:none;transform:translateY(4px)}
html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-play:focus-visible{opacity:1;pointer-events:auto;transform:translateY(0)}
@media(hover:hover){html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-media:hover .ng-motion-play{opacity:1;pointer-events:auto;transform:translateY(0)}}

/* Enlarge the complete card, including title and copy, without layout shifts. */
.ng-motion-card .ng-motion-media{box-sizing:border-box;padding:12px;background:var(--nx-ground)}
.ng-motion-card .ng-motion-media video{border-radius:8px}
.ng-motion-card-copy{box-sizing:border-box;padding:8px 10px 0}
@media(max-width:560px){.ng-motion-card .ng-motion-media{padding:10px}}
html[data-theme] body.n-site.nx-ngin-v21 #features{overflow:visible;position:relative;z-index:5}
.ng-motion-small-grid{position:relative;isolation:isolate;overflow:visible}
.ng-motion-card{position:relative;z-index:0;background:var(--nx-ground);border-radius:16px;transform-origin:center top;--ng-card-shadow:color-mix(in srgb,var(--nx-ground) 55%,#000);transition:transform 450ms cubic-bezier(.22,1,.36,1),box-shadow 450ms ease}
@media(hover:hover) and (pointer:fine) and (min-width:761px){
 html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-card:hover,
 html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-card:has(.ng-motion-play:focus-visible){z-index:10;transform:scale(1.5);box-shadow:0 20px 54px color-mix(in srgb,var(--ng-card-shadow) 52%,transparent),0 4px 16px color-mix(in srgb,var(--ng-card-shadow) 28%,transparent)}
 [dir=ltr] .ng-motion-card:first-child,[dir=rtl] .ng-motion-card:last-child{transform-origin:left top}
 [dir=ltr] .ng-motion-card:last-child,[dir=rtl] .ng-motion-card:first-child{transform-origin:right top}
}
@media(hover:hover) and (pointer:fine) and (min-width:761px) and (max-width:1050px){
 html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-card:hover,
 html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-card:has(.ng-motion-play:focus-visible){transform:scale(1.2)}
 [dir=ltr] .ng-motion-card:nth-child(odd),[dir=rtl] .ng-motion-card:nth-child(even){transform-origin:left top}
 [dir=ltr] .ng-motion-card:nth-child(even),[dir=rtl] .ng-motion-card:nth-child(odd){transform-origin:right top}
}
@media(prefers-reduced-motion:reduce){html[data-theme] body.n-site.nx-ngin-v21 #features .ng-motion-play,.ng-motion-card{transition:none!important}}
