/* Desloppy homepage motion (Luna Motion Kit). Uses the page's own tokens only (desloppy-design section 4). */

/* Lenis (lenis.css 1.1.13, MIT): the page's html{scroll-behavior:smooth} must be off while Lenis drives the scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* The scroll stage only exists when motion is allowed: under reduced motion the page is exactly today's page,
   and because this is plain CSS there is no layout shift when the script loads. */
.dsm-stage { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .dsm-stage { display: block; padding: 88px 0 24px; }
}
.dsm-inner { max-width: 820px; text-align: center; }
/* desktop: the stage holds the screen while the draft deslops, card centred under the sticky nav.
   Set in CSS (not by the script) so nothing moves when the script arrives. */
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) and (pointer: fine) {
.dsm-stage { min-height: 100vh; display: grid; align-content: center; padding: 72px 0 24px; box-sizing: border-box; }
}
.dsm-inner .kicker { display: inline-block; margin-bottom: 18px; }
.dsm-card { position: relative; padding: 28px 30px 24px; text-align: left; }
.dsm-tags { position: relative; height: 18px; margin-bottom: 14px; }
.dsm-tag { position: absolute; left: 0; top: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dsm-tag-before { color: var(--bad); }
.dsm-tag-after { color: var(--human); opacity: 0; }
/* both texts share one grid cell, so the card never changes height while one becomes the other */
.dsm-text { display: grid; }
.dsm-text > p { grid-area: 1 / 1; margin: 0; font-family: Newsreader, Georgia, serif; font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.42; color: var(--ink); }
.dsm-after { opacity: 0; }
.dsm-stage mark.dsm-t { position: relative; background: transparent; color: inherit; border-radius: 4px; padding: 0 2px;
  box-shadow: inset 0 0 0 var(--slop); }
.dsm-stage mark.dsm-t::after { content: ""; position: absolute; left: -1%; right: -1%; top: 54%; height: 2px;
  background: var(--slop); transform: scaleX(var(--strike, 0)); transform-origin: left center; }
.dsm-meter { background: var(--slop); }
.dsm-count { min-width: 64px; text-align: right; color: var(--ink-2); }

/* pinned "How it works" steps: the active step lifts, the others rest */
.dsm-how-pin .feature { transition: border-color .3s; }
.dsm-how-pin .feature.dsm-on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.dsm-how-bar { height: 3px; margin-top: 18px; background: var(--line); border-radius: 999px; overflow: hidden; display: none; }
.dsm-how-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(0); }
.dsm-pinning .dsm-how-bar { display: block; }
/* pins need real section heights: content-visibility:auto sections report a guessed 900px until painted, which put the
   pin start in the wrong place (QA 2026-11-10: the How heading slid over the checker). Desktop motion only. */
.dsm-pinning section.block { content-visibility: visible; }

/* split headings: SplitText line masks */
.lmk-line { padding-bottom: .08em; margin-bottom: -.08em; }

/* fog accent lives inside the hero, under the copy */
.hero .lmk-fog { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; z-index: 2 !important; }

@media (max-width: 580px) {
  .dsm-stage { padding-top: 64px; }
  .dsm-card { padding: 22px 20px 18px; }
}
