/* hero-play — camada de interação da primeira impressão (Bárbara Carrion)
   Pista (anéis seguindo o cursor), nome que respira, letreiro com case por palavra e os 4 verbos animados.
   Tudo desliga em prefers-reduced-motion. */

/* ---------- Pista: anéis que seguem o cursor ---------- */
.hero.has-play::after,body.home-motion .hero.has-play::after{translate:var(--ring-x,0px) calc(var(--ring-y,0px) + var(--hero-drift,0px))}
.hero-track{position:absolute;width:min(48vw,720px);aspect-ratio:1;right:-12vw;top:3%;pointer-events:none;z-index:0}
.hero-track .lane{position:absolute;inset:var(--inset);border:1px solid rgba(255,253,250,.28);border-radius:50%;translate:var(--lx,0px) var(--ly,0px)}
.hero-track .lane-1{--inset:11%}
@media(max-width:900px){.hero-track{width:70vw;right:-22vw;top:15%}}

/* ---------- Nome que respira ---------- */
.hero h1.breath{display:block}
.hero h1.breath .w{display:inline-block;white-space:nowrap}
.hero h1.breath .l{display:inline-block;transform-origin:50% 100%;scale:1 var(--sy,1);transition:scale .35s cubic-bezier(.22,1,.36,1)}
.hero h1.breath .inner{display:inline-block;transform-origin:0 100%;scale:var(--hx,1) var(--hy,1)}

/* ---------- Letreiro: case de cada palavra ---------- */
.ticker.has-pace span{position:relative;transition:color .2s}
.ticker.has-pace span[data-case]:hover{color:#ff4b32}
.ticker-tip{position:fixed;z-index:60;pointer-events:none;translate:-50% -100%;margin-top:-10px;padding:8px 12px;background:#fffdfa;color:#171513;font:700 12px/1.2 Arial,sans-serif;letter-spacing:.04em;white-space:nowrap;opacity:0;transition:opacity .15s;box-shadow:0 8px 24px rgba(23,21,19,.25)}
.ticker-tip.is-on{opacity:1}
.ticker-tip b{color:#ff4b32;font-weight:700}

/* ---------- Os 4 verbos ---------- */
.hero-side.has-verbs{max-width:290px}
.hero-side.has-verbs .hero-process li{font-size:clamp(15px,1.2vw,17px)}
.hero-side.has-verbs .hero-process{gap:4px}
.verb-stage{position:relative;width:100%;aspect-ratio:16/10;margin:0 0 12px;overflow:hidden;border-radius:2px;background:rgba(255,253,250,.07)}
.verb-stage svg{position:absolute;inset:0;width:100%;height:100%}
.verb-stage .scene{opacity:0;transition:opacity .35s}
.verb-stage .scene.is-active{opacity:1}
.hero-process.verbs li{padding:0;margin:0}
.hero-process.verbs button{all:unset;cursor:pointer;display:flex;align-items:center;gap:0;width:100%;position:relative;padding:2px 0 5px;font:inherit;text-transform:inherit;letter-spacing:inherit;color:rgba(255,253,250,.62);transition:color .25s}
.hero-process.verbs button::before{content:"✳︎";font-variant-emoji:text;font-size:.8em;color:#171513;width:0;margin-right:0;overflow:hidden;transition:width .3s cubic-bezier(.22,1,.36,1),margin .3s cubic-bezier(.22,1,.36,1)}
.hero-process.verbs button[aria-pressed=true]{color:#fffdfa}
.hero-process.verbs button[aria-pressed=true]::before{width:1.1em;margin-right:.35em}
.hero-process.verbs button:hover{color:#fffdfa}
.hero-process.verbs button:focus-visible{outline:2px solid #fffdfa;outline-offset:3px}
.hero-process.verbs .bar{position:absolute;left:0;bottom:0;height:2px;width:100%;background:rgba(255,253,250,.18);overflow:hidden}
.hero-process.verbs .bar i{position:absolute;inset:0;background:#fffdfa;transform-origin:0 50%;scale:0 1}
.hero-process.verbs button[aria-pressed=true] .bar i{animation:verb-progress var(--dur,4.6s) linear forwards}
.hero-side.is-paused .hero-process.verbs .bar i{animation-play-state:paused}
@keyframes verb-progress{to{scale:1 1}}
.verb-cap{margin:12px 0 0!important;min-height:4.2em;font:400 13px/1.5 Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:#fffdfa;max-width:none!important}
.verb-cap a{display:inline-block;margin-top:4px;color:#171513;font-weight:700;text-decoration:none;border-bottom:1px solid #171513}
.verb-cap a:hover{color:#fffdfa;border-color:#fffdfa}

/* desenho das cenas */
.scene .w{stroke:#fffdfa;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.scene .wf{fill:#fffdfa}
.scene .ink{stroke:#171513;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.scene .inkf{fill:#171513}
.scene .soft{fill:rgba(255,253,250,.35)}
.scene .draw{stroke-dasharray:var(--len);stroke-dashoffset:var(--len)}
.scene.is-active .draw{transition:stroke-dashoffset var(--d,1s) cubic-bezier(.65,0,.35,1) var(--delay,0s);stroke-dashoffset:0}
/* conectar */
.scene .pt{transform-box:fill-box;transform-origin:center;translate:var(--fx) var(--fy);transition:translate .65s cubic-bezier(.22,1,.36,1)}
.scene.is-active .pt{translate:0 0}
.scene .spin{transform-origin:160px 100px}
.scene.is-active .spin{animation:ast-spin 14s linear 1.4s infinite}
@keyframes ast-spin{to{rotate:360deg}}
/* direção */
/* acontecer */
.scene .runner-x{translate:0 0}
.scene.is-active .runner-x{animation:dash .95s cubic-bezier(.5,0,.2,1) .15s forwards}
@keyframes dash{to{translate:236px 0}}
.scene .tape-l,.scene .tape-r{transform-box:fill-box;transition:rotate .45s cubic-bezier(.22,1,.36,1) .95s,translate .45s .95s}
.scene .tape-l{transform-origin:50% 0}
.scene .tape-r{transform-origin:50% 100%}
.scene.is-active .tape-l{rotate:-60deg}
.scene.is-active .tape-r{rotate:60deg}

@media(max-width:900px){.hero-side.has-verbs{max-width:none;display:block}.verb-stage{max-width:420px}}
@media(prefers-reduced-motion:reduce){
  .scene .draw{stroke-dashoffset:0}.scene .pt{translate:0 0}  .scene.is-active .runner-x{animation:none;translate:236px 0}
  .scene .tape-l{rotate:-60deg}.scene .tape-r{rotate:60deg}
  .scene.is-active .spin{animation:none}
  .hero-process.verbs .bar{display:none}
}

/* direção: 3 finais possíveis (a alvo, b asterisco, c ponto) */
.verb-stage .end{display:none}
.verb-stage[data-end=a] .end-a,.verb-stage[data-end=b] .end-b,.verb-stage[data-end=c] .end-c{display:inline}
.scene .end>*{transform-box:fill-box;transform-origin:center;scale:0;transition:scale .4s cubic-bezier(.34,1.56,.64,1) 1.15s}
.scene.is-active .end>*{scale:1}
.scene .end-a>:nth-child(2){transition-delay:1.22s}.scene .end-a>:nth-child(3){transition-delay:1.29s}
.scene.is-active .ast-end{animation:ast-spin 10s linear 2.2s infinite}
.scene.is-active .pulse{animation:pulse 1.6s ease-out 2.1s infinite}
@keyframes pulse{0%{scale:1;opacity:.9}100%{scale:2.6;opacity:0}}
/* acontecer: o percurso fica completo atrás do corredor */
.scene .trail{stroke-dasharray:236;stroke-dashoffset:236}
.scene.is-active .trail{animation:trail .95s cubic-bezier(.5,0,.2,1) .15s forwards}
@keyframes trail{to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.scene .end>*{scale:1}.scene .trail{stroke-dashoffset:0;animation:none}.scene.is-active .pulse,.scene.is-active .ast-end{animation:none}}
