/* Agent campaign demo: one shared image atlas, three presentation densities. */
.agent-demo,.agent-story{--agent-ink:var(--text);--agent-accent:var(--aap-primary,#C6F36B);--agent-panel:var(--aap-surface,var(--surface));--agent-atlas:url('assets/images/product.webp');position:relative;overflow:hidden;isolation:isolate}
.agent-story.agent-scene{display:grid;grid-template-columns:34% 66%;height:560px;padding:0;background:var(--agent-panel);border-radius:20px;align-items:center;color:var(--agent-ink)}
.agent-story-copy{position:relative;z-index:3;padding:0 0 20px 52px;pointer-events:none}.agent-eyebrow{display:block;color:var(--muted);font-size:12px;letter-spacing:.08em;margin-bottom:23px}.agent-story-copy h2{font-size:clamp(30px,3.1vw,46px);font-weight:550;line-height:1.3;letter-spacing:-1.7px;margin:0}.agent-story-copy p{color:var(--muted);font-size:14px;line-height:1.8;margin:23px 0 35px}.agent-story-link{display:inline-flex;align-items:center;gap:24px;font-size:13px;font-weight:550;color:var(--blue);pointer-events:auto}.agent-story-link span{font-size:20px}
.agent-artboard{position:relative;height:100%;min-width:0;perspective:1200px;--agent-x:0px;--agent-y:0px}.agent-halo{position:absolute;inset:6% -20% -20% -20%;background:radial-gradient(ellipse at 50% 60%,color-mix(in srgb,var(--agent-accent) 16%,transparent),transparent 65%);pointer-events:none}
.agent-artworks{position:absolute;inset:0;display:block;transform:translate(var(--agent-x,0px),var(--agent-y,0px));transition:transform .45s ease-out;pointer-events:none}
.agent-shot,.agent-revision,.agent-source-picture{display:block;background-image:var(--agent-atlas);background-size:150% 100%;background-repeat:no-repeat;background-color:#d0d3be}
.agent-shot,.agent-revision{position:absolute;width:36%;aspect-ratio:1;border-radius:12px;box-shadow:0 24px 50px -18px #0006;transition:transform 1.2s cubic-bezier(.22,.8,.2,1),opacity .9s ease,filter 1s ease;will-change:transform,opacity}
.agent-shot--coast{background-position:85% 50%;left:5%;top:28%;transform:rotate(-11deg);z-index:1}.agent-shot--botanical{background-position:75% 50%;left:34%;top:19%;transform:rotate(1deg);z-index:2}.agent-shot--studio{background-position:95% 50%;left:61%;top:34%;transform:rotate(11deg);z-index:3}.agent-revision{background-position:85% 50%;left:5%;top:28%;transform:rotate(-11deg);z-index:4;opacity:0}
.agent-source{position:absolute;top:13%;left:6%;display:flex;align-items:center;gap:9px;color:var(--muted);font-size:10px;transition:opacity .65s,transform .8s;z-index:2}.agent-source-picture{width:44px;height:44px;border-radius:7px;background-position:0 0;box-shadow:0 4px 15px #0001}.agent-beam{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:var(--agent-accent);stroke-width:1.3;opacity:.6;mask-image:linear-gradient(#000,transparent 70%);transition:opacity .8s}.agent-beam path{stroke-dasharray:4 9;animation:agent-flow 2.6s linear infinite}.agent-beam circle{display:none}
.agent-direction{position:absolute;top:77%;left:12%;width:74%;text-align:center;color:var(--muted);font-size:11px;letter-spacing:.05em;transition:opacity .6s}.agent-direction>span{padding:0 12px;opacity:.45}.agent-complete{position:absolute;top:78%;left:0;right:0;text-align:center;color:var(--muted);font-size:11px;opacity:0;transition:opacity .8s}.agent-complete>span{color:var(--blue);margin-right:7px}
.agent-conversation{position:absolute;bottom:9%;left:-4%;right:3%;height:46px;z-index:5;pointer-events:none}.agent-request,.agent-adjustment{position:absolute;left:50%;top:0;transform:translate(-50%,0);display:flex;align-items:center;gap:12px;white-space:nowrap;max-width:100%;font-size:12px;padding:14px 22px;border-radius:50px;background:color-mix(in srgb,var(--agent-panel) 86%,var(--bg));color:var(--text);box-shadow:0 5px 30px #00000012;backdrop-filter:blur(14px);transition:opacity .65s,transform .8s}.agent-adjustment{opacity:0;transform:translate(-50%,10px)}.agent-spark{color:var(--blue);font-size:16px;line-height:1}
.agent-story-controls{position:absolute;left:34px;right:23px;bottom:17px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:6;color:var(--muted);font-size:10px}.agent-playback{display:grid;place-items:center;width:28px;height:28px;background:transparent;border:0;border-radius:50%;color:var(--muted);cursor:pointer}.agent-playback svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}.agent-playback:hover{color:var(--blue);background:color-mix(in srgb,var(--agent-accent) 9%,transparent)}.agent-playback:disabled{opacity:.4;cursor:default}.agent-playback:focus-visible,.agent-story-link:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
/* State transitions describe the work instead of decorative indefinite motion. */
[data-agent-step="0"] .agent-shot,[data-agent-step="0"] .agent-source,[data-agent-step="0"] .agent-beam,[data-agent-step="0"] .agent-direction{opacity:0;transform:translateY(32px) scale(.78)}
[data-agent-step="1"] .agent-shot{opacity:0;transform:translate(-110px,-30px) scale(.45)}
[data-agent-step="0"] .agent-shot--botanical,[data-agent-step="1"] .agent-shot--botanical{transition-delay:.1s}[data-agent-step="0"] .agent-shot--studio,[data-agent-step="1"] .agent-shot--studio{transition-delay:.2s}
[data-agent-step="2"] .agent-shot--botanical{transition-delay:.16s}[data-agent-step="2"] .agent-shot--studio{transition-delay:.32s}
[data-agent-step="1"] .agent-direction{opacity:0}[data-agent-step="2"] .agent-source,[data-agent-step="3"] .agent-source,[data-agent-step="4"] .agent-source{opacity:.5}
[data-agent-step="3"] .agent-request,[data-agent-step="4"] .agent-request{opacity:0;transform:translate(-50%,-12px)}[data-agent-step="3"] .agent-adjustment,[data-agent-step="4"] .agent-adjustment{opacity:1;transform:translate(-50%,0)}
[data-agent-step="4"] .agent-revision{opacity:1;transform:rotate(-7deg) translateY(-8px)}[data-agent-step="4"] .agent-shot--coast{opacity:0}[data-agent-step="4"] .agent-direction{opacity:0}[data-agent-step="4"] .agent-complete{opacity:1}[data-agent-step="3"] .agent-beam,[data-agent-step="4"] .agent-beam{opacity:.15}
[data-agent-running="false"] .agent-beam path{animation-play-state:paused}
@keyframes agent-flow{to{stroke-dashoffset:-52}}
/* Compact cards reuse the same composition and campaign; no miniature UI. */
.agent-demo--compact.menu-agent,.agent-demo--compact.agent-visual{display:block;background:var(--agent-panel);color:var(--text);position:relative}
.agent-compact-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 70%,color-mix(in srgb,var(--agent-accent) 17%,transparent),transparent 80%)}
.agent-demo--compact .agent-artworks{inset:0}.agent-demo--compact .agent-shot,.agent-demo--compact .agent-revision{width:43%;border-radius:6px;box-shadow:0 12px 20px -12px #0008;aspect-ratio:1}.agent-demo--compact .agent-shot--coast,.agent-demo--compact .agent-revision{left:2%;top:33%;transform:rotate(-13deg)}.agent-demo--compact .agent-shot--botanical{left:28.5%;top:24%;transform:rotate(0)}.agent-demo--compact .agent-shot--studio{left:55%;top:35%;transform:rotate(13deg)}
.agent-compact-prompt{position:absolute;top:11%;left:0;right:0;display:flex;justify-content:center;gap:7px;align-items:center;font-size:9px;color:var(--muted);z-index:5;white-space:nowrap}.agent-compact-prompt .agent-spark{font-size:12px}.agent-compact-caption{position:absolute;bottom:7%;left:0;right:0;text-align:center;font-size:10px;color:var(--muted);z-index:5}.menu-agent .agent-compact-caption{display:none}.menu-agent .agent-shot,.menu-agent .agent-revision{width:35%}.menu-agent .agent-shot--coast,.menu-agent .agent-revision{left:12%;top:33%}.menu-agent .agent-shot--botanical{left:33%;top:25%}.menu-agent .agent-shot--studio{left:54%;top:34%}.agent-demo--compact[data-agent-step="4"] .agent-revision{transform:rotate(-9deg) translateY(-2px)}
@media(max-width:1100px){.agent-story.agent-scene{height:500px;grid-template-columns:35% 65%}.agent-story-copy{padding-left:35px}.agent-story-copy h2{font-size:34px}.agent-story-copy p{font-size:12px}.agent-conversation{left:-14%;right:0}.agent-request,.agent-adjustment{font-size:11px;padding:13px 18px}}
@media(max-width:760px){.agent-story.agent-scene{height:470px;grid-template-columns:38% 62%}.agent-story-copy{padding-left:25px}.agent-story-copy h2{font-size:28px;letter-spacing:-1px}.agent-eyebrow{font-size:10px;margin-bottom:15px}.agent-story-copy p{font-size:11px;max-width:150px}.agent-story-link{font-size:12px;gap:10px}.agent-story-controls{left:25px}.agent-conversation{left:-37%;right:0}.agent-source{top:18%}.agent-artworks .agent-shot,.agent-artworks .agent-revision{border-radius:8px}}
@media(max-width:640px){.agent-story.agent-scene{display:block;height:540px;border-radius:12px}.agent-story-copy{position:absolute;top:26px;left:0;right:0;padding:0 24px;pointer-events:none}.agent-eyebrow{font-size:10px;letter-spacing:.04em;margin-bottom:12px}.agent-story-copy h2{font-size:29px;line-height:1.3;letter-spacing:-1.2px}.agent-story-copy p{font-size:11px;margin:12px 0 0;max-width:none}.agent-story-link{position:absolute;right:24px;top:11px;font-size:11px;gap:8px}.agent-story-link span{font-size:16px}.agent-artboard{position:absolute;left:0;right:0;top:160px;height:330px}.agent-artboard .agent-shot,.agent-artboard .agent-revision{width:48%}.agent-artboard .agent-shot--coast,.agent-artboard .agent-revision{left:-8%;top:25%}.agent-artboard .agent-shot--botanical{left:26%;top:17%;z-index:5}.agent-artboard .agent-shot--studio{left:60%;top:27%}.agent-artboard .agent-revision{z-index:4}.agent-source{left:8%;top:0;gap:7px;font-size:9px}.agent-source-picture{width:31px;height:31px}.agent-beam{opacity:.35}.agent-direction,.agent-complete{top:76%;font-size:10px}.agent-direction{left:5%;width:90%}.agent-direction>span{padding:0 8px}.agent-conversation{left:0;right:0;bottom:0;height:37px}.agent-request,.agent-adjustment{font-size:10px;gap:7px;padding:12px 13px}.agent-request .agent-spark,.agent-adjustment .agent-spark{font-size:12px}.agent-story-controls{left:24px;right:17px;bottom:10px;font-size:9px}.agent-story-status{max-width:220px}.agent-demo--compact .agent-compact-caption{font-size:8px}.agent-demo--compact .agent-compact-prompt{font-size:7px}.menu-agent .agent-compact-prompt{top:8%;font-size:6px;gap:4px}.menu-agent .agent-compact-prompt .agent-spark{font-size:8px}.menu-agent .agent-shot,.menu-agent .agent-revision{width:51%;border-radius:4px}.menu-agent .agent-shot--coast,.menu-agent .agent-revision{left:-7%;top:33%}.menu-agent .agent-shot--botanical{left:25%;top:25%}.menu-agent .agent-shot--studio{left:57%;top:35%}}
@media(prefers-reduced-motion:reduce){.agent-story *,.agent-demo *{animation:none!important;transition:none!important;will-change:auto!important}.agent-artworks{transform:none!important}}

/* Existing generated product photograph, presented as tone studies while the upstream image channel is unavailable. */
.agent-shot--botanical{filter:hue-rotate(18deg) saturate(.64) brightness(1.04)}.agent-shot--studio{filter:saturate(.48) brightness(1.12)}.agent-revision{filter:brightness(.72) contrast(1.22) saturate(.76)}
/* Menu previews are wide/shallow: fit the complete product, not a large crop. */
.menu-agent .agent-shot,.menu-agent .agent-revision{width:18%;max-width:115px}.menu-agent .agent-shot--coast,.menu-agent .agent-revision{left:27%;top:29%}.menu-agent .agent-shot--botanical{left:42%;top:23%}.menu-agent .agent-shot--studio{left:57%;top:29%}
@media(max-width:640px){.menu-agent .agent-shot,.menu-agent .agent-revision{width:45%;max-width:none}.menu-agent .agent-shot--coast,.menu-agent .agent-revision{left:-4%;top:30%}.menu-agent .agent-shot--botanical{left:27%;top:22%}.menu-agent .agent-shot--studio{left:58%;top:30%}}
