/* FUNDO: árvore em SVG, folhas ao vento, folhas caindo e abertura (splash) */
#tree{position:fixed;inset:0;width:100%;height:100%;z-index:0;opacity:.85;transition:opacity 1s;transform-origin:0 100%;animation:sway 9s ease-in-out infinite alternate}
.intro #tree{opacity:1}
.br{fill:none;stroke:var(--beige);stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:grow .7s ease-out var(--d) forwards}
.lf{opacity:0;transform-box:fill-box;transform-origin:center;animation:pop .6s ease-out var(--d) forwards}
.retract .br{stroke-dashoffset:0;animation:ret .5s ease-in forwards}
.retract .lf{animation:unpop .4s ease-in forwards}
@keyframes grow{to{stroke-dashoffset:0}}@keyframes ret{to{stroke-dashoffset:1}}
@keyframes pop{from{opacity:0;transform:scale(0)}to{opacity:.92;transform:scale(1)}}
@keyframes unpop{to{opacity:0;transform:scale(0)}}
@keyframes sway{to{transform:rotate(1.3deg)}}
#leaves i{position:fixed;top:-30px;width:var(--s,10px);height:calc(var(--s,10px)*1.6);border-radius:0 100% 0 100%;background:var(--c,#83A987);opacity:.55;z-index:1;animation:fall linear infinite}
@keyframes fall{25%{transform:translate(40px,28vh) rotate(90deg)}50%{transform:translate(-30px,56vh) rotate(200deg)}75%{transform:translate(50px,84vh) rotate(290deg)}to{transform:translate(-10px,110vh) rotate(380deg)}}
.c0{fill:#83A987}.c1{fill:#6FA06F}.c2{fill:#A6C98A}.c3{fill:#C5E86C}.c4{fill:#3F7A55}
#splash{position:fixed;inset:0;display:grid;place-items:center;z-index:5;font-size:clamp(2.6rem,11vw,8rem);letter-spacing:.08em;color:var(--beige);pointer-events:none;opacity:0;visibility:hidden}
.intro #splash{visibility:visible;animation:name 3s ease forwards 1.2s}
@keyframes name{0%{opacity:0;transform:translateY(20px)}30%,80%{opacity:1;transform:none}100%{opacity:0}}
@keyframes wind{from{transform:rotate(-7deg)}to{transform:rotate(9deg)}}
.w{transform-box:fill-box;transform-origin:50% 100%;animation:wind 5s ease-in-out infinite alternate var(--wd,0s)}
@media(max-width:700px){.w{animation:none}#tree{animation:none}#leaves i:nth-child(n+8){display:none}}

/* Vidro fosco sobre a árvore: some durante a animação da árvore e volta depois, para os textos ficarem legíveis */
#veil{position:fixed;inset:0;z-index:1;pointer-events:none;background:rgba(16,43,34,.6);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);opacity:0;transition:opacity 1.3s ease}
body:not(.intro):not(.clear) #veil{opacity:1}
@media(max-width:700px){#veil{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}
