/* The entrance: the owner's dove video (Gemini, sparkle removed), then a tap opens the invitation.
   It lies over the whole page until the tap, on every visit and every reload, and is gone afterwards.
   Touch screens only: computers with a mouse or trackpad open straight on the card (owner, 24 Sep).
   Only ?entrance=off (QA, direct links) leaves it out; the inline script in <body> decides before the
   first paint. */
.entrance{display:none;position:fixed;inset:0;z-index:100;overflow:hidden;background:#2a2319;touch-action:none;-webkit-tap-highlight-color:transparent}
.entrance-on .entrance{display:block}
/* The page holds still underneath until the guest has opened the letter. */
html.entrance-on,html.entrance-on body{overflow:hidden}
/* Keep a real image behind the video: mobile Safari can leave its poster transparent while loading. */
.entrance-stage{position:absolute;inset:0;transform-origin:50% 47.8%}
.entrance-frame{position:absolute;left:50%;top:50%;height:100%;width:56.25vh;aspect-ratio:9/16;transform:translate(-50%,-50%)}
@supports (height:100dvh){.entrance-frame{width:56.25dvh}}
@media (min-aspect-ratio:9/16) and (max-aspect-ratio:7/10){.entrance-frame{height:auto;width:100%}}
.entrance-poster,.entrance-video,.entrance-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.entrance-still{opacity:0;transition:opacity .25s}
.entrance.show-still .entrance-still{opacity:1}

/* The light that comes out of the envelope, and the veil it becomes. */
.entrance-glow{position:absolute;left:50%;top:47.8%;width:170vmax;height:170vmax;margin:-85vmax 0 0 -85vmax;border-radius:50%;pointer-events:none;opacity:0;transform:scale(.05);
  background:radial-gradient(circle,#fffaf0 0%,#fff3de 22%,#fbe6c4f0 40%,#f6dcb3a0 55%,#f3d6aa00 70%)}
.entrance-veil{position:absolute;inset:0;background:#f8f1e4;opacity:0;pointer-events:none}

/* The whole screen is the button; the words tell the guest what it does. */
.entrance-open{position:absolute;inset:0;width:100%;height:100%;background:none;border:0;padding:0;cursor:pointer}
.entrance-open:focus-visible{outline:2px solid #f8f1e4;outline-offset:-8px}
.entrance-hint{position:absolute;left:0;right:0;top:calc(47.8% + min(21vh,190px));text-align:center;pointer-events:none;
  font:italic 1.25rem/1.2 var(--serif);letter-spacing:.02em;color:#fff8ec;text-shadow:0 1px 14px #2a1a0ecc,0 0 2px #2a1a0e80;opacity:0;transition:opacity .9s}
.entrance-hint small{display:block;margin-top:8px;font:500 10px/1.4 var(--sans);letter-spacing:.24em;text-transform:uppercase;opacity:.85}
.entrance.waiting .entrance-hint{opacity:1;animation:hint-breathe 3.2s ease-in-out .9s infinite}
@keyframes hint-breathe{0%,100%{opacity:1}50%{opacity:.62}}
.entrance.opening .entrance-hint{opacity:0;transition:opacity .25s;animation:none}
@media (prefers-reduced-motion:reduce){.entrance.waiting .entrance-hint{animation:none}}
@media (min-width:900px) and (min-aspect-ratio:1/1){.entrance-hint{font-size:1.7rem}.entrance-hint small{font-size:11px;margin-top:10px}}
