/* Paper Trail motion (Nov 28 2026; Brady: "make it look like a $1 million studio", "that fancy drip button",
   "for all of the websites"). The receipt printer: the example slip prints out of a slot, the headline types on,
   buttons print a little paper tab on hover. Every rule here needs html.mo, which the head script sets only when the
   visitor hasn't asked for reduced motion, so reduced motion (and no JS) = the plain page. Desktop extras need
   (pointer:fine). CSS + one small script (motion.js); no canvas, no library. Words never change. */

/* ---- the example receipt prints out of a slot (every screen size; CSS only) ---- */
html.mo[data-skin] body .pt-ph .scr{position:relative;overflow:hidden;padding:16px 10px 28px!important;margin:0 -10px}
html.mo .pt-ph .scr::before{content:"";position:absolute;left:0;right:0;top:0;height:16px;background:#1A1A1A;z-index:3;
  box-shadow:0 5px 8px -4px rgba(0,0,0,.55);clip-path:inset(0 0 -12px 0)}
html.mo .pt-ph .scr::after{content:"";position:absolute;left:12px;right:12px;top:7px;height:2px;background:#000;z-index:4}
html.mo .pt-ph .rc{animation:pt-print 1.9s steps(26,end) .35s both}
html.mo .pt-ph .rc .ok{animation:pt-ok .45s ease-out 2.35s both}
html.mo .pt-ph .rc .code b{animation:pt-ink .6s ease-out 2.1s both}
@keyframes pt-print{0%{transform:translateY(-104%)}100%{transform:translateY(0)}}
@keyframes pt-ok{0%{opacity:0;transform:scale(.7)}70%{opacity:1;transform:scale(1.08)}100%{opacity:1;transform:none}}
@keyframes pt-ink{0%{background-color:#1A1A1A;color:#F7F3E8}100%{}}
html.mo .pt-ph .rc.printed{animation:none}

/* ---- headline types on, word by word (motion.js splits the words; until then it stays hidden) ---- */
html.mo .pt-txt h1,html.mo .sp .hero h1{animation:pt-show 0s 1.6s both}
html.mo .pt-txt h1.split,html.mo .sp .hero h1.split{animation:none}
html.mo h1.split .w{display:inline-block;opacity:0;animation:pt-type .01s steps(1,end) both;animation-delay:calc(.12s + var(--i) * .13s)}
html.mo h1.split .w{position:relative}
html.mo h1.split .w::after{content:"";position:absolute;left:calc(100% + .08em);top:.12em;width:.5em;height:.85em;background:currentColor;opacity:0;animation:pt-caret .26s steps(1,end) both;animation-delay:inherit}
html.mo h1.split .w:last-child::after{animation:pt-caret-end 1.6s steps(1,end) both;animation-delay:inherit}
@keyframes pt-show{from{opacity:0}to{opacity:1}}
@keyframes pt-type{from{opacity:0}to{opacity:1}}
@keyframes pt-caret{0%{opacity:1}99%{opacity:1}100%{opacity:0}}
@keyframes pt-caret-end{0%,25%,50%,75%{opacity:1}12%,37%,62%,100%{opacity:0}}

/* ---- quiet reveals below the hero ---- */
html.mo .rv{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
html.mo .rv.in{opacity:1;transform:none}

/* ---- buttons print a paper tab on hover (desktop) ---- */
@media (pointer:fine){
  html.mo .pt-txt .pill.solid,html.mo main button.go,html.mo .sp a.go{position:relative;overflow:visible!important;isolation:isolate}
  html.mo .pt-txt .pill.solid::after,html.mo main button.go::after,html.mo .sp a.go::after{content:"";position:absolute;left:18%;right:18%;top:100%;height:0;z-index:-1;
    background:#fff repeating-linear-gradient(#fff 0 5px,#e9e4d6 5px 6px);border:1px solid #1A1A1A;border-top:0;
    -webkit-mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50%/10px 100%;
    mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50%/10px 100%;
    transition:height .55s steps(9,end)}
  html.mo .pt-txt .pill.solid:hover::after,html.mo main button.go:hover::after,html.mo .sp a.go:hover::after{height:15px}

  /* square cursor ring, like the corner mark on a slip */
  .pt-ring{position:fixed;left:0;top:0;width:22px;height:22px;margin:-11px 0 0 -11px;border:1.5px solid #1A1A1A;pointer-events:none;z-index:9999;
    opacity:0;transition:opacity .2s,width .25s,height .25s,margin .25s,background .25s;mix-blend-mode:multiply}
  .pt-ring.on{opacity:1}
  .pt-ring.big{width:44px;height:44px;margin:-22px 0 0 -22px;background:rgba(200,35,28,.08);border-color:#C8231C}

  /* the slip tilts toward the pointer, with a soft sheen */
  html.mo .pt-ph .scr{transition:transform .5s cubic-bezier(.2,.7,.2,1);transform-style:preserve-3d}
  html.mo .pt-ph .rc{position:relative}
  html.mo .pt-ph .rc::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .3s;
    background:radial-gradient(circle at var(--mx,50%) var(--my,30%),rgba(255,255,255,.55),rgba(255,255,255,0) 45%)}
  html.mo .pt-ph:hover .rc::after{opacity:1}
}

/* ---- header: sticks on wide screens and turns to frosted paper once you scroll ---- */
@media (min-width:900px){
  html.mo[data-skin="paper-trail"] body header.top.wm-top{position:sticky!important;top:0;z-index:50;transition:background .3s,box-shadow .3s}
  html.mo[data-skin="paper-trail"] body header.top.wm-top.glass{background:rgba(247,243,232,.8)!important;-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);box-shadow:0 8px 24px -18px rgba(0,0,0,.6)!important}
}
@media (prefers-reduced-motion:reduce){.pt-ring{display:none}}
@media print{html.mo .pt-ph .rc,html.mo h1 .w,html.mo .rv{animation:none!important;opacity:1!important;transform:none!important}}
