/* ==========================================================================
   APPROACH · ENTRANCES (initial states only)
   --------------------------------------------------------------------------
   Content marked [data-ap] starts hidden only when <html> has .ap-motion,
   which the head script sets when motion is allowed, and removes again if the
   controller (scripts/approach-motion.js) has not reported ready within 3 s.
   Without JavaScript, or with reduced motion, nothing here applies.
   The controller plays each entrance once with the Web Animations API on
   these elements or on wrappers, so it never shares a property with the
   philosophy text choreography, the blobs' pointer motion or the tab thread.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html.ap-motion [data-ap]:not(.ap-shown) { opacity: 0; }
  /* the other offer modes keep their own presentation */
  html.ap-motion .offers:not([data-mode="living"]) [data-ap] { opacity: 1; }

  /* headings that rise from below their own baseline */
  html.ap-motion .ap-line:not(.ap-shown) { transform: translateY(105%); }
  html.ap-motion .ap-mask:not(.ap-done) {
    overflow: clip;
    /* room for ascenders and descenders, given back so layout is unchanged */
    padding-block: 0.12em 0.2em;
    margin-block: -0.12em -0.2em;
  }

  /* the tab rule and the selected-tab thread draw in */
  html.ap-motion .phil__tabs:not(.ap-rule-shown) { border-bottom-color: transparent; }
  html.ap-motion .phil__thread:not(.ap-shown) { clip-path: inset(0 100% 0 0); }

  /* the forms and accents drawn by scripts/living.js */
  html.ap-motion .offers[data-mode="living"] .lv-art > :not(.ap-shown) { opacity: 0; }
}

.ap-mask, .ap-line { display: block; }

/* the forms enter around their own centre */
.offers[data-mode="living"] .lv-art path,
.offers[data-mode="living"] .lv-art circle { transform-box: fill-box; transform-origin: 50% 55%; }
