/* One image, one cup. Crop and transform are registered to the same source pixels. */
.coffee-world59{position:absolute;inset:0;transform-origin:var(--coffee-cx) var(--coffee-cy);transform:translate(calc(var(--coffee-dx)*(1 - var(--dock,0))),calc(var(--coffee-dy)*(1 - var(--dock,0)))) scale(calc(1.8 - var(--dock,0)*.8));clip-path:ellipse(calc(var(--coffee-rx) + var(--unveil,0)*var(--coffee-reach)) calc(var(--coffee-ry) + var(--unveil,0)*var(--coffee-reach)) at var(--coffee-cx) var(--coffee-cy));will-change:transform,clip-path}
.coffee-world59 img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:right center}
[data-demo=websites-1] .m-site-final{transform:none}
/* Let the entire product label clear the front rim; only the box moves below the caption. */
[data-demo=websites-2] .box57{transform:translateY(calc(var(--a)*54%))}
[data-demo=websites-2] .product57{transform:translateY(calc(12% - var(--a)*24%)) scale(.95)}
.takeaway59{position:relative!important;width:49%!important;height:88%!important;object-fit:contain;max-width:none;filter:drop-shadow(0 10px 8px #41251930);transform:rotate(-7deg);z-index:2}
@media(max-width:650px){.header nav{grid-template-columns:repeat(2,minmax(0,1fr))}.header nav a,.header nav a:nth-last-child(-n+2){grid-column:span 1}}
@media(prefers-reduced-motion:reduce){.coffee-world59{transform:none!important;clip-path:none!important}}

/* Fixed package, bottle rises through the mouth between rear and front walls. */
[data-demo=websites-2] .box57{transform:translateY(16%) scale(.65)}
[data-demo=websites-2] .box-back59{z-index:1}
[data-demo=websites-2] .box-front59{z-index:3;clip-path:inset(22.4% 0 0 0)}
[data-demo=websites-2] .product57{z-index:2;opacity:1;transform:translateY(calc(25% - var(--a)*44%)) scale(.65)}
[data-demo=websites-2] .lid57{z-index:4;transform:translateY(calc(-11.5% - var(--a)*46%)) rotate(calc(var(--a)*-8deg)) scale(.585,.65)}

.bottle-window59{position:absolute;inset:0;z-index:2;clip-path:inset(0 0 9.4% 0)}

/* The destination site supplies the opening backdrop; only the foreground object is sharp. */
.site-backdrop591{position:absolute;inset:0;z-index:0;overflow:hidden;filter:blur(calc(14px * (1 - var(--b))));transform:scale(calc(1.08 - var(--b)*.08));opacity:1}
.backdrop-photo591{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right center}
.backdrop-page591{position:absolute;inset:0}
.site-backdrop591:after{content:"";position:absolute;inset:0;background:#17231c;opacity:calc(.22*(1 - var(--b)));pointer-events:none}
[data-demo=websites-1] .coffee-world59{z-index:2}
[data-demo=websites-2] .unbox57{background:transparent;transform:none;opacity:calc(1 - var(--b))}
[data-demo=websites-2] .m-product-reveal{opacity:var(--b)}
@media(prefers-reduced-motion:reduce){.site-backdrop591{filter:none;transform:none}}

.site-backdrop591{opacity:calc(1 - var(--b))}

/* Studio first: real photography, grounded packaging, restrained transition. */
.coffee-studio592{position:absolute;inset:0;z-index:3;clip-path:inset(0 calc(var(--unveil,0)*100%) 0 0);overflow:hidden}
.coffee-studio592 img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(calc(1 + var(--dock,0)*.045))}
[data-demo=websites-1] .coffee-world59{transform:none!important;clip-path:none!important;z-index:1}
[data-demo=websites-2] .unbox57{background:radial-gradient(ellipse at 35% 24%,#fff 0,#f3f3f1 44%,#dddfde 100%);opacity:1;clip-path:inset(0 calc(var(--b)*100%) 0 0)}
[data-demo=websites-2] .unbox57:before{content:"";position:absolute;z-index:0;left:calc(50% - var(--studio-h)*.15);top:89.5%;width:calc(var(--studio-h)*.36);height:3.5%;background:#23252375;filter:blur(5px);border-radius:50%;transform:skewX(-24deg)}
[data-demo=websites-2] .unbox57:after{content:"";position:absolute;z-index:0;left:50%;top:88%;width:calc(var(--studio-h)*.3);height:8%;background:linear-gradient(90deg,#30352c28,transparent);filter:blur(8px);border-radius:50%;transform:rotate(8deg)}
[data-demo=websites-2] .box57,[data-demo=websites-2] .lid57,[data-demo=websites-2] .product57{width:calc(var(--studio-h)*.5);left:calc(50% - var(--studio-h)*.25)}
[data-demo=websites-2] .m-product-reveal{opacity:1}
@media(prefers-reduced-motion:reduce){.coffee-studio592 img{transform:none}}

.studio-pack592{position:absolute;inset:0;transform:translateY(-8%) scaleX(1.12)}
[data-demo=websites-2] .unbox57:before{top:81.5%;width:calc(var(--studio-h)*.38);height:3%;filter:blur(4px)}
[data-demo=websites-2] .unbox57:after{top:80%;height:7%}
[data-demo=websites-1] .m54>.m-caption,[data-demo=websites-2] .m54>.m-caption{background:#fffffff0;color:#25292a;border-radius:5px;padding:7px 12px;bottom:10px;inset-inline:12px;width:fit-content;max-width:calc(100% - 24px);font-size:clamp(14px,3.7cqw,18px);box-shadow:0 1px 8px #25292a0c}

/* Opaque card stock below the photographic texture; alpha is only outside its silhouette. */
[data-demo=websites-2] .box-back59{background-color:#ded4bd;clip-path:polygon(18.5% 12%,84% 12%,89.3% 22.5%,89.3% 88%,12.3% 88%,12.3% 22.5%)}
[data-demo=websites-2] .box-front59{background-color:#ded4bd;clip-path:polygon(12.3% 22.5%,89.3% 22.5%,89.3% 88%,12.3% 88%)}
[data-demo=websites-2] .lid57{background-color:#e1d7c2;clip-path:polygon(13% 43.5%,88% 43.5%,94% 54%,94% 65.2%,7% 65.2%,7% 54%)}

/* Single physical product travels onto a clean destination plate; no duplicate baked-in object. */
.destination593{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right center;filter:blur(calc(12px*(1 - var(--settle,0))));opacity:calc(.22 + var(--arrival,0)*.78);z-index:0}
[data-demo=websites-2] .destination593{object-position:center;opacity:calc(.22 + var(--arrival,0)*.78)}
.site-preview593{position:absolute;inset:0;z-index:1;filter:blur(calc(9px*(1 - var(--settle,0))));opacity:calc(var(--arrival,0)*(1 - var(--b)));pointer-events:none}
.studio-floor593{position:absolute;inset:30% 0 0;z-index:2;background:linear-gradient(transparent,#f3f3f1 55%,#e5e7e6);opacity:calc(1 - var(--settle,0));pointer-events:none}
.cup593{position:absolute;z-index:5;max-width:none!important;height:auto!important;left:calc(var(--cup-x0) + var(--settle,0)*(var(--cup-x1) - var(--cup-x0)));top:calc(var(--cup-y0) + var(--settle,0)*(var(--cup-y1) - var(--cup-y0)));width:calc(var(--cup-w0) + var(--settle,0)*(var(--cup-w1) - var(--cup-w0)));}
[data-demo=websites-2] .unbox57{background:none;clip-path:none;opacity:1}
[data-demo=websites-2] .studio-pack592{opacity:calc(1 - var(--settle,0))}
[data-demo=websites-2] .product57{opacity:calc(1 - var(--handoff,0))}
[data-demo=websites-2] .unbox57:before,[data-demo=websites-2] .unbox57:after{opacity:calc(1 - var(--settle,0))}
.bottle-dock593{position:absolute;z-index:5;background-image:url('motion/luma-parts57.png');background-position:100% 50%;background-size:300% 100%;background-repeat:no-repeat;opacity:var(--handoff,0);left:calc(var(--bottle-x0) + var(--settle,0)*(var(--bottle-x1) - var(--bottle-x0)));top:calc(var(--bottle-y0) + var(--settle,0)*(var(--bottle-y1) - var(--bottle-y0)));width:calc(var(--bottle-w0) + var(--settle,0)*(var(--bottle-w1) - var(--bottle-w0)));height:calc(var(--bottle-h0) + var(--settle,0)*(var(--bottle-h1) - var(--bottle-h0)));}
@media(prefers-reduced-motion:reduce){.destination593,.site-preview593{filter:none}}

.bottle-dock593{z-index:3}
[data-demo=websites-2] .studio-pack592{opacity:1;transform:translateY(calc(-8% + var(--pack-exit,0)*110%)) scaleX(1.12)}
[data-demo=websites-2] .lid57{opacity:calc(1 - var(--handoff,0))}
[data-demo=websites-1] .m-site-title,[data-demo=websites-1] .site-preview593 .m-site-title{inset-inline:auto;left:4%;width:53%;bottom:36%;padding:10px;background:#503625c9}
[data-demo=websites-1] .m-site-title b{font-size:clamp(16px,4.3cqw,23px)}

/* All packaging and bottle phases share ONE stacking context: rear 1, bottle 2, front 3. */
[data-demo=websites-2] .studio-pack592{transform:none;opacity:1;z-index:auto}
[data-demo=websites-2] .box57{transform:translateY(calc(8% + var(--pack-exit,0)*110%)) scale(.728,.65)}
[data-demo=websites-2] .product57{transform:translateY(calc(17% - var(--a)*44%)) scale(.728,.65)}
[data-demo=websites-2] .lid57{transform:translateY(calc(-19.5% - var(--a)*46%)) rotate(calc(var(--a)*-8deg)) scale(.6552,.65)}
[data-demo=websites-2] .bottle-dock593{z-index:2}
[data-demo=websites-2] .bottle-window59{clip-path:inset(0 0 17.4% 0)}

/* 5.9.7: land before revealing the base; never remove support during travel. */
[data-demo=websites-2] .box57{transform:translateY(8%) scale(.728,.65);opacity:calc(1 - var(--pack-exit,0))}
[data-demo=websites-2] .unbox57:before,[data-demo=websites-2] .unbox57:after{opacity:calc(1 - var(--pack-exit,0))}
[data-demo=websites-2] .studio-floor593{opacity:calc(1 - var(--settle,0))}
.bottle-dock593:before{content:"";position:absolute;z-index:-1;left:50.6%;top:84%;width:46%;height:2.4%;transform:translate(-50%,-42%);border-radius:50%;background:radial-gradient(ellipse,#38200bc9 0,#38200b75 35%,transparent 73%);filter:blur(.7px);opacity:var(--settle,0)}

/* Clear the rim, move the packaging aside, then ease down to the plinth. */
[data-demo=websites-2] .product57{transform:translateY(calc(17% - var(--a)*52%)) scale(.728,.65)}
[data-demo=websites-2] .box57{transform:translate(calc(var(--pack-aside,0)*var(--studio-h)*-.45),calc(8% - var(--settle,0)*6%)) scale(.728,.65)}
[data-demo=websites-2] .unbox57:before{transform:translate(calc(var(--pack-aside,0)*var(--studio-h)*-.45),calc(var(--settle,0)*var(--studio-h)*.08)) skewX(-24deg)}
[data-demo=websites-2] .unbox57:after{left:50%;top:var(--surface-y);width:var(--shadow-w);height:2.6%;transform:translate(-50%,-45%) scale(calc(1.55 - var(--settle,0)*.55));background:radial-gradient(ellipse,#38200bb0,transparent 72%);filter:blur(calc(5px - var(--settle,0)*4px));opacity:calc(var(--handoff,0)*(.12 + var(--settle,0)*.6));z-index:1}

[data-demo=websites-2] .product57{transform:translateY(calc(17% - var(--a)*44%)) scale(.728,.65)}
[data-demo=websites-2] .box57{transform:translate(calc(var(--pack-aside,0)*var(--studio-h)*-.45),calc(8% + var(--a)*5% + var(--settle,0)*8%)) scale(.728,calc(.65 - var(--a)*.1))}
[data-demo=websites-2] .m-site-title,[data-demo=websites-2] .site-preview593 .m-site-title{inset-inline:auto;left:3%;width:36%;bottom:24%;padding:8px;background:#40351fc9}
[data-demo=websites-2] .m-site-title b{font-size:clamp(14px,4cqw,21px)}

/* 5.9.7: shared typography and quiet full-width caption, clear of the product base. */
.motion-demo .m-site-title{font-family:Rubik,Arial,sans-serif;text-shadow:none}
.motion-demo .m-site-title b{font-family:inherit;font-weight:600;line-height:1.35;letter-spacing:0}
.motion-demo .m-site-title small{display:block;font-family:inherit;font-size:10px;font-weight:500;line-height:1.4;letter-spacing:.08em;margin-bottom:4px}
[data-demo=websites-2] .m-site-title,[data-demo=websites-2] .site-preview593 .m-site-title{left:0;right:0;inset-inline:0;bottom:0;width:auto;padding:18px 18px 12px;background:linear-gradient(transparent,#202329e8 45%);text-align:start}
[data-demo=websites-2] .m-site-title b{font-size:clamp(18px,5cqw,26px)}
