/* Torn sheet (core/opening/090), INV-02 Love Letters · Luxe stage 2 (A2324): one sheet of paper torn across, the couple's photo
   showing through the slit. The photo and the lower sheet already sit exactly where the hero's do (--k-ll-hero-ph), so the tap only
   lifts the top half away: the lower half IS the hero's paper, and there is nothing to swap. Flat, no 3D (D-195), no light flash. */
.op090 { --op090-gap: calc(var(--k-ll-strip) * .092); --op090-rest: 7svh; --op090-ease: cubic-bezier(.6, -.06, .2, 1);
  /* The words are sized from the room they have, never from the screen alone (owner 2026-10-31: they ran off the top). The sheet's
     box ends two gaps above the hero's line, and its torn edge is solid paper for at least .6 of a gap more (measured), so the
     letters may sit .35 of a gap into it. Any screen fits with no height rules. */
  --op090-top: max(14px, env(safe-area-inset-top)); --op090-fs: clamp(.875rem, .625rem + 1.05vw, 1.1875rem); --op090-lines: 2;
  --op090-room: calc(var(--k-ll-hero-ph) - var(--op090-gap) * 1.65 - var(--op090-top));
  --op090-fit: max(44px, calc((var(--op090-room) - var(--op090-fs) * 1.28 * var(--op090-lines) - 2svh) / .9));
  position: fixed; inset: 0; z-index: 100; overflow: hidden; touch-action: none; overscroll-behavior: contain;
  color: var(--k-ink); background: var(--k-paper); }
.op090 .op090__ph { position: absolute; left: 0; right: 0; top: 0; height: var(--k-ll-hero-ph); background: transparent; }
.op090 .op090__photo { position: absolute; inset: 0; object-position: var(--op090-pos, 45% 30%); scale: 1.32; transform-origin: var(--op090-pos, 45% 30%); translate: 0 var(--op090-rest); }
.op090 .op090__x { display: none; }
.op090 .op090__sheet { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; text-align: center; }
.op090 .op090__sheet--a { top: -40px; height: calc(var(--k-ll-hero-ph) - var(--op090-gap) * 2 + 40px); justify-content: flex-end; } /* 40 px spare above, so the tug shows no gap */
.op090 .op090__sheet--b { top: var(--k-ll-hero-ph); bottom: 0; align-items: center; justify-content: center; padding-bottom: 9svh; }
.op090 .op090__inv { font-size: var(--op090-fs); }
.op090 .op090__t--a { top: calc(100% - 1px); }
.op090 .op090__t--b { bottom: calc(100% - 1px); }
.op090 .op090__mono { position: relative; z-index: 1; display: inline-flex; justify-content: center; align-self: center; margin: 2svh 0 calc(var(--op090-gap) * -.35); font-size: min(calc(min(34vw, 20svh) * var(--k-ll-z)), var(--op090-fit)); line-height: .86; }
.op090 .op090__m { display: block; margin-inline: .06em; padding-inline: .3em; }
.op090 .op090__and { position: absolute; left: 50%; top: 44%; translate: -50% -50%; rotate: -6deg; font-size: .4em; }
.op090 .op090__tap { margin-top: 3svh; min-height: 48px; padding: 0 30px; }

/* The tap: the top half leaves in one flat move, the small tug built into its one curve so it never stops and restarts (owner
   2026-10-31: "more smooth and cleaner"). The lower sheet clears at once, so the hero's words arrive as the button goes and the
   paper never sits blank. A few flecks fall from the tear. */
.op090.is-opening { pointer-events: none; background: transparent; animation: op090-out 1250ms linear forwards; }
.op090.is-opening .op090__sheet--a { animation: op090-lift 1050ms var(--op090-ease) forwards; }
.op090.is-opening .op090__photo { translate: 0 0; transition: translate 1050ms var(--op090-ease); }
.op090.is-opening :is(.op090__date, .op090__tap) { opacity: 0; transition: opacity .28s ease; }
.op090.is-opening .op090__sheet--b { animation: op090-under 240ms linear 120ms forwards; } /* paper on paper: nothing shows but the hero's words coming through */
@keyframes op090-out { 0%, 62% { opacity: 1; } 100% { opacity: 0; } }
@keyframes op090-under { to { opacity: 0; } }
@keyframes op090-lift { to { transform: translateY(calc(-100% - var(--k-ll-strip) * .3)); } }
.op090 .op090__flecks { position: absolute; left: 0; right: 0; top: calc(var(--k-ll-hero-ph) - var(--op090-gap)); height: 0; pointer-events: none; }
.op090 .op090__f { position: absolute; left: var(--op090-x); width: var(--op090-s); height: calc(var(--op090-s) * .72); opacity: 0; background: var(--k-paper-deep); clip-path: polygon(8% 18%, 62% 0, 100% 34%, 84% 88%, 30% 100%, 0 62%); }
.op090.is-opening .op090__f { animation: op090-fleck var(--op090-t) cubic-bezier(.2, .6, .4, 1) var(--op090-d) forwards; }
@keyframes op090-fleck { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--op090-dx), var(--op090-dy)) rotate(var(--op090-r)); } }
.op090__f:nth-child(1) { --op090-x: 9%; --op090-s: 9px; --op090-d: 130ms; --op090-t: 800ms; --op090-dx: -16px; --op090-dy: -74px; --op090-r: 130deg; }
.op090__f:nth-child(2) { --op090-x: 21%; --op090-s: 6px; --op090-d: 190ms; --op090-t: 900ms; --op090-dx: 12px; --op090-dy: 92px; --op090-r: -160deg; }
.op090__f:nth-child(3) { --op090-x: 33%; --op090-s: 11px; --op090-d: 110ms; --op090-t: 760ms; --op090-dx: -10px; --op090-dy: -96px; --op090-r: 210deg; }
.op090__f:nth-child(4) { --op090-x: 44%; --op090-s: 7px; --op090-d: 230ms; --op090-t: 980ms; --op090-dx: 20px; --op090-dy: 118px; --op090-r: 120deg; }
.op090__f:nth-child(5) { --op090-x: 53%; --op090-s: 10px; --op090-d: 150ms; --op090-t: 820ms; --op090-dx: 8px; --op090-dy: -86px; --op090-r: -140deg; }
.op090__f:nth-child(6) { --op090-x: 62%; --op090-s: 6px; --op090-d: 260ms; --op090-t: 900ms; --op090-dx: -14px; --op090-dy: 104px; --op090-r: 170deg; }
.op090__f:nth-child(7) { --op090-x: 72%; --op090-s: 12px; --op090-d: 120ms; --op090-t: 840ms; --op090-dx: 18px; --op090-dy: -70px; --op090-r: -200deg; }
.op090__f:nth-child(8) { --op090-x: 81%; --op090-s: 7px; --op090-d: 210ms; --op090-t: 960ms; --op090-dx: -8px; --op090-dy: 86px; --op090-r: 150deg; }
.op090__f:nth-child(9) { --op090-x: 91%; --op090-s: 9px; --op090-d: 170ms; --op090-t: 780ms; --op090-dx: 12px; --op090-dy: -60px; --op090-r: 190deg; }

html.motion-reduce .op090.is-opening { animation: op090-out .4s ease forwards; }
html.motion-reduce .op090.is-opening :is(.op090__sheet, .op090__f) { animation: none; }
html.motion-reduce .op090.is-opening .op090__photo { transition: none; }
@media (min-width: 980px) {
  .op090 { --op090-rest: 0px; --op090-lines: 1; }
  .op090 .op090__x { display: block; position: absolute; top: 0; bottom: 0; width: 31%; height: 100%; }
  .op090 .op090__x--a { left: 0; }
  .op090 .op090__x--b { right: 0; }
  .op090 .op090__photo { left: 31%; width: 38%; scale: 1; }
  .op090 .op090__ph:not(:has(.op090__x--b)) .op090__photo { left: 0; width: 100%; }
  .op090 .op090__mono { font-size: min(calc(min(22vw, 21svh) * var(--k-ll-z)), var(--op090-fit)); }
  .op090 .op090__inv br { display: none; }
}
