/* CFS site · motion layer, first paint (motion build only, CFS_MOTION=1). Pairs with assets/js/motion.js.
   The head links this file render-blocking, so it holds only what must be right in the first frame: the states the
   motion layer starts from, the pins that stop it hiding what is already on screen, and the arrival cover. The rest
   is motion-effects.css, which the head script loads after first paint. html.m is set in <head> only when motion is
   allowed; pre-hidden states are scoped to it. */
:root { --m-curtain: var(--cobalt); --m-ease: var(--ease-out); }

/* pages cross-fade natively; no script, and no guard needed because nothing moves */
@view-transition { navigation: auto; }

html.m-arrive::after { content: ""; position: fixed; inset: 0; z-index: 2147483646; background: var(--m-curtain);
  animation: m-arrive-fallback .3s 1.6s forwards; }
@keyframes m-arrive-fallback { to { opacity: 0; visibility: hidden; } }

/* ------------------------------------------------------------ hero: pre-states before the sequence runs */
/* The headline, buttons, plan and Analyst window paint with the page, not when motion.js arrives: the headline and the
   plan are what the reader (and LCP) sees first. motion.js still starts its entrances on them, so these pins hold them
   in place (!important beats both its inline styles and its animations). Only the answer inside the window waits,
   because the sequence types the question and then builds the answer. */
.m :is(.hero .display, .hero .display .m-w, .hero-copy .lede, .hero-copy .btn-row, .hero-app) { opacity: 1 !important; transform: none !important; }
.m .hero-app .app-q, .m .hero-app .app-a, .m .hero-app .app-verdict, .m .hero-app .app-fig, .m .hero-app .rank { opacity: 0; }

/* ------------------------------------------------------------ inner-page heroes: painted at once */
/* The first section's text is on screen at first paint (its h1 or lede is the page's LCP). When motion.js arrives the
   crumb and eyebrow still decode in place; these pins stop its fade and rise from hiding text that is already read. */
.m main > section:first-of-type:not(.hero) :is(.crumbs, .eyebrow, h1, h1 .m-w, .lede, .page-dek, .lede-sm, .btn-row, .x-meta, .p-hero-side > p):not(:is(.app, .assist, .x-chat, .panel, .p-surface, .x-term) *) { opacity: 1 !important; transform: none !important; }
/* motion.js splits these headlines into inline-block lines, words and letters; letters in their own boxes lose their
   kerning, so some headlines re-wrap onto a line more or less. They are pinned and never move, so every piece stays
   inline and the headline keeps the lines it was painted with. */
.m :is(.hero .display, main > section:first-of-type h1) :is(.split-line, .m-w, .split-char) { display: inline !important; vertical-align: baseline !important; }

summary::-webkit-details-marker { display: none; }
