/* ACAISAN PLAN · árvore de Natal do audiovisual ao lado dos vídeos (natal-arvore.js). Só na temporada e em tela larga. */
.cv__arvore{display:none}
@media (min-width:1000px){
  .cv__stage.has-arvore{--cv-tree:clamp(320px,33vw,440px);--cv-gap:clamp(20px,3vw,48px);
    --cv-w:min(700px,calc(100vw - 48px - var(--cv-tree) - var(--cv-gap) - var(--cv-n)*var(--cv-peek)));
    display:grid;grid-template-columns:var(--cv-tree) auto;gap:var(--cv-gap);align-items:center;justify-content:center}
  .has-arvore .cv__arvore{display:block;aspect-ratio:4/5;pointer-events:none;position:relative}
  .has-arvore .cv__deck{margin:0}
}
.cv__arvore::before{content:"";position:absolute;inset:4% -8% 0;background:radial-gradient(closest-side,rgba(245,196,81,.13),rgba(229,72,77,.05) 60%,transparent)}
.cv__arvore svg{position:relative;display:block;width:100%;height:100%;overflow:visible}
.xa-wires{fill:none;stroke:#07130b;stroke-width:2.4}
.xa-film{fill:none;stroke:#8d8069;stroke-width:29}
.xa-film-in{fill:none;stroke:#17140f;stroke-width:26}
.xa-frames{fill:none;stroke:#e9b34c;stroke-opacity:.82;stroke-width:11.5;stroke-dasharray:19 4}
.xa-holes{fill:none;stroke:#f4ead2;stroke-width:3.4;stroke-dasharray:4 7.5}
.xa-sw{transform-origin:0 -40px}
.xa-clap{transform-origin:-33px -11px;transform:rotate(-14deg)}
.xa-halo{transform-origin:400px 100px}

/* Movimento: só com a árvore na tela e fora do modo suave (?movimento=0) */
html:not(.is-soft) .xa-l{animation:xa-blink calc(2.2s + var(--i)*.17s) ease-in-out calc(var(--i)*-.61s) infinite}
html:not(.is-soft) .xa-sw{animation:xa-sway calc(3.6s + var(--i)*.23s) ease-in-out calc(var(--i)*-.9s) infinite alternate}
html:not(.is-soft) .xa-frames,html:not(.is-soft) .xa-holes path{animation:xa-film 3.4s linear infinite}
html:not(.is-soft) .xa-spin{animation:xa-spin 9s linear infinite}
html:not(.is-soft) .xa-clap{animation:xa-clap 5s ease-in infinite}
html:not(.is-soft) .xa-halo{animation:xa-halo 3s ease-in-out infinite alternate}
html:not(.is-soft) .xa-rec{animation:xa-rec 1.4s steps(1) infinite}
html:not(.is-soft) .xa-drone{animation:xa-drone 6s ease-in-out infinite alternate}
html:not(.is-soft) .xa-prop{animation:xa-prop .16s linear infinite alternate}
html .cv__arvore:not(.is-on) *{animation-play-state:paused!important}
@keyframes xa-blink{0%,38%,100%{opacity:1}62%,78%{opacity:.16}}
@keyframes xa-sway{from{transform:rotate(4deg)}to{transform:rotate(-4deg)}}
@keyframes xa-film{to{stroke-dashoffset:-23px}}
@keyframes xa-spin{to{transform:rotate(360deg)}}
@keyframes xa-clap{0%,86%{transform:rotate(-14deg)}91%{transform:rotate(-24deg)}94%,97%{transform:rotate(0)}100%{transform:rotate(-14deg)}}
@keyframes xa-halo{from{opacity:.55;transform:scale(.9)}to{opacity:1;transform:scale(1.08)}}
@keyframes xa-rec{50%{opacity:.15}}
@keyframes xa-drone{0%{transform:translate(-10px,7px) rotate(-2.5deg)}50%{transform:translate(6px,-8px) rotate(1deg)}100%{transform:translate(14px,5px) rotate(2.5deg)}}
@keyframes xa-prop{from{transform:scaleX(1)}to{transform:scaleX(.25)}}
@media print{.cv__arvore{display:none!important}}
