/* Darkroom (layer/particles/130), INV-17 Silver Print · Luxe stage 2. Every "before" state and every hold is under html.pa130-on, so the page without the script is the
   finished still page. `backwards` fill only, never at rest: no will-change, no blend, no resting 3D (AG-T332, AG-T347). */
.pa130 { display: none; }

/* The date locks together: a held stage */
html.pa130-on .dt130__run { height: 200svh; }
html.pa130-on .dt130__stage { position: sticky; top: 0; height: 100svh; }

/* Fly through the "&": a held stage, 100lvh so no strip of page shows when an iPhone's bar collapses. On a phone the photo takes the top half and the words sit under
   it, so both read in one view (the owner, A2470). Its box is 65svh because the last 17svh melts into the paper, and the "&" sits on the solid 48svh. The sheet rests
   flat; it gets a layer only while it is near. */
html.pa130-on .st130__run.is-fly { height: calc(100lvh + 70svh); }
html.pa130-on .is-fly .st130__stage { position: sticky; top: 0; height: 100lvh; overflow: hidden; }
html.pa130-on .is-fly .st130__ph { height: 65svh; }
html.pa130-on .is-fly .st130__sheet { --pa130-g: min(96vw, 50svh); display: block; position: absolute; z-index: 2; left: 50%; top: 24svh; width: calc(var(--pa130-g) * 2.708); height: calc(var(--pa130-g) * 2.708); margin: calc(var(--pa130-g) * -1.354) 0 0 calc(var(--pa130-g) * -1.354); pointer-events: none; }
html.pa130-on .is-fly .st130__sheet.is-near { will-change: transform; }
html.pa130-on .is-fly .st130__ttl { position: absolute; z-index: 3; left: 0; right: 0; top: 60svh; margin: 0 auto; }
html.pa130-on .st130:has(.is-fly) .st130__b { position: relative; z-index: 4; padding-top: 0; }
@media (min-width: 700px) { html.pa130-on .is-fly .st130__sheet { --pa130-g: min(86vw, 50svh); } }
@media (min-width: 1000px) and (orientation: landscape) {
  html.pa130-on .st130:has(.is-fly) { display: block; }
  html.pa130-on .st130__run.is-fly { display: block; height: 180svh; }
  html.pa130-on .is-fly .st130__stage { display: block; }
  html.pa130-on .is-fly .st130__ph { position: absolute; right: 0; top: 0; width: 58vw; height: 100%; }
  html.pa130-on .is-fly .st130__sheet { --pa130-g: min(46vw, 78svh); left: 71vw; top: 50%; }
  html.pa130-on .is-fly .st130__ttl { right: auto; top: 16svh; width: 42vw; margin: 0; padding: 0 3vw 0 var(--k-gutter); font-size: calc(78px * var(--k-sp-z)); text-align: center; }
  html.pa130-on .is-fly .st130__ttl > span { width: fit-content; margin-inline: auto; }
  html.pa130-on .st130:has(.is-fly) .st130__b { width: 42vw; margin-top: -60svh; padding: 0 3vw 0 var(--k-gutter); }
}

/* The roll of film: a held stage over a native sideways scroller, so a finger can swipe it. Wider than the screen, so the slant never shows its corners. The blank frames at each end are unexposed film. */
html.pa130-on .ga130__run.is-hold .ga130__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
html.pa130-on .ga130__run.is-hold .ga130__ttl { position: absolute; left: var(--k-gutter); top: 8svh; margin: 0; }
html.pa130-on .ga130__run.is-hold .ga130__film { position: absolute; left: -6vw; top: 56%; width: 112vw; overflow: auto hidden; overscroll-behavior-x: contain; scroll-snap-type: none; transform: translateY(-50%) skewY(-2.4deg); }
html.pa130-on .ga130__run.is-hold .ga130__grid::before, html.pa130-on .ga130__run.is-hold .ga130__grid::after { content: ""; flex: none; order: -1; width: var(--ga130-fw); height: var(--ga130-fh); margin: var(--ga130-reb) 7px; background: #0A0A0A; }
html.pa130-on .ga130__run.is-hold .ga130__grid::after { order: 1; }
@media (min-width: 1000px) and (orientation: landscape) { html.pa130-on .ga130__run.is-hold .ga130__ttl { left: 50%; translate: -50% 0; top: 6svh; } html.pa130-on .ga130__run.is-hold .ga130__film { top: 60%; } }

/* The seal lands on the day. The fall follows the scroll; only the thud, which barely travels, is on a timer. */
html.pa130-on .dt130__c--main:not(.is-landed) .dt130__n { opacity: 0; }
html.pa130-on .dt130__c--main.is-landed .dt130__n { animation: pa130-num .3s ease-out backwards; }
html.pa130-on .dt130__c--main.is-landed .dt130__seal { animation: pa130-thud .38s ease-out backwards; }
html.pa130-on .dt130__grid.is-thud { animation: pa130-drop .4s ease-out backwards; }
@keyframes pa130-thud { 0% { scale: 1.12 .9; } 45% { scale: .97 1.03; } 100% { scale: 1 1; } }
@keyframes pa130-drop { 30% { translate: 0 3px; } }

/* The seal lands at the close too. No live shadow while it falls. */
html.pa130-on .cl130__seal:not(.is-landed) { filter: none; }
html.pa130-on .cl130__seal.is-landed { animation: pa130-thud .38s ease-out backwards; }

/* The last print turns to colour: the grey copy starts on top; the script fades it */
html.pa130-on .cl130 .cl130__ph > .cl130__bw { opacity: 1; }

/* Living grain: light and dark specks with alpha, so no blend mode. A photo off the screen has none, so it holds no layer. The hero's arrives once its print has come up. */
.pa130-grain { position: absolute; z-index: 1; inset: -40%; background: var(--k-sp-grain) 0 0 / 128px 128px; opacity: .62; pointer-events: none; animation: pa130-jit .55s steps(1) infinite; }
.pa130-grain.is-off { display: none; }
.pa130-grain--late { animation: pa130-jit .55s steps(1) infinite, pa130-in 1.2s ease 2.5s backwards; }
html.kjy-lite .pa130-grain { display: none; }
@keyframes pa130-jit { 0% { transform: translate(0, 0); } 17% { transform: translate(-7%, 4%); } 33% { transform: translate(5%, -9%); } 50% { transform: translate(-11%, -3%); } 67% { transform: translate(9%, 7%); } 83% { transform: translate(-3%, 11%); } }
@keyframes pa130-in { from { opacity: 0; } }

/* The slow push: the picture moves under its still mask. One number: --pa130-push: 1 stops it. About 10 px on a full-screen photo (AG-T333). */
html.pa130-on .is-push--slow { --pa130-push: 1.025; }
html.pa130-on .is-push, html.pa130-on.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he130 .k-sp-print__img.is-push { animation: pa130-push 16s ease-in-out infinite alternate; }
html.pa130-on .is-off > .is-push { animation-play-state: paused; }
@keyframes pa130-push { from { scale: 1.002; } to { scale: var(--pa130-push, 1.05); } }

/* The black band: dashes first, then the real numbers, once */
html.pa130-on .cd130__timer:not(.is-in) .kjy-unit__n { position: relative; color: transparent; }
html.pa130-on .cd130__timer:not(.is-in) .kjy-unit__n::after { content: "––"; position: absolute; inset: 0; text-align: center; color: rgb(246 244 239 / .34); }
html.pa130-on .cd130__timer:not(.is-in) .kjy-unit:first-child .kjy-unit__n::after { content: "–––"; }
html.pa130-on .cd130__timer.is-in .kjy-unit__n { animation: pa130-num .65s ease-out backwards; }
html.pa130-on .cd130__timer.is-in .kjy-unit:nth-child(2) .kjy-unit__n { animation-delay: .1s; }
html.pa130-on .cd130__timer.is-in .kjy-unit:nth-child(3) .kjy-unit__n { animation-delay: .2s; }
html.pa130-on .cd130__timer.is-in .kjy-unit:nth-child(4) .kjy-unit__n { animation-delay: .3s; }
@keyframes pa130-num { from { opacity: 0; translate: 0 6px; } }
