/* Fine-grained sage paper, muted floral stationery and an ivory wax seal. */
.envelope-is-active { overflow: hidden; }
.envelope-reveal {
  --envelope-color: #BDC0A0;
  --envelope-texture: url('/assets/envelope-paper.svg');
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  color: #697359; background: #f8f6ef;
}
.envelope-reveal::backdrop { background: #f8f6ef; }
.envelope-reveal:not([open]) { display: none; }
.envelope-reveal:focus { outline: none; }
.envelope-atmosphere { position: absolute; inset: 0; pointer-events: none; background: url('/assets/paper-grain.svg'), var(--cream); transition: opacity .15s ease; }
.envelope-atmosphere::before { content: ''; position: absolute; inset: 0; background: var(--stationery-pattern) center / var(--stationery-repeat) repeat; opacity: .32; }
.envelope-composition { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; width: 100%; min-height: 100%; padding: 36px 20px; }
.envelope-welcome { margin: 0; padding-inline: 12px; text-align: center; color: var(--forest); font: 400 clamp(2.7rem, 5.2vw, 4.6rem)/1.15 var(--script); transition: opacity .25s ease; }
.envelope-stage { position: relative; display: grid; place-items: center; width: min(880px, 94vw, 94svh); aspect-ratio: 1.35; animation: envelope-arrive .9s cubic-bezier(.16, 1, .3, 1) both; }
.envelope-shadow { position: absolute; bottom: -3%; width: 94%; height: 9%; border-radius: 50%; background: #53584035; filter: blur(19px); transition: opacity .3s; }
.envelope-object { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 1.35; transform-origin: center; transition: transform 1.1s cubic-bezier(.4, 0, .15, 1); }
.envelope-lower { position: absolute; inset: 0; z-index: 4; clip-path: polygon(0 0, 50% 62%, 100% 0, 100% 100%, 0 100%); transition: transform 1.3s cubic-bezier(.65, 0, .25, 1); }
.envelope-back { position: absolute; inset: 0; z-index: 0; border-radius: 2px; background: var(--envelope-texture), var(--envelope-color); box-shadow: 0 10px 24px -12px #333d314d, 0 1px 3px #39472b40, inset 0 0 0 1px #7c866c66; }
.envelope-front { position: absolute; inset: 0; z-index: 4; overflow: hidden; border-radius: 2px; pointer-events: none; }
.envelope-fold-left, .envelope-fold-right, .envelope-fold-bottom { position: absolute; inset: 0; }
.envelope-fold-left { background: var(--envelope-texture), var(--envelope-color); clip-path: polygon(0 0, 56% 54%, 0 100%); }
.envelope-fold-right { background: var(--envelope-texture), var(--envelope-color); clip-path: polygon(100% 0, 44% 54%, 100% 100%); }
.envelope-fold-bottom { background: var(--envelope-texture), var(--envelope-color); clip-path: polygon(0 100%, 0 97%, 37% 49%, 40% 46%, 60% 46%, 63% 49%, 100% 97%, 100% 100%); }
.envelope-front::after { content: ''; position: absolute; inset: 0; background: url('/assets/envelope-creases.svg') center / 100% 100% no-repeat; }
.envelope-flap { position: absolute; z-index: 6; top: -1px; left: 0; width: 100%; height: 68%; transition: transform 1.3s cubic-bezier(.65, 0, .25, 1); }
.envelope-flap-face { position: absolute; inset: 0; backface-visibility: hidden; }
.envelope-flap-face { background: url('/assets/envelope-flap.svg') center / 100% 100% no-repeat; }
.envelope-flap-face::before { content: ''; position: absolute; inset: 0; background: var(--envelope-texture); mask: url('/assets/envelope-flap.svg') center / 100% 100% no-repeat; }
.envelope-seal { position: absolute; z-index: 8; left: 50%; top: 92%; width: 16cqw; height: 16cqw; min-width: 58px; min-height: 58px; padding: 0; transform: translate(-50%, -50%) rotate(-7deg); display: grid; place-items: center; border: 0; border-radius: 0; color: #b3a78c; background: url('/assets/wax-seal.svg') center / contain no-repeat; filter: drop-shadow(1px 3px 2px #303b3340); transition: transform .45s ease, opacity .35s, filter .25s; }
.envelope-seal:hover { transform: translate(-50%, -50%) rotate(-3deg) scale(1.04); filter: drop-shadow(1px 5px 3px #303b3347); }
.envelope-seal:focus-visible { outline: none; }
.envelope-seal:focus-visible::before { content: ''; position: absolute; inset: -9px; border: 2px solid #62734b; border-radius: 4px; }
.envelope-seal-impression { display: grid; place-items: center; width: 77%; height: 77%; }
.envelope-seal-monogram { display: block; width: 46%; height: 67%; background: currentColor; mask: url('/assets/nl-monogram.svg?v=2') center / contain no-repeat; filter: drop-shadow(.65px .85px .4px #9a9073a6) drop-shadow(-.65px -.85px .3px #fffff8); }
.is-zooming .envelope-object { transform: translate3d(var(--zoom-x, 0px), var(--zoom-y, 0px), 0) scale(var(--zoom-scale, 1)); }
.is-zooming .envelope-welcome, .is-zooming .envelope-shadow { opacity: 0; }
.is-zooming .envelope-seal { pointer-events: none; }
/* Keep the actual website behind the two moving paper sections. */
.is-parting, .is-parting::backdrop { background: transparent; }
.is-parting .envelope-atmosphere { opacity: 0; }
.is-parting .envelope-flap { transform: translateY(calc(-1 * var(--split-distance))); }
.is-parting .envelope-lower { transform: translateY(var(--split-distance)); }
.is-parting .envelope-seal { opacity: 0; }
.envelope-replay { display: inline-block; margin-top: 8px; min-height: 44px; color: var(--ink); font: 400 .875rem/1.5 var(--sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #b2b99f; }
.envelope-replay:hover { color: var(--forest); }
.envelope-replay:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes envelope-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  .envelope-composition { padding: 24px 16px; }
  .envelope-stage { width: min(96vw, 94svh); }
}
@media (max-height: 500px) {
  .envelope-composition { padding-block: 16px; gap: 16px; }
  .envelope-welcome { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .envelope-reveal, .envelope-reveal *, .envelope-reveal::backdrop { animation: none !important; transition: none !important; }
}
