/* The page parts along the line (core/opening/190, fork of core/opening/180), INV-20 One Line · Luxe (A2715; W1.2 A2735, D-415: the bias cut): a bright sheet
   of paper with the invitation line and the names large in ink above the hero's own slanted line and heart (the skin's .k-ol-hl, in the same place as the
   hero's, so the hand-over is one line in one place), "Tap to open" below it. The tap parts the paper along the slant: the sheet above slides up and away,
   uncovering the black-and-white photo already cut along the line; the sheet below slides down and away onto the hero's words. The line stays where it is,
   in ink. The page behind is painted from the tap (engine), and the hero's own line and words stay hidden until the gate goes (AG-T439). On a laptop the left
   half is the hero's paper half already (the skin's .k-ol-hw, same numbers); the photo half's cover is cut along the leaning seam and slides off to the right.
   No flap, no seal, no flash, no idle motion. Full screen at every size.
   W1.4 (A2751, the owner's pick 2 on the W1.3 board): the slit. With a hero photo, the opener carries its own copy of it (the page behind the gate is not
   painted before the tap): a slanted band of the photo shows between the top sheet, cut on a parallel slant with no ink, and D's line with its heart. The
   copy sits a little low and rises into the hero's place as the sheets part. On a laptop a band of the photo shows beside the seam and the cover slides on. */
.op190 { position: fixed; inset: 0; z-index: 100; overflow: hidden; text-align: center; touch-action: none; overscroll-behavior: contain; color: var(--k-ol-ink);
  /* the slant's two ends, as the hero's cut draws it (its middle at --k-ol-cut-y); the sheets overlap 3 px over the line, so no seam shows at rest */
  --op190-l: calc(var(--k-ol-cut-y) + var(--k-ol-half)); --op190-r: calc(var(--k-ol-cut-y) - var(--k-ol-half)); }
.op190 .op190__cover { position: absolute; inset: 0; background: var(--k-ol-paper); }
.op190 .op190__cover--top { clip-path: polygon(0 0, 100% 0, 100% calc(var(--op190-r) + 3px), 0 calc(var(--op190-l) + 3px)); }
.op190 .op190__cover--bot { clip-path: polygon(0 calc(var(--op190-l) - 3px), 100% calc(var(--op190-r) - 3px), 100% 100%, 0 100%); }
.op190 .op190__above { position: absolute; left: 0; right: 0; top: 0; height: var(--op190-r); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(28px, 6svh, 64px) var(--k-gutter) clamp(18px, 3svh, 34px); }
.op190 .op190__inv { max-width: 26em; text-wrap: balance; color: var(--k-ol-ink); }
.op190 .op190__names { margin-top: clamp(14px, 3svh, 30px); font-size: min(calc(84vw / (var(--op190-len, 6) * .9)), clamp(52px, 15vw, 132px)); letter-spacing: .24em; }
.op190 .op190__names > span:not(.k-ol-and) { padding-left: .24em; }
.op190 .op190__cue { position: absolute; left: 0; right: 0; bottom: clamp(26px, 5svh, 48px); color: var(--k-ol-ink); }
/* W2.1 (A2783, D-439, the owner's pick 1 on the A2779 board): on a phone and tablet the lower sheet carries the day in big outline numbers, like the dividers'
   (D-426), cropped .08 em past the right edge, with the month and year beside it on its baseline; "Tap to open" stays at the foot. The day is 62vw on a phone
   and grows on a tablet until the open paper stops it: its cap height (.637 em) plus a gap either side must fit between the slant, taken where a two-digit
   day's left edge meets it (R + .1152 s), and the cue. Its line box is centred in that room; the digits' ink sits within 1 % of the box's middle. */
.op190 { --op190-gap: max(26px, 3.4svh); --op190-cue: calc(clamp(26px, 5svh, 48px) + 19.2px * (var(--k-ol-z) + .1));
  --op190-s: min(62vw, calc((100svh - var(--op190-cue) - 2 * var(--op190-gap) - var(--op190-r)) / .7522)); }
.op190 .op190__day { position: absolute; left: var(--k-gutter); right: 0; top: calc(var(--op190-r) + var(--op190-s) * .1152 + var(--op190-gap));
  bottom: calc(var(--op190-cue) + var(--op190-gap)); display: grid; grid-template-columns: minmax(0, max-content) max-content; justify-content: end;
  align-content: center; align-items: last baseline; pointer-events: none; }
.op190 .op190__day > * { margin: 0; }
.op190 .op190__dd { margin-right: calc(var(--op190-s) * -.08); font: 500 var(--op190-s)/1 var(--k-font-display); font-variant-numeric: lining-nums; /* after the shorthand, which resets it */
  letter-spacing: .02em; color: transparent;
  -webkit-text-stroke: 1.25px var(--k-ol-ink); white-space: nowrap; }
/* the month and year end just short of the day's ink (a "1" starts .053 em into its box); a long month wraps onto two lines, the year on the day's baseline */
.op190 .op190__my { min-width: 0; margin-right: calc(max(16px, var(--op190-s) * .07) - var(--op190-s) * .053); color: var(--k-ol-ink); letter-spacing: .34em;
  font-variant-numeric: lining-nums; text-align: right; text-wrap: balance; }
.op190 .op190__hl { z-index: 2; }
.op190 .op190__wide { display: none; }
.op190 .op190__tap { position: absolute; inset: 0; z-index: 4; cursor: pointer; }
/* The open link is the "Tap to open" words themselves (make-ready A2785; publish SOP B42, B64): an invisible twin of the lower sheet's cue in the same place,
   so its box is the words and the opening check measures them; the whole screen still opens through .op190__tap. The visible cue rides the sheet. */
.op190 .op190__go { position: absolute; z-index: 5; left: 0; right: 0; bottom: clamp(26px, 5svh, 48px); display: block; width: max-content; margin: 0 auto; min-height: 0;
  padding: 0 0 0 .3em; background: none; border: 0; font: 500 calc(12px * (var(--k-ol-z) + .1))/1.6 var(--k-font-body); letter-spacing: .3em; text-transform: uppercase;
  color: transparent; white-space: nowrap; }
.op190 .op190__go:focus-visible { outline: 1px solid var(--k-ol-ink, #161616); outline-offset: 6px; } /* a fallback: the opening check also runs in skins without --k-ol-ink (B64) */
/* the slit (W1.4): the hero photo's copy in the hero's exact box, clipped on the slant (still), so no photo shows below the line; only its wrapper moves */
.op190--slit { --op190-b: max(110px, min(27svh, calc(var(--op190-r) - 250px))); }
/* At rest the copy sits low enough that the slit shows the photo from 30 % down its frame, where the couple's heads usually are (A2756: on a 430x746 phone
   the slit showed them from the shoulders down), and at least .28 B. It rises on the tap; the paper behind it keeps the hero's own photo from showing above it. */
.op190 .op190__ph { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--k-ol-cut-y) + var(--k-ol-half) + 2px); overflow: hidden; background: var(--k-ol-paper);
  clip-path: polygon(0 0, 100% 0, 100% var(--op190-r), 0 var(--op190-l)); }
.op190 .op190__rise { position: absolute; inset: 0;
  translate: 0 max(calc(var(--op190-b) * .28), calc(var(--k-ol-cut-y) - var(--op190-b) - (var(--k-ol-cut-y) + var(--k-ol-half)) * .3)); }
.op190 .op190__rise img { object-position: var(--op190-pos, 50% 50%); }
.op190--slit .op190__cover--top { clip-path: polygon(0 0, 100% 0, 100% calc(var(--op190-r) - var(--op190-b)), 0 calc(var(--op190-l) - var(--op190-b))); }
.op190--slit .op190__above { height: calc(var(--op190-r) - var(--op190-b)); padding-top: clamp(20px, 4svh, 44px); padding-bottom: clamp(14px, 2.4svh, 26px); }
.op190--slit .op190__names { margin-top: clamp(10px, 2.2svh, 24px); font-size: min(calc(84vw / (var(--op190-len, 6) * .9)), 12.5vw, calc((var(--op190-r) - var(--op190-b)) * .19)); }
@media (min-width: 1000px) and (orientation: landscape) {
  /* one sheet over the photo half, cut along the seam exactly as the hero's photo is; the words' paper half beside it stops at the seam too */
  .op190 .op190__cover--top { display: none; }
  .op190 .op190__cover--bot { left: calc(50% - var(--k-ol-ext-f)); bottom: auto; height: var(--k-ol-frame-h);
    clip-path: polygon(calc(var(--k-ol-frame-h) * .14054 - 1px) 0, 100% 0, 100% 100%, -1px 100%); }
  .op190 .op190__wide { display: block; position: absolute; inset: 0; }
  .op190 .op190__wide::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: var(--k-ol-frame-h); background: var(--k-ol-paper);
    clip-path: polygon(0 0, calc(50% + var(--k-ol-frame-h) * .07027 + 1px) 0, calc(50% - var(--k-ol-frame-h) * .07027 + 1px) 100%, 0 100%); }
  /* the slit on a laptop: the photo's copy in the hero photo's place, cut along the seam; the cover starts 30 % of the width further right */
  .op190 .op190__ph { left: calc(50% - var(--k-ol-ext-f)); height: var(--k-ol-frame-h); clip-path: none; }
  .op190 .op190__rise { translate: none; background: none; }
  .op190 .op190__rise img { background: #E6E3DD; clip-path: polygon(calc(var(--k-ol-frame-h) * .14054 + 2px) 0, 100% 0, 100% 100%, 2px 100%); }
  .op190--slit .op190__cover--bot { left: calc(50% - var(--k-ol-ext-f) + 30%); }
  .op190 .op190__day { display: none; }
  /* the link sits on the cue, at the foot of the photo half's cover */
  .op190 .op190__go { left: calc(50% - var(--k-ol-ext-f)); bottom: calc(100% - var(--k-ol-frame-h) + clamp(26px, 5svh, 48px)); }
  .op190--slit .op190__go { left: calc(50% - var(--k-ol-ext-f) + 30%); }
}

/* The tap: the paper parts along the line, which stays put, in ink. */
.op190.is-opening { pointer-events: none; }
.op190.is-opening .op190__cover--top { transform: translateY(-100%); transition: transform 1s cubic-bezier(.7, 0, .2, 1); }
.op190.is-opening .op190__cover--bot { transform: translateY(100%); transition: transform 1s cubic-bezier(.7, 0, .2, 1); }
.op190.is-opening .op190__rise { translate: 0 0; transition: translate 1s cubic-bezier(.7, 0, .2, 1); }
@media (min-width: 1000px) and (orientation: landscape) { .op190.is-opening .op190__cover--bot { transform: translateX(calc(100% + 4px)); } }
html.motion-reduce .op190.is-opening { opacity: 0; transition: opacity .4s ease; }
html.motion-reduce .op190.is-opening :is(.op190__cover--top, .op190__cover--bot) { transform: none; transition: none; }
html.motion-reduce .op190.is-opening .op190__rise { transition: none; }

/* the names, the same formula in the hero and the opener so the hand-over is exact */
.op190 .k-ol-hw__names { font-size: min(calc(84vw / (var(--op190-len, 6) * .95)), calc(clamp(38px, 11vw, 66px) * var(--k-ol-z))); }
@media (min-width: 1000px) and (orientation: landscape) { .op190 .k-ol-hw__names { font-size: min(calc(40vw / (var(--op190-len, 6) * .95)), clamp(44px, 4.4vw, 84px)); } }
