/* Renda: blush linen, white lace and pearls; satin ribbon slides off the envelope */
:root {
  --bg: #efd3d2; --paper: #f8e8e6; --paper-2: #fdf4f2; --ink: #4e2b31; --ink-2: #74464d; --muted: #9a7a7f;
  --rose: #b0566a; --gold: #b78f6b; --gold-d: #8f6a4b; --gold-rgb: 183 143 107; --on-gold: #fffaf7;
  --gold-foil: linear-gradient(100deg, #7d3f4c 0%, #b0566a 24%, #d98c9b 40%, #9c4458 56%, #c56d80 72%, #84404f 90%, #a9576a 100%);
  --shadow: 120 60 70; --dock: 253 244 242;
  --opener-bg: radial-gradient(120% 80% at 50% 30%, #fdf1ef 0%, #f3d9d7 60%, #e8c3c1 100%);
  --env-back: linear-gradient(160deg, #ecc4c4, #ddaaab); --env-front: linear-gradient(180deg, #f6dcdb, #efcdcc); --env-flap: linear-gradient(180deg, #f1d2d1, #e6bdbd);
  --name-size: clamp(64px, 19vw, 92px);
}
.tm-kicker { font-family: var(--display); font-weight: 600; letter-spacing: .3em; color: var(--rose); }
.tm-name { font-size: var(--name-size); line-height: .9; padding: .1em .25em .2em; }
.tm-amp { font-family: var(--display); font-style: normal; color: var(--rose); }
.tm-h { font-size: 58px; }
.tm-h span { font-family: var(--display); font-weight: 600; color: var(--rose); -webkit-text-fill-color: var(--rose); }
.tm-with { font-size: 40px; color: var(--rose); }
.tm-session h3 { font-family: var(--display); font-weight: 600; }
.tm-env-names { font-size: 40px; }

.lx-hero { padding-top: min(36vw, 170px); padding-bottom: min(36vw, 170px); }
.lx-band-top { top: 0; width: 100%; transform: translateX(-50%); }
.tm-par-bot { height: auto; inset: auto 0 0 0; }
.lx-band-bot { position: relative; display: block; width: 100%; transform: translateX(-50%) scaleY(-1); }
.lx-hero .tm-scroll { bottom: min(34vw, 160px); }
/* panels: lace edge top and bottom via the lace band image */
.lx-panel { background: var(--paper-2) var(--tex); background-size: var(--tex-size); border-radius: 0; box-shadow: 0 16px 40px rgb(var(--shadow) / 12%); margin-block: 30px; }
.lx-panel::before { inset: 12px; border: 1px dashed rgb(var(--gold-rgb) / 45%); outline: 0; }
.lx-panel::after { inset: -1px 0 auto; height: 16px; background: radial-gradient(circle at 8px 0, transparent 7px, var(--paper-2) 7.5px) 0 8px / 16px 16px repeat-x; }
.tm-corner { width: 200px; }
.tm-corner-tr { top: -4px; right: -20px; transform: scaleX(-1); }
.lx-foot { display: none; }

/* ================= opener: envelope with lace liner and a satin ribbon ================= */
.tm-env-flap i { position: absolute; inset: 0; background: center / cover; opacity: .9; }
.lx-ribbon { position: absolute; z-index: 4; left: -6%; right: -6%; top: 58%; height: 26px; margin-top: -13px;
  background: linear-gradient(180deg, #d98f9c 0%, #f5cfd5 35%, #e9a9b4 55%, #c97d8a 100%); box-shadow: 0 4px 10px rgb(120 50 60 / 25%);
  transition: transform .9s cubic-bezier(.6,0,.3,1), opacity .5s .4s; }
.lx-bow { position: absolute; z-index: 5; left: 50%; top: 58%; width: 150px; height: 112px; margin: -60px 0 0 -75px; padding: 0; border: 0; background: none; cursor: pointer;
  animation: lx-bob 2.6s ease-in-out infinite; transition: transform .9s cubic-bezier(.6,0,.3,1), opacity .5s .3s; }
.lx-bow img { width: 100%; height: 100%; }
@keyframes lx-bob { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) scale(1.03); } }
.tm-opener.is-opening .lx-ribbon { transform: translateX(130%); opacity: 0; }
.tm-opener.is-opening .lx-bow { animation: none; transform: translate(160px, -60px) rotate(40deg) scale(.8); opacity: 0; }
.lx-open-sampul.is-opening .tm-env-flap { transition-delay: .7s; }
.lx-open-sampul.is-opening .tm-env-letter { transition-delay: 1.1s; }
.lx-open-sampul.is-opening .tm-env-flower { opacity: 0; }
.lx-open-sampul { display: grid; }
.lx-open-sampul .tm-opener-text { position: relative; bottom: auto; }
@media (prefers-reduced-motion: reduce) { .lx-bow { animation: none; } }
