/* THE START-UP: the host's styles (the registered start-up's landings, its night stage, its skip) */

/* the page's landings, softer, each on the delay its start-up gives it (--land, --gd) */
html.intro-v2.grid-boot [data-tile]:not([data-boot-on-view]) { transform: translateY(6px); }
html.intro-v2.grid-boot.grid-landing [data-tile]:not([data-boot-on-view]) { animation: intro-land 0.95s cubic-bezier(0.16, 1, 0.3, 1) var(--land, 1s) both; }
@keyframes intro-land { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html.intro-v2.grid-boot.grid-landing .gw { animation: intro-write 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--gd, 1.2s) both; }
@keyframes intro-write {
  0% { opacity: 0; color: var(--grid-light); text-shadow: 0 0 16px var(--grid-light); }
  45% { opacity: 1; color: var(--grid-light); text-shadow: 0 0 8px var(--grid-light); }
  100% { opacity: 1; color: inherit; text-shadow: 0 0 0 transparent; }
}
/* the orb comes in when its start-up says (--land on its tile), over the page's own spring */
html.intro-v2.grid-boot.grid-landing .t-orb { visibility: visible !important; animation: intro-orb 1.25s cubic-bezier(0.16, 1, 0.3, 1) var(--land, 0.1s) both !important; }
@keyframes intro-orb { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

/* the night stage: the window is #0c0e14 from the first paint until the field has drawn, then the field carries it */
html.intro-night.grid-boot:not(.intro-live)::before { content: ""; position: fixed; inset: 0; z-index: 899; background: #0c0e14; }
html.intro-night.grid-boot .grid-field { z-index: 900; }

/* a skip dips the field out and back instead of cutting */
html.intro-v2 .grid-field { transition: opacity 0.3s ease-out; }
html.intro-skip .grid-field { opacity: 0; transition: opacity 0.16s ease-out; }

@media (prefers-reduced-motion: reduce) {
  html.intro-v2.grid-boot [data-tile], html.intro-v2.grid-boot.grid-landing [data-tile], html.intro-v2.grid-boot.grid-landing .t-orb { opacity: 1; transform: none; animation: none !important; }
}

/* the chat bar lands on its own clock (its --land, set by the host from the start-up's front: the bar's farthest corner) */
html.intro-v2.grid-boot .t-hello .askbar { opacity: 0; }
html.intro-v2.grid-boot.grid-landing .t-hello .askbar { animation: intro-land 0.95s cubic-bezier(0.16, 1, 0.3, 1) var(--land, 1s) both; }
@media (prefers-reduced-motion: reduce) { html.intro-v2.grid-boot .t-hello .askbar { opacity: 1; animation: none !important; } }
