/* Ballroom doors (core/opening/181, fork of core/opening/180), INV-19 After Dark · Luxe W1.2 (A2708; the owner's pick O1 from the board, D-405). Two tall
   black lacquer doors close off the lit room; warm light leaks through the gap between them. The names are set across the two doors in gold leaf, so they
   part with the doors. The tap swings the doors away from the guest onto the room, which is the hero's own photo in its hero place, under a night layer that
   lifts as they open: nothing else travels, and the opener's copy of the photo is the only one until the gate goes (AG-T439). On a laptop the doors stand
   over the photo, set in a panelled wall; the names wait on the wall where the hero's names will rise, and the wall fades as the doors open. Full screen at
   every size. No seal, no flap, no glint, no idle motion. The page behind isn't painted until the tap, so the stage holds the photo (AG-T388). */
.op181 { position: fixed; inset: 0; z-index: 100; overflow: hidden; touch-action: none; overscroll-behavior: contain; color: var(--k-ink); background: var(--k-night); }
.op181 .op181__stage { position: absolute; inset: 0; }
.op181 .k-ad-print__img { object-position: var(--op181-pos, 50% 30%); }
.op181 .op181__veil { position: absolute; inset: 0; background: var(--k-night); opacity: .55; }
.op181 .op181__wall, .op181 .op181__way, .op181 .op181__doors { position: absolute; inset: 0; }
.op181 .op181__wsign { display: none; }
.op181 .op181__doors { perspective: 1400px; }

/* the doors: lacquer, a still sheen, the gap's warm light on their inner edges, two raised panels each, brass handles */
.op181 .op181__leaf { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; backface-visibility: hidden; }
.op181 .op181__leaf--l { left: 0; transform-origin: 0 50%; background: linear-gradient(90deg, #0c0907, #17120e 58%, #120e0b); }
.op181 .op181__leaf--r { right: 0; transform-origin: 100% 50%; background: linear-gradient(270deg, #0c0907, #17120e 58%, #120e0b); }
.op181 .op181__leaf::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.op181 .op181__leaf--l::before { background: linear-gradient(90deg, transparent 18%, rgb(255 232 196 / .05) 32%, transparent 46%), radial-gradient(ellipse 34% 60% at 100% 50%, rgb(255 190 120 / .17), transparent 72%); }
.op181 .op181__leaf--r::before { background: linear-gradient(270deg, transparent 18%, rgb(255 232 196 / .05) 32%, transparent 46%), radial-gradient(ellipse 34% 60% at 0% 50%, rgb(255 190 120 / .17), transparent 72%); }
.op181 .op181__pan { position: absolute; border: 1px solid; background: linear-gradient(165deg, #16120e, #0f0c09); }
.op181 .op181__pan::after { content: ""; position: absolute; inset: 8px; border: 1px solid; border-color: rgb(0 0 0 / .6) rgb(216 180 122 / .14) rgb(216 180 122 / .14) rgb(0 0 0 / .6); }
.op181 .op181__leaf--l .op181__pan { left: 16%; right: 11%; border-color: rgb(216 180 122 / .24) rgb(0 0 0 / .7) rgb(0 0 0 / .7) rgb(216 180 122 / .24); }
.op181 .op181__leaf--r .op181__pan { left: 11%; right: 16%; border-color: rgb(216 180 122 / .24) rgb(216 180 122 / .1) rgb(0 0 0 / .7) rgb(0 0 0 / .7); }
.op181 .op181__pan--t { top: 6%; height: 45%; }
.op181 .op181__pan--b { top: 60%; bottom: 6%; }
.op181 .op181__handle { position: absolute; top: calc(55% - 42px); width: 7px; height: 84px; border-radius: 4px; background: linear-gradient(90deg, #6e5330, #ebd3a0 45%, #8a6a3a); box-shadow: 0 3px 8px rgb(0 0 0 / .75); }
.op181 .op181__leaf--l .op181__handle { right: 13px; }
.op181 .op181__leaf--r .op181__handle { left: 13px; }
.op181 .op181__seam { position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; background: #ffd9a0; box-shadow: 0 0 16px 3px rgb(255 200 130 / .5), 0 0 60px 14px rgb(255 180 110 / .2); }

/* the words across the two doors: each door holds the whole line, clipped at its edge, so the names part as the doors open */
.op181 .op181__sign { position: absolute; width: 200%; display: flex; flex-direction: column; align-items: center; padding: 0 var(--k-gutter); text-align: center; }
.op181 .op181__leaf--l .op181__sign { left: 0; }
.op181 .op181__leaf--r .op181__sign { left: -100%; }
.op181 .op181__sign { top: 13svh; }
.op181 .op181__inv { margin-bottom: clamp(18px, 3.4svh, 30px); font-size: calc(13px * (var(--k-ad-z) + .08)); }
.op181 .op181__names { font-weight: 500; font-size: min(calc(84vw / (var(--op181-len) * .5)), calc(clamp(48px, 17vw, 76px) * var(--k-ad-z))); }
.op181 .op181__gold > span:not(.k-ad-and) { background: linear-gradient(180deg, #f3ddae, #c9a063 55%, #8c6a3a); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the whole screen opens (a plain target); the one link is the visible "Tap to open" at the foot (opening-check: names and the button never overlap; B42) */
.op181 .op181__tap { position: absolute; inset: 0; z-index: 4; cursor: pointer; }
.op181 .op181__go { position: absolute; z-index: 5; left: 50%; bottom: 8svh; translate: -50% 0; min-height: 44px; padding: 0 18px; background: none; border: 0; color: var(--k-champ);
  font: 500 calc(13px * (var(--k-ad-z) + .08))/1 var(--k-font-body); letter-spacing: .3em; text-shadow: 0 1px 10px rgb(0 0 0 / .9); white-space: nowrap; }
.op181 .op181__go:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }

/* a laptop: the doors stand over the photo in a doorway; the wall is the doorway's own shadow, so the room shows through as soon as the doors move */
@media (min-width: 1000px) and (orientation: landscape) {
  .op181 .op181__wall::before { content: ""; position: absolute; z-index: 1; left: 4.6vw; top: 9svh; bottom: 9svh; width: 33vw; border: 1px solid;
    border-color: rgb(216 180 122 / .2) rgb(0 0 0 / .7) rgb(0 0 0 / .7) rgb(216 180 122 / .2); background: linear-gradient(165deg, #120e0b, #0c0907); }
  .op181 .op181__way { left: 49vw; right: 9vw; top: 8svh; box-shadow: 0 0 0 200vmax #0b0907; }
  .op181 .op181__way::before, .op181 .op181__way::after { content: ""; position: absolute; border: 1px solid rgb(216 180 122 / .3); border-bottom: 0; pointer-events: none; }
  .op181 .op181__way::before { inset: -2.1vw -2.1vw 0; }
  .op181 .op181__way::after { inset: -1.1vw -1.1vw 0; border-color: rgb(216 180 122 / .18); }
  .op181 .op181__doors { perspective: 2000px; }
  .op181 .op181__handle { top: calc(54% - 50px); height: 100px; }
  .op181 .op181__sign { display: none; }
  .op181 .op181__go { left: 21vw; bottom: 15svh; }
  .op181 .op181__wsign { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 42vw; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 3vw 0 4vw; text-align: center; }
  .op181 .op181__wsign .op181__names { font-size: min(calc(34vw / (var(--op181-len) * .5)), clamp(58px, 9.4svh, 96px)); }
}

/* The tap: the doors swing away from the guest, the gap's light and the cue go, the night lifts off the room. Nothing grows toward the guest (D-017;
   opening-check's depth seek), so the doors only turn and the laptop's wall only fades.
   The opener turns see-through, so the hero's words rise underneath. */
.op181.is-opening { pointer-events: none; background: none; }
.op181.is-opening .op181__veil { animation: op181-out .9s ease .12s forwards; }
.op181.is-opening :is(.op181__seam, .op181__go) { animation: op181-out .3s ease forwards; }
.op181.is-opening .op181__leaf--l { animation: op181-swing-l 1.1s cubic-bezier(.6, .05, .3, 1) forwards; }
.op181.is-opening .op181__leaf--r { animation: op181-swing-r 1.1s cubic-bezier(.6, .05, .3, 1) forwards; }
@media (min-width: 1000px) and (orientation: landscape) {
  .op181.is-opening :is(.op181__leaf--l, .op181__leaf--r) { animation-duration: 1s; animation-timing-function: cubic-bezier(.4, .05, .3, 1); }
  .op181.is-opening .op181__wall { animation: op181-step 1.3s cubic-bezier(.6, .05, .3, 1) forwards; }
}
@keyframes op181-out { to { opacity: 0; } }
@keyframes op181-swing-l { 0% { transform: none; opacity: 1; } 68% { opacity: 1; } 100% { transform: rotateY(100deg); opacity: 0; } }
@keyframes op181-swing-r { 0% { transform: none; opacity: 1; } 68% { opacity: 1; } 100% { transform: rotateY(-100deg); opacity: 0; } }
@keyframes op181-step { 0%, 62% { opacity: 1; } 100% { opacity: 0; } }
html.motion-reduce .op181.is-opening { animation: op181-out .4s ease forwards; }
html.motion-reduce .op181.is-opening * { animation: none !important; }
