/* logo assembly: book rises, the centre ignites, light spreads and lights the gate, then the name; rest states are the final look.
   Every intro time below is multiplied by --speed (tokens.css): lower = faster. */
.lg { display: block; overflow: visible; }

.lg-ghost { opacity: .22; animation: lg-ghost calc(.9s * var(--speed)) var(--ease) calc(.1s * var(--speed)) both; }
.lg-book { animation: lg-rise calc(1.1s * var(--speed)) var(--ease) calc(.55s * var(--speed)) both; }
.lg-gate { animation: lg-settle calc(1.7s * var(--speed)) var(--ease) calc(1.55s * var(--speed)) both; }
.lg-ar { animation: lg-rise-s calc(1s * var(--speed)) var(--ease) calc(2.75s * var(--speed)) both; }
.lg-en { animation: lg-rise-s calc(1s * var(--speed)) var(--ease) calc(3.05s * var(--speed)) both; }

.lg-reveal { animation: lg-reveal calc(1.9s * var(--speed)) cubic-bezier(.3, .6, .25, 1) calc(1.55s * var(--speed)) both; }
.lg-wipe { transform: scaleX(1.25); animation: lg-wipe calc(1.2s * var(--speed)) var(--ease) calc(2.7s * var(--speed)) both; }
.lg-wipe--en { animation-delay: calc(3s * var(--speed)); }

.lg-hot { opacity: 0; animation: lg-hot calc(2s * var(--speed)) ease-out calc(1.5s * var(--speed)) both; }
.lg-flash { opacity: 0; animation: lg-flash calc(1.7s * var(--speed)) ease-out calc(1.5s * var(--speed)) both; }
.lg-ring { opacity: 0; animation: lg-ring calc(1.9s * var(--speed)) cubic-bezier(.2, .7, .3, 1) calc(1.55s * var(--speed)) both; }
.lg-tip { opacity: 0; animation: lg-tip 6s ease-in-out calc(2.9s * var(--speed)) infinite; }
.lg-shine { opacity: 0; transform: translateX(-40px) skewX(-18deg); animation: lg-shine 7.5s ease-in-out calc(4.3s * var(--speed)) infinite; }

.cs__glow { animation: cs-glow-in calc(1.8s * var(--speed)) ease calc(1.3s * var(--speed)) both, cs-breathe 6s ease-in-out calc(3.4s * var(--speed)) infinite; }

@keyframes lg-ghost { from { opacity: 0; } to { opacity: .22; } }
@keyframes lg-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lg-rise-s { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lg-settle { from { transform: translateY(-8px); } to { transform: none; } }
@keyframes lg-reveal { from { transform: scale(.03); } to { transform: scale(1); } }
@keyframes lg-wipe { from { transform: scaleX(.02); } to { transform: scaleX(1.25); } }
@keyframes lg-hot { 0% { opacity: 0; } 16% { opacity: .95; } 100% { opacity: 0; } }
@keyframes lg-flash { 0% { opacity: 0; transform: scale(.15); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes lg-ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(7); } }
@keyframes lg-tip { 0%, 100% { opacity: 0; transform: scale(0); } 6% { opacity: 1; transform: scale(1.5); } 18% { opacity: 0; transform: scale(.4); } }
@keyframes lg-shine {
  0%, 62% { opacity: 0; transform: translateX(-40px) skewX(-18deg); }
  66%, 90% { opacity: 1; }
  100% { opacity: 0; transform: translateX(340px) skewX(-18deg); }
}
@keyframes cs-glow-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cs-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
