/* 2026-11-06 (Hani): one small chat inside the sphere, no boxes. Sphere and rings below are approved, leave them as they are. */
.public-hero-art{display:flex;align-items:center;justify-content:center;perspective:none;min-height:0;padding-top:14px}
.public-hero canvas{display:none!important}
.public-hero{overflow:visible!important}
.ms-stage{position:relative;width:min(100%,470px);aspect-ratio:1/1;margin-inline:auto;isolation:isolate;direction:ltr}
.ms-orb{position:absolute;inset:-7% -7% 0;border:1px solid #9eb4ba7a;border-radius:50%;transform:rotate(-28deg) scaleY(.71);z-index:-1;animation:ms-a 64s linear infinite}
.ms-orb-b{inset:0 -10% 4%;transform:rotate(35deg) scaleY(.76);animation:ms-b 86s linear infinite}
@keyframes ms-a{to{transform:rotate(332deg) scaleY(.71)}}
@keyframes ms-b{to{transform:rotate(395deg) scaleY(.76)}}
.ms-sphere{position:absolute;inset:0;border-radius:50%;overflow:hidden;background:radial-gradient(ellipse at 28% 23%,#fff 0,#e1e9eb 24%,#adbec4 61%,#ecf2f2 84%,#afc1c8 100%);box-shadow:inset 0 0 0 1px #fff9,inset 10px 5px 26px #fff7,30px 45px 80px -65px #1c3a48}
.ms-sphere:before{content:"";position:absolute;inset:7%;border-radius:50%;border:1px solid #ffffff8a;border-bottom-color:#60798244;transform:rotate(-25deg);pointer-events:none}
@font-face{font-family:JetBrainsMono;src:url('/website/assets/mono.woff2') format('woff2');font-display:swap}
.ms-view{position:absolute;inset:0;overflow:hidden;border-radius:50%}

/* The words. The sphere stays light in both themes, so its ink stays dark in both. */
.ms-stage{--ms-ink:#14232b;--ms-soft:#2c4650;--ms-you:#18534e;--ms-line:#6f8a9457;--ms-red:#9e1f2a;--ms-calm:cubic-bezier(.35,.35,.45,1);--ms-glide:cubic-bezier(.42,0,.3,1)}
.ms-sphere{container-type:inline-size}
/* Everything is laid out from the first frame, hidden. Words only change opacity, so nothing can reflow. The block glides by transform alone. */
.ms-log{position:absolute;left:0;right:0;top:50%;display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--ms-ink);transition:transform 1500ms var(--ms-glide),opacity 900ms ease-in-out}
.ms-log.ms-gone{opacity:0}
.ms-log.ms-set{transition:none}
.ms-head{font:500 30px/1.18 var(--w-font-text);font-size:clamp(17px,6.4cqw,30px);letter-spacing:-.02em;white-space:nowrap}
.ms-text{display:inline-flex;align-items:center;gap:12px;gap:clamp(6px,2.55cqw,12px)}
.ms-sub{margin-top:5px;margin-top:clamp(2px,1.05cqw,5px);font:400 16px/1.35 var(--w-font-text);font-size:clamp(11.5px,4.2cqw,16.5px);letter-spacing:-.008em;color:var(--ms-soft);white-space:nowrap}
.ms-rows{width:260px;width:clamp(138px,55cqw,260px);margin-top:14px;margin-top:clamp(6px,3.3cqw,15px)}
.ms-row{display:flex;justify-content:space-between;align-items:center;height:30px;height:clamp(19px,7.4cqw,30px);border-top:1px solid var(--ms-line);font:400 14px/1 var(--w-font-text);font-size:clamp(10.5px,3.9cqw,14px);color:var(--ms-soft)}
.ms-row b{font:400 13px/1 var(--w-font-number);font-size:clamp(10px,3.6cqw,13px);color:var(--ms-ink)}
.ms-you{margin-top:14px;margin-top:clamp(6px,3.3cqw,15px);font:500 15px/1.3 var(--w-font-text);font-size:clamp(12px,4.2cqw,15.5px);color:var(--ms-you);white-space:nowrap}
.ms-ok{margin-top:12px;margin-top:clamp(5px,2.6cqw,12px);width:112px;width:clamp(76px,28cqw,112px);height:36px;height:clamp(23px,9cqw,36px);border-radius:100px;font:400 13px/1 var(--w-font-text);font-size:clamp(11px,4cqw,13px);display:flex;align-items:center;justify-content:center;color:#fafcfb;background:linear-gradient(180deg,#2c454e,#172c34);pointer-events:none}
.ms-red{color:var(--ms-red)}

/* The chat's logo, exactly: MiDashLogo size 18 draws the small spheres, each pulsing in a wave.
   It thinks at the heart of the big sphere, then steps aside and the reply comes out beside it, as beside the avatar in the chat. */
.ms-sphere svg.ms-logo{position:static;flex:none;display:block;width:18px;height:18px;margin:0;overflow:visible;--md-b0:#3d4246;--md-b1:#1d2023;--md-b2:#0a0b0c;--md-b3:#000;--md-glow:#cfd6da;--md-glow-a:.55;--md-glow-b:.16;--md-sheen:.36;opacity:0;transform:translateX(var(--ms-to,0));transition:opacity 700ms ease-in-out,transform 1000ms var(--ms-glide)}
.ms-log.ms-open svg.ms-logo{opacity:1}
.ms-log.ms-spoke svg.ms-logo{transform:none}
.ms-log.ms-set svg.ms-logo{transition:none}
.ms-logo .md-sphere{animation:md-live 2s ease-in-out infinite;animation-delay:calc(var(--i)*.15s)}
.ms-logo .md-sphere--centre{animation-name:md-live-centre;animation-delay:0s}
@keyframes md-live{0%,100%{opacity:1}50%{opacity:.3}}
@keyframes md-live-centre{0%,100%{opacity:1}50%{opacity:.62}}

/* Arrival. MiDash's words resolve one by one. Your line lands whole, as a sent message does. */
.ms-w{display:inline-block;opacity:0}
.ms-row,.ms-you,.ms-ok{opacity:0}
.ms-on .ms-w{animation:ms-word var(--t,760ms) var(--ms-calm) var(--d,0ms) both}
.ms-row.ms-on,.ms-you.ms-on,.ms-ok.ms-on{animation:ms-land var(--t,840ms) var(--ms-calm) var(--d,0ms) both}
@keyframes ms-word{from{opacity:0;filter:blur(3px);transform:translateY(.14em)}to{opacity:1;filter:none;transform:none}}
@keyframes ms-land{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

.ms-example{position:absolute;left:0;right:0;bottom:-5%;text-align:center;font:400 11px/1 var(--w-font-text);color:#4e656c}
html[data-theme=dark] .ms-example{color:#adbec4}
@media(prefers-reduced-motion:reduce){.ms-orb,.ms-logo .md-sphere{animation:none}.ms-log,.ms-sphere svg.ms-logo{transition:none}.ms-w,.ms-row,.ms-you,.ms-ok{opacity:1;animation:none!important}.ms-sphere svg.ms-logo{opacity:1;transform:none}}
@media(max-width:720px){.ms-stage{width:min(88%,330px);margin-top:18px}}
@media(max-width:360px){.ms-stage{width:96%}}

/* Keep the full exchange readable within the sphere. */
.ms-sub{max-width:76%;white-space:normal}
.ms-you{max-width:76%;white-space:normal}
.ms-question,.ms-reply{display:block}
.ms-reply{margin-top:5px;font-weight:400;font-size:.88em;color:var(--ms-soft)}
.ms-row b{font-family:var(--w-font-text);text-align:end}
.ms-ok{width:auto;min-width:100px;padding-inline:14px}
html[lang=ar] .ms-log{direction:rtl}
html[lang=ar] .ms-row span{unicode-bidi:plaintext}
.ms-rows{width:70cqw;max-width:330px}
.ms-row{gap:8px;font-size:clamp(10px,3.4cqw,14px)}
.ms-row>span,.ms-row>b{width:auto;flex:0 0 auto;white-space:nowrap}
.ms-row b{font-size:clamp(10px,3.3cqw,13px)}
.ms-head{font-size:clamp(16px,5.7cqw,28px)}

/* Softer silver in dark mode, with dark ink retained for contrast. */
html[data-theme=dark] .ms-sphere{background:radial-gradient(ellipse at 28% 23%,#bbc8cd 0,#a7b8bf 24%,#879faa 61%,#adbec5 84%,#89a2ac 100%);box-shadow:inset 0 0 0 1px #c0d1d440,inset 10px 5px 26px #b0c4c629,30px 45px 80px -65px #071318}
html[data-theme=dark] .ms-sphere:before{border-color:#bfd0d440;border-bottom-color:#526d7844}

.ms-speaker{display:block;font-size:10px;font-weight:600;line-height:1.3;margin-bottom:3px;color:var(--ms-you)}
.ms-reply-speaker{font-size:10px;font-weight:600;color:var(--ms-ink)}

.ms-rows-empty{height:0;margin:0}
.ms-reply{margin-top:10px;line-height:1.45}
.ms-reply-mark{display:inline-block;vertical-align:middle;margin-inline-end:5px}
.ms-sphere .ms-reply-mark svg.ms-logo{width:14px;height:14px;opacity:1;transform:none;transition:none}
.ms-reply-mark .md-sphere{animation:none}
.ms-sub{line-height:1.45}
.ms-row>span{unicode-bidi:plaintext}

/* Distinct speakers and separate turns, without chat bubbles. */
.ms-you{width:72%;max-width:72%;text-align:right;margin-top:16px}
.ms-speaker{font-size:11px;margin-bottom:4px}
.ms-reply{width:72%;max-width:72%;text-align:left;margin-top:14px;color:var(--ms-ink);font:400 clamp(11px,3.8cqw,15px)/1.45 var(--w-font-text);opacity:0}
.ms-reply.ms-on{animation:ms-land var(--t,840ms) var(--ms-calm) both}
.ms-reply-empty{height:0;margin:0}
.ms-log{transition:transform 1800ms var(--ms-glide),opacity 900ms ease-in-out}
.ms-log.ms-set{transition:none}
@media(prefers-reduced-motion:reduce){.ms-log{transition:none}}
@media(prefers-reduced-motion:reduce){.ms-reply{opacity:1;animation:none!important}}

/* User avatar leads the message, like MiDash's logo leads its reply. */
.ms-you{display:flex;align-items:flex-start;gap:7px;text-align:left}
.ms-user-avatar{display:inline-flex;flex:0 0 16px;margin-top:2px;color:var(--ms-you)}
.ms-user-avatar svg{position:static;display:block;width:16px;height:16px;max-width:none;transform:none;margin:0}
.ms-question{flex:1;min-width:0}

/* Hani: a quiet reply bubble, aligned with the data rows and using their text size. */
.ms-you{width:70cqw;max-width:330px;justify-content:flex-start;text-align:start;gap:6px;margin-top:14px;font:400 clamp(10px,3.4cqw,14px)/1.45 var(--w-font-text)}
.ms-question{flex:0 1 auto;padding:5px 8px;background:rgba(24,83,78,.065);border:1px solid rgba(24,83,78,.10);border-radius:12px;border-start-start-radius:3px}
.ms-reply{width:76%;max-width:76%;text-align:center;margin-top:12px;line-height:1.45}
.ms-reply-empty{margin:0;height:0}
.ms-user-avatar{margin-top:7px}

/* One quiet arrival for the reply. The bubble itself stays still. */
.ms-you.ms-on{animation:ms-user-arrives 420ms ease-out both}
@keyframes ms-user-arrives{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.ms-you.ms-on{opacity:1;animation:none!important}}

/* Clear consequences wrap without shrinking the data text. */
.ms-row-wrap{height:auto;min-height:clamp(19px,7.4cqw,30px);padding-block:3px}
.ms-row-wrap>b{flex:0 1 auto;min-width:0;white-space:normal;line-height:1.35}

/* Keep the comparison assumptions beside the illustrative figures. */
.ms-context{margin-bottom:4px;text-align:start;color:var(--ms-soft);font:400 clamp(10px,2.6cqw,12px)/1.35 var(--w-font-text);unicode-bidi:plaintext;opacity:0}
.ms-context.ms-on{animation:ms-land 840ms var(--ms-calm) both}
@media(prefers-reduced-motion:reduce){.ms-context{opacity:1;animation:none!important}}

/* Same brand teal as the trading desk heading, on the sphere’s silver surface. */
.ms-teal{color:var(--w-accent)}

/* A compact destination card in the conversation. */
.ms-ok.ms-destination-card{width:min(68cqw,220px);min-height:38px;height:auto;padding:9px 12px;border-radius:9px;justify-content:space-between;gap:16px;text-align:start}
.ms-card-label{font-weight:500}
.ms-card-open{font-size:.9em;color:inherit}

/* Destination names speak for themselves; the arrow supplies the affordance. */
.ms-card-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.ms-card-detail{font-size:.85em;line-height:1.35;color:inherit;font-weight:400}
.ms-card-arrow{font-size:20px;line-height:1;flex:none}
.ms-sub-empty{height:0;margin:0}
