/* Native, lightweight motion: no video, remote requests, or animation library. */
.creator-animation { padding: 72px 0 82px; background: #f3f0e9; border-top: 1px solid var(--line); }
.ca-heading { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin-bottom: 32px; }
.ca-heading .eyebrow { color: var(--accent); margin-bottom: 15px; }
.ca-heading h2 { font-size: clamp(30px,3.3vw,44px); line-height: 1.55; margin: 0; letter-spacing: -.025em; }
.ca-heading h2 em { color: var(--accent); font-style: normal; }
.ca-heading > p { font-size: 18px; line-height: 1.95; color: var(--muted); margin: 0 0 4px; }
.ca-workbench { border: 1px solid #d8d5ca; border-radius: 16px; background: #fffdf9; box-shadow: 0 16px 38px #2c34200b; overflow: hidden; }
.ca-workbench *, .ca-workbench *::before, .ca-workbench *::after { box-sizing: border-box; }
.ca-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 25px; border-bottom: 1px solid #deded4; background: #eeede6; }
.ca-window-label { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #65705d; font-weight: 600; letter-spacing: .04em; }
.ca-window-dots { display: flex; gap: 5px; }
.ca-window-dots i { width: 7px; height: 7px; background: #c3c6b7; border-radius: 50%; }
.ca-window-dots i:first-child { background: #d88868; }
.ca-mode { font-size: 12px; color: #65705d; border: 1px solid #cbd0bf; border-radius: 20px; padding: 3px 9px; white-space: nowrap; }
.ca-request { display: flex; gap: 17px; align-items: center; padding: 22px 28px; border-bottom: 1px solid #e8e5da; background: #fff9ef; }
.ca-request > span:first-child { flex-shrink: 0; font-size: 13px; color: #a55937; padding: 4px 9px; border: 1px solid #e4c5af; border-radius: 4px; }
.ca-request p { margin: 0; font-size: 18px; line-height: 1.8; flex: 1; }
.ca-request-arrow { font-size: 30px; color: var(--accent); }
.ca-studio { display: grid; grid-template-columns: 170px minmax(0,1fr) 285px; gap: 25px; padding: 30px 28px; align-items: start; }
.ca-studio > * { min-width: 0; }
.ca-agent { text-align: center; padding-top: 30px; }
.ca-agent-illustration { position: relative; width: 166px; height: 185px; margin: 0 auto 20px; }
.ca-agent-halo { position: absolute; width: 156px; height: 156px; border-radius: 50%; background: #f7e6d5; left: 5px; top: 10px; }
.ca-robot { position: absolute; width: 100px; height: 130px; left: 33px; top: 18px; }
.ca-antenna { position: absolute; left: 47px; top: -8px; height: 19px; width: 5px; background: #6b755f; }
.ca-antenna i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); top: -6px; left: -3px; box-shadow: 0 0 0 5px #d3653930; }
.ca-robot-head { position: relative; top: 8px; width: 100px; height: 73px; background: #fffdf6; border: 2px solid #697360; border-radius: 24px; box-shadow: inset 0 -5px 0 #eae9df; }
.ca-ear { position: absolute; width: 9px; height: 24px; top: 22px; background: #c2cbb5; border: 2px solid #697360; }
.ca-ear-left { left: -9px; border-radius: 5px 0 0 5px; }
.ca-ear-right { right: -9px; border-radius: 0 5px 5px 0; }
.ca-robot-face { width: 72px; height: 44px; background: #303c35; position: absolute; left: 12px; top: 12px; border-radius: 14px; }
.ca-robot-face > i { position: absolute; top: 12px; width: 7px; height: 12px; border-radius: 5px; background: #d8eab9; }
.ca-robot-face > i:first-child { left: 19px; }
.ca-robot-face > i:nth-child(2) { right: 19px; }
.ca-robot-face > span { position: absolute; width: 16px; height: 6px; border-bottom: 2px solid #d8eab9; border-radius: 0 0 50% 50%; left: 28px; top: 26px; }
.ca-robot-body { width: 74px; height: 47px; position: absolute; left: 13px; top: 78px; background: #bcc6af; border: 2px solid #697360; border-radius: 15px 15px 8px 8px; }
.ca-robot-body > span { display: inline-block; font-size: 13px; color: #414d37; font-weight: 700; margin-top: 7px; }
.ca-hand { position: absolute; width: 20px; height: 30px; background: #fffdf6; border: 2px solid #697360; border-radius: 12px; top: 92px; }
.ca-hand-left { left: -3px; transform: rotate(-20deg); }
.ca-hand-right { right: -3px; transform: rotate(20deg); }
.ca-laptop { position: absolute; width: 108px; height: 60px; left: 29px; top: 112px; border: 2px solid #737767; border-radius: 7px 7px 2px 2px; background: #e4e7da; transform: perspective(150px) rotateX(-8deg); box-shadow: inset 0 0 0 4px #eeefe8; }
.ca-laptop > span { color: var(--accent); font-size: 30px; display: block; line-height: 56px; }
.ca-desk { position: absolute; width: 140px; height: 5px; border-radius: 5px; left: 13px; top: 173px; background: #a8b198; }
.ca-spark { position: absolute; color: var(--accent); }
.ca-spark-one { top: 10px; right: 2px; font-size: 26px; }
.ca-spark-two { top: 65px; left: 4px; font-size: 22px; }
.ca-agent h3 { font-size: 21px; margin: 0 0 9px; }
.ca-agent-status { display: flex; gap: 7px; align-items: center; justify-content: center; font-size: 14px; color: #617048; margin: 0 0 13px; }
.ca-agent-status > i { width: 7px; height: 7px; background: #859c64; border-radius: 50%; }
.ca-agent-message { color: #788168; font-size: 14px; line-height: 1.85; margin: 0; }
.ca-editor { border: 1px solid #dedfd3; background: #fff; border-radius: 9px; padding: 20px; }
.ca-editor-heading { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.ca-doc-icon { background: #f5e6d9; color: var(--accent); display: grid; place-items: center; width: 34px; height: 39px; border-radius: 5px; font-size: 24px; flex-shrink: 0; }
.ca-editor-heading > div { min-width: 0; flex: 1; }
.ca-overline { color: #849074; font-size: 10px; letter-spacing: .08em; display: block; }
.ca-editor-heading h3 { font-size: 19px; margin: 1px 0 0; line-height: 1.6; }
.ca-editor-state { font-size: 12px; color: #6b7b52; padding: 3px 6px; background: #eef2e4; border-radius: 4px; white-space: nowrap; }
.ca-pipeline { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 0; margin: 0 0 18px; }
.ca-pipeline li { font-size: 11px; color: #7b826f; border-top: 2px solid #e1e5d8; padding-top: 7px; }
.ca-pipeline li > span { display: block; font-size: 10px; margin-bottom: 3px; }
.ca-pipeline li.is-done { border-color: #a7b78f; color: #6e8056; }
.ca-pipeline li.is-current { border-color: var(--accent); color: #ac4a27; font-weight: 700; }
.ca-document { background: #faf9f5; border: 1px solid #e8e5dc; border-radius: 5px; padding: 16px; min-height: 265px; }
.ca-document-meta { display: flex; justify-content: space-between; gap: 10px; color: #8c9183; font-size: 11px; margin-bottom: 16px; }
.ca-document-meta > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ca-document h4 { font-size: 18px; line-height: 1.8; margin: 0 0 12px; }
.ca-written-copy { font-size: 15px; line-height: 1.95; white-space: pre-line; color: #66705d; margin: 0; min-height: 125px; }
.ca-caret { display: none; width: 2px; height: 16px; background: var(--accent); vertical-align: -2px; margin-left: 3px; }
.ca-typing-indicator { display: flex; gap: 3px; align-items: center; }
.ca-typing-indicator > i { width: 4px; height: 4px; border-radius: 50%; background: #9eab8e; }
.ca-save-line { min-height: 22px; font-size: 12px; margin-top: 14px; color: #798c5d; }
.ca-progress-row { display: flex; justify-content: space-between; font-size: 12px; color: #798568; margin: 14px 0 8px; }
.ca-progress { height: 4px; background: #e9eadd; border-radius: 4px; overflow: hidden; }
.ca-progress > span { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 4px; }
.ca-deliverables-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; gap: 5px; }
.ca-deliverables-heading h3 { font-size: 17px; margin: 0; }
.ca-deliverables-heading > span { font-size: 13px; color: #929a84; }
.ca-deliverables-heading b { color: var(--accent); font-size: 22px; }
.ca-file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ca-file { padding: 12px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid #d6dfca; border-radius: 7px; background: #f1f5e8; transition: background .35s, border-color .35s; }
.ca-file > div { flex: 1; min-width: 0; }
.ca-file-type { width: 36px; flex-shrink: 0; text-align: center; padding: 7px 0; font-size: 8px; font-weight: 700; color: #6c7b54; background: #e1e9d3; border-radius: 4px; }
.ca-file h4 { font-size: 15px; margin: 0 0 5px; line-height: 1.6; }
.ca-file p { font-size: 12px; line-height: 1.8; color: #6f7c5d; margin: 0 0 5px; min-height: 22px; }
.ca-file-name { font-size: 9px; color: #98a186; overflow-wrap: anywhere; }
.ca-file-status { font-size: 10px; color: #738b51; white-space: nowrap; padding-top: 2px; }
.ca-workbench.is-enhanced .ca-file[data-state="queued"] { background: #fafaf5; border-color: #e5e5da; }
.ca-workbench.is-enhanced .ca-file[data-state="queued"] .ca-file-type { background: #eeeee5; color: #a1a58f; }
.ca-workbench.is-enhanced .ca-file[data-state="queued"] .ca-file-status { color: #929981; }
.ca-workbench.is-enhanced .ca-file[data-state="working"] { background: #fff8ee; border-color: #dba984; }
.ca-workbench.is-enhanced .ca-file[data-state="working"] .ca-file-status { color: var(--accent); }
.ca-file[data-state="done"] .ca-file-status::before { content: '✓ '; }
.ca-footer { background: #f3f3eb; padding: 17px 28px; border-top: 1px solid #e0e2d6; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ca-footer p { font-size: 15px; color: #637155; margin: 0; line-height: 1.7; }
.ca-footer-star { color: var(--accent); margin-right: 8px; font-size: 21px; vertical-align: -1px; }
.ca-motion-toggle { flex-shrink: 0; background: #fffdf8; color: #566548; border: 1px solid #cdd4c0; border-radius: 5px; padding: 8px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.ca-motion-toggle:hover { background: #e8edde; }
.ca-motion-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ca-motion-toggle[hidden] { display: none; }
/* CSS motion runs only while the JS timeline is actually running. */
.ca-workbench.is-running .ca-robot { animation: ca-think 2.4s ease-in-out infinite; }
.ca-workbench.is-running .ca-robot-face > i { animation: ca-blink 4.5s infinite; }
.ca-workbench.is-running .ca-hand-left { animation: ca-type-left .42s ease-in-out infinite alternate; }
.ca-workbench.is-running .ca-hand-right { animation: ca-type-right .42s .2s ease-in-out infinite alternate; }
.ca-workbench.is-running .ca-antenna i { animation: ca-light 1.6s ease-in-out infinite; }
.ca-workbench.is-running .ca-spark { animation: ca-float 2.8s ease-in-out infinite; }
.ca-workbench.is-running .ca-spark-two { animation-delay: -1.4s; }
.ca-workbench.is-running .ca-typing-indicator i { animation: ca-dot 1s ease-in-out infinite; }
.ca-workbench.is-running .ca-typing-indicator i:nth-child(2) { animation-delay: .15s; }
.ca-workbench.is-running .ca-typing-indicator i:nth-child(3) { animation-delay: .3s; }
.ca-workbench.is-running[data-phase="writing"] .ca-caret { display: inline-block; animation: ca-cursor .7s step-end infinite; }
.ca-workbench:not(.is-running) * { animation-play-state: paused !important; }
@keyframes ca-think { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
@keyframes ca-blink { 0%,43%,47%,100% { transform: scaleY(1); } 45% { transform: scaleY(.1); } }
@keyframes ca-type-left { to { transform: translateY(-5px) rotate(-26deg); } }
@keyframes ca-type-right { to { transform: translateY(-5px) rotate(26deg); } }
@keyframes ca-light { 50% { box-shadow: 0 0 0 8px #d3653910; } }
@keyframes ca-float { 50% { transform: translateY(-7px) rotate(20deg); } }
@keyframes ca-dot { 50% { transform: translateY(-3px); opacity: .4; } }
@keyframes ca-cursor { 50% { opacity: 0; } }
@media (max-width: 1100px) {
  .ca-studio { grid-template-columns: 140px minmax(0,1fr) 250px; gap: 18px; padding: 26px 20px; }
  .ca-agent-illustration { transform: scale(.85); transform-origin: center; margin-left: -13px; margin-bottom: 0; }
  .ca-editor { padding: 15px; }
  .ca-file { padding: 10px; gap: 7px; }
}
@media (max-width: 900px) {
  .ca-studio { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
  .ca-agent { grid-column: 1 / -1; display: flex; text-align: left; align-items: center; gap: 25px; padding: 0; }
  .ca-agent-illustration { transform: scale(.64); transform-origin: left center; width: 110px; height: 125px; margin: -25px 0 -10px; flex-shrink: 0; }
  .ca-agent-status { justify-content: flex-start; margin-bottom: 5px; }
  .ca-agent-message br { display: none; }
  .ca-heading { gap: 25px; }
  .ca-heading > p { font-size: 16px; }
}
@media (max-width: 640px) {
  .creator-animation { padding: 45px 0 50px; }
  .ca-heading { display: block; }
  .ca-heading h2 { font-size: 30px; }
  .ca-heading > p { margin-top: 20px; }
  .ca-toolbar { padding: 14px; flex-wrap: wrap; gap: 8px; }
  .ca-window-label { font-size: 11px; gap: 9px; }
  .ca-mode { font-size: 10px; }
  .ca-request { padding: 17px; gap: 10px; flex-wrap: wrap; }
  .ca-request > span:first-child { font-size: 11px; }
  .ca-request p { font-size: 16px; flex-basis: 100%; }
  .ca-request-arrow { display: none; }
  .ca-studio { grid-template-columns: minmax(0,1fr); padding: 20px 14px; gap: 20px; }
  .ca-agent { gap: 16px; }
  .ca-agent h3 { font-size: 20px; }
  .ca-agent-message { font-size: 12px; }
  .ca-editor-heading h3 { font-size: 18px; }
  .ca-document { min-height: 280px; padding: 13px; }
  .ca-written-copy { font-size: 15px; }
  .ca-file-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ca-file { display: block; position: relative; padding: 11px; }
  .ca-file-type { display: inline-block; margin-bottom: 9px; font-size: 8px; width: 36px; }
  .ca-file h4 { font-size: 14px; }
  .ca-file p { min-height: 44px; font-size: 11px; }
  .ca-file-status { position: absolute; top: 15px; right: 9px; }
  .ca-footer { padding: 15px; flex-wrap: wrap; gap: 10px; }
  .ca-footer p { font-size: 13px; }
}
