/* JOLAN V1.0.4 — A focused fix for Nuestra historia.
   In V1.0.3 the viewport trigger ran early and styles.css disabled every
   animation with !important when Windows prefers reduced motion.
   This file preserves the art/text layout and contains opt-in overrides.
*/
.motion-enabled #origen .origin-art.reveal-item,
.motion-enabled #origen .origin-copy.reveal-item {
  opacity:1;transform:none;transition:none;
}

/* Progressive enhancement: content stays visible without JS or with reduced
   motion unless someone explicitly opts in using the local ?intro=1 URL. */
html.story-art-armed:not(.story-art-play) #origen .origin-rings,
html.story-art-armed:not(.story-art-play) #origen .origin-word,
html.story-art-armed:not(.story-art-play) #origen .origin-art > p,
html.story-art-armed:not(.story-art-play) #origen .origin-icon,
html.story-art-armed:not(.story-art-play) #origen .origin-coordinate,
html.story-copy-armed:not(.story-copy-play) #origen .origin-copy > .section-label,
html.story-copy-armed:not(.story-copy-play) #origen .origin-copy > h2,
html.story-copy-armed:not(.story-copy-play) #origen .origin-copy > blockquote,
html.story-copy-armed:not(.story-copy-play) #origen .origin-copy > p,
html.story-copy-armed:not(.story-copy-play) #origen .origin-signature {
  opacity:0;
}

/* The left visual sequence is intentionally visible: ~2.6s. */
html.story-art-play #origen .origin-rings {
  --story-anim:jstory-rings 1.8s cubic-bezier(.19,.84,.22,1) .06s both;
  animation:var(--story-anim);
}
html.story-art-play #origen .origin-word {
  --story-anim:jstory-word 1.25s cubic-bezier(.18,.85,.2,1) .25s both;
  animation:var(--story-anim);
}
html.story-art-play #origen .origin-word > span {
  --story-anim:jstory-plus 1s cubic-bezier(.15,.83,.2,1) 1.0s both;
  display:inline-block;
  animation:var(--story-anim);
}
html.story-art-play #origen .origin-art > p {
  --story-anim:jstory-lift .85s ease-out 1.04s both;
  animation:var(--story-anim);
}
html.story-art-play #origen .origin-icon {
  --story-anim:jstory-emblem 1.1s cubic-bezier(.2,.85,.2,1) 1.26s both;
  animation:var(--story-anim);
}
html.story-art-play #origen .origin-coordinate {
  --story-anim:jstory-lift .70s ease-out 1.68s both;
  animation:var(--story-anim);
}
html.story-art-play #origen .origin-art::after {
  content:"";
  position:absolute;inset:0;z-index:3;pointer-events:none;
  background:linear-gradient(108deg,transparent 24%,#e6c48612 50%,transparent 73%);
  --story-anim:jstory-sweep 2.3s ease-in-out .24s both;
  animation:var(--story-anim);
}
/* The right-hand narrative triggers INDEPENDENTLY: important for mobile. */
html.story-copy-play #origen .origin-copy > .section-label {
  --story-anim:jstory-lift .76s ease-out .1s both;
  animation:var(--story-anim);
}
html.story-copy-play #origen .origin-copy > h2 {
  --story-anim:jstory-lift 1.12s cubic-bezier(.19,.84,.2,1) .30s both;
  animation:var(--story-anim);
}
html.story-copy-play #origen .origin-copy > blockquote {
  --story-anim:jstory-quote 1.35s cubic-bezier(.19,.83,.22,1) .65s both;
  animation:var(--story-anim);
}
html.story-copy-play #origen .origin-copy > p {
  --story-anim:jstory-lift .92s ease-out 1.12s both;
  animation:var(--story-anim);
}
html.story-copy-play #origen .origin-signature {
  --story-anim:jstory-lift .85s ease-out 1.5s both;
  animation:var(--story-anim);
}
@keyframes jstory-rings {
  from{opacity:0;transform:translate(-50%,-50%) scale(.76);filter:blur(7px)}
  to{opacity:1;transform:translate(-50%,-50%) scale(1);filter:blur(0)}
}
@keyframes jstory-word {
  from{opacity:0;transform:translate3d(0,32px,0) scale(.94);filter:blur(8px);clip-path:inset(0 100% 0 0)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0);clip-path:inset(0 0 0 0)}
}
@keyframes jstory-plus {
  0%{opacity:.12;transform:scale(.55);filter:brightness(1)}
  65%{opacity:1;transform:scale(1.18);filter:brightness(1.65)}
  100%{opacity:1;transform:scale(1);filter:brightness(1)}
}
@keyframes jstory-lift {
  from{opacity:0;transform:translate3d(0,30px,0);filter:blur(5px)}
  to{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}
}
@keyframes jstory-emblem {
  from{opacity:0;transform:translate3d(0,33px,0) scale(.75);filter:blur(9px)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0)}
}
@keyframes jstory-quote {
  from{opacity:0;transform:translate3d(16px,0,0);filter:blur(6px);clip-path:inset(0 0 100% 0)}
  to{opacity:1;transform:translate3d(0,0,0);filter:blur(0);clip-path:inset(0 0 0 0)}
}
@keyframes jstory-sweep {
  0%{opacity:0;transform:translateX(-110%)}
  24%{opacity:1}
  90%{opacity:1}
  100%{opacity:0;transform:translateX(110%)}
}

