/* The proposed page-unfolding standard (D125, NOT ruled), shown only with ?unfold=1 so Arthur can compare before and after.
   Rules: home-v16/research-page-unfolding-2026-11-19.md. Every rule sits under html.unfold, which a one-line script in the head adds
   only when the address carries ?unfold=1. Without the flag this file changes nothing. Used by the home page (home18) and the
   article shell (copied to research-v14/unfold.css). */

/* R1 · home hero: the promise is there at the first paint; the light plays over it (blur and glow, no fade from nothing, no lift) */
/* (only the home hero: the one with the day's windows; the article hero has its own .copy) */
html.unfold.js:not(.static) .hero:has(> .day) .copy>*{opacity:1;transform:none;filter:blur(4px);text-shadow:0 0 24px rgba(244,244,242,.85);
  transition:filter .9s cubic-bezier(.2,.8,.2,1),text-shadow 1.2s ease-out}
html.unfold.js:not(.static) .hero.go:has(> .day) .copy>*{filter:none;text-shadow:0 0 0 rgba(244,244,242,0)}
/* R8 · the hero scene stays as built: the CSS sky is there at the first paint, the moving sky takes over, and the five windows land as her light
   passes (7-11 s), like titles inside a film. Shown dim from the start they crossed Astra's talk (tried 19 Nov), so they are left alone. */

/* R2 · a section heading arrives out of light, once, in under a second */
@media (prefers-reduced-motion:no-preference){
  html.unfold.js .uf-h{filter:blur(6px);opacity:.15;transform:translateY(8px);text-shadow:0 0 22px rgba(244,244,242,.9)}
  html.unfold.js .uf-h.in{filter:none;opacity:1;transform:none;text-shadow:0 0 0 rgba(244,244,242,0);
    transition:opacity .5s cubic-bezier(.2,.8,.2,1),filter .5s cubic-bezier(.2,.8,.2,1),transform .55s cubic-bezier(.16,1,.3,1),text-shadow .9s ease}
}

/* R3 · the Book: its text is never hidden (0.6 to 1, no movement); its pictures fade in (R4) */
html.unfold.js .bk-page.arm>*,html.unfold.js .bk-page.arm .bk-saved li{opacity:.6;transform:none;transition:opacity .3s ease-out}
html.unfold.js .bk-page.arm .bk-pics button{opacity:0;transform:none;transition:opacity .25s ease-out}
html.unfold.js .bk-page.arm.in>*,html.unfold.js .bk-page.arm.in .bk-saved li,html.unfold.js .bk-page.arm.in .bk-pics button{opacity:1}

/* R1 + R3 · article hero: the title is there at once (light over it); the line under it no longer waits a second */
@keyframes ufLift{from{opacity:.6}to{opacity:1}}
html.unfold .hero .kick,html.unfold .hero .line,html.unfold .hero .meta{animation:ufLift .3s ease-out both!important}
@media (prefers-reduced-motion:no-preference){
  html.unfold.rv .hero h1 .wd{opacity:.15}
  html.unfold.rv .hero h1.in .wd{opacity:1}
}

/* R4 · an image below the hero keeps its space and fades in once it has decoded */
html.unfold img.uf-i{opacity:0;transition:opacity .25s ease-out}
html.unfold img.uf-i.ok{opacity:1}

@media (prefers-reduced-motion:reduce){
  html.unfold .uf-h,html.unfold img.uf-i{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
}
