.agency-cast-art {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:var(--cast-shadow);
  border:1px solid color-mix(in srgb,var(--cast-accent) 65%,#473e2a);
  border-radius:8px;
  width:100%;
  height:100%;
  min-height:0;
  aspect-ratio:16/9;
  container-type:size;
}
.agency-cast-art::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:6;
  box-shadow:inset 0 0 0 1px #ffefb631,inset 0 0 32px #07080689;
  background:linear-gradient(0deg,#120f0a52,transparent 30%,transparent 85%,#17110838);
}
.agency-cast-art .cast-picture,.agency-cast-art .cast-aura,.agency-cast-art .cast-rays {
  position:absolute;
  inset:0;
  pointer-events:none;
}
.agency-cast-art .cast-picture {
  background:linear-gradient(90deg,var(--cast-shadow),#0b171b0a 49%,#141d1838),var(--cast-picture) 62% 47% / cover;
  transform-origin:72% 47%;
}
.agency-cast-art .cast-aura {
  opacity:.65;
  background:radial-gradient(ellipse at 71% 53%,color-mix(in srgb,var(--cast-accent),transparent 65%),transparent 63%);
}
.agency-cast-art .cast-lead {
  position:absolute;
  overflow:hidden;
  z-index:4;
  top:-5%;bottom:-5%;left:-2%;
  width:53%;
  transform:skewX(-13deg);
  background:#120f0b;
  box-shadow:2px 0 0 var(--cast-accent),7px 0 25px #100c08d8;
}
.agency-cast-art .cast-portrait {
  width:128%;height:100%;
  max-width:none;
  position:absolute;top:0;left:-14%;
  object-fit:cover;object-position:50% 42%;
  transform:skewX(13deg);
}
.agency-cast-art .cast-lead::after {
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(0deg,#110d0a91,transparent 43%,transparent 82%,#140e0960);
}
.agency-cast-art .cast-tableau {
  position:absolute;
  z-index:4;
  bottom:4%;right:1%;
  height:43%;width:52%;
  opacity:.94;
}
.agency-cast-art .cast-tableau :is(.helper-canvas,.helper-design,.guild-specialist,.guild-operation,.guild-artisan,.guild-mini) {background:transparent}
.agency-cast-art .cast-tableau :is(.guild-specialist-label,.guild-artisan-label,.guild-signature-label,.signature-caption) {display:none}
.agency-cast-art .cast-guest {
  position:absolute;
  z-index:5;
  top:6%;right:6%;
  width:clamp(34px,22cqh,125px);
  aspect-ratio:1;
  object-fit:cover;
  border:2px solid var(--cast-accent);
  border-radius:50%;
  background:var(--cast-shadow);
  box-shadow:0 0 18px var(--cast-accent);
}
.agency-cast-art .cast-ride {
  position:absolute;z-index:2;
  right:-4%;bottom:-8%;
  width:62%;height:112%;
  object-fit:cover;
  object-position:55% 48%;
  mask-image:linear-gradient(90deg,transparent,#000 22%,#000 94%,transparent);
}
.agency-cast-art .cast-tool {
  position:absolute;z-index:5;right:14%;top:23%;
  display:grid;place-items:center;
  width:clamp(26px,48cqh,160px);aspect-ratio:1;
  background:radial-gradient(ellipse at center,#29372a,#0a1512 77%);
  border:2px solid var(--cast-accent);
  border-radius:50%;
  color:var(--cast-accent);
  text-shadow:0 0 13px var(--cast-accent);
  font:700 clamp(19px,29cqh,125px)/1 Georgia,serif;
  box-shadow:0 0 25px color-mix(in srgb,var(--cast-accent),transparent 60%);
}
.agency-cast-art .cast-ray {
  position:absolute;
  width:clamp(3px,2cqh,10px);height:clamp(3px,2cqh,10px);border-radius:50%;
  left:calc(51% + var(--index) * 6%);
  top:calc(18% + mod(var(--index) * 13%,48%));
  background:var(--cast-accent);
  box-shadow:0 0 9px var(--cast-accent);
  opacity:.72;
}
.agency-cast-art[data-scene="assist"] .cast-ray {width:2px;height:2px}
.agency-cast-art[data-scene="assist"] .cast-picture {filter:saturate(.68)}
.agency-cast-art[data-hero="kirsty"] .cast-portrait {object-position:50% 35%}
.agency-cast-art[data-hero="chaska"] .cast-portrait {object-position:50% 32%}
.agency-cast-art[data-scene="elixir"] .cast-beast {object-position:50% 32%}
.agency-cast-art[data-scene="arrival"] .cast-tableau {display:none}
.agency-cast-art[data-scene="arrival"] .cast-guest {top:12%;right:10%}
.agency-cast-art[data-scene="dispatch"] .cast-guest {border-radius:18%;transform:rotate(7deg)}
.agency-cast-art[data-scene="network"] .cast-ray {width:11%;height:1px;border-radius:0}
.agency-cast-art[data-scene="ledger"] .cast-ray {border:1px solid var(--cast-accent);background:#a07033;transform:rotateX(36deg);width:4cqh;height:3cqh}
.agency-cast-art[data-scene="door"] .cast-aura {inset:8% 8% 5% 58%;border-radius:49% 49% 0 0;background:linear-gradient(0deg,#f8a55275,transparent);border:1px solid #ffaf5bbd}
.agency-cast-art[data-scene="gild"] .cast-ray {border-radius:0;transform:rotate(45deg);width:2px;height:2px}
.agency-cast-art[data-scene="shutter"] .cast-rays {inset:15% 8% 15% 58%;border:1px solid #ffeea79c}
.agency-cast-art[data-scene="shutter"] .cast-ray {display:none}
.agency-cast-art[data-scene="sketch"] .cast-ray {width:11%;height:2px;border-radius:0;transform:rotate(-10deg);opacity:.51}
.agency-cast-art[data-scene="inbox"] .cast-ray {width:5cqh;height:3cqh;border-radius:1px 1px 5px 1px;box-shadow:1px 2px #6f384b}
.agency-cast-art[data-scene="baseline"] .cast-ray {height:1px;border-radius:0;top:39%;width:9%}
.agency-cast-art[data-scene="handoff"] .cast-ray {width:12%;height:2px;transform:rotate(-18deg)}
.agency-cast-art[data-scene="sight"] .cast-aura {inset:10% 13% auto auto;width:32cqh;aspect-ratio:1;border:1px solid var(--cast-accent);border-radius:50%;background:#7540e066;box-shadow:inset 0 0 15px #ac83eebc,0 0 14px #ac83ee65}
.agency-cast-art[data-scene="detour"] .cast-ray {width:7%;height:1px;border-radius:0;transform:rotate(14deg)}
.agency-cast-art[data-scene="screening"] .cast-aura {inset:11% 7% 43% 54%;border:2px solid var(--cast-accent);border-radius:5px;box-shadow:0 0 13px #ff6d48c0}
.agency-cast-art[data-scene="arrival"] .cast-ray {width:10%;height:2px;transform:rotate(-9deg)}
.agency-cast-art[data-scene="elixir"] .cast-ray {border:1px solid #eaeda3;opacity:.85;background:transparent}
.agency-cast-art[data-pace="full"] .cast-lead {animation:cast-arrive .38s ease-out both}
.agency-cast-art[data-pace="full"] .cast-picture {animation:cast-pan 1.4s ease-out both}
.agency-cast-art[data-pace="full"] .cast-tableau {animation:cast-show .45s .27s ease-out both}
.agency-cast-art[data-pace="full"] .cast-tool {animation:cast-tool-turn .58s .15s cubic-bezier(.17,.76,.5,1.24) both}
.agency-cast-art[data-pace="full"] .cast-ray {animation:cast-sparks .65s calc(.12s + var(--index) * 35ms) ease-out both}
.agency-cast-art[data-pace="full"] .cast-guest {animation:cast-guest-in .62s .34s cubic-bezier(.16,.66,.39,1.18) both}
.agency-cast-art[data-pace="full"] .cast-beast {animation:cast-potion-swap .8s .24s ease-out both}
.agency-cast-art[data-pace="full"][data-scene="arrival"] .cast-ride {animation:cast-bike .75s .14s cubic-bezier(.19,.76,.3,1) both}
.agency-cast-art[data-pace="full"][data-scene="shutter"] .cast-rays {animation:cast-shutter .85s .18s ease-out both}
.agency-cast-art[data-pace="full"][data-rewind="true"] .cast-rays {animation:cast-rewind .85s .18s ease-out both}
.agency-cast-art[data-pace="full"][data-scene="door"] .cast-aura {animation:cast-door .65s .22s ease-out both}
.agency-cast-art[data-pace="full"][data-scene="gild"] .cast-aura {animation:cast-gold 1.15s .21s ease-out both}
.agency-cast-art[data-pace="full"][data-scene="baseline"] .cast-ray {animation:cast-wave .72s calc(.10s + var(--index) * 45ms) ease-out both}
.agency-cast-art[data-pace="full"][data-scene="sight"] .cast-aura {animation:cast-orb .8s .17s ease-out both}
.agency-cast-art[data-pace="full"][data-scene="screening"] .cast-aura {animation:cast-screen .65s .2s ease-out both}
.agency-cast-art[data-pace="quick"] .cast-picture {animation:cast-show .15s ease-out both}
@keyframes cast-arrive {from {transform:translateX(-105%) skewX(-13deg)} to {transform:translateX(0) skewX(-13deg)}}
@keyframes cast-pan {from {transform:scale(1.19);filter:brightness(.63)} to {transform:scale(1);filter:none}}
@keyframes cast-show {from {opacity:0} }
@keyframes cast-tool-turn {from {opacity:0;transform:translateY(13%) rotate(-22deg) scale(.46)} to {opacity:1;transform:none}}
@keyframes cast-sparks {from {opacity:0;translate:-16cqw 11cqh;scale:.2} 60% {opacity:.85} to {translate:0 0;scale:1}}
@keyframes cast-guest-in {from {opacity:0;translate:11cqw -5cqh;scale:.55} to {opacity:1}}
@keyframes cast-potion-swap {from {opacity:0;clip-path:inset(100% 0 0);filter:brightness(1.65) saturate(1.8)} 62% {opacity:1} to {opacity:1;clip-path:inset(0);filter:none}}
@keyframes cast-bike {from {opacity:0;transform:translateX(85%) rotate(-8deg)} to {opacity:1;transform:none}}
@keyframes cast-shutter {from {opacity:0;scale:1.4} 39% {opacity:1;scale:.9;background:#fff2d384} 50% {background:transparent} to {opacity:1;scale:1}}
@keyframes cast-rewind {from {scale:.55;rotate:8deg;opacity:0} 45% {scale:1.1;rotate:-8deg;opacity:1} to {scale:1;rotate:0}}
@keyframes cast-door {from {opacity:0;transform:scaleX(.03)} to {opacity:.67;transform:scaleX(1)}}
@keyframes cast-gold {from {opacity:0;filter:brightness(1.6);translate:-16cqw 0} 50% {opacity:.98} to {opacity:.65;translate:0 0}}
@keyframes cast-wave {from {opacity:0;translate:0 calc(-11cqh + var(--index) * 4cqh);rotate:28deg} 45% {opacity:1;rotate:-24deg} to {translate:0 0;rotate:0}}
@keyframes cast-orb {from {opacity:0;scale:.24;filter:brightness(2.2)} to {opacity:.65;scale:1;filter:none}}
@keyframes cast-screen {from {opacity:.35;scale:1 .02;background:#ff824d} to {opacity:.65;scale:1;background:transparent}}
@media (prefers-reduced-motion:reduce) {
  .agency-cast-art,.agency-cast-art :is(.cast-lead,.cast-portrait,.cast-picture,.cast-rays,.cast-ray,.cast-tool,.cast-guest,.cast-ride,.cast-aura,.cast-tableau) {animation:none!important}
}
.agency-cast-art .cast-tableau :is(.artisan-print-label,.artisan-mini-tag,.artisan-mini-dock,.artisan-channel-name,.artisan-roger) {display:none}
.agency-cast-art[data-pace="full"][data-scene="network"] .cast-ray {animation:cast-compile .65s calc(.12s + var(--index) * 45ms) ease-out both}
.agency-cast-art[data-pace="full"][data-scene="dispatch"] .cast-aura {animation:cast-dispatch .73s .18s ease-out both}
.agency-cast-art[data-pace="full"][data-scene="ledger"] .cast-ray {animation:cast-coin .65s calc(.12s + var(--index) * 50ms) ease-out both}
.agency-cast-art[data-pace="full"][data-scene="sketch"] .cast-ray {animation:cast-draw .52s calc(.1s + var(--index) * 39ms) ease-out both}
.agency-cast-art[data-pace="full"][data-scene="inbox"] .cast-ray {animation:cast-sort .59s calc(.11s + var(--index) * 39ms) ease-out both}
.agency-cast-art[data-pace="full"][data-scene="handoff"] .cast-ray {animation:cast-handoff .52s calc(.10s + var(--index) * 35ms) ease-out both}
.agency-cast-art[data-pace="full"][data-scene="detour"] .cast-ray {animation:cast-reroute .65s calc(.13s + var(--index) * 44ms) ease-out both}
.agency-cast-art[data-pace="full"][data-scene="elixir"] .cast-ray {animation:cast-bubbles .82s calc(.16s + var(--index) * 40ms) ease-out both}
@keyframes cast-compile {from {opacity:0;clip-path:inset(0 89% 0 0)} 55% {opacity:1} to {clip-path:inset(0)}}
@keyframes cast-dispatch {from {opacity:0;translate:-22cqw 18cqh} 57% {opacity:.92} to {opacity:.65;translate:0 0}}
@keyframes cast-coin {from {opacity:0;translate:0 -32cqh;rotate:y 270deg} 60% {opacity:1;translate:0 4cqh} to {translate:0 0;rotate:y 0deg}}
@keyframes cast-draw {from {opacity:0;clip-path:inset(0 100% 0 0)} to {clip-path:inset(0)}}
@keyframes cast-sort {from {opacity:0;translate:9cqw -28cqh;rotate:26deg} 79% {opacity:.95;translate:0 1cqh} to {translate:0 0;rotate:0deg}}
@keyframes cast-handoff {from {opacity:0;translate:-24cqw 13cqh;scale:.78 1} 55% {opacity:1} to {translate:0 0;scale:1}}
@keyframes cast-reroute {from {opacity:0;translate:-17cqw -11cqh;rotate:-27deg} 54% {opacity:1;rotate:46deg} to {translate:0 0;rotate:0deg}}
@keyframes cast-bubbles {from {opacity:0;translate:0 29cqh;scale:.15} 67% {opacity:.96} to {translate:0 0;scale:1}}

.agency-cast-art[data-scene="elixir"] > .potion-vials {
  left:auto;
  right:8%;
  bottom:10%;
  z-index:5;
  gap:3cqh;
}
.agency-cast-art[data-scene="elixir"] > .potion-vials .potion-vial {
  width:9cqh;
  height:11cqh;
}
.agency-cast-art[data-pace="full"][data-scene="elixir"] > .potion-vials .potion-vial {
  animation:cast-vial .9s calc(.10s + var(--potion-index) * 60ms) ease-out both;
}
@keyframes cast-vial {
  0% {opacity:0;scale:.6;translate:6cqw 3cqh}
  39% {opacity:1;scale:1.26;translate:-4cqw -10cqh;rotate:-24deg;filter:brightness(1.8)}
  100% {opacity:1;scale:1;translate:0 0;rotate:0;filter:none}
}
