/* Soft geometry and small, explanatory scenes. Every loop has a static fallback. */
:root { --radius: 24px; --radius-control: 11px; }
.code-window, .emotion-demo, .pricing-panel { border-radius: 24px; }
.memory-demo, .use-case-grid article, .case-select:after { border-radius: 22px; }
.button { border-radius: 11px; }
.code-result { border-radius: 12px; }
.mood-picker button, .emotion-scenarios button, .run-example, .memory-users button { border-radius: 8px; }
.billing-selector { border-radius: 12px; }
.billing-selector button { border-radius: 9px; }
.case-user { border-radius: 16px 16px 4px 16px; }

/* Partner marks keep their own identities and link to their public homepages. */
.partners-section { background: #efecf6; color: #1f1a3e; padding: 34px 0; }
.partners-inner { display: flex; align-items: center; gap: 50px; }
.partners-section h2 { flex: 0 0 135px; font-size: 17px; font-weight: 550; letter-spacing: -.025em; line-height: 1.5; }
.partner-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; flex: 1; }
.partner-logo { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 58px; border-radius: 10px; transition: background .2s; }
.partner-logo:hover { background: #ffffff99; }
.partner-logo:focus-visible { outline-color: #5b41c2; outline-offset: 5px; }
.partner-logo img { display: block; max-width: 100%; object-fit: contain; }
.partner-logo span { font-size: 19px; letter-spacing: -.045em; font-weight: 600; color: #26313e; }
.partner-openrouter { gap: 5px; flex-wrap: wrap; }
.partner-openrouter span { font-size: 16px; letter-spacing: -.04em; }
.partner-modal img { width: 134px; height: auto; }
.partner-runpod img { width: 123px; height: auto; }
.partner-aws img { width: 83px; height: 50px; }

/* Three product-specific miniatures, not three copies of the same reveal. */
.runtime-features { gap: 22px; }
.runtime-features article, .runtime-features article + article { border: 0; padding: 0; margin: 0; background: #2a2549; border-radius: 23px; overflow: hidden; display: flex; flex-direction: column; }
.feature-copy { padding: 27px; display: flex; flex-direction: column; flex: 1; }
.runtime-features .feature-copy h3 { font-size: 16px; }
.runtime-features .feature-copy p { max-width: none; margin-bottom: 20px; }
.runtime-features .feature-copy .text-link { margin-top: auto; padding-top: 2px; }
.feature-scene { position: relative; height: 193px; padding: 21px 23px; overflow: hidden; flex-shrink: 0; }
.scene-label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: inherit; }
.scene-label > i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.scene-conversation { background: #ffd8c3; color: #964419; }
.mini-message { position: relative; font-size: 13px; padding: 12px 14px; width: fit-content; max-width: 100%; }
.message-in { margin: 20px 0 11px auto; border-radius: 13px 13px 3px 13px; background: #faf8fd; color: #844827; animation: message-arrive 6s cubic-bezier(.16, 1, .3, 1) infinite; }
.message-out { display: flex; align-items: center; gap: 7px; border-radius: 13px 13px 13px 3px; background: #bc4f17; color: #faf8fd; animation: message-answer 6s cubic-bezier(.16, 1, .3, 1) infinite; }
.message-out .icon { width: 14px; height: 14px; }
.typing-dots { display: flex; gap: 4px; margin: 11px 0 0 14px; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: #b35c2c; animation: typing-beat 1.5s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
.scene-memory { background: #d4ede5; color: #2c6e5a; }
.context-note { display: flex; align-items: center; gap: 9px; background: #effef9; border-radius: 11px; padding: 15px 11px; position: relative; margin-top: 24px; font-size: 12.5px; }
.context-note .icon { width: 15px; height: 15px; flex-shrink: 0; }
.context-check { margin-left: auto; color: #117255; animation: context-saved 5s ease-in-out infinite; }
.context-track { width: 1px; height: 90px; background: #53988266; position: absolute; left: 41px; top: 91px; }
.context-tracer { position: absolute; top: 0; left: -2px; width: 5px; height: 16px; border-radius: 4px; background: #308068; animation: context-travel 5s cubic-bezier(.4, 0, .2, 1) infinite; }
.context-recall { position: relative; display: flex; gap: 12px; align-items: center; margin: 28px 0 0 14px; font-size: 12px; }
.recall-dot { width: 10px; height: 10px; border-radius: 50%; background: #338369; outline: 5px solid #d4ede5; animation: recall-beat 5s ease-in-out infinite; }
.scene-tone { background: #e3def2; color: #654fbf; }
.signal-wave { height: 76px; display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 10px; }
.signal-wave i { width: 5px; height: 15px; border-radius: 5px; background: #8471d0; transform-origin: center; animation: signal-breathe 3s ease-in-out infinite; }
.signal-wave i:nth-child(3n) { height: 32px; animation-delay: -.6s; }
.signal-wave i:nth-child(4n) { height: 45px; animation-delay: -1.2s; background: #9587d0; }
.signal-wave i:nth-child(5n) { height: 56px; animation-delay: -1.8s; background: #6954bb; }
.signal-wave i:nth-child(7n) { height: 65px; animation-delay: -2.4s; }
.tone-labels { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 9px; font-size: 12px; }
.tone-labels .icon { width: 15px; height: 15px; }
.tone-result { border-radius: 20px; background: #c6bde1; color: #33277b; padding: 6px 10px; animation: tone-understood 6s ease-in-out infinite; }
.runtime-motion-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; color: #b6aecb; font-size: 12.5px; }
.motion-toggle { align-items: center; gap: 9px; color: #d8cfef; font-size: 12.5px; min-height: 38px; padding: 8px 12px; border: 1px solid #aba0c94d; border-radius: 9px; }
.motion-toggle:hover { background: #ffffff0a; }
.motion-toggle:disabled { cursor: default; opacity: .8; }
.motion-toggle-icon { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.motion-toggle[aria-pressed=true] .motion-toggle-icon { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

@keyframes message-arrive { 0%, 7% { transform: translateY(7px); opacity: .75; } 17%, 92% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(7px); opacity: .75; } }
@keyframes message-answer { 0%, 24% { transform: translateY(9px); opacity: .7; } 40%, 90% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(9px); opacity: .7; } }
@keyframes typing-beat { 0%, 70%, 100% { transform: translateY(0); opacity: .4; } 35% { transform: translateY(-3px); opacity: 1; } }
@keyframes context-saved { 0%, 16%, 100% { opacity: .3; } 26%, 84% { opacity: 1; } }
@keyframes context-travel { 0%, 25% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 64% { transform: translateY(62px); opacity: 1; } 70%, 100% { transform: translateY(62px); opacity: 0; } }
@keyframes recall-beat { 0%, 55%, 100% { transform: scale(.75); } 68%, 86% { transform: scale(1.15); } }
@keyframes signal-breathe { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes tone-understood { 0%, 20%, 100% { background: #d1cae5; } 45%, 85% { background: #b5a8da; } }

/* CSS alone stays still; JS opts visible scenes in. Global pause includes all scenes. */
.motion-scene .motion-loop { animation-play-state: paused; }
.js .motion-scene.is-in-view .motion-loop, .js .motion-scene.is-in-view.motion-loop { animation-play-state: running; }
.motion-paused .motion-loop, .page-inactive .motion-loop, .reduced-motion .motion-loop { animation-play-state: paused !important; }
html:not(.js) .motion-loop { animation: none; }
html:not(.js) .context-tracer { display: none; }

@media (max-width: 1100px) {
  .partners-inner { gap: 25px; }
  .partners-section h2 { flex-basis: 112px; font-size: 15px; }
  .partner-logos { gap: 20px; }
  .partner-openrouter span { font-size: 16px; }
  .partner-openrouter img { width: 25px; height: 25px; }
  .partner-azure span { font-size: 17px; }
  .feature-copy { padding: 24px 21px; }
  .feature-scene { padding-inline: 18px; }
  .context-note { font-size: 12px; gap: 5px; padding-inline: 9px; }
  .context-track { left: 35px; }
  .context-recall { font-size: 11.5px; margin-left: 12px; gap: 9px; }
  .mini-message { font-size: 12.5px; padding: 11px; }
  .signal-wave { gap: 4px; }
}
@media (max-width: 800px) {
  .partners-inner { flex-direction: column; gap: 19px; }
  .partners-section { padding-block: 28px; }
  .partners-section h2 { flex-basis: auto; font-size: 14px; text-align: center; }
  .partners-section h2 br { display: none; }
  .partner-logos { width: 100%; gap: 16px; }
  .runtime-features { gap: 15px; }
  .feature-copy { padding: 22px 18px; }
  .runtime-features .feature-copy h3 { font-size: 14px; }
  .runtime-features .feature-copy p { font-size: 12.5px; }
  .runtime-features .feature-copy .text-link { font-size: 12px; }
  .feature-scene { padding-inline: 14px; height: 185px; }
  .scene-label { font-size: 11px; }
  .mini-message { font-size: 12px; padding: 10px; }
  .message-out { gap: 5px; }
  .message-out .icon { width: 11px; height: 11px; flex-shrink: 0; }
  .context-note { font-size: 11.5px; padding: 12px 8px; }
  .context-note .icon { width: 12px; height: 12px; }
  .context-note .context-check { display: none; }
  .context-track { left: 31px; top: 82px; }
  .context-recall { font-size: 11.5px; align-items: flex-start; }
  .recall-dot { flex-shrink: 0; margin-top: 3px; }
  .signal-wave { gap: 3px; }
  .signal-wave i { width: 4px; }
  .tone-labels { gap: 6px; font-size: 11px; }
  .tone-result { padding-inline: 7px; }
}
@media (max-width: 560px) {
  .partner-logos { grid-template-columns: repeat(6, 1fr); gap: 14px 10px; max-width: 380px; }
  .partner-logos li { grid-column: span 2; }
  .partner-logos li:nth-child(4) { grid-column: 2 / span 2; }
  .partner-logo { min-height: 45px; gap: 5px; }
  .partner-logo span { font-size: 16px; }
  .partner-openrouter { flex-direction: column; gap: 3px; }
  .partner-openrouter span { font-size: 12.5px; }
  .partner-openrouter img { width: 23px; height: 23px; }
  .partner-aws img { width: 69px; height: 42px; }
  .partner-azure img { width: 25px; height: 25px; }
  .partner-modal img { width: 108px; }
  .partner-runpod img { width: 101px; }
  .runtime-features { grid-template-columns: 1fr; gap: 22px; }
  .feature-scene { padding: 22px 26px; height: 194px; }
  .feature-copy { padding: 24px 26px 27px; }
  .runtime-features .feature-copy h3 { font-size: 17px; }
  .runtime-features .feature-copy p { font-size: 13.5px; }
  .runtime-features .feature-copy .text-link { font-size: 13px; }
  .scene-label { font-size: 12px; }
  .mini-message { font-size: 13px; padding: 11px 14px; }
  .message-in { margin-top: 20px; }
  .message-out { gap: 8px; }
  .message-out .icon { width: 14px; height: 14px; }
  .context-note { font-size: 12.5px; padding: 14px 12px; gap: 10px; }
  .context-note .icon { width: 16px; height: 16px; }
  .context-note .context-check { display: block; }
  .context-track { left: 43px; top: 90px; }
  .context-recall { font-size: 12px; gap: 12px; }
  .signal-wave { gap: 6px; }
  .signal-wave i { width: 5px; }
  .tone-labels { font-size: 12.5px; gap: 14px; }
  .tone-result { padding-inline: 12px; }
  .runtime-motion-note { flex-direction: column; align-items: flex-start; gap: 10px; }
  .code-window, .emotion-demo, .pricing-panel { border-radius: 20px; }
}
@media (min-width: 561px) and (max-width: 680px) {
  .partner-openrouter { flex-direction: column; gap: 2px; }
  .partner-openrouter span { font-size: 13px; }
  .partner-logos { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-loop { animation: none !important; }
  .context-tracer { display: none; }
  .partner-logo { transition: none; }
}

/* One expressive material, shared by the response bridge and the feeling studio. */
.emotion-art { position: relative; isolation: isolate; }
.emotion-art canvas, .art-fallback { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.emotion-art canvas { opacity: 0; }
.emotion-art.art-ready canvas { opacity: 1; }
.emotion-art.art-ready .art-fallback { visibility: hidden; }
.conversation-grid { grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr); gap: 15px; padding-block: 29px 37px; }
.emotion-bridge { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.bridge-art { width: 170px; height: 180px; }
.bridge-caption { font-family: var(--serif); font-style: italic; color: #925438; font-size: 18px; line-height: 1.15; text-align: center; max-width: 155px; margin-top: -6px; }
.emotion-demo[data-feeling=excited] .bridge-caption { color: #b44007; }
.emotion-demo[data-feeling=uncertain] .bridge-caption { color: #604bb6; }
.emotion-demo[data-comparing=true] .bridge-caption { color: #645c81; }
.emotion-demo.is-processing .flamify-response { opacity: .55; filter: none; }

.developer-layout { grid-template-columns: 1.15fr 1fr; gap: 86px; }
.feeling-studio { --feeling-color: #cfbefc; width: 100%; max-width: 530px; min-width: 0; justify-self: center; }
.feeling-studio[data-feeling=joy] { --feeling-color: #ffd0ac; }
.feeling-studio[data-feeling=curiosity] { --feeling-color: #aae4d4; }
.studio-topline { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; color: #c6bede; padding: 0 2px; }
.studio-hint { color: #b3aaca; font-size: 11.5px; text-align: right; }
.studio-art { width: 100%; aspect-ratio: 1.3; margin-block: 6px 16px; }
.art-caption { position: absolute; bottom: 0; left: 0; width: 100%; text-align: center; color: #ece8f6; font-size: clamp(22px, 2.8vw, 37px); letter-spacing: -.035em; font-weight: 400; pointer-events: none; }
.art-caption em { font-family: var(--serif); font-size: 1.45em; font-weight: 400; color: var(--feeling-color); transition: color .35s; }
.feeling-selector { align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
.feeling-selector button { display: flex; align-items: center; justify-content: center; gap: 8px; color: #c8c0df; font-size: 12.5px; padding: 9px 14px; border-radius: 20px; border: 1px solid #aba0c940; min-height: 38px; transition: background .2s, border-color .2s; }
.feeling-selector button:hover { border-color: #cab7ffb3; }
.feeling-selector button[aria-pressed=true] { background: #9487c72b; border-color: var(--feeling-color); color: #f9f6ff; }
.feeling-selector button > span { width: 7px; height: 7px; border-radius: 50%; background: #b9a7eb; }
.feeling-selector [data-feeling=joy] > span { background: #ffba8b; }
.feeling-selector [data-feeling=curiosity] > span { background: #83d1bb; }
.studio-response { border-top: 1px solid #aba0c940; padding-top: 21px; }
.studio-quote { min-height: 54px; font-size: 17px; line-height: 1.6; color: #e5e1f0; max-width: 390px; margin: 0 auto 20px; text-align: center; letter-spacing: -.02em; }
.studio-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid #aba0c925; }
.studio-code code { font-size: 12px; color: #bfb6d6; }
.studio-code code > span { margin-inline: 6px; color: #a499c4; }
.studio-code strong { color: var(--feeling-color); font-weight: 400; }
.studio-code > span { font-size: 11.5px; color: #b2a8cc; }
.developer-copy { min-width: 0; }

@media (max-width: 1100px) {
  .conversation-grid { grid-template-columns: minmax(0, 1fr) 134px minmax(0, 1fr); gap: 12px; }
  .bridge-art { width: 146px; height: 169px; }
  .bridge-caption { font-size: 17px; max-width: 125px; }
  .developer-layout { column-gap: 55px; }
  .studio-hint { max-width: 110px; }
  .studio-quote { font-size: 16px; }
  .studio-code { flex-wrap: wrap; row-gap: 7px; }
}
@media (max-width: 800px) {
  .conversation-grid { grid-template-columns: 1fr; gap: 10px; }
  .emotion-bridge { flex-direction: row; gap: 14px; justify-content: center; margin-block: -12px 5px; }
  .bridge-art { width: 128px; height: 117px; }
  .bridge-caption { font-size: 21px; text-align: left; margin: 0; max-width: 160px; }
  .developer-layout { grid-template-columns: 1fr; gap: 44px; }
  .developer-copy { order: -1; max-width: 530px; justify-self: center; width: 100%; }
  .developer-copy h2 { font-size: 38px; }
  .developer-copy .section-description { font-size: 14px; }
  .plain-checks { font-size: 13px; }
  .studio-hint { max-width: none; }
  .art-caption { font-size: 34px; }
}
@media (max-width: 560px) {
  .conversation-grid { padding: 27px 23px; }
  .emotion-bridge { gap: 8px; margin-block: -4px 8px; }
  .bridge-art { width: 114px; height: 109px; }
  .bridge-caption { max-width: 126px; font-size: 19px; }
  .developer-layout { gap: 34px; }
  .developer-copy h2 { font-size: 33px; }
  .developer-copy .section-description { font-size: 13.5px; }
  .plain-checks { font-size: 12.5px; }
  .studio-topline { font-size: 11.5px; }
  .studio-hint { max-width: 95px; font-size: 11px; }
  .studio-art { margin-top: 12px; aspect-ratio: 1.18; }
  .art-caption { font-size: 29px; }
  .feeling-selector { gap: 6px; margin-bottom: 21px; }
  .feeling-selector button { padding: 9px 13px; font-size: 12px; min-height: 40px; }
  .studio-quote { font-size: 16px; min-height: 52px; }
  .studio-code code { font-size: 11.5px; }
  .studio-code > span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .art-caption em, .feeling-selector button { transition: none; }
}
