#private-introduction {
  --cover-hold:2500ms;
  --cover-turn:660ms;
  --back-reveal:calc(var(--cover-hold) + var(--cover-turn));
  --seal-release:calc(var(--back-reveal) + 660ms);
  --flap-open:calc(var(--seal-release) + 180ms);
  --card-start:calc(var(--flap-open) + 630ms);
  --card-duration:1120ms;
  position:fixed; inset:0; z-index:10; overflow:auto; overscroll-behavior:contain;
  display:flex; flex-direction:column;
  padding:max(14px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  color:#312119;
  background:radial-gradient(ellipse at 62% 23%,#fbf6eb 0%,#f1e7d8 56%,#e1d1bb 100%);
}
#private-introduction[hidden] {display:none}
#private-introduction .correspondence {
  display:grid; place-items:center; position:relative; isolation:isolate;
  width:min(100%, 670px); margin:auto; padding:9px 8px clamp(23px,6dvh,58px);
}
#private-introduction .espresso-envelope {
  position:absolute; width:min(100%, 510px, 72dvh); aspect-ratio:1; top:100%;
  transform:translateY(-100%);
  perspective:1050px;
  animation:sovara-envelope-settle 1050ms var(--card-start) cubic-bezier(.19,.72,.27,1) both;
}
#private-introduction :is(.envelope-cover,.envelope-back) {
  position:absolute; inset:0; border:1px solid #654538; border-radius:5px;
  box-shadow:0 16px 29px #49302155, inset 0 1px 0 #b9865e66;
  backface-visibility:hidden;
}
#private-introduction .envelope-cover {
  z-index:1; display:flex; flex-direction:column; justify-content:center; align-items:center;
  container-type:inline-size;
  background:
    repeating-linear-gradient(107deg,#e19a6710 0 1px,transparent 1px 4px),
    radial-gradient(ellipse at 22% 4%,#644033,#352019 53%,#21130f 98%);
  animation:sovara-cover-turn var(--cover-turn) var(--cover-hold) ease-in-out both;
}
#private-introduction .envelope-cover::before {
  content:""; position:absolute; inset:clamp(10px,2.1vw,18px);
  border:1px solid #bb805c88;
  border-radius:2px;
}

#private-introduction .cover-name,
#private-introduction .cover-descriptor {
  color:#e5ad86; font-family:'EB Garamond',Georgia,serif; font-weight:500;
  text-shadow:0 1px 1px #180a06;
}
#private-introduction .cover-name {
  font-size:12cqi; line-height:1.1; letter-spacing:.24em; padding-left:.24em;
}
#private-introduction .cover-descriptor {
  margin-top:1.2cqi; font-size:5.1cqi; letter-spacing:.065em;
}
#private-introduction .copper-stamp {
  position:absolute; top:6%; right:6%; width:19%; aspect-ratio:1;
  background:#edc9a4; padding:1.4%; filter:drop-shadow(0 2px 2px #140905a0);
  clip-path:polygon(0% 0%,5% 3%,10% 0%,15% 3%,20% 0%,25% 3%,30% 0%,35% 3%,40% 0%,45% 3%,50% 0%,55% 3%,60% 0%,65% 3%,70% 0%,75% 3%,80% 0%,85% 3%,90% 0%,95% 3%,100% 0%,100% 0%,97% 5%,100% 10%,97% 15%,100% 20%,97% 25%,100% 30%,97% 35%,100% 40%,97% 45%,100% 50%,97% 55%,100% 60%,97% 65%,100% 70%,97% 75%,100% 80%,97% 85%,100% 90%,97% 95%,100% 100%,100% 100%,95% 97%,90% 100%,85% 97%,80% 100%,75% 97%,70% 100%,65% 97%,60% 100%,55% 97%,50% 100%,45% 97%,40% 100%,35% 97%,30% 100%,25% 97%,20% 100%,15% 97%,10% 100%,5% 97%,0% 100%,0% 100%,3% 95%,0% 90%,3% 85%,0% 80%,3% 75%,0% 70%,3% 65%,0% 60%,3% 55%,0% 50%,3% 45%,0% 40%,3% 35%,0% 30%,3% 25%,0% 20%,3% 15%,0% 10%,3% 5%,0% 0%);
}
#private-introduction .stamp-field {
  display:grid; place-items:center; width:100%; height:100%;
  border:1px solid #dba079;
  box-shadow:inset 0 0 0 1px #78422e,0 1px 2px #542914;
  background:linear-gradient(145deg,#c08055,#955236 64%,#80452e);
}
#private-introduction .stamp-field img {
  display:block; width:72%; height:72%; object-fit:contain;
  filter:drop-shadow(0 1px 1px #542914);
}
#private-introduction .envelope-back {
  background:linear-gradient(134deg,#52352a,#271811 65%,#1e120f);
  perspective:850px;
  animation:sovara-back-turn var(--cover-turn) var(--cover-hold) ease-in-out both;
}
#private-introduction .envelope-lining {
  position:absolute; inset:0 0 40%;
  background:linear-gradient(121deg,#6a3022,#b86f4c 24%,#f5b491 46%,#ad593c 66%,#db936c);
  clip-path:polygon(0 0,100% 0,88% 100%,12% 100%);
}
#private-introduction .envelope-flap {
  position:absolute; z-index:3; inset:0 0 auto; height:53%;
  transform-origin:top center; transform-style:preserve-3d;
  transform:rotateX(169deg);
  animation:sovara-unseal 950ms var(--flap-open) cubic-bezier(.45,0,.26,1) both;
}
#private-introduction .envelope-flap::before,
#private-introduction .envelope-flap::after {
  content:""; position:absolute; inset:0;
  clip-path:polygon(0 0,100% 0,53% 96%,50% 99%,47% 96%);
  backface-visibility:hidden;
}
#private-introduction .envelope-flap::before {
  background:linear-gradient(158deg,#583a2d,#302019 55%,#21140f);
}
#private-introduction .envelope-flap::after {
  transform:rotateY(180deg);
  background:linear-gradient(129deg,#763923,#af6143 21%,#f5b793 38%,#db8962 51%,#a55438 72%,#763b2b 87%,#d38662);
}
#private-introduction .envelope-pocket {
  position:absolute; z-index:2; inset:0; border-radius:4px;
  background:
    conic-gradient(from -63deg at 50% 54%,#37231a 0deg 55deg,#644436 56deg 62deg,#40291e 64deg 125deg,#281913 127deg 240deg,#20140f 241deg 292deg,#503328 294deg 296deg,#3e281f 298deg 360deg);
  clip-path:polygon(0 0,50% 53%,100% 0,100% 100%,0 100%);
  box-shadow:inset 0 -2px 4px #180d08;
}
#private-introduction .gold-seal {
  position:absolute; z-index:4; top:52%; left:50%; width:21%; aspect-ratio:1;
  transform:translate(-50%,-50%); border-radius:50%; display:flex; flex-direction:column;
  justify-content:center; align-items:center; gap:4%; container-type:inline-size;
  background:linear-gradient(137deg,#b27a32,#f6df9f 33%,#e8c16c 62%,#b88636);
  border:1px solid #ffedaf; box-shadow:0 2px 3px #20140e91,inset 0 0 0 2px #9a692a;
  color:#46291b; animation:sovara-seal-release 230ms var(--seal-release) ease-in both;
}
#private-introduction .gold-seal img {
  display:block; width:68%; height:43%; object-fit:contain;
  filter:grayscale(1) sepia(.8) brightness(.36);
}
#private-introduction .gold-seal span {
  font:600 14cqi/1 Georgia,serif; letter-spacing:.13em; padding-left:.13em;
}
@keyframes sovara-seal-release {
  from {opacity:1}
  to {opacity:0;transform:translate(-50%,-55%) rotate(-9deg) scale(.93)}
}
#private-introduction .invitation-card {
  z-index:4; position:relative; width:min(100%,462px);
  padding:clamp(20px,4.4dvh,38px) clamp(16px,5.2vw,44px) clamp(16px,3.2dvh,26px);
  border:1px solid #eddbbc; outline:1px solid #c6a17b; outline-offset:-7px;
  background:linear-gradient(137deg,#fffaf1,#f8efe2 72%,#f2e7d7);
  box-shadow:0 12px 24px #3d261d48, inset 0 0 25px #b884481b;
  text-align:center;
  animation:sovara-card-rise var(--card-duration) var(--card-start) cubic-bezier(.19,.72,.27,1) both;
}
#private-introduction .card-eyebrow {
  margin:0 0 9px; color:#77533a; font:600 10px/1.3 Arial,sans-serif; letter-spacing:.24em;
}
#invitation-title {
  margin:0 auto 13px; font:400 clamp(27px,6.5vw,39px)/1.04 Georgia,serif;
  letter-spacing:-.035em; max-width:13em;
}
#private-introduction .card-copy {
  font:clamp(15px,3.8vw,17px)/1.43 Georgia,serif; max-width:365px; margin:auto;
}
#private-introduction .card-copy p {margin:0 0 9px}
#private-introduction .card-copy .card-signoff {margin:10px 0 12px; line-height:1.35}
#private-introduction .card-signoff span {font-style:italic}
#private-introduction .sovara-entry {
  display:inline-grid; place-items:center; gap:5px; max-width:100%;
  padding:2px 6px; border:0; background:transparent; cursor:pointer;
  color:#39241a; transition:transform 140ms ease,filter 140ms ease;
  animation:sovara-entry-ready 1ms calc(var(--card-start) + var(--card-duration)) both;
}
#private-introduction .sovara-entry img {
  display:block; width:clamp(128px,34vw,158px); height:80px;
  object-fit:contain; filter:drop-shadow(0 3px 3px #56322255);
}
#private-introduction .sovara-entry:hover {filter:brightness(1.1)}
#private-introduction .sovara-entry:focus-visible {outline:2px solid #794824; outline-offset:4px}
#private-introduction .sovara-entry:is(:active,.pressed) {transform:translateY(3px)}
#private-introduction .card-instruction {font:600 14px/1.25 Arial,sans-serif}
#private-introduction .card-code {
  width:min(100%, 240px); margin:10px auto 0; padding:6px 10px 7px;
  border:1px solid #b58b67; border-radius:4px; background:#f2e5d2;
  font:600 15px/1.25 Arial,sans-serif; color:#39241a;
}
#private-introduction .card-code strong {
  display:block; margin-top:3px; font:700 clamp(22px, 5vw, 26px)/1.2 Arial,sans-serif;
  overflow-wrap:anywhere;
}
@keyframes sovara-cover-turn {
  from {transform:rotateY(0deg);visibility:visible}
  51%,to {visibility:hidden}
  to {transform:rotateY(180deg)}
}
@keyframes sovara-back-turn {
  from {transform:rotateY(-180deg)}
  to {transform:rotateY(0deg)}
}
@keyframes sovara-envelope-settle {
  from {top:50%;transform:translateY(-50%)}
  to {top:100%;transform:translateY(-100%)}
}
@keyframes sovara-unseal {
  from {transform:rotateX(0deg)}
  to {transform:rotateX(169deg)}
}
@keyframes sovara-card-rise {
  0% {opacity:0;visibility:hidden;transform:translateY(46%) scale(.82);clip-path:inset(0 0 88%)}
  8% {opacity:1;visibility:visible}
  80% {clip-path:inset(0)}
  100% {opacity:1;transform:none;clip-path:inset(-50px)}
}
@keyframes sovara-entry-ready {
  from {visibility:hidden}
  to {visibility:visible}
}
@media (max-height:500px) {
  #private-introduction .correspondence {padding-bottom:18px}
  #private-introduction .invitation-card {padding-top:16px;padding-bottom:13px}
  #private-introduction .card-copy {font-size:15px;line-height:1.34}
}
@media (prefers-reduced-motion:reduce) {
  #private-introduction :is(.envelope-cover,.gold-seal) {display:none}
  #private-introduction .envelope-back,
  #private-introduction .espresso-envelope,
  #private-introduction .envelope-flap,
  #private-introduction .invitation-card {animation:none}
  #private-introduction .sovara-entry {animation:none;transition:none}
}
