/* Embroidery hoop · Luxe (core/opening/043), INV-05 Sage Light v2.3 · Luxe (A2346; owner 2026-10-31: the ribbon is "very, very dull",
   then "the embroidery one is the best one"). A beech hoop on ivory linen, a stitched wreath, the couple's names worked in gold thread
   inside it. One Kie render cut into parts (scripts/sage_hoop_art.py), so code lays them out for every screen. No script and no 3D.
   Waiting: the names sew themselves in, once; nothing else moves (no light flash, D-101). The tap: the hoop lifts straight off the top
   of the screen with the names in it, the scissors slide away, and the linen clears onto the hero. The eucalyptus clears with the linen
   (A2533: the owner took the leaves off the hero), and a gold thread runs on down the hero. Sizes: --op043-d is the
   hoop's width; every part is placed from it, so the numbers below are the render's own (docs/plans/evidence_inv05_openers/hoop_parts.json). */
.op043 { --op043-d: min(108vw, 56svh); --op043-cy: 49.3svh; --op043-ease: cubic-bezier(.6, .02, .5, 1);
  position: fixed; inset: 0; z-index: 100; overflow: hidden; touch-action: none; overscroll-behavior: contain;
  color: var(--k-ink); background: #F6F3EB; }
.op043__linen { position: absolute; inset: 0; background: #F6F3EB url("assets/linen.webp") 0 0 / 200px 200px; }
.op043 .op043__part { position: absolute; height: auto; max-width: none; pointer-events: none; -webkit-user-select: none; user-select: none; }
.op043 .op043__euc { left: calc(50% + var(--op043-d) * -0.0506); top: calc(var(--op043-cy) - var(--op043-d) * 0.954); width: calc(var(--op043-d) * 0.6065); }
.op043 .op043__sci { left: calc(50% + var(--op043-d) * 0.2772); top: calc(var(--op043-cy) - var(--op043-d) * 0.5708); width: calc(var(--op043-d) * 0.2788); }
.op043__scene { position: absolute; left: 50%; top: var(--op043-cy); width: var(--op043-d); height: var(--op043-d); margin: calc(var(--op043-d) / -2) 0 0 calc(var(--op043-d) / -2); }
.op043 .op043__thread { left: 45.375%; top: 74.105%; width: 56.763%; }
.op043__hoop { position: absolute; inset: 0; }
.op043 .op043__ring { left: -5.05%; top: -7.94%; width: 110.64%; }

/* the names, worked in gold thread: fine diagonal satin stitches in a script, inside the wreath's clear circle. The longest name sets
   the size, with no script (name_len). Padded so the swashes keep their stitches and the sewing mask reaches them (AG-T285) */
.op043__names { position: absolute; left: 50%; top: 50%; width: 38%; margin: 0; transform: translate(-50%, -50%); display: grid; justify-items: center; text-align: center;
  font: 400 min(calc(var(--op043-d) * .08), calc(var(--op043-d) * .335 / (var(--op043-len, 6) * .46)))/1.04 var(--k-font-script); overflow-wrap: anywhere; }
.op043-name { display: block; padding: .22em .5em; margin: -.22em -.5em;
  background: repeating-linear-gradient(112deg, #8A6B38 0 .7px, #C4A05C .7px 1.6px, #E6D199 1.6px 2.3px, #A98443 2.3px 3px);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: .32px rgb(146 112 56 / .6);
  filter: drop-shadow(.4px .7px .3px rgb(74 63 53 / .42));
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat;
  animation: op043-sew 1200ms cubic-bezier(.5, 0, .2, 1) 300ms both; }
.op043-name--b { animation-delay: 1050ms; }
.op043-and { font-size: .52em; line-height: 1.2; color: #94753C; animation: op043-in 500ms ease 850ms both; }
@keyframes op043-sew { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes op043-in { from { opacity: 0; } }

/* the small words sit on the cloth, clear of the hoop; on a phone they keep to the left, where the thread doesn't run */
.op043__kick { position: absolute; left: 20px; top: 6.6svh; margin: 0; font-size: .62rem; line-height: 1.75; color: var(--k-ink); }
.op043__date { position: absolute; left: 20px; bottom: 8.4svh; max-width: 46vw; margin: 0; font: 500 .68rem/1.5 var(--k-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--k-ink); }
/* the open link is a.k-btn, the engine's contract (op060's seal does the same), reset here. Its box is the hint's words, so the checks measure the
   words; ::before carries the tap over the whole cloth */
.op043 .op043__tap { position: absolute; z-index: 3; left: 20px; bottom: 4.6svh; display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.op043 .op043__tap::before { content: ""; position: fixed; inset: 0; }
.op043__hint { display: block; font: 500 .62rem/1.6 var(--k-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--c-primary); }
.op043__tap:focus-visible .op043__hint { outline: 2px solid var(--c-primary); outline-offset: 4px; }

/* wider than a tall phone: the same table, the hoop by the height; the leaves and scissors stay at the screen's right edge, where they
   were cut off in the render, so that edge is never seen */
@media (min-aspect-ratio: 3/5) {
  .op043 { --op043-d: min(72vw, 76svh); --op043-cy: 50svh; }
  .op043 .op043__euc { left: auto; right: 0; top: 1svh; width: min(26vw, 32svh); }
  .op043 .op043__sci { left: auto; right: 0; top: 40svh; width: min(13vw, 21svh); }
  .op043__kick { left: clamp(20px, 5vw, 72px); font-size: .72rem; }
  .op043__date { left: clamp(20px, 5vw, 72px); max-width: none; font-size: .76rem; }
  .op043 .op043__tap { left: clamp(20px, 5vw, 72px); }
  .op043__hint { font-size: .72rem; }
}

/* the tap: flat, in the page's plane. About 1.25 s, and the page frees at 1.35 s (opening.ms) */
.op043.is-opening { pointer-events: none; background: transparent; }
.op043.is-opening .op043__linen { animation: op043-clear 760ms ease 480ms forwards; }
.op043.is-opening .op043__hoop { animation: op043-lift 980ms var(--op043-ease) 140ms forwards; }
.op043.is-opening .op043__sci { animation: op043-away 800ms var(--op043-ease) 100ms forwards; }
.op043.is-opening .op043__thread { animation: op043-clear 620ms ease 340ms forwards; }
.op043.is-opening .op043__euc { animation: op043-clear 760ms ease 480ms forwards; } /* with the linen: the hero no longer holds a copy (A2533) */
.op043.is-opening :is(.op043__kick, .op043__date, .op043__hint) { opacity: 0; transition: opacity .26s ease; }
@keyframes op043-clear { to { opacity: 0; } }
@keyframes op043-lift { to { transform: translateY(calc(-1 * (var(--op043-cy) + var(--op043-d) * .62))); } }
@keyframes op043-away { to { transform: translateX(40vw); } }

@media (prefers-reduced-motion: reduce) {
  .op043-name, .op043-and { animation: none; -webkit-mask: none; mask: none; }
}
html.motion-reduce .op043 :is(.op043-name, .op043-and) { animation: none; -webkit-mask: none; mask: none; }
html.motion-reduce .op043.is-opening { animation: op043-clear .4s ease forwards; }
html.motion-reduce .op043.is-opening :is(.op043__linen, .op043__hoop, .op043__sci, .op043__thread, .op043__euc) { animation: none; }
