/* "Grab a seat" cup with steam — home page and end of case studies */

.coffee {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 65px 20px;
	text-align: center;
}

.coffee__cup {
	position: relative;
	width: 79.625px;
	height: 78px;
}

.coffee__cup-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Steam: three wisps rising and fading, staggered (Figma motion, 3.2s loop) */
.coffee__steam {
	position: absolute;
	top: 6px;
	opacity: 0;
	animation: steam-1 3.2s linear infinite;
}

.coffee__steam--1 { left: 26.42px; }
.coffee__steam--2 { left: 34.42px; animation-name: steam-2; }
.coffee__steam--3 { left: 42.42px; animation-name: steam-3; }

@keyframes steam-1 {
	0%, 6.25% { opacity: 0; transform: translate(0, 3px); animation-timing-function: ease-in-out; }
	25% { opacity: 0.55; transform: translate(0.9px, 0); animation-timing-function: ease-in-out; }
	40.625% { transform: translate(1.5px, -2px); animation-timing-function: ease-in-out; }
	59.375% { opacity: 0.3; transform: translate(0.6px, -3.3px); }
	84.375%, 100% { opacity: 0; transform: translate(-1px, -5px); }
}

@keyframes steam-2 {
	0%, 14.063% { opacity: 0; transform: translate(0, 3px); animation-timing-function: ease-in-out; }
	32.813% { opacity: 0.55; transform: translate(-0.9px, 1px); animation-timing-function: ease-in-out; }
	48.438% { transform: translate(-1.5px, -0.5px); animation-timing-function: ease-in-out; }
	67.188% { opacity: 0.3; transform: translate(-0.6px, -2.5px); }
	92.188%, 100% { opacity: 0; transform: translate(1px, -5px); }
}

@keyframes steam-3 {
	0%, 21.875% { opacity: 0; transform: translate(0, 3px); animation-timing-function: ease-in-out; }
	40.625% { opacity: 0.55; transform: translate(0.9px, 1px); animation-timing-function: ease-in-out; }
	56.25% { transform: translate(1.5px, -0.5px); animation-timing-function: ease-in-out; }
	75% { opacity: 0.3; transform: translate(0.6px, -2.5px); }
	100% { opacity: 0; transform: translate(-1px, -5px); }
}

@media (prefers-reduced-motion: reduce) {
	.coffee__steam {
		animation: none;
		opacity: 0.4;
		transform: none;
	}
}

.coffee__text {
	font-size: 24px;
	line-height: 48px;
	color: var(--color-coffee);
}

/* End of a case study: less space above, more below (Figma 33:190). */
.coffee--closing {
	padding: 40px 20px 80px;
}

@media (max-width: 899px) {
	.coffee__text {
		font-size: 20px;
		line-height: 32px;
	}
}
