/* Signature writing page transition — decorative; never traps visitors */

.jamSig{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  margin:0;
  padding:clamp(28px,6vw,64px);
  background:var(--cream,#f5efdf);
  pointer-events:auto;
  opacity:1;
  transition:opacity .25s ease;
}

.jamSig.is-fading{
  opacity:0;
  pointer-events:none;
}

.jamSig.is-gone{
  display:none;
}

.jamSig-mark{
  width:min(520px,calc(100vw - 56px));
  max-width:560px;
  line-height:0;
}

.jamSig-mark svg{
  display:block;
  width:100%;
  height:auto;
  overflow:visible;
}

.jamSig-mark .jam-sig-stroke{
  fill:none;
  stroke:#fff;
  stroke-linecap:round;
  stroke-linejoin:round;
}

html.jam-sig-active{
  overflow:hidden;
}

/* Hold hero blur-in only while a signature transition is pending. */
html.js.jam-sig-pending .hero h1 span{
  animation:none !important;
  opacity:0;
}

html.js.jam-sig-ready .hero h1 span{
  animation:blurFade .46s cubic-bezier(0,0,.58,1) both;
}
html.js.jam-sig-ready .hero h1 span+span{
  animation-delay:.14s;
}

@media (prefers-reduced-motion:reduce){
  .jamSig{display:none !important}
  html.js.jam-sig-pending .hero h1 span,
  html.js.jam-sig-ready .hero h1 span{
    animation:none !important;
    opacity:1;
  }
}
