/* studio-motion-hero (motion-previews-r1; renamed r3 for the signed-out allow-list) */
.emh,.emh *{box-sizing:border-box}
.emh{margin:4px 0 28px;padding:20px;border:1px solid rgba(168,85,247,.28);border-radius:16px;background:radial-gradient(60% 80% at 100% 0%,rgba(168,85,247,.16),transparent 70%),#101018;color:#f4f2ff}
.emh[hidden]{display:none}
.emh{display:grid;grid-template-columns:minmax(260px,360px) 1fr;column-gap:28px;align-items:start}
.emh-head{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:16px;padding-top:8px}
.emh-more{grid-column:1;grid-row:2;align-self:start}
.emh-kicker{margin:0 0 4px;font:700 12px/1.3 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#c4b5fd}
.emh-h{margin:0;font:800 28px/1.15 Inter,system-ui,sans-serif}
.emh-lede{margin:6px 0 0;max-width:560px;color:#b4b2cc;font:400 15px/1.45 Inter,system-ui,sans-serif}
.emh-cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;font:600 15px/1 Inter,system-ui,sans-serif;text-decoration:none;white-space:nowrap}
.emh-cta.is-primary{background:#fff;color:#0b0b12;border-color:#fff}
.emh-cta:hover{filter:brightness(1.08)}
.emh-cta:focus-visible,.emh-more:focus-visible{outline:2px solid #a855f7;outline-offset:2px}
.emh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,250px));gap:16px;grid-column:2;grid-row:1 / span 2}
.emh-card{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:#15151f;border:1px solid rgba(255,255,255,.08)}
.emh-card.is-top{border-color:rgba(168,85,247,.55)}
.emh-media{position:relative;aspect-ratio:9/16;background:#000;overflow:hidden}
.emh-poster,.emh-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.emh-vid{opacity:0;transition:opacity .2s;pointer-events:none}
.emh-card.is-playing .emh-vid{opacity:1}
.emh-tag{position:absolute;left:10px;top:10px;padding:3px 9px;border-radius:999px;background:rgba(67,56,202,.92);color:#eef0ff;font:700 11px/1.3 Inter,system-ui,sans-serif}
.emh-tag.is-proven{background:rgba(22,101,52,.92);color:#eafff0}
.emh-insets{position:absolute;right:8px;bottom:8px;display:flex;align-items:center;gap:4px;padding:4px;border-radius:10px;background:rgba(8,8,14,.72)}
.emh-inset{margin:0;display:flex;flex-direction:column;align-items:center;gap:2px}
.emh-inset img{display:block;width:44px;height:58px;object-fit:cover;border-radius:6px;background:#000}
.emh-inset.is-guide img{object-fit:contain}
.emh-inset figcaption{font:600 9.5px/1.2 Inter,system-ui,sans-serif;color:#d6d4ea}
.emh-arrow{color:#c4b5fd;font:700 13px/1 Inter,system-ui,sans-serif;align-self:center;margin-top:-12px}
.emh-body{display:flex;flex-direction:column;gap:6px;padding:12px}
.emh-title{margin:0;font:700 16px/1.25 Inter,system-ui,sans-serif}
.emh-copy{margin:0;color:#a5a3bd;font:400 13px/1.4 Inter,system-ui,sans-serif;flex:1;min-height:calc(3 * 1.4em);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.emh-body .emh-cta{margin-top:6px;width:100%}
.emh-more{display:inline-block;margin-top:14px;color:#c4b5fd;font:600 14px/1.3 Inter,system-ui,sans-serif}
@media (max-width:900px){.emh{display:block}.emh-head{flex-direction:row;align-items:flex-end;justify-content:space-between}}
@media (max-width:640px){.emh{padding:14px}.emh-head{flex-direction:column;align-items:stretch}.emh-h{font-size:22px}.emh-headcta{width:100%}
 .emh-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:72%;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}.emh-card{scroll-snap-align:start}}
/* r3 (CLS): the presets-page mount reserves the rendered hero height before the script fills it (measured 645 px >= 901 px,
   803 px at 641-900 px; the card copy is clamped to exactly 3 lines so the height is deterministic). Phones (<= 640 px) render
   before first paint in the lab (CLS 0), so no reservation there. A failed load hides the slot. */
.emh-slot{margin:4px 0 28px;border-radius:16px}
.emh-slot:not(.emh){display:block}
.emh-slot:not(.emh){background:#101018;border:1px solid rgba(168,85,247,.18)}
@media (min-width:901px){.emh-slot{min-height:645px}}
@media (min-width:641px) and (max-width:900px){.emh-slot{min-height:803px}}

/* motion-previews-r4: the playing video sits 0.4% inside its poster so a late first frame never becomes a later (larger) LCP than the poster */
.emh-vid{transform:scale(.996)}

/* motion-studio-r4: Studio right panel when Motion is selected (owner 11-19). Same emh cards in a panel-width layout:
   head on top, the card grid below (fills the panel, new presets flow in), wide 16:9 results span two columns,
   a larger moving pose-guide inset beside the playing result, and "coming soon in Studio" cards. */
.emh.is-panel{display:block;margin:0 0 20px}
.emh.is-panel .emh-head{margin-bottom:18px}
.emh.is-panel .emh-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));align-items:start}
.emh.is-panel .emh-card.is-wide{grid-column:span 2}
.emh.is-panel .emh-card.is-wide .emh-media{aspect-ratio:16/9}
.emh.is-panel .emh-inset{position:relative}
.emh.is-panel .emh-inset.is-guide img{width:60px;height:106px}
.emh.is-panel .emh-inset.is-guide.is-wide img{width:120px;height:68px}
.emh-gvid{position:absolute;left:0;top:0;width:100%;height:calc(100% - 13px);object-fit:contain;border-radius:6px;background:#000;opacity:0;transition:opacity .2s;pointer-events:none}
.emh-card.is-playing .emh-gvid{opacity:1}
.emh-tag.is-soon{background:rgba(146,64,14,.94);color:#fff7ed}
.emh-note{margin:0;color:#fcd9b6;font:600 12px/1.35 Inter,system-ui,sans-serif}
.emh-cta.is-soon,.emh-cta.is-soon:hover{background:rgba(255,255,255,.04);color:#a5a3bd;border-color:rgba(255,255,255,.12);cursor:not-allowed;filter:none}
.emh-soonrow{margin-top:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}
.emh-soonhead{margin:0 0 8px;color:#b4b2cc;font:600 13px/1.3 Inter,system-ui,sans-serif}
.emh-soonlist{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.emh-soonchip{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:#e9e7f7;font:600 13px/1 Inter,system-ui,sans-serif;text-decoration:none}
a.emh-soonchip:hover{border-color:rgba(168,85,247,.6)}
a.emh-soonchip:focus-visible{outline:2px solid #a855f7;outline-offset:2px}
.emh-soonchip.is-soon{color:#a5a3bd}
.emh-soonmeta{font-weight:500;color:#8a88a3;margin-left:2px}
@media (max-width:640px){.emh.is-panel .emh-card.is-wide{grid-column:auto}.emh.is-panel .emh-grid{grid-auto-columns:78%}}
/* motion-studio-r4: with Motion selected the left panel keeps only the controls; the presets live in the right-panel landing */
html.smo-on body .tool-panel>:is([data-smo-pstrip],#smo-pstrip-x):not([hidden]){display:none!important}/* beats studio-motion-r2 :is(#id) show rule by one element */
/* motion-studio-r4: Moves picker as a compact list (no stand-alone stick-figure tiles) */
html.smo-on .smo-movegrid.is-compact{display:flex;flex-direction:column;gap:6px;grid-template-columns:none}
html.smo-on .smo-movegrid.is-compact .smo-move{display:flex;flex-direction:row;text-align:left;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;min-height:48px}
html.smo-on .smo-movegrid.is-compact .smo-movename{flex:1;min-width:0}
html.smo-on .smo-movegrid.is-compact .smo-secs{position:static;background:none;padding:0;color:#a5a3bd;font-weight:500}
html.smo-on .smo-movegrid.is-compact .smo-use{flex:none;width:auto;margin:0}
/* motion-studio-r4: <= 1100 px the Results pane shows only the Motion landing too (as the desktop right column already does) */
@media (max-width:1100px){html.smo-on #gb>:not(#smoLanding){display:none!important}html.smo-on #studio-results-panel>.gallery-head,html.smo-on #galleryFilterBar{display:none!important}}

/* motion-p4 (owner 11-20): the Motion graphics composer does not belong in the Motion (dance) tool view */
html.smo-on #hfStudioCompose{display:none!important}
/* media-fit-r1: robot centred in the 9:16 crop of the 16:9 Lunge & Reach result */
.emh-card[data-emh-preset="motion-lunge-reach"] :is(.emh-poster,.emh-vid){object-position:53% 50%}
