/* The envelope over the site (envelope.js). Phone: the screen is the envelope. Wide screens:
   the portrait envelope stands in the middle over a soft blur of itself. */
html.is-sealed, html.is-sealed body { overflow: hidden; }
.env-stage { --vidw: max(100vw, 56.25vh); position: fixed; inset: 0; z-index: 1000; background: #efe7da; cursor: pointer; outline: none; overflow: hidden;
  transform-origin: 50% 46%; transition: opacity 1s ease, transform 1.1s cubic-bezier(.22, .61, .36, 1); }
.env-stage.is-away { opacity: 0; transform: scale(1.06); pointer-events: none; }
.env-stage__poster, .env-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; background: transparent; }
.env-stage__freeze { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.env-stage__hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(5vh + env(safe-area-inset-bottom)); margin: 0; padding: 9px 16px 8px; border-radius: 999px;
  background: rgba(250, 246, 238, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap;
  font-family: var(--display, 'Cormorant Garamond', Georgia, serif); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: #6f7d58;
  animation: envPulse 2.8s ease-in-out 1s infinite; transition: opacity .3s; pointer-events: none; }
.env-stage.is-open .env-stage__hint { opacity: 0; animation: none; }
@keyframes envPulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@media (min-aspect-ratio: 3/4) {
  .env-stage { --vidw: min(100vw, 56.25vh); }
  .env-stage::before { content: ""; position: absolute; inset: -6%; background: #efe7da url("envelope/envelope-sj-poster.webp") center / cover no-repeat; filter: blur(28px) saturate(.9); opacity: .9; }
  .env-stage__poster, .env-stage__video { object-fit: contain; }
  .env-stage__poster { filter: drop-shadow(0 30px 40px rgba(60, 45, 20, .25)); }
}
@media (prefers-reduced-motion: reduce) { .env-stage { display: none; } }
