/* Walk on (layer/particles/120), INV-16 Little Us stage 2. Every "before" state is under html.pa121-on, so the page without the script is the finished
   page. Everything ends at no transform, so nothing rests on its own layer on an iPhone (AG-T347), and transitions leave nothing behind (AG-T332). */
.pa121 { display: none; }

/* Words: the script writes itself; the rest settles 12 px, no further (AG-T333) */
html.pa121-on :is(.k-lu-ttl .k-lu-scr, .cl121__line) { clip-path: inset(-40% -8% -40% -8%); transition: clip-path .95s cubic-bezier(.45, 0, .3, 1) .1s; }
html.pa121-on :is(.k-lu-ttl:not(.is-in) .k-lu-scr, .cl121__line:not(.is-in)) { clip-path: inset(-40% 108% -40% -8%); }
html.pa121-on :is(.k-lu-kick, .k-lu-note, .k-lu-caps, .st121__p, .cl121__date, .dc121-row) { transition: opacity .8s ease, transform 1s var(--k-ease); }
html.pa121-on :is(.k-lu-kick, .k-lu-note, .k-lu-caps, .st121__p, .cl121__date, .dc121-row):not(.is-in) { opacity: 0; transform: translateY(12px); }
html.pa121-on .dc121-row:nth-child(2) { transition-delay: .1s; }
html.pa121-on .dc121-row:nth-child(n + 3) { transition-delay: .2s; }
html.pa121-on .he121 :is(.k-lu-kick, .k-lu-note, .k-lu-caps), html.pa121-on .op121 :is(.k-lu-kick, .k-lu-note, .k-lu-caps), html.pa121-on :is(.rs121-form, .rs121-mine) :is(.k-lu-kick, .k-lu-note, .k-lu-caps) { opacity: 1; transform: none; }

/* A heart divider draws itself, out from the heart */
html.pa121-on .k-lu-heart { clip-path: inset(-20% 0 -20% 0); transition: clip-path .9s cubic-bezier(.45, 0, .3, 1) .15s; }
html.pa121-on .k-lu-heart:not(.is-in) { clip-path: inset(-20% 50% -20% 50%); }
html.pa121-on :is(.he121, .op121, .rs121-form, .rs121-mine) .k-lu-heart { clip-path: none; }

/* The red goes on last: each drawing arrives in pencil grey, then its red is pressed in over three held frames */
html.pa121-on .k-lu-draw .k-lu-acc { transition: opacity 400ms steps(3, end) .25s; }
html.pa121-on .k-lu-draw:not(.is-red) .k-lu-acc { opacity: 0; }
/* the closing's words wait for the walk */
html.pa121-on .cl121 :is(.k-lu-caps, .cl121__date, .k-lu-heart) { transition-delay: 1.1s; }
html.pa121-on .cl121 .cl121__line { transition-delay: .8s; }

/* A photo: a sheet of the page slides off it to the right, on the opener's curve, inside the print's own frame */
html.pa121-on .k-lu-print { position: relative; overflow: hidden; }
html.pa121-on .k-lu-print::after { content: ""; position: absolute; inset: 0; background: var(--k-paper) var(--k-lu-tile) 0 0 / 512px 512px repeat; transition: transform 1100ms cubic-bezier(.52, .04, .34, 1), visibility 0s linear 1100ms; }
html.pa121-on .k-lu-print.is-in::after { transform: translateX(101%); visibility: hidden; }

/* The pencil ring round the day */
html.pa121-on .dt121__ring path { stroke-dasharray: 1 1; transition: stroke-dashoffset 1s cubic-bezier(.45, 0, .3, 1); }
html.pa121-on .dt121__ring:not(.is-in) { visibility: hidden; }
html.pa121-on .dt121__ring:not(.is-in) path { stroke-dashoffset: 1; }

/* The line draws itself to each stop, once; the dot lands, then the words arrive */
html.pa121-on .ev121-ev .ev121-ev__line { transition: transform .8s cubic-bezier(.45, 0, .3, 1); }
html.pa121-on .ev121-ev:not(.is-in) .ev121-ev__line { transform: scaleY(0); }
html.pa121-on .ev121-ev .ev121-ev__dot { transition: transform .5s cubic-bezier(.3, 1.5, .5, 1) .55s; }
html.pa121-on .ev121-ev:not(.is-in) .ev121-ev__dot { transform: scale(0); }
html.pa121-on .ev121-ev > :is(p, div) { transition: opacity .8s ease .55s, transform 1s var(--k-ease) .55s; }
html.pa121-on .ev121-ev:not(.is-in) > :is(p, div) { opacity: 0; transform: translateY(12px); }
html.pa121-on :is(.ev121-gap, .ev121-rule__w) { clip-path: inset(-40% -8% -40% -8%); transition: clip-path .85s cubic-bezier(.45, 0, .3, 1) .3s; }
html.pa121-on .ev121-ev:not(.is-in) .ev121-gap, html.pa121-on .ev121-rule:not(.is-in) + .ev121-rule__w { clip-path: inset(-40% 108% -40% -8%); }
@media (min-width: 980px) { /* across the page on a laptop; a day with one stop keeps its upright line */
  html.pa121-on .ev121-ev:not(.is-in) .ev121-ev__line { transform: scaleX(0); }
  html.pa121-on .ev121-ev:only-child:not(.is-in) .ev121-ev__line { transform: scaleY(0); }
}

/* The countdown starts as dashes; the real numbers arrive once, and never shuffle */
html.pa121-on .cd121__timer:not(.is-in) .kjy-unit__n { position: relative; color: transparent; }
html.pa121-on .cd121__timer:not(.is-in) .kjy-unit__n::after { content: "–"; position: absolute; inset: 0; text-align: center; color: var(--k-ghost); }
html.pa121-on .cd121__timer.is-in .kjy-unit__n { animation: pa121-num .65s ease-out backwards; }
html.pa121-on .cd121__timer.is-in .kjy-unit:nth-child(2) .kjy-unit__n { animation-delay: .1s; }
html.pa121-on .cd121__timer.is-in .kjy-unit:nth-child(3) .kjy-unit__n { animation-delay: .2s; }
html.pa121-on .cd121__timer.is-in .kjy-unit:nth-child(4) .kjy-unit__n { animation-delay: .3s; }
@keyframes pa121-num { from { opacity: 0; transform: translateY(.14em); } }

/* They wait in the frame scowling; one that arrives late rests smiling */
html.pa121-on .ga121__draw.is-ready:not(.is-in):not(.is-late) .k-lu-strip__s { transform: translateX(-50%); }

/* Three small pencil ticks pop when something lands: a timeline stop, the ring closing */
html.pa121-on :is(.ev121-ev__dot, .dt121__d--main)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -22px 0 0 -17px; opacity: 0; pointer-events: none; background: var(--k-lu-tick) center / contain no-repeat; }
html.pa121-on .dt121__d--main::after { width: 62px; height: 62px; margin: -38px 0 0 -31px; }
html.pa121-on .ev121-ev.is-in .ev121-ev__dot::after { animation: pa121-tick 400ms steps(3, end) .95s; }
html.pa121-on .dt121__d--main:has(.dt121__ring.is-in)::after { animation: pa121-tick 400ms steps(3, end) 1s; }
@keyframes pa121-tick { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.15); } }

/* Two pencil lines, hers and his, in the gaps between the sections (A2455, A2463). Thin, with the script titles' own grain. Each draws once and stays. */
.pa121-gap { position: absolute; left: 0; right: 0; top: calc(-70px * var(--pa121-s, 1)); height: calc(140px * var(--pa121-s, 1)); overflow: hidden; pointer-events: none;
  -webkit-mask: var(--k-lu-grain) 0 0 / 192px 192px repeat; mask: var(--k-lu-grain) 0 0 / 192px 192px repeat; }
.pa121-gap svg { position: absolute; top: 0; height: 100%; width: calc(240px * var(--pa121-s, 1)); overflow: visible; }
.pa121-gap svg.is-l { left: calc(-10px * var(--pa121-s, 1)); }
.pa121-gap svg.is-r { right: calc(-10px * var(--pa121-s, 1)); }
.pa121-gap svg.is-c { left: 0; width: 100%; }
.pa121-gap path { fill: none; stroke: var(--k-ink-soft); stroke-width: calc(1.45px / var(--pa121-s, 1)); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.02; stroke-dashoffset: 1; opacity: 0; }
.pa121-gap .is-red { stroke: var(--c-primary); stroke-width: calc(1.5px / var(--pa121-s, 1)); stroke-linejoin: miter; }
.pa121-gap.is-in path { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset var(--t) cubic-bezier(.42, .04, .32, 1) var(--at), opacity 0s linear var(--at); }
.pa121-gap.is-in .is-red { opacity: .86; transition: stroke-dashoffset var(--t) cubic-bezier(.3, .2, .5, 1) var(--at), opacity 0s linear var(--at); }
/* The three pencil ticks pop as the heart is finished */
.pa121-gap__tick { position: absolute; left: 50%; top: calc(14px * var(--pa121-s, 1)); width: 52px; height: 52px; margin-left: -26px; opacity: 0; background: var(--k-lu-tick) center / contain no-repeat; }
.pa121-gap.is-in .pa121-gap__tick { animation: pa121-tick 400ms steps(3, end) var(--at); }
