/* Act II: native scroll assembles a face-on, circular planetary system. */
.orbit-story{height:235svh;position:relative;background:#f1eee8}
.orbit-story .problems{position:sticky;top:0;height:100svh;min-height:660px;padding:106px var(--g) 20px;overflow:hidden}
.orbit-story .label{margin-bottom:22px;padding-top:15px}
.orbit-story .intro{align-items:center}.orbit-story .intro h2{font-size:clamp(28px,3vw,42px);line-height:1.5}
.orbit-story .intro>p{font-size:12px}
.orbit-story .problem-universe{width:min(44svh,460px);height:min(44svh,460px);min-height:0;margin:4px auto 0;position:relative}
.orbit-map{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#8c94b4;stroke-width:1}
.inner-orbit{opacity:calc(var(--assembly,0) * .25)}.outer-orbit{opacity:calc(var(--assembly,0) * .13)}
.main-orbit{stroke:#737c9f;stroke-width:1.6;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--connection,0));opacity:var(--connection,0)}
.ai-sun{position:absolute;left:50%;top:50%;width:65px;height:65px;transform:translate(-50%,-50%) scale(calc(.8 + var(--assembly,0)*.2));display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fbfbfa,#afb7d9 55%,#828cb3);box-shadow:0 0 40px #8a96c83d;opacity:calc(.35 + var(--assembly,0)*.65);color:#3c4360}
.ai-sun>span{font-family:var(--serif);font-size:23px}.ai-sun>small{font-family:Arial,sans-serif;font-size:4px;letter-spacing:.12em;margin-top:3px}
.orbit-node{position:absolute;left:var(--nx);top:var(--ny);transform:translate(-50%,-50%) rotate(var(--nr));width:85px;text-align:center;will-change:left,top;z-index:2}
.orbit-node img{width:65px;height:65px;object-fit:contain;display:block;margin:auto;filter:saturate(.7);drop-shadow:none}
.orbit-node>span{display:block;font-size:11px;margin-top:3px;font-weight:600;color:#484f6b}
.orbit-node>small{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);display:block;white-space:nowrap;font-size:9px;color:#756b83;background:#faf9f6cf;border:1px solid #fff7;padding:4px 9px;border-radius:20px;opacity:calc(1 - var(--assembly,0)*.3)}
.orbit-story .bridge{font-size:clamp(20px,2.3vw,31px);padding-top:0;opacity:var(--promise,0);transform:translateY(calc((1 - var(--promise,0))*15px));line-height:1.7}
.orbit-scroll{text-align:center;font:7px Arial,sans-serif;letter-spacing:.17em;color:#7c8299;margin-top:15px;opacity:calc(1 - var(--promise,0)*.8)}
.node-0{--nx:16%;--ny:20%;--nr:-14deg}.node-1{--nx:83%;--ny:17%;--nr:12deg}.node-2{--nx:14%;--ny:77%;--nr:8deg}.node-3{--nx:85%;--ny:83%;--nr:-9deg}
/* Retain two spacious cards, then give the information-selection demo a wide canvas. */
.card[data-card="notification"]{grid-column:1/-1;min-height:610px}
.card[data-card="reply"]{min-height:610px}
.demo-reply{height:340px;overflow:visible}.demo-notification{height:340px;width:min(680px,100%);margin:auto;overflow:hidden}
.card[data-card="reply"] .detail,.card[data-card="notification"] .detail{padding-top:15px;padding-bottom:20px}
.card[data-card="reply"].open .demo,.card[data-card="notification"].open .demo{transform:translateY(-20px)}
.character{position:absolute;width:37%;height:260px;left:0;bottom:10px;z-index:2}
.character>img{width:100%;height:240px;object-fit:contain;image-rendering:pixelated;object-position:50% 100%;transform-origin:50% 100%}
.character-label{display:block;text-align:center;font-size:9px;color:#676f8d;margin-top:7px}
.character-speech{position:absolute;top:14px;left:48%;width:142px;padding:12px;background:#fdfcfb;border:1px solid #c9cee4;border-radius:14px 14px 14px 2px;font-size:12px;line-height:1.7;box-shadow:0 5px 20px #747da31a;opacity:0;transform:translateY(6px) scale(.9)}
.social-thread{position:absolute;right:5%;top:37px;width:57%;background:#fffafcdb;border:1px solid #fff;border-radius:14px;padding:14px 13px;box-shadow:0 10px 35px #535a7610}
.social-header{display:flex;align-items:center;gap:10px;border-bottom:1px solid #ebe8df;padding-bottom:10px;font-size:10px;color:#695d76}.social-header>b{font-size:21px;font-weight:400;color:#302934}.social-header>span:last-child{margin-left:auto}
.social-comment,.social-answer{display:flex;gap:7px;font-size:9px;line-height:1.65;padding-top:13px;position:relative}.social-avatar{width:23px;height:23px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:#e7e3d9;color:#777e9b;font:9px Arial,sans-serif}
.social-comment b,.social-answer b{font-size:9px;font-weight:500}.social-comment small{color:#a297ab;font-size:7px}.social-comment p,.social-answer p{font-size:10px;line-height:1.8;margin-top:4px}.social-actions{display:block;font-size:12px;color:#9298af;margin-top:5px;letter-spacing:.15em}
.social-answer{border-top:1px solid #ece9e0;margin-top:6px;opacity:0;transform:translateY(7px)}.social-answer small{font-size:8px;color:#8c93af;display:block;margin-top:5px}.ai-avatar{background:#929bbe;color:white}.typing{display:flex;gap:4px;position:absolute;bottom:25px;left:44px}.typing i{width:4px;height:4px;border-radius:50%;background:#a2aac8;opacity:.45}
.card:is(.open,.demo-active) .character>img{animation:assistant-nod .7s ease-in-out 1.1s 2}
.card:is(.open,.demo-active) .character-speech{animation:assistant-says .5s ease .85s forwards}
.card:is(.open,.demo-active) .social-answer{animation:comment-arrives .5s ease 1.8s forwards}
.card:is(.open,.demo-active) .typing{animation:typing-done .2s linear 1.7s forwards}
.card:is(.open,.demo-active) .typing i{animation:typing-pulse .5s ease-in-out 3 alternate}.card:is(.open,.demo-active) .typing i:nth-child(2){animation-delay:.15s}.card:is(.open,.demo-active) .typing i:nth-child(3){animation-delay:.3s}
.card:is(.open,.demo-active) .social-comment{animation:incoming-glow 1.5s ease forwards}
.notification-field{position:relative;width:100%;height:330px}
.message-item{position:absolute;display:flex;align-items:center;gap:7px;padding:8px 11px;min-width:84px;border:1px solid #e6e3d9;border-radius:11px;background:#fbfaf8bb;color:#a2a0ad;box-shadow:0 4px 12px #64717d05;z-index:1}
.message-item>span{font-size:18px;line-height:1}.message-item>small{font-size:9px}.message-item>i{position:absolute;top:-4px;right:-3px;width:9px;height:9px;background:#a0a6bc;border:2px solid #f5f4f0;border-radius:50%;opacity:0}
.msg-0{left:4%;top:10px;transform:rotate(-9deg)}.msg-1{left:20%;top:57px;transform:rotate(3deg)}.msg-2{right:24%;top:5px;transform:rotate(-5deg)}.msg-3{right:3%;top:52px;transform:rotate(7deg)}.msg-4{right:20%;top:105px;transform:rotate(-4deg)}.msg-5{left:3%;top:135px;transform:rotate(-5deg)}.msg-6{left:32%;top:10px;transform:rotate(4deg)}.msg-7{right:0;top:155px;transform:rotate(8deg)}
.delivery-lines{position:absolute;inset:0;width:100%;height:330px;fill:none;z-index:0}.delivery{stroke:#707db2;stroke-width:1.8;stroke-dasharray:1;stroke-dashoffset:1;opacity:0}
.filter-caption{position:absolute;left:50%;top:169px;translate:-50% 0;white-space:nowrap;font-size:10px;color:#82708e;background:#fff;padding:3px 8px;z-index:1;opacity:0}
.message-destination{position:absolute;top:220px;left:50%;transform:translateX(-50%);width:330px;max-width:88%;min-height:95px;background:#fffc;border:1px solid #fff;border-radius:15px;padding:15px;display:flex;gap:13px;box-shadow:0 10px 30px #6067851a;z-index:2}
.destination-icon{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#a2abd1,#8e99c5);display:grid;place-items:center;flex-shrink:0}.destination-icon svg{width:30px;fill:none;stroke:white;stroke-width:1.7}.destination-copy>b{font-size:10px;font-weight:500}.delivered{font-size:9px;line-height:1.8;margin-top:4px;color:#666c82;opacity:0;transform:translateY(5px)}.delivered span{font-size:5px;color:#8b94b7}.delivery-badge{position:absolute;right:-5px;top:-7px;border-radius:50%;width:22px;height:22px;background:#7783b3;color:white;display:grid;place-items:center;font:11px Arial,sans-serif;opacity:0;transform:scale(.7)}
.card:is(.open,.demo-active) .message-item:not(.selected){animation:background-mail 1s ease .5s forwards}
.card:is(.open,.demo-active) .message-item.selected{animation:selected-mail 1s ease .4s forwards}
.card:is(.open,.demo-active) .selected>i{animation:comment-arrives .3s ease .7s forwards}
.card:is(.open,.demo-active) .delivery-a{animation:draw-delivery 1s ease-in-out 1.2s forwards}.card:is(.open,.demo-active) .delivery-b{animation:draw-delivery 1s ease-in-out 1.7s forwards}
.card:is(.open,.demo-active) .filter-caption{animation:comment-arrives .5s ease .7s forwards}
.card:is(.open,.demo-active) .delivered.first{animation:comment-arrives .4s ease 2.1s forwards}.card:is(.open,.demo-active) .delivered.second{animation:comment-arrives .4s ease 2.7s forwards}.card:is(.open,.demo-active) .delivery-badge{animation:comment-arrives .3s ease 2.9s forwards}
/* Scroll reveals enhance existing, readable content; no-JS keeps all steps visible. */
.steps.motion-ready li{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease;transition-delay:var(--step-delay,0ms)}
.steps.motion-ready li.revealed{opacity:1;transform:none}
.steps.motion-ready li>span{display:block;transform:translateY(10px);transition:transform .85s ease;transition-delay:var(--step-delay,0ms)}.steps.motion-ready li.revealed>span{transform:none}
@keyframes assistant-nod{50%{transform:translateY(-6px) rotate(-2deg)}}
@keyframes assistant-says{to{opacity:1;transform:none}}
@keyframes comment-arrives{to{opacity:1;transform:none}}
@keyframes typing-pulse{to{opacity:1;transform:translateY(-3px)}}
@keyframes typing-done{to{opacity:0}}
@keyframes incoming-glow{45%{background:#eeebe4}100%{background:transparent}}
@keyframes background-mail{to{opacity:.35}}
@keyframes selected-mail{to{color:#535f8d;border-color:#8f9bc9;background:#f9f8f6;box-shadow:0 0 20px #7e8bbf47}}
@keyframes draw-delivery{0%{opacity:1}100%{opacity:1;stroke-dashoffset:0}}
@media(min-width:701px) and (max-height:740px){.orbit-story .problems{padding-top:96px}.orbit-story .label{margin-bottom:16px}.orbit-story .intro h2{font-size:29px}.orbit-story .problem-universe{width:42svh;height:42svh}.orbit-story .bridge{font-size:24px}.orbit-scroll{margin-top:8px}.orbit-node img{width:53px;height:53px}.orbit-node>small{font-size:8px}}
@media(max-width:1000px){.social-thread{right:3%;width:60%;padding:11px 9px}.character{width:39%;left:-2%}.character-speech{width:112px;left:40%;top:4px;font-size:10px;padding:10px}.social-comment p,.social-answer p{font-size:9px}.social-comment small{display:none}.card[data-card="reply"]{min-height:620px}}
@media(max-width:700px){.orbit-story{height:235svh}.orbit-story .problems{padding:96px 24px 18px;min-height:650px}.orbit-story .label{margin-bottom:25px}.orbit-story .label>span:last-child{max-width:150px;text-align:right}.orbit-story .intro h2{font-size:28px}.orbit-story .intro>p{display:none}.orbit-story .problem-universe{width:min(80vw,350px);height:min(80vw,350px);margin:20px auto 0}.orbit-node{width:66px}.orbit-node img{width:50px;height:50px}.orbit-node>span{font-size:10px}.orbit-node>small{font-size:8px;padding:4px 6px;top:calc(100% + 2px)}.ai-sun{width:53px;height:53px}.ai-sun>span{font-size:20px}.orbit-story .bridge{font-size:22px;margin-top:30px}.orbit-scroll{font-size:6px;margin-top:16px}.card[data-card="notification"]{grid-column:auto;min-height:625px}.card[data-card="reply"]{min-height:625px}.demo-reply{height:345px}.demo-notification{height:350px}.character{width:36%;left:0;bottom:6px}.character>img{height:212px}.character-speech{left:35%;top:3px;width:110px;font-size:10px;padding:9px}.character-label{font-size:8px}.social-thread{width:61%;right:3%;top:49px;padding:10px}.social-header{font-size:9px;gap:7px}.social-header>b{font-size:18px}.social-avatar{width:19px;height:19px;font-size:7px}.social-comment,.social-answer{gap:5px}.social-comment b,.social-answer b{font-size:8px}.social-comment p,.social-answer p{font-size:9px}.social-answer small{font-size:7px}.social-comment{padding-top:12px}.message-item{padding:7px 8px;min-width:65px;gap:5px}.message-item>span{font-size:17px}.message-item>small{font-size:8px}.msg-0{left:3%;top:17px}.msg-1{left:12%;top:73px}.msg-2{right:10%;top:13px}.msg-3{right:0;top:65px}.msg-4{right:13%;top:123px}.msg-5{left:0;top:151px}.msg-6{left:35%;top:2px;display:none}.msg-7{right:0;top:167px}.filter-caption{top:192px;font-size:9px}.message-destination{top:237px;padding:12px;gap:9px;max-width:91%;min-height:92px}.destination-icon{width:32px;height:32px;border-radius:9px}.destination-icon svg{width:25px}.destination-copy>b{font-size:9px}.delivered{font-size:8px}.delivery-lines{height:350px}.steps.motion-ready li{transition-delay:0ms}}
@media(max-width:360px){.orbit-story .intro h2{font-size:26px}.orbit-story .problem-universe{margin-top:25px}.orbit-story .bridge{font-size:20px}.orbit-node>small{font-size:7px}.character-speech{left:27%;width:100px;font-size:9px}.social-thread{padding:8px;width:62%}.social-comment p,.social-answer p{font-size:8px}.social-avatar{display:none}.card[data-card="reply"] .card-toggle h3{font-size:25px}}
@media(prefers-reduced-motion:reduce){.orbit-story{height:auto}.orbit-story .problems{position:relative;height:auto;min-height:650px}.steps.motion-ready li{opacity:1;transform:none}.character-speech,.social-answer,.delivered,.filter-caption,.delivery-badge{opacity:1;transform:none}.typing{display:none}.message-item.selected{color:#535f8d;border-color:#8f9bc9;background:#f9f8f6}.delivery{stroke-dashoffset:0;opacity:1}}
.motion-paused .orbit-story{height:auto}.motion-paused .orbit-story .problems{position:relative;height:auto;min-height:650px}.motion-paused .steps li{opacity:1;transform:none}
/* Keep the speaking balloon above the assistant's face. */
.character>img{position:absolute;bottom:20px;left:0;height:205px}
.character-label{position:absolute;bottom:0;width:100%}
.character-speech{left:8%;top:-10px;width:145px}
@media(max-width:700px){.character>img{height:190px}.character-speech{left:5%;top:5px;width:118px;font-size:10px}}
@media(max-width:360px){.character-speech{width:105px;font-size:9px;left:0}}
.orbit-story .problem-universe{width:min(53svh,480px);height:min(53svh,480px)}
.orbit-story .bridge{margin-top:20px}
@media(min-width:701px) and (max-height:740px){.orbit-story .problem-universe{width:50svh;height:50svh}.orbit-story .bridge{margin-top:14px}}
@media(max-width:700px){.orbit-story .problem-universe{width:min(80vw,350px);height:min(80vw,350px)}.orbit-story .bridge{margin-top:35px}}
@media(max-width:700px) and (max-height:740px){
 .orbit-story .problems{padding-top:85px;min-height:0}
 .orbit-story .label{margin-bottom:18px}
 .orbit-story .intro h2{font-size:25px}
 .orbit-story .problem-universe{width:min(70vw,34svh);height:min(70vw,34svh);margin-top:18px}
 .orbit-node img{width:41px;height:41px}.orbit-node>span{font-size:9px}.orbit-node>small{font-size:7px;padding:3px 5px}
 .orbit-story .bridge{font-size:20px;margin-top:25px;line-height:1.7}.orbit-scroll{margin-top:10px}
}
