
/* ---------- illustration v3 ---------- */
.art-stage{position:relative;height:300px;border-radius:18px;overflow:hidden;display:grid;place-items:center;isolation:isolate}
.art-stage.dark{background:radial-gradient(52% 62% at 50% 34%,rgba(170,214,218,.17),transparent 72%),linear-gradient(180deg,#1a222b 0%,#10161c 66%,#1c252e 66.3%,#121920 100%);border:1px solid #26303a}
.art-stage.light{background:radial-gradient(52% 62% at 50% 30%,rgba(255,236,204,.95),transparent 72%),linear-gradient(180deg,#f6f0e6 0%,#efe7da 66%,#e7ddcd 66.3%,#efe8dc 100%);border:1px solid #e9dfcf}
.art-stage::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.07;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}
.art-stage .art3{width:100%;height:100%;max-width:470px;display:block;overflow:visible}
.art-chip{position:absolute;z-index:2;display:inline-flex;align-items:center;gap:6px;font-family:var(--f-mono);font-size:11.5px;letter-spacing:.02em;padding:6px 11px;border-radius:999px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:0;transform:translateY(6px);transition:opacity .6s ease 2.6s,transform .6s ease 2.6s;white-space:nowrap}
.art-chip i{width:7px;height:7px;border-radius:50%;background:var(--teal-500);display:inline-block}
.art-chip.tl{top:14px;left:14px}.art-chip.br{bottom:14px;right:14px}
.art-stage.dark .art-chip{background:rgba(17,22,28,.66);color:#fff;border:1px solid rgba(255,255,255,.14)}
.art-stage.light .art-chip{background:rgba(255,255,255,.84);color:var(--ink);border:1px solid var(--line)}
.rv.in .art-chip{opacity:1;transform:none}

/* coffee v3 */
.coffee3 .c3-sweep{transform-box:fill-box;transform-origin:0 50%;transform:scaleX(0)}
.coffee3 .c3-g{opacity:0}
.coffee3 .c3-pull{transform-box:fill-box;transform-origin:0 50%;transform:scaleX(0)}
.coffee3 .c3-stream{stroke-dasharray:1;stroke-dashoffset:1;opacity:0}
.coffee3 .c3-steam path{opacity:0}
.art-stage.light .coffee3 .c3-steam path{stroke:#b9ab98}
.rv.in .coffee3 .c3-stream{animation:c3pour 3s cubic-bezier(.45,0,.2,1) .1s forwards}
@keyframes c3pour{0%{opacity:1;stroke-dashoffset:1}20%{stroke-dashoffset:0;opacity:1}78%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:-1;opacity:0}}
.rv.in .coffee3 .c3-sweep{animation:c3sweep 1.7s cubic-bezier(.4,0,.2,1) .55s forwards}
@keyframes c3sweep{to{transform:none}}
.rv.in .coffee3 .c3-g{animation:c3in .35s ease forwards}
@keyframes c3in{to{opacity:1}}
.rv.in .coffee3 .c3-pull{animation:c3sweep .6s cubic-bezier(.5,0,.2,1) 2.15s forwards}
.rv.in .coffee3 .c3-art{transform-box:fill-box;transform-origin:center;animation:c3drift 12s ease-in-out 3.2s infinite}
@keyframes c3drift{0%,100%{transform:rotate(0)}50%{transform:rotate(2.5deg)}}
.rv.in .coffee3 .c3-steam path{animation:c3steam 5.5s ease-in-out infinite}
.rv.in .coffee3 .c3-steam path:nth-child(1){animation-delay:2.9s}
.rv.in .coffee3 .c3-steam path:nth-child(2){animation-delay:4.7s}
.rv.in .coffee3 .c3-steam path:nth-child(3){animation-delay:6.5s}
@keyframes c3steam{0%{opacity:0;transform:translateY(16px) scaleY(.9)}35%{opacity:.75}100%{opacity:0;transform:translate(6px,-34px) scaleY(1.1)}}
.rv.in .coffee3 .c3-glint{animation:c3glint 8s ease-in-out 3s infinite}
@keyframes c3glint{0%,100%{opacity:.12}50%{opacity:.26}}

/* curdling flecks */
.coffee3 .c3-fl{opacity:0}
.rv.in .coffee3 .c3-fl{animation:c3in .9s ease forwards}
@media (prefers-reduced-motion:reduce){.coffee3 .c3-fl{opacity:1}}

/* bottle v3 */
.bottle3 .b3-drop1,.bottle3 .b3-drop2{opacity:0;transform-box:fill-box;transform-origin:50% 0}
.bottle3 .b3-egf,.bottle3 .b3-tgf{opacity:0}
.bottle3 .b3-rip1,.bottle3 .b3-rip2{opacity:0;transform-box:fill-box;transform-origin:center}
.rv.in .bottle3 .b3-dropper{animation:b3bob 5s ease-in-out 4.6s infinite}
@keyframes b3bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
.rv.in .bottle3 .b3-drop1{animation:b3drop 1.5s cubic-bezier(.5,0,.9,.4) .5s forwards}
.rv.in .bottle3 .b3-drop2{animation:b3drop 1.5s cubic-bezier(.5,0,.9,.4) 2.3s forwards}
@keyframes b3drop{0%{opacity:1;transform:translateY(0) scale(.2)}45%{opacity:1;transform:translateY(0) scale(1)}55%{transform:translateY(0) scale(1,1.08)}94%{opacity:1;transform:translateY(74px) scale(.9,1.1)}100%{opacity:0;transform:translateY(78px) scale(1.4,.5)}}
.rv.in .bottle3 .b3-rip1{animation:b3rip 1.2s ease-out 1.92s forwards}
.rv.in .bottle3 .b3-rip2{animation:b3rip 1.2s ease-out 3.72s forwards}
@keyframes b3rip{0%{opacity:.9;transform:scale(.4)}100%{opacity:0;transform:scale(6.5,4)}}
.rv.in .bottle3 .b3-egf{animation:b3bloom 1.4s ease 1.95s forwards}
.rv.in .bottle3 .b3-tgf{animation:b3bloom 1.4s ease 3.75s forwards}
@keyframes b3bloom{to{opacity:1}}
.rv.in .bottle3 .b3-tint1{animation:b3tint 1.6s ease 1.95s forwards}
.rv.in .bottle3 .b3-tint2{animation:b3tint 1.6s ease 3.75s forwards}
@keyframes b3tint{to{opacity:.06}}
.bottle3 .b3-p{transform-box:fill-box;transform-origin:center}
.rv.in .bottle3 .b3-p{animation:b3drift 7s ease-in-out infinite}
@keyframes b3drift{0%{transform:translate(0,4px);opacity:.3}30%{opacity:1}100%{transform:translate(var(--dx),18px);opacity:0}}
.bottle3 .b3-sweep{transform:skewX(-14deg)}
.rv.in .bottle3 .b3-sweep{animation:b3sweep 7s ease-in-out 4.2s infinite}
@keyframes b3sweep{0%{transform:skewX(-14deg) translateX(0)}40%,100%{transform:skewX(-14deg) translateX(190px)}}
.art-stage.dark .bottle3 .b3-caus{opacity:.35}

/* comic versions: same beats, stepped timing for a hand-drawn feel */
.coffeek .k-sweep{transform-box:fill-box;transform-origin:0 50%;transform:scaleX(0)}
.coffeek .k-stream{opacity:0}
.coffeek .k-steam path{opacity:0}
.rv.in .coffeek .k-stream{animation:kpour 2.8s steps(1,end) .1s forwards}
@keyframes kpour{0%{opacity:1}85%{opacity:1}100%{opacity:0}}
.rv.in .coffeek .k-sweep{animation:c3sweep 1.6s steps(8,end) .5s forwards}
.rv.in .coffeek .k-steam path{animation:ksteam 2.4s steps(6,end) infinite}
.rv.in .coffeek .k-steam path:nth-child(2){animation-delay:.8s}
.rv.in .coffeek .k-steam path:nth-child(3){animation-delay:1.6s}
@keyframes ksteam{0%{opacity:0;transform:translateY(10px)}30%{opacity:1}100%{opacity:0;transform:translateY(-22px)}}
.bottlek .k-drop1,.bottlek .k-drop2,.bottlek .k-splash1,.bottlek .k-splash2,.bottlek .k-pts{opacity:0}
.bottlek .k-drop1,.bottlek .k-drop2{transform-box:fill-box;transform-origin:50% 0}
.rv.in .bottlek .k-drop1{animation:kdrop 1.2s steps(6,end) .5s forwards}
.rv.in .bottlek .k-drop2{animation:kdrop 1.2s steps(6,end) 2.2s forwards}
@keyframes kdrop{0%{opacity:1;transform:translateY(0) scale(.4)}35%{opacity:1;transform:translateY(0) scale(1)}95%{opacity:1;transform:translateY(70px)}100%{opacity:0;transform:translateY(72px)}}
.rv.in .bottlek .k-splash1{animation:ksplash .5s steps(2,end) 1.65s forwards}
.rv.in .bottlek .k-splash2{animation:ksplash .5s steps(2,end) 3.35s forwards}
@keyframes ksplash{0%{opacity:1}100%{opacity:0}}
.rv.in .bottlek .k-pts{animation:b3bloom .4s steps(2,end) 1.7s forwards}
.rv.in .bottlek .k-tint1{animation:ktint .4s steps(2,end) 1.7s forwards}
.rv.in .bottlek .k-tint2{animation:ktint .4s steps(2,end) 3.4s forwards}
@keyframes ktint{to{opacity:.18}}
.bottlek .k-p{transform-box:fill-box}
.rv.in .bottlek .k-p{animation:kp 3s steps(6,end) infinite}
@keyframes kp{0%{transform:translateY(0)}100%{transform:translateY(14px)}}
.art-stage.comic.dark{background:radial-gradient(55% 65% at 50% 34%,#3a4d55,transparent 75%),linear-gradient(180deg,#1f2a31 0%,#172026 66%,#2a363d 66.3%,#202b31 100%)}
.art-stage.comic.light{background:radial-gradient(55% 65% at 50% 30%,#fff3dc,transparent 75%),linear-gradient(180deg,#f3e3c6 0%,#ecd6b0 66%,#d9be92 66.3%,#e3cba2 100%)}

@media (prefers-reduced-motion:reduce){
 .coffee3 .c3-sweep,.coffee3 .c3-pull,.coffeek .k-sweep{transform:none}.coffee3 .c3-g{opacity:1}.coffee3 .c3-steam path,.coffeek .k-steam path{opacity:.4}
 .bottle3 .b3-egf,.bottle3 .b3-tgf,.bottlek .k-pts{opacity:1}.art-chip{opacity:1;transform:none}
 .rv.in .art3 *{animation:none!important}
}
