/* SmartFlux motion layer: smooth scroll, page curtain, cursor, split titles, scroll moments.
   Each page opts in with window.SFM_CONFIG; prefers-reduced-motion turns it all off. */
html.lenis,html.lenis body{height:auto}
html.lenis{scroll-behavior:auto!important}
/* transforms de entrada (carimbos, letreiros, palavras) nunca criam rolagem lateral */
main{overflow-x:clip}
.lenis.lenis-stopped{overflow:hidden}

/* cortina de entrada e de saída */
html.sfm-wait::after{content:'';position:fixed;inset:0;z-index:100005;background:var(--sfm-curtain,#0e0e10)}
html.sfm-wait .hero,html.sfm-wait .hero *{animation-play-state:paused!important}
.sfm-curtain{position:fixed;inset:0;z-index:100005;display:grid;place-items:center;background:var(--sfm-curtain,#0e0e10);color:var(--sfm-curtain-ink,#fff);pointer-events:none;transform-origin:50% 0;will-change:transform}
.sfm-curtain b{font:600 clamp(1.1rem,2vw,1.6rem)/1 system-ui,sans-serif;letter-spacing:.32em;text-transform:uppercase;opacity:.9}

/* barra de progresso */
.sfm-progress{position:fixed;left:0;top:0;z-index:100003;width:100%;height:3px;background:var(--sfm-accent,#fff);transform:scaleX(0);transform-origin:0 50%;pointer-events:none}

/* cursor */
html.sfm-cursor-on,html.sfm-cursor-on *{cursor:none!important}
html.sfm-cursor-on input,html.sfm-cursor-on textarea,html.sfm-cursor-on select{cursor:auto!important}
.sfm-cursor{position:fixed;left:0;top:0;z-index:100004;pointer-events:none;mix-blend-mode:difference}
.sfm-dot,.sfm-ring{position:absolute;left:0;top:0;border-radius:50%;transform:translate(-50%,-50%)}
.sfm-dot{width:7px;height:7px;background:#fff}
.sfm-ring{width:40px;height:40px;border:1.5px solid #fff;display:grid;place-items:center;transition:width .45s cubic-bezier(.22,1,.36,1),height .45s cubic-bezier(.22,1,.36,1),background-color .3s,border-color .3s}
.sfm-ring i{font:700 11px/1 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;font-style:normal;color:#000;opacity:0;transition:opacity .25s}
.sfm-cursor.is-hover .sfm-ring{width:66px;height:66px;background:#fff}
.sfm-cursor.is-label .sfm-ring{width:92px;height:92px;background:#fff}
.sfm-cursor.is-label .sfm-ring i{opacity:1}
.sfm-cursor.is-hover .sfm-dot,.sfm-cursor.is-label .sfm-dot{opacity:0}
.sfm-cursor.is-down .sfm-ring{transform:translate(-50%,-50%) scale(.85)}
.sfm-cursor.is-hidden{opacity:0}

/* títulos divididos em palavras */
.sfm-w{display:inline-block;overflow:hidden;vertical-align:top;padding:0 .02em .1em;margin:0 -.02em -.1em}
.sfm-wi{display:inline-block;will-change:transform}
.sfm-sw{transition:none}

/* luz que segue o mouse no hero */
.sfm-spot{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;transition:opacity .6s;background:radial-gradient(520px circle at var(--sx,50%) var(--sy,50%),var(--sfm-spot,rgba(255,255,255,.16)),transparent 62%);mix-blend-mode:var(--sfm-spot-blend,soft-light)}
.sfm-spot.on{opacity:1}
