/* ---------------------------------------------------------------------------
 * MODARVEN — signature interactions (homepage reference)
 *
 * These are the interaction-defining styles that map the design reference's
 * gesture-driven moments onto real business content. They are kept in their
 * own file (loaded after style.css) so the "how to operate it" language —
 * gesture hints, drag-driven knock-down, swipe hints — stays in one place and
 * can be reused by interior pages later.
 * ------------------------------------------------------------------------- */

/* ---- Drag-driven knock-down (structure section) ---- */
/* The roof (and friends) travel along --drag, driven by either a tap
 * (snaps to the full offset) or a drag (follows the pointer, snaps back). */
.part {
	--drag: 0px;
	transform: translateY(var(--drag));
}

.part.is-dragging {
	transition: none; /* follow the pointer 1:1 while dragging */
}

/* ---- Gesture hints ("how to operate it") ---- */
.gesture {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	font-size: 16px;
	line-height: 1;
	color: var(--brand);
	background: var(--brand-soft);
	border-radius: 50%;
	animation: gesture-breathe 1.6s ease-in-out infinite;
}

.gesture-up {
	animation-name: gesture-lift;
}

.gesture::after {
	content: '';
}

.hint-gallery {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 3;
}

.hint-gallery .gesture {
	animation-name: gesture-sway;
}

/* The hint fades out once the visitor has operated the control. */
.hint.is-gone {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

/* ---- Keyframes for the gesture hints ---- */
/* A calm "breathe" pulse that draws the eye without shouting. */
@keyframes gesture-breathe {
	0%, 100% { transform: translateY(0); opacity: 1; }
	50%      { transform: translateY(-3px); opacity: 0.65; }
}

/* The roof's "drag upward" cue — a small lift, then ease back. */
@keyframes gesture-lift {
	0%, 100% { transform: translateY(2px); }
	50%      { transform: translateY(-4px); }
}

/* The gallery's "swipe sideways" cue — a short horizontal sway. */
@keyframes gesture-sway {
	0%, 100% { transform: translateX(0); }
	50%      { transform: translateX(4px); }
}

/* Reduce motion: hints simply sit still and stay legible. */
@media (prefers-reduced-motion: reduce) {
	.gesture,
	.gesture-up,
	.hint-gallery .gesture {
		animation: none;
	}
}

/* ---------------------------------------------------------------------------
 * Touch targets (mobile)
 * ------------------------------------------------------------------------- */

/* The product-line slider and its two mood toggles are the primary selection
   controls, but their native boxes fall under the 44px minimum. Pad them so
   the tap area stays usable without changing the visual rhythm. */
#scene-range {
	min-height: 44px;
	padding: 14px 0;
	background-clip: content-box;
}

button[data-mood] {
	min-width: 44px;
	min-height: 44px;
	padding: 0.5rem 1rem;
}

/* Keep comparison placeholders labelled without clipped giant text. */
.compare-placeholder-note {
	position: absolute;
	z-index: 5;
	top: 12px;
	left: 12px;
	padding: 0.35rem 0.55rem;
	border-radius: 4px;
	background: rgba(255,255,255,0.92);
	color: #172b2b;
	font-size: 10px;
}
@media (max-width: 700px) {
	.stage-caption {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.45rem;
	}
	.compare-placeholder-note {
		font-size: 9px;
	}
}
