/* Hallmark · macrostructure: n/a (motion layer) · tone: editorial · anchor hue: copper (theme tokens) */
/* =========================================================================
   EAALF BEAUTY — sitewide motion
   theme.js (siteMotion) tags elements with these classes and adds .is-in as
   they scroll into view. Hidden states apply only under .eaalf-motion (set
   by JS), so pages read normally without JavaScript. Movement uses the
   individual `translate` / `scale` properties + opacity, so it never fights
   an element's own `transform`. Cart, checkout and account pages are left
   still on purpose.
   ========================================================================= */

/* Rise in: a block (or each item in a batch) lifts and fades in */
.eaalf-motion .js-reveal { opacity:0; translate:0 36px; }
.eaalf-motion .js-reveal.is-in {
	opacity:1; translate:0 0;
	transition:opacity .9s var(--ease-out), translate 1.1s var(--ease-out);
	transition-delay:calc(var(--i, 0) * 85ms);
}
/* Big headings travel a little further for a clear first beat */
.eaalf-motion h1.js-reveal,
.eaalf-motion .eaalf-pullquote.js-reveal { translate:0 56px; }
.eaalf-motion h1.js-reveal.is-in,
.eaalf-motion .eaalf-pullquote.js-reveal.is-in { translate:0 0; }

/* Settle: photos are visible from the first frame and ease out of a slight zoom */
.eaalf-motion .js-settle { scale:1.12; }
.eaalf-motion .js-settle.is-in { scale:1; transition:scale 2.2s var(--ease-out); }

/* Curtain: a photo panel opens from the bottom edge up */
.eaalf-motion .js-curtain { clip-path:inset(100% 0 0 0); }
.eaalf-motion .js-curtain.is-in { clip-path:inset(0 0 0 0); transition:clip-path 1.3s var(--ease-in-out); }

/* Parallax: JS writes `translate` on the image; give it room to travel */
.eaalf-split__media,
.eaalf-ritual-step__media { overflow:hidden; }
.eaalf-split__media img.js-parallax,
.eaalf-ritual-step__media img.js-parallax,
.eaalf-page-hero > img.js-parallax,
.eaalf-shop-hero > img.js-parallax { inset:auto; left:0; top:-10%; width:100%; height:120%; }

/* Hero text block on inner pages drifts up and fades as you scroll past */
.eaalf-page-hero__inner,
.eaalf-shop-hero__body {
	translate:0 calc(var(--hero-scroll, 0) * -60px);
	opacity:calc(1 - var(--hero-scroll, 0) * 1.4);
}

/* Product cards everywhere lift slightly on hover (photo zoom is in theme.css) */
.eaalf-card { transition:translate .5s var(--ease-out); }
.eaalf-card:hover { translate:0 -6px; }

/* FAQ: an opening answer slides down into place */
.eaalf-accordion__item[data-open="true"] .eaalf-accordion__panel,
.eaalf-accordion__trigger[aria-expanded="true"] + .eaalf-accordion__panel { animation:panel-in .5s var(--ease-out); }
@keyframes panel-in { from { opacity:0; translate:0 -8px; } to { opacity:1; translate:0 0; } }

/* Header dropdowns (Help) drop in rather than appear */
.eaalf-dropdown:not([hidden]) { animation:drop-in .28s var(--ease-out); }
@keyframes drop-in { from { opacity:0; translate:0 -6px; } to { opacity:1; translate:0 0; } }
