Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

13.1 KB
Raw Blame
.society-agent-symbol .agent-symbol-thoughts {
  opacity: 0;
  pointer-events: none;
}

/* Working replaces the face with three dots for the entire operation. */
.society-agent-symbol[data-thinking="true"] .agent-symbol-character {
  display: none;
}

.society-agent-symbol[data-thinking="true"] .agent-symbol-thoughts {
  opacity: 1;
}

.society-agent-symbol[data-thinking="true"] .agent-symbol-thoughts circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: agent-symbol-dot 0.9s ease-in-out infinite alternate;
}

.society-agent-symbol .agent-symbol-thoughts circle:nth-child(2) { animation-delay: -0.3s; }
.society-agent-symbol .agent-symbol-thoughts circle:nth-child(3) { animation-delay: -0.6s; }

@keyframes agent-symbol-dot {
  from { transform: translateY(1px) scale(0.8); opacity: 0.45; }
  to { transform: translateY(-1px) scale(1.1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .society-agent-symbol[data-thinking="true"] .agent-symbol-thoughts circle {
    animation: none;
    opacity: 1;
  }
}

/* Accessory motion: cheap compositor-only transforms on a few small shapes. */
.society-agent-symbol .agent-acc-smoke circle {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: agent-acc-smoke 3.2s ease-out infinite;
}
.society-agent-symbol .agent-acc-smoke circle:nth-child(even) { animation-name: agent-acc-smoke-left; }

@keyframes agent-acc-smoke {
  0% { transform: translate(0, 0) scale(0.35); opacity: 0; }
  14% { opacity: 0.7; }
  55% { transform: translate(1.6px, -6px) scale(1.15); opacity: 0.42; }
  100% { transform: translate(3.4px, -11px) scale(1.8); opacity: 0; }
}
@keyframes agent-acc-smoke-left {
  0% { transform: translate(0, 0) scale(0.3); opacity: 0; }
  14% { opacity: 0.6; }
  55% { transform: translate(-0.8px, -6.5px) scale(1.1); opacity: 0.38; }
  100% { transform: translate(1.2px, -12px) scale(1.7); opacity: 0; }
}

.society-agent-symbol .agent-acc-twinkle,
.society-agent-symbol .agent-acc-twinkle-late {
  transform-box: fill-box;
  transform-origin: center;
  animation: agent-acc-twinkle 3.6s ease-in-out infinite;
}
.society-agent-symbol .agent-acc-twinkle-late { animation-delay: 1.8s; }

@keyframes agent-acc-twinkle {
  0%, 68%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
  78% { transform: scale(1) rotate(45deg); opacity: 1; }
  88% { transform: scale(0.55) rotate(70deg); opacity: 0.6; }
}

.society-agent-symbol .agent-acc-ember {
  transform-box: fill-box;
  transform-origin: center;
  animation: agent-acc-ember 1.7s ease-in-out infinite;
}

@keyframes agent-acc-ember {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .society-agent-symbol .agent-acc-smoke circle { animation: none; opacity: 0; }
  .society-agent-symbol .agent-acc-twinkle,
  .society-agent-symbol .agent-acc-twinkle-late,
  .society-agent-symbol .agent-acc-ember { animation: none; }
  .society-agent-symbol .agent-acc-twinkle,
  .society-agent-symbol .agent-acc-twinkle-late { opacity: 0; }
}

/* Expressive eyes (AgentSymbol `expressive`): the open ellipse shows; the
   happy arc and the closed dash wait for a stage to animate between them. */
.society-agent-symbol .ae-eye,
.society-agent-symbol .ae-open {
  transform-box: fill-box;
  transform-origin: center;
}
.society-agent-symbol .ae-happy,
.society-agent-symbol .ae-shut {
  fill: none;
  stroke: #101014;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0;
}

/* The 3D figure (companion/ShapeFigure): a canvas at the face's size, with
   optional layers over it. It fades in once, when its first picture
   arrives; later pictures replace it without a flicker. */
.society-agent-figure {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
/* Everything that belongs to the body moves as one, a little out of step with every other figure
   (--agent-figure-delay). One loop: two breaths, a hop with squash and stretch, a wobble about the base.
   The pointer brings a hop at once. */
.society-agent-figure > .agent-figure-body {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 88%;
  animation: agent-figure-idle 7.2s ease-in-out infinite;
  animation-delay: var(--agent-figure-delay, 0ms);
}
@keyframes agent-figure-idle {
  0%, 20%, 40% { transform: translateY(0) rotate(0deg) scale(1, 1); }
  10%, 30% { transform: translateY(-2.4%) rotate(0deg) scale(0.985, 1.03); }
  46% { transform: translateY(1.6%) rotate(0deg) scale(1.08, 0.9); }
  54% { transform: translateY(-15%) rotate(0deg) scale(0.94, 1.09); }
  61% { transform: translateY(0) rotate(0deg) scale(1.07, 0.92); }
  67% { transform: translateY(0) rotate(0deg) scale(1, 1); }
  74% { transform: translateY(0) rotate(-6deg) scale(1, 1); }
  82% { transform: translateY(0) rotate(6deg) scale(1, 1); }
  89% { transform: translateY(0) rotate(-3deg) scale(1, 1); }
  95%, 100% { transform: translateY(0) rotate(0deg) scale(1, 1); }
}
:is(button, a, [role="button"], [role="tab"], li):hover > .society-agent-figure > .agent-figure-body,
:is(button, a, [role="button"], [role="tab"], li):hover :is(span, div) > .society-agent-figure > .agent-figure-body,
.society-agent-figure:hover > .agent-figure-body {
  animation: agent-figure-hop 0.6s cubic-bezier(0.3, 0.7, 0.4, 1), agent-figure-idle 7.2s ease-in-out 0.6s infinite;
}
@keyframes agent-figure-hop {
  0% { transform: translateY(0) rotate(0deg) scale(1, 1); }
  20% { transform: translateY(2%) rotate(0deg) scale(1.1, 0.88); }
  50% { transform: translateY(-18%) rotate(-4deg) scale(0.93, 1.1); }
  78% { transform: translateY(0) rotate(3deg) scale(1.08, 0.92); }
  100% { transform: translateY(0) rotate(0deg) scale(1, 1); }
}
/* The shadow stays on the ground: it shrinks and pales while the body is in the air. */
.society-agent-figure > .agent-figure-ground {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.3) 22%, rgb(0 0 0 / 0.16) 60%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  animation: agent-figure-ground 7.2s ease-in-out infinite;
  animation-delay: var(--agent-figure-delay, 0ms);
}
.society-agent-figure[data-ready="true"] > .agent-figure-ground { opacity: 1; }
@keyframes agent-figure-ground {
  0%, 46%, 61%, 100% { transform: scale(1); filter: opacity(1); }
  54% { transform: scale(0.74); filter: opacity(0.55); }
}
/* The picture and what is blended onto it: flowing colours meet the picture only, never the page behind. */
.agent-figure-body > .agent-figure-picture {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  isolation: isolate;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  opacity: 0;
  transition: opacity 0.18s ease-out;
}
.society-agent-figure[data-ready="true"] .agent-figure-picture { opacity: 1; }
.agent-figure-picture > canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.society-agent-figure > svg,
.agent-figure-body > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Living eyes: the pair glances about, each eye blinks; near the pointer the pair follows it instead
   (figureGaze.ts sets the two lengths). Lengths in em of one symbol unit. */
.agent-figure-body > .agent-figure-eyes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  animation: agent-figure-glance 6.4s ease-in-out infinite;
  animation-delay: var(--agent-figure-delay, 0ms);
}
.society-agent-figure[data-ready="true"] .agent-figure-eyes { opacity: 1; }
.agent-figure-body > .agent-figure-eyes[data-following="true"] {
  animation: none;
  transform: translate(var(--agent-look-x, 0), var(--agent-look-y, 0));
  transition: transform 0.14s ease-out;
}
.agent-figure-eyes > i {
  position: absolute;
  display: block;
}
.agent-figure-eyes > i > b {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: agent-figure-blink 3.8s ease-in-out infinite;
  animation-delay: var(--agent-figure-delay, 0ms);
}
@keyframes agent-figure-glance {
  0%, 10%, 26%, 44%, 60%, 78%, 100% { transform: translate(0, 0); }
  13%, 22% { transform: translate(-1.35em, 0.2em); }
  47%, 56% { transform: translate(1.25em, -0.45em); }
  81%, 92% { transform: translate(0.3em, -0.8em); }
}
@keyframes agent-figure-blink {
  0%, 40%, 48%, 84%, 90.5%, 94%, 100% { transform: scaleY(1); }
  44% { transform: scaleY(0.08); }
  87% { transform: scaleY(0.08); }
  92.2% { transform: scaleY(0.08); }
}
/* The pointer has found it: wide eyes for the hop. */
:is(button, a, [role="button"], [role="tab"], li):hover .agent-figure-eyes > i > b,
.society-agent-figure:hover .agent-figure-eyes > i > b {
  animation: agent-figure-wide 0.6s ease-out, agent-figure-blink 3.8s ease-in-out 0.6s infinite;
}
@keyframes agent-figure-wide {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.25, 1.3); }
}

/* A glowing design: a soft halo of its brightest colour breathes behind the figure. */
.society-agent-figure > .agent-figure-halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
  animation: agent-figure-halo 2.8s ease-in-out infinite alternate;
}
@keyframes agent-figure-halo {
  from { opacity: 0.22; transform: scale(0.94); }
  to { opacity: 0.5; transform: scale(1.04); }
}

/* Effects that move across the body: layers over the still picture, cut to the body's outline by a mask
   of the same picture and moved by transforms only. */
.agent-figure-picture > .agent-figure-flow,
.agent-figure-body > .agent-figure-shine,
.agent-figure-body > .agent-figure-inside {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.agent-figure-inside > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* A flowing design: the body is drawn white with its light and shade, and the colours are multiplied onto
   it, so they run over a lit volume. One gradient period spans the face; the strip moves by exactly one. */
.agent-figure-picture > .agent-figure-flow { mix-blend-mode: multiply; }
.agent-figure-flow > i {
  position: absolute;
  left: -150%;
  top: -150%;
  width: 400%;
  height: 400%;
}
.agent-figure-flow > i > b {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 125%;
  background-size: 20% 100%;
  background-repeat: repeat;
  animation: agent-figure-flow 7s linear infinite;
}
@keyframes agent-figure-flow {
  from { transform: translateX(0); }
  to { transform: translateX(-20%); }
}

/* A shimmering design: a soft band of light crosses the body and rests before the next pass. */
.agent-figure-shine > i {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.7), transparent);
  transform: translateX(0) skewX(-22deg);
  animation: agent-figure-shine 3.4s ease-in-out infinite;
}
@keyframes agent-figure-shine {
  0% { transform: translateX(0) skewX(-22deg); }
  55%, 100% { transform: translateX(490%) skewX(-22deg); }
}

@media (prefers-reduced-motion: reduce) {
  .agent-figure-body > .agent-figure-picture { transition: none; }
  .society-agent-figure > .agent-figure-body,
  .society-agent-figure > .agent-figure-ground,
  .agent-figure-body > .agent-figure-eyes,
  .agent-figure-eyes > i > b,
  .society-agent-figure > .agent-figure-halo,
  .agent-figure-flow > i > b { animation: none !important; }
  .agent-figure-shine > i { animation: none; transform: translateX(230%) skewX(-22deg); opacity: 0.5; }
}

/* At work (ShapeFigure `working`): the figure leans over what it does and nods in a typing rhythm,
   two short beats and a longer one, then lifts its head; its eyes stay on the work. The same motion
   a pixel creature has (companion/faceMotion.css). */
.society-agent-figure[data-working="true"] > .agent-figure-body {
  animation: agent-figure-work 2.6s cubic-bezier(0.45, 0, 0.3, 1) infinite;
  animation-delay: var(--agent-figure-delay, 0ms);
}
@keyframes agent-figure-work {
  0%, 100% { transform: translateY(1.5%) rotate(2.5deg) scale(1, 1); }
  9% { transform: translateY(4%) rotate(3.5deg) scale(1.012, 0.985); }
  18% { transform: translateY(1.5%) rotate(2.5deg) scale(1, 1); }
  27% { transform: translateY(4%) rotate(3.5deg) scale(1.012, 0.985); }
  36% { transform: translateY(1.5%) rotate(2.5deg) scale(1, 1); }
  48% { transform: translateY(4.5%) rotate(4deg) scale(1.016, 0.98); }
  62% { transform: translateY(1.5%) rotate(2.5deg) scale(1, 1); }
  78% { transform: translateY(-1.5%) rotate(-1.5deg) scale(0.994, 1.012); }
  90% { transform: translateY(-1.5%) rotate(-1.5deg) scale(0.994, 1.012); }
}
.society-agent-figure[data-working="true"] > .agent-figure-body > .agent-figure-eyes {
  animation: agent-figure-focus 2.6s cubic-bezier(0.45, 0, 0.3, 1) infinite;
  animation-delay: var(--agent-figure-delay, 0ms);
}
@keyframes agent-figure-focus {
  0%, 62%, 100% { transform: translate(0.2em, 0.8em); }
  78%, 90% { transform: translate(-0.3em, -0.3em); }
}
@media (prefers-reduced-motion: reduce) {
  .society-agent-figure[data-working="true"] > .agent-figure-body,
  .society-agent-figure[data-working="true"] > .agent-figure-body > .agent-figure-eyes { animation: none; }
}