/* ============================================================================
   DropPrint — motion layer styles (3.0 preview). Pairs with assets/motion.js.
   Everything is scoped to html.motion so the page is unchanged when the layer
   is off (reduced motion, ?static=1, scripts blocked).
   ============================================================================ */

/* GSAP owns .reveal once the layer is on */
html.motion .reveal { opacity: 1; transform: none; transition: none; }

/* Scroll progress hairline */
.progress { position: fixed; left: 0; top: 0; width: 100%; height: 2px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); z-index: 70; pointer-events: none; }

/* 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; }


/* Hero entrance: hold the hero/nav invisible for a moment so motion.js can bring them in.
   The inline flag clears itself after 2.5s if the layer never runs. */
html.motion-pre .nav > *, html.motion-pre .hero-text > *, html.motion-pre .hero-visual, html.motion-pre .seo-intro > * { opacity: 0; }

/* Marquee strip */
.marquee { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: 14px 0; user-select: none; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 0; will-change: transform; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.03em; color: var(--ink); }
.marquee span i { font-style: normal; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.marquee span em { font-style: normal; color: var(--ink-4); }

/* Buttons: ink fill on hover */
html.motion .btn { position: relative; overflow: hidden; isolation: isolate; will-change: transform; }
html.motion .btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transform: translateY(101%); transition: transform .45s var(--ease), opacity .45s; }
html.motion .btn.ghost:hover::after { transform: none; opacity: .06; }

/* GSAP drives transforms on these; a CSS transform transition would fight it and make entrances lag/stutter. */
html.motion .btn { transition: background .15s, color .15s, border-color .15s; }
html.motion .plan { transition: border-color .2s; }
html.motion .features li, html.motion .shop-steps li { transition: box-shadow .3s var(--ease), background .2s; }
html.motion .features li:hover, html.motion .shop-steps li:hover { box-shadow: inset 0 0 0 1px var(--ink); }
html.motion .tile { will-change: transform; }

/* FAQ height animation needs overflow clipping while tweening */
html.motion .faq-list p { overflow: hidden; }

/* Nav glides when hiding */
html.motion .nav { will-change: transform; }

@media (prefers-reduced-motion: reduce) { .progress { display: none; } }

/* Editorial feature rows share the existing restrained hover treatment. */
html.motion .seo-grid article { transition: border-color .25s, background-color .25s; }
html.motion .seo-grid article:hover { border-color: var(--ink); }
.seo-main .btn:focus-visible, .seo-main summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { .seo-grid article { transition: none !important; } }
