/* ==========================================================================
   MOTION KIT STYLES (V5, re-tuned for V6: cocoa cursor pill). Docs: docs/MOTION_KIT.md.
   Hidden "before" states exist ONLY under `.js:not(.reduced-motion)`: without JS, with reduced motion, or when the kit never runs, everything is visible.
   Each hidden state also carries a 3 s CSS fail-safe (animation to the visible state), so a script that fails to load can never leave content hidden.
   Animated properties: transform / opacity (+ clip-path for image masks). will-change is never set here.
   ========================================================================== */

/* ---- fail-safe keyframes ---- */
@keyframes hz-unhide { to { visibility: visible; } }
@keyframes hz-unclip { to { clip-path: inset(0 0 0 0); } }
@keyframes hz-unclip-circle { to { clip-path: circle(75% at 50% 50%); } }
@keyframes hz-fadein { to { opacity: 1; transform: none; } }

/* ---- split text / line reveals ---- */
.sl-line { display: block; overflow: hidden; padding-block: .12em; margin-block: -.12em; }   /* masks a rising line without clipping ascenders / descenders */
.sl-in { display: inline-block; white-space: nowrap; }
.sl-w { display: inline-block; }
.js:not(.reduced-motion) [data-reveal-lines]:not(.is-split):not(.is-in) { visibility: hidden; animation: hz-unhide 0s linear 3s forwards; }

/* ---- image / block mask reveals ---- */
.js:not(.reduced-motion) [data-reveal-mask]:not(.is-in) { clip-path: inset(100% 0 0 0); animation: hz-unclip 0s linear 3.2s forwards; }
.js:not(.reduced-motion) [data-reveal-mask="down"]:not(.is-in) { clip-path: inset(0 0 100% 0); }
.js:not(.reduced-motion) [data-reveal-mask="left"]:not(.is-in) { clip-path: inset(0 100% 0 0); }
.js:not(.reduced-motion) [data-reveal-mask="right"]:not(.is-in) { clip-path: inset(0 0 0 100%); }
.js:not(.reduced-motion) [data-reveal-mask="circle"]:not(.is-in) { clip-path: circle(0% at 50% 50%); animation-name: hz-unclip-circle; }

/* ---- generic fade-up (CSS-only helper for small elements: data-rise; the kit does not drive it) ---- */
.js:not(.reduced-motion) [data-rise]:not(.is-in) { opacity: 0; transform: translateY(1.25rem); animation: hz-fadein .01s linear 3s forwards; }
[data-rise] { transition: opacity var(--dur-reveal, .9s) var(--ease-expo, ease), transform var(--dur-reveal, .9s) var(--ease-expo, ease); }

/* ---- marquee (the kit sets --marquee-shift and --marquee-dur; the markup carries two groups so it also loops without JS) ---- */
.marquee { overflow: hidden; }
.marquee__skew { display: block; }
.marquee__track { display: flex; width: max-content; animation: hz-marquee var(--marquee-dur, 40s) linear infinite; }
.marquee__track.is-paused { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; align-items: center; margin: 0; padding: 0; list-style: none; }
@keyframes hz-marquee { to { transform: translate3d(var(--marquee-shift, -50%), 0, 0); } }
.reduced-motion .marquee__track { animation: none; width: auto; flex-wrap: wrap; }
.reduced-motion .marquee__group[aria-hidden="true"] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; }
  .marquee__group[aria-hidden="true"] { display: none; }
}

/* ---- tilt glare ---- */
.tilt-glare {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 250, 244, .34), rgba(255, 250, 244, 0) 52%);
}
[data-tilt] { position: relative; transform-style: preserve-3d; }

/* ---- custom cursor (desktop fine pointer; created by the kit) ---- */
.hz-cursor {
  position: fixed; inset: 0 auto auto 0; z-index: var(--z-cursor, 800); pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.hz-cursor::before {
  content: ""; position: absolute; left: 0; top: 0; width: .625rem; height: .625rem; margin: -.3125rem 0 0 -.3125rem; border-radius: 50%;
  background: var(--cocoa); box-shadow: 0 0 0 1.5px var(--cream); transition: width .35s var(--ease-expo, ease), height .35s var(--ease-expo, ease), margin .35s var(--ease-expo, ease), opacity .2s ease;
}
.hz-cursor.is-on { opacity: 1; }
.hz-cursor.is-hidden { opacity: 0; }
.hz-cursor.is-link::before { width: 1.5rem; height: 1.5rem; margin: -.75rem 0 0 -.75rem; background: transparent; box-shadow: 0 0 0 1.5px var(--cocoa), 0 0 0 3px var(--cream); }
.hz-cursor.is-down::before { transform: scale(.8); }
.hz-cursor__label {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; min-width: 4.25rem; height: 2.5rem; padding: 0 1.1rem; transform: translate(-50%, -50%) scale(.2);
  border-radius: var(--radius-pill, 999px); background: var(--cocoa); color: var(--cream);
  font: 600 var(--fs-xs, .75rem) / 1 var(--font-sans); letter-spacing: var(--tracking-caps, .08em); text-transform: uppercase; white-space: nowrap; opacity: 0;
  transition: transform .6s var(--ease-expo, ease), opacity .3s ease;
}
.hz-cursor.is-label::before { opacity: 0; }
.hz-cursor.is-label .hz-cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }

/* ---- smooth scroll (Lenis) ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ==========================================================================
   APPEARANCE > 3D & animation effects (Admin > Settings > Appearance & 3D). Matches only when the layout writes html[data-fx-*]; the defaults write nothing.
   ========================================================================== */
/* Scroll reveal OFF: every hidden "before" state (kit reveals, home sections, the footer wordmark) is neutralised so content is simply there; the JS kit skips its reveal timelines as well. */
html[data-fx-reveal="off"] [data-reveal-lines], html[data-fx-reveal="off"] [data-reveal-mask], html[data-fx-reveal="off"] [data-rise], html[data-fx-reveal="off"] [data-reveal], html[data-fx-reveal="off"] [data-mask],
html[data-fx-reveal="off"] .cat__item, html[data-fx-reveal="off"] [data-feat-item], html[data-fx-reveal="off"] .jr__item, html[data-fx-reveal="off"] .footer-mark .fm-l > span {
  visibility: visible !important; opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; transition: none !important;
}
/* Marquee OFF: the same still, wrapped row the reduced-motion setting gives. */
html[data-fx-marquee="off"] .marquee__track { animation: none; width: auto; flex-wrap: wrap; }
html[data-fx-marquee="off"] .marquee__group[aria-hidden="true"] { display: none; }
html[data-fx-marquee="off"] .fx-band .marquee__track { justify-content: center; }
/* Fly-to-cart (lib/fx-extras.js): the product photo travels to the bag icon; the icon gives a small bump when it arrives. */
.fx-fly { position: fixed; z-index: calc(var(--z-toast, 500) + 10); margin: 0; max-inline-size: none; border-radius: var(--r-img, 1.25rem); object-fit: cover; pointer-events: none; box-shadow: var(--shadow-2); will-change: transform, opacity; }
@keyframes hz-bump { 40% { transform: scale(1.2); } 100% { transform: none; } }
.fx-bump { animation: hz-bump calc(.5s * var(--fx-speed, 1)) var(--ease-spring, ease-out); }
@media (prefers-reduced-motion: reduce) { .fx-fly { display: none; } .fx-bump { animation: none; } }
