/* Reply envelope (core/rsvp/070) — INV-04 Keepsake Table · Luxe W1 (A1987; plan docs/plans/plan_inv04_keepsake_table_master.md),
   fork of core/rsvp/030. The "reply by" card lies on the table, half under the reply card (W1.3: the small envelope is
   gone, owner). W1.4 (A2034, D-181 has the owner's words and picks; the name on the envelope went in D-189): the reply card stands in
   the mouth of a cotton envelope (its foot inside), the rectangular lid lies open above the mouth behind the card, its
   chestnut liner showing at both sides, and the photographed seal sits on the pocket where the lid's edge will land.
   The choice is a hand-drawn ink circle (rs014's paths). Pressing the seal saves the reply (the reply core, unchanged),
   then the card slides into the pocket, the lid folds down, the seal lifts and presses, the tag swings in on its gold
   string and "from <first name>" writes itself on the pocket, the way a sender writes on an envelope's back; WhatsApp
   opens 4 s after the press (D-156). Tapping the sealed seal, or "Change your reply", opens it again (one reply per
   phone). The mechanics are rs018's (INV-12: the slot clipped at the mouth, the measured drop, seal/unseal/reopen),
   in this section's own code. The set is turned 2° as a whole, so inside it the clip is square. The fixed "Reply" pill
   lives here too. Phone: about 88 % wide; tablets 72 %; computers 62 % (form in two columns from 1100 px).
   Shadows: --k-sh-* only. Lite and reduced motion: the end states. */
.rs070 { --rs070-ivory: var(--k-card);
  position: relative; z-index: 1; background: var(--k-light-ground); color: var(--k-ink);
  padding: var(--k-section-pad) 0 0; }
.rs070 [hidden] { display: none !important; }
.rs070__head { padding: 0 var(--k-gutter); text-align: center; }
.rs070 .k-kicker + .k-title { margin-top: var(--k-s-2); }
.rs070__lay { position: relative; display: grid; justify-items: center; width: min(92vw, 600px); margin: var(--k-s-6) auto 0; }
/* (eye review #1): with no way to reply (no contact) the section stays out of the page */
.rs070:not(:has(.rs070__set)) { display: none; }

/* ---- keepsakes on the table (W1.4): postage stamps by the reply card's top corner, on the table itself (not in the
   turned set), so their shadow falls straight down; the flowers lie by the envelope's left side, under it, inside the
   set (its 2° turn is within the 3° a shadow may turn), so they stay by the envelope when the sealed set tidies up ---- */
.rs070__stamps { position: absolute; z-index: 0; width: clamp(70px, 20vw, 120px); right: -2%; top: -2%; }
.rs070__stamps::before { rotate: -6deg; }
.rs070 .rs070__spray { position: absolute; z-index: 0; width: clamp(150px, 40vw, 260px); left: -16%; top: 34%; }
.rs070 .rs070__spray::before { rotate: 6deg; }

/* ---- the set (reply-by card, reply card, envelope), turned 2° together. The envelope is the set's width and 1.5 : 1;
   --rs070-tuck = the card's foot inside the pocket, --rs070-lh = the lid, --rs070-sw = the seal ---- */
.rs070__set { position: relative; z-index: 1; display: grid; justify-items: start; width: min(88vw, 460px); rotate: 2deg;
  --rs070-eh: calc(min(88vw, 460px) / 1.5); --rs070-tuck: calc(var(--rs070-eh) * .28); --rs070-lh: calc(var(--rs070-eh) * .40);
  --rs070-sw: clamp(92px, calc(var(--rs070-eh) * .36), 124px); --rs070-bytuck: 44px; --rs070-persp: calc(var(--rs070-lh) * 10); }
@media (min-width: 760px) { .rs070__lay { width: min(88vw, 900px); } .rs070__set { width: min(72vw, 600px); --rs070-eh: calc(min(72vw, 600px) / 1.5); } }
@media (min-width: 1100px) { .rs070__lay { width: min(80vw, 1180px); } .rs070__set { width: min(62vw, 860px); --rs070-eh: calc(min(62vw, 860px) / 1.5); } }

/* the "reply by" card (W1.3): on the table under the reply card's top-left, turned the other way, its words above the
   reply card's edge and its foot (--rs070-bytuck) under it; in the flow, so the section's height counts it */
.rs070-by { position: relative; z-index: 0; width: min(70%, 330px); margin: 0 0 calc(-1 * var(--rs070-bytuck)) 5%;
  display: grid; justify-items: center; gap: 4px; padding: clamp(16px, 4.4vw, 24px) 7% calc(var(--rs070-bytuck) + 16px); text-align: center;
  rotate: -4deg; box-shadow: var(--k-edge), var(--k-sh-card); }
.rs070-by__t { font: italic 500 clamp(1rem, 4.2vw, 1.2rem)/1.35 var(--k-font-body); color: var(--k-ink-soft); }
.rs070-by__date { font: 400 clamp(1.45rem, 6.2vw, 2.1rem)/1.12 var(--k-font-script); color: var(--k-script-ink); text-wrap: balance; }

/* before the script runs: the plain WhatsApp way to reply, on a card */
.rs070__plain { position: relative; z-index: 1; width: 100%; padding: clamp(36px, 7svh, 56px) 20px; text-align: center; box-shadow: var(--k-edge), var(--k-sh-card); }

/* ---- the form: the slot (the card), the envelope, the words below ---- */
.rs070-form { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: stretch; justify-self: stretch; }
/* the slot never moves; its clip ends exactly at the pocket's mouth, so whatever of the card is below the mouth is inside
   the envelope (rs018's method; the set's turn makes it a plain inset) */
.rs070__slot { position: relative; z-index: 2; pointer-events: none;
  padding-bottom: calc(var(--rs070-eh) - var(--rs070-tuck)); margin-bottom: calc(-1 * var(--rs070-eh));
  clip-path: inset(-100vh -80px var(--rs070-eh) -80px); }
.rs070__cardw { position: relative; width: calc(100% / 1.1); margin: 0 auto; pointer-events: auto; }
.rs070__card { position: relative; padding: clamp(44px, 8svh, 72px) clamp(22px, 6vw, 44px) calc(clamp(30px, 5svh, 48px) + var(--rs070-tuck));
  box-shadow: var(--k-edge), var(--k-sh-card); }
.rs070__card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgb(var(--c-secondary-rgb) / .5); pointer-events: none; }
.rs070__card.is-shake { animation: rs070-shake 240ms ease-in-out; }
.rs070__fields { position: relative; z-index: 2; display: grid; gap: 22px; }

/* ---- the envelope, seen from its back: the pocket with its seams, the lid hinged on the mouth line ---- */
.rs070-env { position: relative; height: var(--rs070-eh); }
/* the lid: open, it stands above the mouth behind the card (flipped about the mouth, liner up); sealed, it lies over the
   pocket's top. Each face carries its own shadow (rs018). W1.4.1 (A2043): section.js frames the open lid and the
   envelope before the fold; depth = --rs070-persp (10 lid heights), the same at every size. W2.2 (A2057, D-185): it
   folds towards you (+180° → 0°), the free edge ~11 % wider at its height. W2.5 (A2125, D-197): flat at rest
   (scaleY(-1) open, none sealed; the same picture as 180° / 0°): iOS moved a resting 3D lid a frame or two behind the
   scroll, so the reply seemed to jump. 3D + hidden backfaces only while it moves (.is-sealing, .is-unsealing). */
.rs070-env__lidw { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: var(--rs070-lh); pointer-events: none;
  transform-origin: 50% 0; transform: scaleY(-1); }
.rs070-env__lidf, .rs070-env__liner { position: absolute; inset: 0; filter: var(--k-sh-cut); }
.rs070-env__lidf { visibility: hidden; }
.rs070-env__lid { position: absolute; inset: 0; border-radius: 0 0 2px 2px; box-shadow: var(--k-edge); }
.rs070-env__liner { transform: scaleY(-1); border-radius: 2px 2px 0 0;
  background-color: var(--c-primary); background-image: var(--k-kt-card), radial-gradient(circle at 50% 50%, rgb(var(--c-secondary-rgb) / .55) 0 1.1px, transparent 1.6px);
  background-size: 192px 192px, 14px 14px; background-blend-mode: multiply, normal; }
.rs070-env__frontw { position: absolute; z-index: 3; inset: 0; filter: var(--k-sh-thick); pointer-events: none; }
.rs070-env__front { position: absolute; inset: 0; border-radius: 1.5px; box-shadow: var(--k-edge); }
.rs070-env__seams { position: absolute; inset: 0; width: 100%; height: 100%; }
/* (the guest's name on the pocket: withdrawn, D-189, A2089; the owner: "just get rid of it") */
/* the seal (the photographed seal 1) on the pocket where the lid's edge lands: the submit button, at least 92 px. Its
   k-wax carries the shadow, the picture inside turns */
.rs070-env__sealbox { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.rs070-seal { position: absolute; width: var(--rs070-sw); aspect-ratio: var(--k-ar-seal);
  left: calc(50% - var(--rs070-sw) / 2); top: calc(var(--rs070-lh) - var(--rs070-sw) * .5);
  min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.rs070-seal:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 6px; }
.rs070-seal:active { scale: .97; }
.rs070-seal__wax { position: absolute; inset: 0; }
.rs070-seal__wax::before { rotate: -8deg; }
/* the "Sent with love" tag, hanging from under the seal's lower right on a gold string (W1.1's ask); after sealing only */
.rs070-tag { --rs070-tw: clamp(112px, calc(var(--rs070-eh) * .3), 176px);
  position: absolute; left: calc(50% + var(--rs070-sw) * .3); top: calc(var(--rs070-lh) + var(--rs070-sw) * .36); width: var(--rs070-tw); margin-left: calc(var(--rs070-tw) / -2);
  transform-origin: 50% 0; rotate: 2deg; visibility: hidden; pointer-events: none; }
.rs070-tag__string { display: block; width: 1.2px; height: clamp(30px, calc(var(--rs070-eh) * .07), 44px); margin: 0 auto; background: rgb(var(--c-secondary-rgb) / .8); }
.rs070-tag__card { display: grid; place-items: center; min-height: calc(var(--rs070-tw) * .46); padding: 8px 10px; text-align: center;
  background: var(--k-card) var(--k-kt-card) 0 0 / 160px 160px; background-blend-mode: multiply; box-shadow: var(--k-edge), var(--k-sh-card); }
.rs070-tag__card em { font: italic 500 clamp(15px, calc(var(--rs070-tw) * .12), 20px)/1.1 var(--k-font-body); color: var(--k-ink-soft); }
.rs070.is-sealing .rs070-tag, .rs070.is-sealed .rs070-tag { visibility: visible; }
/* W2.2 (A2057, the owner: "Change your reply" "should not be a button even, it should be a text on the envelope, very
   small, with the arrow pointing toward the seal … above the seal, on the top side of the lid when it's closed … a
   proper texture"): printed small in italic on the closed lid between its fold and the seal, with the printed-ink grain,
   and an ink arrow drawn down to the seal. Still a button for the hand and the keyboard: the band above the seal, at
   least 44 px (the seal opens it too). Shown once sealed: it prints after the name is written and goes first on reopen. */
.rs070-chg { position: absolute; left: 50%; top: 0; translate: -50% 0; height: max(44px, calc(var(--rs070-lh) - var(--rs070-sw) * .5));
  display: grid; justify-items: center; align-content: end; gap: 1px; min-height: 0; margin: 0; padding: 4px 16px 3px; border: 0; background: none;
  cursor: pointer; pointer-events: auto; visibility: hidden; -webkit-tap-highlight-color: transparent; }
.rs070-chg__t { font: italic 500 clamp(14px, calc(var(--rs070-eh) * .06), 18px)/1.1 var(--k-font-body); color: var(--k-ink-soft); white-space: nowrap; }
.rs070-chg__arrow { display: block; width: 15px; height: 18px; overflow: visible; }
.rs070-chg__p { fill: none; stroke: rgb(var(--c-primary-rgb) / .85); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.rs070-chg:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 6px; }
.rs070.is-sealed .rs070-chg { visibility: visible; }
.rs070.is-sealing .rs070-chg { visibility: visible; animation: rs070-show 500ms ease 2500ms both; }
.rs070.is-sealing .rs070-chg__p { animation: rs070-draw 450ms cubic-bezier(.45, .05, .35, 1) 2750ms both; }

/* ---- the words below the envelope: before sending, how to send; after, the status and the ways back ---- */
.rs070__hint { margin: var(--k-s-5) 0 0; padding-left: .28em; text-align: center; font: 400 clamp(.72rem, 2.9vw, .84rem)/1.4 var(--k-font-display); letter-spacing: .28em; text-transform: uppercase; color: var(--c-primary); }
.rs070__small { margin: .4em 0 0; text-align: center; font: italic 500 1rem/1.4 var(--k-font-body); color: var(--k-ink-soft); }
.rs070.is-sealing [data-rs070-hint], .rs070.is-sealed [data-rs070-hint] { display: none; }
.rs070__after { display: grid; justify-items: center; gap: 12px; margin-top: var(--k-s-5); text-align: center; }
/* W2.2: the words below take their place at the press (so the tidy moves nothing) and fade in at 2.4 s */
.rs070.is-sealing .rs070__after { animation: rs070-show 400ms ease 2400ms both; }
.rs070__status { margin: 0; max-width: 26em; font: italic 500 1.0625rem/1.45 var(--k-font-body); color: var(--c-primary); text-wrap: balance; }
/* W2.2 (A2057, the owner: "Open WhatsApp" "looks like a button … just like a leather strip … with the matching
   texture"): a strip of the envelope liner's paper (the couple's colour with its fine gold dots) lies on the table, torn
   at both ends, the words pressed into it in ivory. The wrapper carries the shadow and the focus ring (a mask cuts its
   own, AG-T285). The same strip is the plain reply before the script runs. */
.rs070__go { margin: 0; filter: var(--k-sh-cut); border-radius: 4px; }
.rs070__go:has(.rs070-strip:focus-visible) { outline: 2px solid var(--c-primary); outline-offset: 5px; }
.rs070-strip { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 32px; rotate: -1.5deg;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none;
  background-color: var(--c-primary); background-image: var(--k-kt-card), radial-gradient(circle at 50% 50%, rgb(var(--c-secondary-rgb) / .5) 0 1px, transparent 1.5px);
  background-size: 192px 192px, 14px 14px; background-blend-mode: multiply, normal;
  -webkit-mask: var(--k-kt-dk-l) 0 50% / 14px 100% no-repeat, var(--k-kt-dk-r) 100% 50% / 14px 100% no-repeat, linear-gradient(#000 0 0) 50% 50% / calc(100% - 24px) 100% no-repeat;
  mask: var(--k-kt-dk-l) 0 50% / 14px 100% no-repeat, var(--k-kt-dk-r) 100% 50% / 14px 100% no-repeat, linear-gradient(#000 0 0) 50% 50% / calc(100% - 24px) 100% no-repeat; }
.rs070-strip:active { background-color: var(--c-primary-dark); }
.rs070-strip__t { display: inline-flex; align-items: center; gap: 10px; font: 400 .78rem/1 var(--k-font-display); letter-spacing: .16em; text-transform: uppercase;
  color: #FBF6EC; text-shadow: 0 -.6px 0 rgb(0 0 0 / .32), 0 .6px 0 rgb(255 255 255 / .14); }
.rs070-mine__t { margin: 0; max-width: 26em; font: italic 500 1.0625rem/1.5 var(--k-font-body); color: var(--k-ink-soft); }
.rs070-mine__t:empty { display: none; }

/* ---- the fields (rs030's reply core look) ---- */
.rs070-field { display: block; }
.rs070-field__l { display: block; margin-bottom: 6px; padding: 0; font: 600 .75rem/1.3 var(--k-font-display); letter-spacing: .16em; text-transform: uppercase; color: color-mix(in oklab, var(--c-secondary-dark) 70%, var(--k-ink)); }
.rs070-field__l i { font-weight: 500; letter-spacing: .02em; text-transform: none; }
.rs070-input { display: block; width: 100%; min-height: 44px; padding: 6px 2px; border: 0; border-bottom: 1px solid rgb(var(--c-primary-rgb) / .5); border-radius: 0; background: transparent; font: 500 1.1875rem/1.4 var(--k-font-body); color: var(--k-ink); }
.rs070-input:focus { outline: none; border-bottom-color: var(--c-primary); box-shadow: 0 1px 0 var(--c-primary); }
.rs070-input--note { min-height: 84px; resize: vertical; }
/* the choice (W1.4): no box, no dot; the chosen phrase gets a hand-drawn ink circle (rs014's two paths, pathLength 1, no
   vector-effect: a non-scaling stroke breaks the dash), drawn as it is chosen */
.rs070-choice { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.rs070-opt { position: relative; display: inline-flex; justify-self: start; align-items: center; min-height: 44px; padding: 6px 16px; cursor: pointer; }
.rs070-opt input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.rs070-opt__t { font: italic 500 1.25rem/1.3 var(--k-font-body); color: var(--k-ink); }
.rs070-ring { position: absolute; left: -3px; top: -1px; width: calc(100% + 6px); height: calc(100% + 2px); overflow: visible; pointer-events: none; }
.rs070-ring__p { fill: none; stroke: rgb(var(--c-primary-rgb) / .85); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--k-ease); }
.rs070-opt input:checked ~ .rs070-ring .rs070-ring__p { stroke-dashoffset: 0; }
.rs070-opt input:not(:checked) ~ .rs070-ring { visibility: hidden; }
.rs070-opt:has(input:focus-visible) { outline: 2px solid var(--c-primary); outline-offset: 4px; border-radius: 40px; }
.rs070-choice:has(:checked) .rs070-opt:not(:has(:checked)) .rs070-opt__t { opacity: .7; }
html.motion-reduce .rs070-ring__p, html.kjy-lite .rs070-ring__p { transition: none; }
.rs070-yes, .rs070-extra { display: grid; gap: 22px; }
.rs070-extra:empty { display: none; }
.rs070-evs { margin: 0; }
.rs070-ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; padding: .6rem 0; }
.rs070-ev__n { grid-column: 1; grid-row: 1; font: italic 500 1.25rem/1.3 var(--k-font-body); color: var(--k-ink); }
.rs070-ev__d { grid-column: 1; grid-row: 2; margin-top: 2px; font: 600 .75rem/1.3 var(--k-font-display); letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: lining-nums; color: var(--k-ink-soft); }
.rs070-ev__c { grid-column: 2; grid-row: 1 / span 2; min-width: 7rem; min-height: 44px; font-size: 1rem; padding-right: 22px; }
.rs070-day { margin: 1.1rem 0 0; font: 600 .75rem/1.3 var(--k-font-display); letter-spacing: .16em; text-transform: uppercase; font-variant-numeric: lining-nums; color: color-mix(in oklab, var(--c-secondary-dark) 70%, var(--k-ink)); }
.rs070-help { margin: -.75rem 0 0; font: italic 500 .9375rem/1.4 var(--k-font-body); color: var(--k-ink-soft); }
.rs070-late { margin: .25rem 0 .75rem; text-align: center; font: italic 500 1.0625rem/1.5 var(--k-font-body); color: var(--c-primary); }
.rs070-err { margin: .25rem 0 .75rem; text-align: center; font: italic 500 .9375rem/1.45 var(--k-font-body); color: #8B2E2E; text-wrap: balance; }
.rs070-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rs070__card select, .rs070__card button { min-height: 44px; }
.rs070-extra select.rs070-input { font-size: 1rem; }
/* W2.5: phones draw at 88 %; iOS zooms into a field under 16 px */
@media (max-width: 759.98px) { .rs070-extra select.rs070-input { font-size: 1.1875rem; } }
.rs070-input[name="one"], .rs070-input[name="all"], .rs070-ev__c { font-variant-numeric: lining-nums; } /* eye review round 2 */
/* the skin loads Cinzel at 400 only: no faux bold on the small capitals */
.rs070-field__l, .rs070-ev__d, .rs070-day { font-weight: 400; }
.rs070-field__l { color: var(--k-ink-soft); }

/* computers: a wide card, the fields in two columns (name | reply, then guests | the events), the note across */
@media (min-width: 1100px) {
  .rs070__card { padding-inline: clamp(56px, 6vw, 120px); }
  .rs070__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(56px, 6vw, 120px); }
  .rs070__fields > * { grid-column: 1 / -1; }
  .rs070__fields > .rs070-field:first-child { grid-column: 1; }
  .rs070__fields > .rs070-choice { grid-column: 2; }
  .rs070-yes:not([hidden]):has(> .rs070-evs) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(56px, 6vw, 120px); align-items: start; }
  .rs070-yes > * { grid-column: 1; }
  .rs070-yes > .rs070-evs { grid-column: 2; grid-row: 1 / span 3; }
}

/* ---- sealing (W1.4), counted from the press; .is-sealing carries every motion, .is-sealed is the still end state, so a
   returning guest's reload never replays it. The card slides in 150–850 ms, the lid folds 800–1360 ms (its z steps
   above the card halfway), the seal dips at the press, then lifts and presses 800–1650 ms, the tag swings in
   1700–3100 ms, the name writes on 1800–2700 ms, the words below fade in at 2400 ms (section.js) ---- */
.rs070.is-sealing .rs070__cardw { animation: rs070-in 700ms cubic-bezier(.55, .06, .3, 1) 150ms both; }
.rs070.is-sealed .rs070__cardw { translate: 0 var(--rs070-drop, 0px); }
.rs070.is-tidy .rs070__slot { display: none; }
/* W2.2: lifted towards you, the lid is over everything below it from the moment it moves (z 4 from 800 ms on); lying open
   before that, it stays under the card */
.rs070.is-sealing .rs070-env__lidw { animation: rs070-fold 560ms cubic-bezier(.45, 0, .25, 1) 800ms both, rs070-lidup 560ms 800ms forwards; }
.rs070.is-sealed .rs070-env__lidw { z-index: 4; transform: none; }
.rs070.is-sealed .rs070-env__lidf { visibility: visible; }
.rs070.is-sealed .rs070-env__liner { visibility: hidden; }
.rs070.is-sealing .rs070-seal { animation: rs070-dip 150ms ease-out, rs070-press 850ms cubic-bezier(.3, .7, .4, 1) 800ms; }
.rs070.is-sealing .rs070-tag { animation: rs070-swing 1400ms ease-out 1700ms both; }
/* opening it again (rs018's timings): the seal lifts, the lid opens, the card rises out; the tag, the name and the
   "Change your reply" words go first. W2.2: the lid stays over the card until it lies open (590 ms), so the card rises
   from 600 ms, over it */
.rs070.is-unsealing .rs070-seal { animation: rs070-lift 420ms cubic-bezier(.3, .7, .4, 1) both; }
.rs070.is-unsealing .rs070-env__lidw { animation: rs070-fold 440ms cubic-bezier(.45, 0, .25, 1) 150ms reverse both, rs070-lidup 590ms; }
/* W2.5: 3D only while it moves (off at 0°/180°); the open transform keeps the look with animations off */
.rs070:is(.is-sealing, .is-unsealing) .rs070-env__lidw { transform-style: preserve-3d; transform: perspective(var(--rs070-persp)) rotateX(180deg); }
.rs070:is(.is-sealing, .is-unsealing) :is(.rs070-env__lidf, .rs070-env__liner) { visibility: visible; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.rs070:is(.is-sealing, .is-unsealing) .rs070-env__liner { transform: rotateX(180deg); }
.rs070.is-unsealing .rs070__cardw { animation: rs070-out 750ms cubic-bezier(.22, 1, .36, 1) 600ms both; }
.rs070.is-unsealing .rs070-tag, .rs070.is-unsealing .rs070-chg { visibility: visible; animation: rs070-hide 300ms ease both; }
/* W2.2 (A2057; the owner: the reply-by card "pops up", then "flies to the top"): the heading, stamps and reply-by card
   glide with the card, so the tidy and the reopen change nothing on the screen. section.js measures the offsets
   (--rs070-gx/gy; the form's own = the envelope's sideways step from the 2° turn). Same curves as the card's. */
.rs070.is-sealing :is(.rs070__head, .rs070__stamps, .rs070-by, .rs070-form) { animation: rs070-gather 700ms cubic-bezier(.55, .06, .3, 1) 150ms both; }
.rs070.is-unsealing :is(.rs070__head, .rs070__stamps, .rs070-by, .rs070-form) { animation: rs070-spread 750ms cubic-bezier(.22, 1, .36, 1) 600ms both; }
html.kjy-lite .rs070 *, html.motion-reduce .rs070 * { animation: none !important; }
@keyframes rs070-in { from { translate: 0 0; } to { translate: 0 var(--rs070-drop, 0px); } }
@keyframes rs070-out { from { translate: 0 var(--rs070-drop, 0px); } to { translate: 0 0; } }
@keyframes rs070-fold { from { transform: perspective(var(--rs070-persp)) rotateX(180deg); } to { transform: perspective(var(--rs070-persp)) rotateX(0deg); } }
@keyframes rs070-lidup { from, to { z-index: 4; } }
@keyframes rs070-gather { from { translate: 0 0; } to { translate: var(--rs070-gx, 0px) var(--rs070-gy, 0px); } }
@keyframes rs070-spread { from { translate: var(--rs070-gx, 0px) var(--rs070-gy, 0px); } to { translate: 0 0; } }
@keyframes rs070-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rs070-dip { 0% { scale: 1; } 50% { scale: .97; } 100% { scale: 1; } }
@keyframes rs070-press { 0% { translate: 0 0; scale: 1; } 35%, 65% { translate: 0 -14px; scale: 1; } 85% { translate: 0 0; scale: .97; } 100% { translate: 0 0; scale: 1; } }
@keyframes rs070-lift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes rs070-swing { 0% { rotate: 14deg; opacity: 0; } 30% { rotate: -7.7deg; opacity: 1; } 55% { rotate: 4.2deg; } 80% { rotate: -1.7deg; } 100% { rotate: 2deg; opacity: 1; } }
@keyframes rs070-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes rs070-hide { from { opacity: 1; } to { opacity: 0; } }
@keyframes rs070-shake { 0%, 100% { translate: 0 0; } 12.5%, 62.5% { translate: -4px 0; } 37.5%, 87.5% { translate: 4px 0; } }

/* ---- the fixed "Reply" pill (section.js turns it on and off; no motion in stage 1) ---- */
.rs070-pill { position: fixed; z-index: 80; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); translate: -50% 0; min-width: 176px;
  visibility: hidden; opacity: 0; pointer-events: none; box-shadow: inset 0 0 0 2px var(--c-primary), inset 0 0 0 3px rgb(255 255 255 / .28), var(--k-sh-card); }
.rs070-pill.is-on { visibility: visible; opacity: 1; pointer-events: auto; }
/* W2.2.x (A2089, D-189; moved here from W2.3): it fades and slides 8 px instead of vanishing in one frame as the reply
   reaches the screen (a second cause of the owner's "jump"). In the table's plane; only with motion on (kjy-fx) */
html.kjy-fx .rs070-pill { translate: -50% 8px; transition: opacity .25s ease, translate .25s ease, visibility 0s linear .25s; }
html.kjy-fx .rs070-pill.is-on { translate: -50% 0; transition-delay: 0s; }
