/* Top flap (core/opening/130), INV-17 Silver Print · Luxe (A2443, the owner's idea, D-311): half an envelope, from the top only. A black paper flap (the owner, A2447) comes
   down to a point with a gold seal on it, the names in gold foil pressed into it (A2456); the white paper below is the invitation itself. The tap drops the seal, and
   the flap swings upwards onto blank paper, where the hero's photo then comes up like a print in a tray (the hero's CSS). The page behind isn't painted until the tap
   (engine: content-visibility), so the stage still holds the photo, all but invisible, to have it decoded before the tap (AG-T388), and the opener turns see-through
   on the tap, so the real page shows under the flap and nothing shows twice. Flat at rest; 3D only while it moves. Full screen at every size. */
.op130 { position: fixed; inset: 0; z-index: 100; overflow: hidden; touch-action: none; overscroll-behavior: contain; color: var(--k-ink);
  background: var(--k-sp-relief) 0 0 / 1280px 1280px repeat, var(--k-sp-tile) 0 0 / 300px 300px repeat, var(--k-paper); background-blend-mode: hard-light, normal; }
.op130 .k-sp-print__img { object-position: var(--op130-pos, 50% 16%); }
.op130 .op130__stage .k-sp-print { opacity: .001; } /* painted, so it is decoded, but the paper under the flap is blank */
.op130 .op130__stage { position: absolute; inset: 0; }
.op130 .op130__say { position: absolute; left: 0; right: 0; top: calc(var(--k-sp-flap-h) + 7.4svh); padding: 0 var(--k-gutter); text-align: center; }
.op130 .op130__inv { font-size: calc(19px * var(--k-sp-z)); letter-spacing: .11em; color: var(--k-ink); }
.op130 .op130__sprig { margin: clamp(6px, 1.4svh, 14px) auto 0; color: #6B6A65; }
.op130 .op130__cue { margin-top: clamp(6px, 1.4svh, 14px); font: italic 400 13.5px/1.3 var(--k-font-body); color: var(--k-ink-soft); }
.op130 .op130__fold, .op130 .op130__cast { position: absolute; left: 0; right: 0; top: 0; height: var(--k-sp-flap-h); }
/* the shadow: the blur sits on the parent, or the flap's own shape cuts it back to a hard band */
.op130 .op130__cast { opacity: .34; filter: blur(9px); transform: translateY(6px); }
.op130 .op130__cast::before { content: ""; position: absolute; inset: 0; background: #000; clip-path: polygon(0 0, 100% 0, 100% var(--k-sp-shoulder), 50% 100%, 0 var(--k-sp-shoulder)); }
.op130 .op130__edge, .op130 .op130__flap { clip-path: polygon(0 0, 100% 0, 100% var(--k-sp-shoulder), 50% 100%, 0 var(--k-sp-shoulder)); }
.op130 .op130__fold { transform-origin: 50% 0; }
.op130 .op130__edge { position: absolute; inset: 0; background: #5A5854; transform: translateY(1.5px); }
.op130 .op130__flap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: clamp(40px, 8.6svh, 90px); text-align: center; }
.op130 .op130__flap::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.op130 .op130__mono { font: 400 calc(25px * var(--k-sp-z))/1.2 var(--k-font-display); letter-spacing: .14em; }
.op130 .op130__date { margin-top: clamp(10px, 2.2svh, 24px); font-size: calc(17px * var(--k-sp-z)); color: #F6F4EF; letter-spacing: .14em; }
.op130 .op130__names { --op130-fs: min(calc(92vw / (var(--op130-len) * .36)), clamp(70px, calc(13.6svh * var(--k-sp-z)), calc(118px * var(--k-sp-z)))); margin-top: clamp(8px, 2svh, 24px); font: 400 var(--op130-fs)/.86 var(--k-font-script); color: #F6F4EF; }
.op130 .op130__n { margin-block: -.12em; white-space: nowrap; }
.op130 .op130__and { font-size: .62em; line-height: .8; margin-block: -.12em; }
.op130 .op130__seal { position: absolute; z-index: 3; left: 50%; top: var(--k-sp-flap-h); width: clamp(86px, calc(13.2svh * var(--k-sp-z)), calc(132px * var(--k-sp-z))); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); filter: drop-shadow(0 4px 5px rgb(0 0 0 / .34)); pointer-events: none; }
.op130 .op130__tap { position: absolute; inset: 0; z-index: 4; min-height: 0; padding: 0; background: none; border: 0; }
.op130 .op130__tap:focus-visible { outline-offset: -6px; }

/* The tap: the seal is pressed and drops, and the flap swings up past its hinge. */
.op130.is-opening { pointer-events: none; background: none; perspective: 1500px; perspective-origin: 50% 0; }
.op130.is-opening .op130__seal { animation: op130-drop .66s cubic-bezier(.5, 0, .9, .5) forwards; }
.op130.is-opening .op130__fold { animation: op130-lift 1s .3s cubic-bezier(.5, .02, .3, 1) forwards; }
.op130.is-opening .op130__flap::after { animation: op130-shade 1s .3s linear forwards; }
.op130.is-opening .op130__cast { animation: op130-gone .36s .26s ease forwards; }
.op130.is-opening .op130__say { animation: op130-gone .3s ease forwards; }
@keyframes op130-drop { 0% { transform: translate(-50%, -50%); } 14% { transform: translate(-50%, -50%) scale(.95); } 100% { transform: translate(-50%, calc(-50% + 60svh + 140px)) rotate(34deg); } }
@keyframes op130-lift { to { transform: rotateX(104deg); } }
@keyframes op130-shade { 0% { opacity: 0; } 60% { opacity: .26; } 100% { opacity: .3; } }
@keyframes op130-gone { to { opacity: 0; } }
html.motion-reduce .op130.is-opening { perspective: none; animation: op130-gone .4s ease forwards; }
html.motion-reduce .op130.is-opening :is(.op130__seal, .op130__fold, .op130__flap::after) { animation: none; }
@media (min-width: 1000px) and (orientation: landscape) {
  .op130 .op130__names { --op130-fs: clamp(84px, 16svh, 160px); }
  .op130 .op130__flap { padding-top: clamp(36px, 7svh, 70px); }
  .op130 .op130__say { top: calc(var(--k-sp-flap-h) + 9svh); }
}
