/* Scoped stage only: the production case keeps its own final hero design. */
:where(#site-motion-hero){position:relative;isolation:isolate;--ink:#111b2e;--blue:#2563eb;--line:#dce3ed}
:where(#site-motion-hero) [hidden]{display:none!important}
:where(#site-motion-hero).motion-ready{display:grid}
:where(#site-motion-hero).motion-ready > #motion-final,:where(#site-motion-hero).motion-ready > #motion-stage{grid-area:1/1;min-width:0}
:where(#site-motion-hero).is-playing > #motion-final{visibility:hidden;pointer-events:none}
:where(#site-motion-hero) #motion-stage{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;line-height:1.6}
:where(#site-motion-hero) #motion-stage,:where(#site-motion-hero) #motion-stage *{box-sizing:border-box}
:where(#site-motion-hero) :where(#motion-stage) :where(h2,h3,p){margin:0}
:where(#site-motion-hero) :where(#motion-stage) .container{width:100%;max-width:1200px;margin:auto;padding:0 1rem}
:where(#site-motion-hero) .motion-stage{display:none; position:relative; z-index:2; min-height:760px; overflow:hidden; isolation:isolate; background:#eef2f7; color:var(--ink); pointer-events:none;}
:where(#site-motion-hero).motion-ready .motion-stage{display:block;}
:where(#site-motion-hero).is-static .motion-stage{visibility:hidden;}
:where(#site-motion-hero) .motion-stage canvas{position:absolute; inset:0; display:block; width:100%; height:100%;}
:where(#site-motion-hero) .caption-window{position:absolute; inset:48px 0 auto; z-index:2; overflow:hidden; pointer-events:none;}
:where(#site-motion-hero) .caption{padding:0 8px;}
:where(#site-motion-hero) .eyebrow{display:flex; align-items:center; gap:12px; font-size:10px; line-height:1.6; font-weight:650; text-transform:uppercase; letter-spacing:.17em; margin-bottom:20px;}
:where(#site-motion-hero) .eyebrow::before{content:""; width:26px; height:2px; background:currentColor;}
:where(#site-motion-hero) .caption h2{font-size:clamp(44px,6vw,76px); font-weight:750; line-height:1.02; letter-spacing:-.05em;}
:where(#site-motion-hero) .caption h2 span{display:block;}
:where(#site-motion-hero) .caption p{max-width:740px; margin-top:20px; font-size:15px; line-height:1.6;}
:where(#site-motion-hero) .caption p strong{font-weight:650;}
:where(#site-motion-hero) .on-dark{color:#f4f8ff;}
:where(#site-motion-hero) .on-dark p{color:#b7c8e1;}
:where(#site-motion-hero) .on-light{color:#111b2e;}
:where(#site-motion-hero) .on-light p{color:#52627c;}
:where(#site-motion-hero) .caption--right h2{font-size:clamp(44px,6vw,76px);}
:where(#site-motion-hero) .scene-foot{position:absolute; bottom:22px; left:0; right:0; z-index:3; font-size:10px; color:#52627c; letter-spacing:.045em;}
:where(#site-motion-hero) .scene-foot .container{display:flex; justify-content:space-between; gap:12px;}
:where(#site-motion-hero) .closing{position:absolute; inset:0; z-index:4; background:#2059f5; color:#fff; display:flex; align-items:flex-start; transform:translateY(101%);}
:where(#site-motion-hero) .closing h2{font-size:clamp(48px,8vw,110px); line-height:.98; font-weight:750; letter-spacing:-.06em;}
:where(#site-motion-hero) .closing h2 span{display:block;}
:where(#site-motion-hero) .closing small{display:block; font-size:12px; margin-top:30px; color:#dbe6ff; letter-spacing:.08em;}
@media(max-width:680px){:where(#site-motion-hero) .motion-stage{min-height:850px;}
:where(#site-motion-hero) .caption-window{top:36px;}
:where(#site-motion-hero) .caption{padding:0;}
:where(#site-motion-hero) .caption h2,:where(#site-motion-hero) .caption--right h2{font-size:clamp(32px,8.6vw,46px);}
:where(#site-motion-hero) .caption p{font-size:14px; margin-top:18px; max-width:340px;}
:where(#site-motion-hero) .eyebrow{margin-bottom:18px; font-size:9px; letter-spacing:.12em;}
:where(#site-motion-hero) .scene-foot{bottom:17px;}
:where(#site-motion-hero) .scene-foot .container{flex-direction:column; gap:2px;}
:where(#site-motion-hero) .closing h2{font-size:clamp(48px,12vw,80px);}
}
@media(max-width:680px) and (max-height:760px){:where(#site-motion-hero) .caption-window{top:22px;}
:where(#site-motion-hero) .caption h2,:where(#site-motion-hero) .caption--right h2{font-size:clamp(30px,8vw,40px);}
:where(#site-motion-hero) .caption p{font-size:12px; margin-top:12px;}
:where(#site-motion-hero) .eyebrow{margin-bottom:12px;}
}
:where(#site-motion-hero) .mes-record{position:absolute;z-index:3;visibility:hidden;transform:translateY(45px) rotate(2deg);background:#fff;border:1px solid #d5e1ef;border-radius:9px;padding:26px 28px;color:#263b58;box-shadow:0 18px 45px #18345219;transition:transform .65s cubic-bezier(.2,.8,.2,1)}
:where(#site-motion-hero).is-playing .motion-stage[data-pose="11"] .mes-record{visibility:visible;transform:none}
:where(#site-motion-hero) .mes-record>small{display:block;font-size:11px;letter-spacing:.03em;color:#60738e}
:where(#site-motion-hero) .mes-record h3{font-size:25px;line-height:1.2;letter-spacing:-.025em;margin:8px 0 19px}
:where(#site-motion-hero) .mes-record>div{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 0;border-top:1px solid #dfe7f2;font-size:13px;line-height:1.5}
:where(#site-motion-hero) .mes-record>div>span{color:#60738e}
:where(#site-motion-hero) .mes-record b{font-weight:550;text-align:right}
:where(#site-motion-hero) .mes-record p{margin-top:15px;padding-top:14px;border-top:1px solid #c9e2d5;color:#2b805d;font-size:12px;line-height:1.5}
@media(max-width:680px){:where(#site-motion-hero) .mes-record{padding:19px 18px}
:where(#site-motion-hero) .mes-record>small{font-size:9px}
:where(#site-motion-hero) .mes-record h3{font-size:21px;margin-bottom:16px}
:where(#site-motion-hero) .mes-record>div{font-size:11px;line-height:1.45;gap:12px;padding:11px 0}
:where(#site-motion-hero) .mes-record>div>span{max-width:47%}
:where(#site-motion-hero) .mes-record b{max-width:51%}
:where(#site-motion-hero) .mes-record p{font-size:10px;line-height:1.5;margin-top:12px;padding-top:12px}
}
@media(prefers-reduced-motion:reduce){:where(#site-motion-hero) .mes-record{transition:none}
}
:where(#site-motion-hero).is-playing .motion-stage{pointer-events:auto;touch-action:pan-y pinch-zoom}
:where(#site-motion-hero) .motion-stage .caption h2{font-size:clamp(40px,5.4vw,68px);line-height:1.04;letter-spacing:-.045em}
:where(#site-motion-hero) .motion-stage .eyebrow{font-size:12px;letter-spacing:.035em;text-transform:none;font-weight:600;margin-bottom:22px}
:where(#site-motion-hero) .motion-stage .caption p{font-size:16px;line-height:1.65;max-width:720px}
:where(#site-motion-hero) .motion-stage[data-pose="6"] .caption-window{top:auto;bottom:26px;z-index:5;overflow:visible}
:where(#site-motion-hero) .motion-stage[data-pose="1"] .presentation-caption,:where(#site-motion-hero) .motion-stage[data-pose="2"] .presentation-caption,:where(#site-motion-hero) .motion-stage[data-pose="3"] .presentation-caption,:where(#site-motion-hero) .motion-stage[data-pose="10"] .presentation-caption,:where(#site-motion-hero) .motion-stage[data-pose="6"] .presentation-caption{color:#c1d3ef;border-color:#3b557b;background:#1b304f}
:where(#site-motion-hero) .motion-stage[data-pose="1"] .presentation-toggle,:where(#site-motion-hero) .motion-stage[data-pose="2"] .presentation-toggle,:where(#site-motion-hero) .motion-stage[data-pose="3"] .presentation-toggle,:where(#site-motion-hero) .motion-stage[data-pose="10"] .presentation-toggle,:where(#site-motion-hero) .motion-stage[data-pose="6"] .presentation-toggle{color:#c1d3ef}
:where(#site-motion-hero) .motion-stage[data-pose="1"] .presentation-dot[aria-current]::after,:where(#site-motion-hero) .motion-stage[data-pose="2"] .presentation-dot[aria-current]::after,:where(#site-motion-hero) .motion-stage[data-pose="3"] .presentation-dot[aria-current]::after,:where(#site-motion-hero) .motion-stage[data-pose="10"] .presentation-dot[aria-current]::after,:where(#site-motion-hero) .motion-stage[data-pose="6"] .presentation-dot[aria-current]::after{background:#d1e3ff}
@media(max-width:680px){:where(#site-motion-hero) .motion-stage .caption h2{font-size:clamp(30px,8vw,40px);line-height:1.07;letter-spacing:-.035em}
:where(#site-motion-hero) .motion-stage .caption p{font-size:15px;line-height:1.6;max-width:100%;margin-top:18px}
:where(#site-motion-hero) .motion-stage .eyebrow{font-size:11px;letter-spacing:.02em;margin-bottom:17px}
:where(#site-motion-hero) .mes-record>small{font-size:10px}
:where(#site-motion-hero) .mes-record>div{font-size:12px}
:where(#site-motion-hero) .mes-record p{font-size:11px}
:where(#site-motion-hero) .motion-stage[data-pose="6"] .caption-window{bottom:20px}
}

@media(prefers-reduced-motion:reduce){:where(#site-motion-hero) #motion-stage{display:none!important}}

/* Controls stay clickable through the visual caption layer and reserve their space on the closing frame. */
:where(#site-motion-hero) .motion-stage .motion-actions{pointer-events:auto;color:#526987}
:where(#site-motion-hero) .motion-stage:is([data-pose="1"],[data-pose="2"],[data-pose="3"],[data-pose="10"]) .motion-actions{color:#c1d3ef}
:where(#site-motion-hero) .motion-stage[data-pose="6"] .motion-actions{visibility:hidden;pointer-events:none}
