/**
 * Nature Hut — motion. Ported from the design's GSAP timelines:
 *   rows   fromTo({opacity:0, y:10}) -> 0.6s, stagger 0.14, power2.out
 *   beads  fromTo({scale:.6})        -> 0.5s, stagger 0.10, back.out(2)
 * Nothing here hides content unless JS is running (html.nh-js) and the
 * viewer has not asked for reduced motion, so the page is readable at rest.
 */

.nh-js .nh-reveal {
	opacity: 0;
	transform: translateY(10px);
	will-change: opacity, transform;
}
.nh-js .nh-reveal.is-in {
	opacity: 1;
	transform: none;
	transition:
		opacity var(--nh-t-slow) var(--nh-ease-out),
		transform var(--nh-t-slow) var(--nh-ease-out);
	transition-delay: calc(var(--nh-i, 0) * 140ms);
}
/* Once in place, hover effects on revealed cards answer at once (no stagger
   delay, the fast duration) instead of replaying the reveal's timing. */
.nh-js .nh-reveal.is-in.nh-reveal--settled {
	will-change: auto;
	transition-delay: 0s;
	transition-duration: var(--nh-t-fast);
}

/* Pop-in for round beads/medallions (back.out easing) */
.nh-js .nh-pop { opacity: 0; transform: scale(.6); }
.nh-js .nh-pop.is-in {
	opacity: 1;
	transform: none;
	transition:
		opacity .3s var(--nh-ease-out),
		transform .5s var(--nh-ease-back);
	transition-delay: calc(var(--nh-i, 0) * 100ms);
}

/* Card lift — elevation 0 -> 1 on hover (Foundations 03) */
.nh ul.products li.product,
.nh-postcard,
.nh-arch__frame,
.nh-upsell-card {
	transition: transform var(--nh-t-fast) var(--nh-ease-out), box-shadow var(--nh-t-fast) var(--nh-ease-out);
}
@media (hover: hover) {
	.nh ul.products li.product:hover,
	.nh-postcard:hover { transform: translateY(-2px); box-shadow: var(--nh-e-1); }
	.nh-arch:hover .nh-arch__frame { transform: translateY(-3px); box-shadow: var(--nh-e-1); }
}

/* Drawer + scrim already animate; keep their curves on the shared tokens */
.nh-drawer { transition: transform var(--nh-t-mid) var(--nh-ease-drawer); }
.nh-drawer-scrim { transition: opacity .3s var(--nh-ease-out); }
.nh-progress__bar { transition: width .3s var(--nh-ease-out); }

/* The journey is driven by the Web Animations API. Its resting state is the
   FINISHED state (rider parked, rows visible) so a tab that never animates —
   opened in the background, or interrupted — still shows the right thing. */

@media (prefers-reduced-motion: reduce) {
	.nh-js .nh-reveal,
	.nh-js .nh-pop { opacity: 1 !important; transform: none !important; }
	.nh ul.products li.product:hover,
	.nh-postcard:hover,
	.nh-arch:hover .nh-arch__frame { transform: none; }
}
