/* The tree (#188), shared by Home and The Standard; loaded whenever the tree renders. */

/* The tree: layers stacked as on the canvas; the full tree shows by default. */
.mt-tree { position: relative; width: 100%; aspect-ratio: 622 / 501; overflow: hidden; }
.mt-tree__l { position: absolute; display: block; height: auto; max-width: none; }
.mt-tree__ghost { opacity: .7; }

/* Build once, about 6 s: ghost, roots, trunk, branches, leaves (#188). JS arms it; reduced motion never arms it. */
.mt-tree.is-armed .mt-tree__l { opacity: 0; }
.mt-tree.is-building .mt-tree__ghost { animation: mtTreeGhost .6s ease-out forwards; }
.mt-tree.is-building .mt-tree__roots { animation: mtTreeRoots 1.3s ease-out .5s forwards; }
.mt-tree.is-building .mt-tree__trunk { animation: mtTreeFade 1.2s ease-out 1.8s forwards; }
.mt-tree.is-building .mt-tree__branches { animation: mtTreeFade 1.4s ease-out 3s forwards; }
.mt-tree.is-building .mt-tree__leaves { animation: mtTreeLeaves 1.6s ease-out 4.4s forwards; }
@keyframes mtTreeGhost { from { opacity: 0; } to { opacity: .7; } }
@keyframes mtTreeRoots { from { opacity: 1; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes mtTreeFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mtTreeLeaves { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
