/* Not My Event: "Champagne Christmas" (public/templates/champagne-christmas.html), the ivory and champagne-gold Christmas party invitation (2026-11-29).
   Rebuilt the same day to the owner's screen recording (the owner: "it does not look like ... the screen recording ... So please redo"), measured frame by
   frame: a film of whole screens on a white page with faint beige snowflakes, built from the owner's own pictures (public/assets/champagne/):
   the plaid envelope opens like paper (the owner: "Why is the envelope not opening like an envelope ... It just breaks apart"; rebuilt 11-30): its ivory
   flap lifts on its fold and a folded card slides out of it, comes forward and opens into the invitation, an ivory card with a double gold rule, the tree
   under its gold star already on it; the words write themselves in; the details fly in on blush paper; the gold bauble drops in for the RSVP; the bauble flies up to the
   corner and becomes an open gold ring as the tree comes up from the bottom right. champagne.js runs the clock; this file holds every place and every move.
   Everything that moves moves by transform, translate and opacity only, and nothing carries a filter.
   The stage is the recording's own screen (336 x 736): --sw is its width (the whole width of a phone, or 0.4565 of the height of a wider screen), --s a
   hundredth of it, --hh a hundredth of its height; every piece is placed by its middle at (--x %, --y %) of the stage with a width of --w % of it, measured
   from the recording. The page, the snowflakes, the garland and the envelope fill the whole window around it.
   html.film is the film (one screen at a time, hidden starting states). Without it (no script, reduced motion, the editor) the screens stand one under the
   other, everything shown: every hidden starting state below lives under html.film only. */
:root {
  --page: #FFFEFB; --blush: #F6E9E1; --gold: #AF9466; --gold-d: #8E7447; --ink: #2B2621; --ink2: #5B5046; --line: #CDB68C; --tab: #A88D5E;
  --e2: cubic-bezier(.215, .61, .355, 1); --e3: cubic-bezier(.165, .84, .44, 1); --leave: cubic-bezier(.55, 0, .45, 1); --pen: cubic-bezier(.33, .08, .4, 1);
  --pop: cubic-bezier(.34, 1.5, .64, 1);
  --f-script: 'Pinyon Script', 'Segoe Script', 'Brush Script MT', cursive;
  --f-serif: 'Playfair Display', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-sans: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --f-body: 'Cormorant Garamond', Garamond, Georgia, serif;
  --sw: min(100vw, calc(100vh * .4565)); --s: calc(var(--sw) / 100); --hh: calc(var(--s) * 2.1905);
  --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
  --gold-text: linear-gradient(180deg, #CDB68A 0%, #B19669 42%, #8D7346 68%, #B39A6C 100%);
}
@supports (height: 1svh) { :root { --sw: min(100vw, calc(100svh * .4565)); } }
html:not(.film) { --sw: min(100vw, 430px); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--f-body); }
img { display: block; max-width: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
button { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 120; padding: 10px 14px; border-radius: 10px; background: var(--gold-d); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
#snd-hint { position: fixed; top: calc(20px + var(--top)); right: 66px; z-index: 95; margin: 0; font: 600 11px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); opacity: .8; transition: opacity .5s ease; pointer-events: none; }
#snd-hint.gone { opacity: 0; visibility: hidden; }

/* ---------------- the page and the snowflakes behind ---------------- */
#stage { position: relative; overflow: hidden; overflow: clip; }
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--page); }
.bg.blush { display: none; background: var(--blush) url(/assets/champagne/cc-paper-blush.webp) center / cover no-repeat; }
.deco { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.deco .flakes { position: absolute; inset: 0; opacity: .22; background: url(/assets/champagne/cc-flakes-t.webp) 50% 0 / calc(var(--s) * 110) auto repeat; }
.fk { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--s) * var(--w)); height: auto; opacity: var(--o); translate: -50% -50%; }
html.film .fk { animation: drift var(--dur) ease-in-out var(--dl) infinite alternate; will-change: transform; }
@keyframes drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(calc(var(--s) * var(--dx)), calc(var(--hh) * var(--dy))) rotate(var(--rot)); } }

.scr { position: relative; z-index: 2; }
.stg { position: relative; width: var(--sw); height: calc(var(--sw) * 2.1905); margin: 0 auto; }
html.film, html.film body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.film #stage { position: fixed; inset: 0; touch-action: pinch-zoom; -webkit-user-select: none; user-select: none; }
html.film .bg.blush { display: block; opacity: 0; transition: opacity 500ms ease; }
html.film[data-scr="det"] .bg.blush { opacity: 1; }
html.film .scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--fade, 500ms) ease, visibility 0s linear var(--fade, 500ms); }
html.film .scr.on { opacity: 1; visibility: visible; transition: opacity var(--fade, 500ms) ease, visibility 0s; }
/* the invitation, drawn (all but unseen) under the envelope while the card comes out, so it is ready the moment the card gives way to it */
html.film .scr.pre:not(.on) { visibility: visible; opacity: .004; transition: none; pointer-events: none; }
html.film .stg { position: absolute; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%); }
/* the editor and reduced motion: the screens one under the other; the details on their own blush paper */
html:not(.film) .s-det { background: var(--blush) url(/assets/champagne/cc-paper-blush.webp) center / cover no-repeat; }
html:not(.film) .scr + .scr { border-top: 1px solid rgba(205, 182, 140, .45); }

/* every piece: placed by its middle, sized by the stage's width */
.pc { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); transform: translate(-50%, -50%); margin: 0; z-index: 20; }
.pc > img:not(.gl), .pc > .m > img:not([class]) { width: 100%; height: auto; }
/* a window the tree and the little ornament rise from behind: everything below its line is hidden (the recording's tree comes up from behind the words) */
.clip { position: absolute; inset: 0; pointer-events: none; }
.c-tree { clip-path: polygon(-60% -60%, 160% -60%, 160% 58.4%, -60% 58.4%); }
.c-badge { clip-path: polygon(-60% -60%, 160% -60%, 160% 61.4%, -60% 61.4%); }

/* ---------------- lettering ---------------- */
.script { font-family: var(--f-script); font-weight: 400; color: var(--gold); line-height: 1; text-align: center; }
.pf { font-family: var(--f-serif); text-transform: uppercase; font-weight: 400; color: var(--ink); text-align: center; }
.sans { font-family: var(--f-sans); text-transform: uppercase; color: var(--ink); text-align: center; }
.lt .c, .wds .wo, .wds2 .wo { display: inline-block; }
/* the writing window: the outer box (.w) opens left to right over the words (.wi), which stand still; the padding gives the script's swashes room */
.w { display: inline-block; overflow: hidden; vertical-align: top; margin: -.4em -40px -.4em -.4em;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%); }
.w > .wi { display: block; padding: .4em 40px .4em .4em; white-space: nowrap; }
/* gold lettering, painted on each letter's own box once the letters are split out to move (.split): the heading's own fill would show through them */
.gold:not(.split), .gold .c { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
/* the RSVP's gold glitter (a patch of the owner's glitter ornament), each letter its own patch */
.glit:not(.split), .glit .c { background: #C9AE7C url(/assets/champagne/cc-glitter.webp) 50% 40% / calc(var(--s) * 60) auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; -webkit-text-stroke: .4px rgba(140, 112, 64, .55); }

/* the glints: the owner's eight-pointed starburst, now and then, never all at once */
.gl { position: absolute; width: calc(var(--s) * 7); height: auto; left: 50%; top: 50%; margin: calc(var(--s) * -3.5) 0 0 calc(var(--s) * -3.5); opacity: 0; pointer-events: none; z-index: 45; }
html.film .scr.go .gl { animation: glint var(--gp, 4.6s) ease-in-out var(--d, 0ms) infinite; }
html.nosparkle .gl, html.nosparkle .glint, html.nosparkle .tw { display: none; }
@keyframes glint { 0% { opacity: 0; transform: scale(.25) rotate(0deg); } 8% { opacity: .85; transform: scale(1) rotate(20deg); } 18% { opacity: 0; transform: scale(.35) rotate(40deg); } 100% { opacity: 0; transform: scale(.25) rotate(40deg); } }

/* ---------------- 1. the invitation ---------------- */
/* the owner's presents tree, its own star at the top; its base sits just above the line the words begin at, so nothing of it is cut off (the owner:
   "The bottom is cut off") */
.tree { --x: 50.3; --y: 31.8; --w: 88; }
.tree .m, .tree2 .m { position: relative; }
.tree .m > img:first-child, .tree2 .m > img:first-child { width: 100%; height: auto; }
/* the glint on each tree's own star */
.tree .sg { --gp: 3.8s; left: 49.6%; top: 3.6%; width: calc(var(--s) * 10); margin: calc(var(--s) * -5) 0 0 calc(var(--s) * -5); }
.tree2 .sg { --gp: 4.2s; left: 50.9%; top: 3.2%; width: calc(var(--s) * 10); margin: calc(var(--s) * -5) 0 0 calc(var(--s) * -5); }
/* the tree's lights twinkling all the time, as in the recording (champagne.js scatters them over the tree) */
.twk { position: absolute; inset: 0; z-index: 26; }
.tw { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--s) * var(--w)); height: auto; translate: -50% -50%; opacity: .55; }
html.film .tw { opacity: 0; }
html.film .s-inv.go .tw { animation: twinkle var(--tp) ease-in-out var(--td) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 45% { opacity: .95; transform: scale(1) rotate(25deg); } 60% { opacity: .6; transform: scale(.8) rotate(32deg); } }
/* the little ornament at the foot of the tree: a white disc with a fine gold rim, its cap and the gold bow; the words round the inside of its top */
.badge { --x: 18; --y: 61.6; --w: 40; z-index: 26; }
.badge .m { position: relative; aspect-ratio: 1; }
.ring { position: absolute; inset: 0; border-radius: 50%; background: #FFFFFF;
  box-shadow: inset 0 0 0 calc(var(--s) * .55) #BC9D66, inset 0 0 0 calc(var(--s) * .85) #F1E4C6, 0 calc(var(--s) * .3) calc(var(--s) * 1.2) rgba(120, 95, 50, .16); }
.badge .cap { position: absolute; z-index: 2; left: 50%; top: -16%; width: 22%; height: auto; transform: translateX(-50%); }
.badge .bow { position: absolute; z-index: 3; left: 50%; top: -38%; width: 62%; height: auto; transform: translateX(-50%); }
.arc { position: absolute; inset: 0; z-index: 1; margin: 0; }
.arc .al { position: absolute; left: 50%; top: 50%; width: 1.3em; height: 1.2em; margin: -.6em 0 0 -.65em; text-align: center; transform: rotate(var(--a)) translateY(calc(var(--s) * -14.8));
  font: 500 calc(var(--s) * 2.75)/1.2 var(--f-serif); text-transform: uppercase; color: #4A4238; }
.arc .c { display: inline-block; }
.title { --x: 55; --y: 63.6; --w: 100; z-index: 30; font-size: calc(var(--s) * 21); }
.sub { --x: 52.5; --y: 71.6; --w: 94; z-index: 30; font-size: calc(var(--s) * 12); font-weight: 500; letter-spacing: .05em; padding-left: .05em; line-height: 1; color: var(--gold); white-space: nowrap; }
.hosted { --x: 51.5; --y: 75.5; --w: 94; z-index: 30; font-size: calc(var(--s) * 3.7); letter-spacing: .46em; padding-left: .46em; line-height: 1; white-space: nowrap; }
.host { --x: 50; --y: 81.4; --w: 100; z-index: 30; font-size: calc(var(--s) * 13); }
.when { --x: 51; --y: 88.4; --w: 74; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: calc(var(--s) * 2.6); }
.when p { margin: 0; }
.wl, .wr { position: relative; padding: calc(var(--s) * 1.5) 0; text-align: center; font: 400 calc(var(--s) * 3.4)/1 var(--f-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.wl .m, .wr .m { display: inline-block; }
.ln { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); }
.ln.t { top: 0; }
.ln.b { bottom: 0; }
.wd { display: flex; flex-direction: column; align-items: center; }
.wd b { font: 400 calc(var(--s) * 9)/.95 var(--f-serif); color: var(--gold); }
.wd span { font: 400 calc(var(--s) * 3)/1.2 var(--f-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.place { --x: 50; --y: 96.2; --w: 96; z-index: 30; font-size: calc(var(--s) * 2.85); font-weight: 500; letter-spacing: .07em; line-height: 1.3; }

/* ---------------- 2. the details ---------------- */
.the { --x: 24; --y: 13.4; --w: 40; z-index: 30; font-size: calc(var(--s) * 23); }
.swash { --x: 50.5; --y: 16.4; --w: 28; z-index: 29; }
.swash .w { margin: 0; -webkit-mask-image: none; mask-image: none; }
.swash .wi { padding: 0; }
.swash svg { display: block; width: calc(var(--s) * 28); height: calc(var(--s) * 4); overflow: visible; }
.dflake { --x: 65.5; --y: 20.6; --w: 11; z-index: 29; }
.dflake .sw { position: relative; transform-origin: 50% -40%; }
.dflake .thr { position: absolute; left: 50%; bottom: 96%; width: 1px; height: calc(var(--hh) * 2.2); background: #B59A68; }
.dflake img { width: 100%; height: auto; }
.dhead { --x: 27.5; --y: 24.4; --w: 60; z-index: 30; font-size: calc(var(--s) * 9.6); letter-spacing: .04em; padding-left: .04em; line-height: 1; color: var(--gold); }
.card { z-index: 25; }
.card .m { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(var(--hh) * 10.6); padding: calc(var(--s) * 5.2) calc(var(--s) * 4) calc(var(--s) * 3.2); border: 1px solid var(--line); border-radius: calc(var(--s) * 1.4); background: rgba(255, 255, 255, .96);
  box-shadow: 0 calc(var(--s) * .6) calc(var(--s) * 2) rgba(150, 110, 80, .1); }
.tab { position: absolute; top: 0; display: flex; align-items: center; justify-content: center; height: calc(var(--hh) * 3); padding: 0 calc(var(--s) * 3.2); transform: translateY(-55%); border-radius: calc(var(--s) * 1);
  background: linear-gradient(180deg, #B49A6B, #9E8355); color: #fff; font: 600 calc(var(--s) * 3.3)/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.tab span { padding-left: .14em; }
.cb p { margin: 0; font: 400 calc(var(--s) * var(--fs, 3.2))/1.42 var(--f-sans); color: #3B3833; overflow-wrap: anywhere; }
.cb p.b { font-weight: 500; }
.go-map { margin-top: calc(var(--s) * 1); padding: 4px 0; border: 0; background: none; color: var(--gold-d); font: 600 max(11px, calc(var(--s) * 2.7))/1.3 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.c-loc { --x: 45; --y: 39.8; --w: 76; }
.c-loc .tab { left: 10%; }
.c-loc .cb { text-align: left; padding-right: 15%; }
.c-att { --x: 59; --y: 54.8; --w: 72; }
.c-att .tab { right: 8%; }
.c-att .cb { text-align: center; padding-left: 14%; }
.c-bring { --x: 51; --y: 69.8; --w: 88; }
.c-bring .tab { left: 8%; }
.c-bring .cb { text-align: center; }
.photo { z-index: 27; }
.photo .m { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 42% 36%, #FFFFFF 0%, #FBF3EE 62%, #F0E2D8 100%);
  box-shadow: 0 0 0 calc(var(--s) * .55) #fff, 0 0 0 calc(var(--s) * .75) var(--line), 0 calc(var(--s) * .8) calc(var(--s) * 2) rgba(120, 90, 60, .18); }
.photo img { width: 100%; height: 100%; object-fit: contain; padding: 15%; }
.photo img.own { object-fit: cover; padding: 0; }
.ph-loc { --x: 91; --y: 39.6; --w: 27; }
.ph-att { --x: 13; --y: 54.4; --w: 27; }
.ph-att img { padding: 18%; }
/* the garland sits on the bottom edge; on a wide window it reaches further out to the sides, never so far that it grows up over the cards */
.garland { --x: 50; --w: 110; top: auto; bottom: calc(var(--hh) * -1.5); width: clamp(110%, 100vw, 150%); transform: translateX(-50%); z-index: 22; }
.garland .gl { --gp: 6.4s; }
.garland .g1 { left: 38%; top: 40%; }
.garland .g2 { --gp: 7.1s; left: 63%; top: 52%; }

/* ---------------- 3. the RSVP ---------------- */
/* the hanging ornament: one group, hung from above the screen; the bow's knot sits on the bauble's loop, the thread runs from it up out of the screen */
.orn { position: absolute; left: 50%; top: 0; width: 62%; height: 100%; margin-left: -31%; z-index: 20; pointer-events: none; }
.swing { position: absolute; inset: 0; transform-origin: 50% -25%; }
.orn .thread, .hoop .thread { position: absolute; left: 50%; width: max(1.5px, calc(var(--s) * .5)); height: 300%; margin-left: max(-.75px, calc(var(--s) * -.25)); background: linear-gradient(90deg, #8C6B32, #F1D99A 50%, #9A7638); }
.orn .thread { bottom: 85.6%; }
.orn .bauble { position: absolute; left: 0; top: 14%; width: 100%; height: auto; }
.orn .emboss { position: absolute; left: 50%; top: 33%; width: 58%; height: auto; transform: translate(-50%, -50%); }
.orn .bow { position: absolute; left: 50%; top: 14.4%; width: 74%; height: auto; transform: translate(-50%, -37%); }
.orn .g1 { left: 32%; top: 27%; --gp: 5.2s; }
.orn .g2 { left: 70%; top: 12%; --gp: 6s; }
.please { --x: 27; --y: 51.2; --w: 40; z-index: 30; font-size: calc(var(--s) * 10); }
.rsvp-h { --x: 51; --y: 58.6; --w: 100; z-index: 30; margin: 0; font-size: calc(var(--s) * 27); font-weight: 700; letter-spacing: .02em; padding-left: .02em; line-height: 1; }
.by { --x: 50; --y: 67.2; --w: 92; z-index: 30; font-size: calc(var(--s) * 9.5); }
/* RSVP NOW, in the recording's gold panel (where its QR code was) */
.rbtn { --x: 50; --y: 81.4; --w: 66; z-index: 90; }
.rsvp-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: calc(var(--s) * 3.4); width: 100%; min-height: max(52px, calc(var(--hh) * 9)); padding: 0 calc(var(--s) * 3); overflow: hidden; cursor: pointer;
  border: 0; border-radius: calc(var(--s) * .9); background: linear-gradient(180deg, #BEA578 0%, #AC9162 55%, #A3885A 100%); color: #fff;
  font: 600 max(15px, calc(var(--s) * 4.6))/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 calc(var(--s) * .8) calc(var(--s) * 2.4) rgba(120, 95, 50, .25), inset 0 1px 0 rgba(255, 248, 230, .5); -webkit-tap-highlight-color: transparent; }
.rsvp-btn span { position: relative; z-index: 1; padding-left: .2em; }
.env-ic { position: relative; z-index: 1; width: calc(var(--s) * 8); height: auto; flex: none; }
.rsvp-btn:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 4px; }
.sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, rgba(255, 250, 235, 0), rgba(255, 250, 235, .55) 50%, rgba(255, 250, 235, 0)); transform: translateX(-120%); pointer-events: none; }
html.film .s-rsvp.go .sweep { animation: sweep 6.2s ease-in-out 3s infinite; }
@keyframes sweep { 0% { transform: translateX(-120%); } 20% { transform: translateX(330%); } 100% { transform: translateX(330%); } }
.rdone-line { --x: 50; --y: 92.6; --w: 90; z-index: 30; font: italic 500 calc(var(--s) * 3.8)/1.3 var(--f-body); color: var(--ink2); text-align: center; }

/* ---------------- 4. the last screen ---------------- */
.hoop { --x: 27; --y: 18.25; --w: 50; z-index: 25; }
.hoop .m { position: relative; }
.hoop img { width: 100%; height: auto; }
.hoop .thread { left: 49.9%; bottom: 99.5%; }
.closing { --x: 27; --y: 19.8; --w: 33; z-index: 30; font-size: calc(var(--s) * 5.4); line-height: 1.12; text-wrap: balance; }
/* the owner's skirted tree, all of it on the screen, its skirt just above the bottom edge; the host's name, the words and the buttons in the column to its left */
.tree2 { --x: 57.5; --y: 70.8; --w: 84; z-index: 20; }
.plaque { --x: 25; --y: 40; --w: 46; z-index: 30; }
.plaque .m { position: relative; }
.plaque img { width: 100%; height: auto; }
.pn { position: absolute; left: 13%; right: 13%; top: 24%; bottom: 22%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pn .so { font: italic 500 calc(var(--s) * 2.9)/1 var(--f-body); color: var(--ink2); margin-bottom: calc(var(--s) * .4); }
.pn .w .wi { font-family: var(--f-script); font-size: calc(var(--s) * var(--pf, 7)); line-height: 1; }
.support { --x: 22; --y: 51.8; --w: 40; z-index: 30; font: italic 500 calc(var(--s) * 3.7)/1.4 var(--f-body); color: var(--ink2); text-align: center; text-wrap: balance; }
.endnav { --x: 18; --y: 65; --w: 30; z-index: 90; display: flex; flex-direction: column; align-items: stretch; gap: calc(var(--s) * 1.8); }
.endnav button { min-height: 40px; padding: 0 calc(var(--s) * 3); border: 1px solid rgba(142, 116, 71, .5); border-radius: 999px; background: rgba(255, 254, 251, .92); color: var(--gold-d); font: 600 max(11px, calc(var(--s) * 2.6))/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.endnav button:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 3px; }

/* ---------------- falling snow: a few specks, all the time (on top of the screens, under the envelope) ---------------- */
.snow { display: none; position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
html.film .snow { display: block; }
.snow i { position: absolute; top: -2%; left: var(--x); width: var(--sz); height: var(--sz); opacity: 0; background: url(/assets/champagne/cc-snow.webp) center / contain no-repeat; animation: fall var(--dur) linear var(--dl) infinite; will-change: transform; }
@keyframes fall { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 6% { opacity: var(--o); } 50% { transform: translate3d(var(--sway), 52vh, 0); } 92% { opacity: var(--o); } 100% { transform: translate3d(0, 104vh, 0); opacity: 0; } }

/* ---------------- the page under the envelope and the card: the owner's champagne paper, so the ivory card stands out on it ---------------- */
.bg.champ { display: none; background: #E8DBC4 url(/assets/champagne/cc-page-champ.webp) center / cover no-repeat; }
html.film .bg.champ { display: block; transition: opacity 600ms ease; }
html.film .bg.champ.off { opacity: 0; }

/* ---------------- the card (the owner, 2026-11-30: "it doesn't even look like a card. It's got a transparent background that looks ridiculous") ----------------
   The invitation is printed on a card: ivory paper with the faint snowflakes on it, a double gold rule round it, lying on the champagne page with a soft
   shadow. The same face is the invitation's own page (.s-inv .stg) and the card that comes out of the envelope (#ecard), so the one becomes the other with
   nothing changing; --cw is the card's width where it is. The invitation's stage is 94% of the screen's, so the page shows round the card. */
.s-inv { --sw: calc(min(100vw, 100vh * .4565) * .94); --s: calc(var(--sw) / 100); --hh: calc(var(--s) * 2.1905); }
@supports (height: 1svh) { .s-inv { --sw: calc(min(100vw, 100svh * .4565) * .94); } }
html:not(.film) .s-inv { --sw: calc(min(100vw, 430px) * .94); padding: calc(var(--sw) * .05) 0; background: #E8DBC4 url(/assets/champagne/cc-page-champ.webp) center / cover; }
.s-inv .stg { --cw: var(--sw); }
.cface { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; border-radius: calc(var(--cw) * .012); background: #FCF8F0 url(/assets/champagne/cc-card.webp) 0 0 / 100% 100% no-repeat;
  box-shadow: 0 calc(var(--cw) * .02) calc(var(--cw) * .05) rgba(74, 52, 18, .26), 0 0 0 1px rgba(160, 128, 76, .25); }
.cface::before, .cface::after { content: ""; position: absolute; pointer-events: none; }
.cface::before { inset: calc(var(--cw) * .026); border: max(1px, calc(var(--cw) * .0042)) solid #BE9F62; }
.cface::after { inset: calc(var(--cw) * .036); border: max(.5px, calc(var(--cw) * .0016)) solid #C9AE78; }

/* ---------------- the envelope (rebuilt 2026-11-30, the owner: "the lagginess it has when it moves, the way the card opens, the card itself") ----------------
   It opens the way every envelope of ours does (envelope-card.css): seen from the back, square, in the middle of the page, its ivory flap with the double
   gold edge on top, sealed at its point with the gold wax seal and its bouquet (frosted pine, gold leaves, a cream bow, pearls). Every piece is one flat
   picture (scripts/art/make-champagne-envelope.mjs): nothing on it is masked, filtered or redrawn while it moves; only transform and opacity change.
   Sized by this style sheet alone, from the window (container units: cqw and cqh are a hundredth of .envwrap), so it is the right size from the very first
   moment; the page's first script leaves the film off in a browser without container units. --ew is the envelope's width: 86% of a phone's, never more
   than half the window's height (so the card it lets out and the envelope both fit above one another), and 520px at most.
   Its layers, back to front:
     the back (.eback): the envelope's inside, which casts its shadow on the page, and the flap's inside (.fin), shown once the flap is open, pointing up;
     the card (#ecard), inside the envelope: folded in half, its outside (the gold snowflake) facing out; its lower half (.lo) and its upper half (.up),
       folded down over it on the fold between them;
     the front (.efront): the plaid pocket (the two side flaps and the bottom flap, open at the top) and the flap itself (.fout), on its fold along the top.
   The card is the invitation's own shape (2.1905 as tall as wide), 80% of the envelope's width; folded, it is 94% of the envelope's height. */
.env { display: none; }
html.film .env { display: block; position: fixed; inset: 0; z-index: 50; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.film .env.gone { display: none; }
.envwrap { position: absolute; inset: 0; overflow: hidden; container-type: size;
  --ew: min(86cqw, 50cqh, 520px); --eh: calc(var(--ew) * .93); --ey: calc(50cqh - var(--eh) / 2); --fh: calc(var(--ew) * .4733); --cwi: calc(var(--ew) * .8);
  --sw2: calc(var(--ew) * .2); --sx: 50cqw; --sy: calc(var(--ey) + var(--fh) * .9); }
.eback, .efront { position: absolute; left: calc(50cqw - var(--ew) / 2); top: var(--ey); width: var(--ew); height: var(--eh); perspective: calc(var(--ew) * 3); perspective-origin: 50% 0; }
.eback { z-index: 1; }
.efront { z-index: 3; }
.liner { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: calc(var(--ew) * .006); box-shadow: 0 calc(var(--ew) * .03) calc(var(--ew) * .07) rgba(74, 52, 18, .3); }
.pocket { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.fout, .fin { position: absolute; left: 0; top: 0; width: 100%; height: var(--fh); transform-origin: 50% 0; }
.fout .flap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
html.film .fin { transform: rotateX(-90deg); opacity: 0; }
/* the little gold stars on the flap, above the bouquet */
.fst { position: absolute; height: auto; opacity: .9; }
.fst.s1 { left: 30%; top: 22%; width: calc(var(--ew) * .07); }
.fst.s2 { left: 64%; top: 14%; width: calc(var(--ew) * .05); }
.fst.s3 { left: 58%; top: 34%; width: calc(var(--ew) * .045); }
/* the card, folded, in the envelope: its box is the whole card (the upper half folded down over the lower one, so all of it shows in the lower half);
   it turns on the middle of the folded card */
.ecard { position: absolute; z-index: 2; left: calc(50cqw - var(--cwi) / 2); top: calc(var(--ey) + var(--eh) * .03 - var(--cwi) * 1.09525); width: var(--cwi); height: calc(var(--cwi) * 2.1905);
  --cw: var(--cwi); transform-origin: 50% 75%; transform: translate(0, 0) scale(1); }
.ecard .lo, .ecard .up { position: absolute; left: 0; width: 100%; height: 50%; }
.ecard .lo { top: 50%; overflow: hidden; border-radius: 0 0 calc(var(--cw) * .012) calc(var(--cw) * .012); box-shadow: 0 calc(var(--cw) * .02) calc(var(--cw) * .05) rgba(74, 52, 18, .26), 0 0 0 1px rgba(160, 128, 76, .25); clip-path: inset(0 -20% -30% -20%); }
/* (each half shows its half of the one whole card: the card's face and its tree, placed on the whole card) */
.ecard .full { position: absolute; left: 0; top: 0; width: 100%; height: 200%; }
.ecard .lo .full { top: -100%; }
.ecard .full .cface { box-shadow: none; }
.ecard .up { top: 0; transform-origin: 50% 100%; transform: perspective(calc(var(--cwi) * 4)) rotateX(-180deg); transform-style: preserve-3d; }
.ecard .fi, .ecard .fo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ecard .fi { border-radius: calc(var(--cw) * .012) calc(var(--cw) * .012) 0 0; box-shadow: 0 0 calc(var(--cw) * .04) rgba(74, 52, 18, .2), 0 0 0 1px rgba(160, 128, 76, .25); clip-path: inset(-20% -20% 0 -20%); }
/* the card's outside, the half that faces out while it is folded: the same ivory paper and gold rules, the embossed gold snowflake in the middle */
.ecard .fo { transform: rotateX(180deg); border-radius: calc(var(--cw) * .012); background: #FCF8F0 url(/assets/champagne/cc-card.webp) 0 0 / 100% 200% no-repeat;
  box-shadow: 0 calc(var(--cw) * .02) calc(var(--cw) * .05) rgba(74, 52, 18, .26), 0 0 0 1px rgba(160, 128, 76, .25); }
.ecard .fo::before, .ecard .fo::after { content: ""; position: absolute; pointer-events: none; }
.ecard .fo::before { inset: calc(var(--cw) * .026); border: max(1px, calc(var(--cw) * .0042)) solid #BE9F62; }
.ecard .fo::after { inset: calc(var(--cw) * .036); border: max(.5px, calc(var(--cw) * .0016)) solid #C9AE78; }
.ecard .fo img { position: absolute; left: 50%; top: 50%; width: 34%; height: auto; transform: translate(-50%, -54%); }
/* the seal bouquet, on the flap's point */
.clu { position: absolute; left: 50%; top: 90%; width: 0; height: 0; }
.clu img { position: absolute; height: auto; }
.clu .seal { width: var(--sw2); left: calc(var(--sw2) * -.5); top: calc(var(--sw2) * -.49); z-index: 5; transition: transform 220ms var(--e2); }
.clu .cbow { width: calc(var(--sw2) * 1.75); left: calc(var(--sw2) * -.86); top: calc(var(--sw2) * -.5); z-index: 2; }
.clu .p1 { width: calc(var(--sw2) * 1.55); left: calc(var(--sw2) * -1.5); top: calc(var(--sw2) * -1.12); transform: scaleY(-1) rotate(-12deg); z-index: 1; }
.clu .p2 { width: calc(var(--sw2) * 1.5); left: calc(var(--sw2) * -.05); top: calc(var(--sw2) * .02); transform: scaleX(-1) rotate(-14deg); z-index: 1; }
.clu .leaves { width: calc(var(--sw2) * 1.15); left: calc(var(--sw2) * -.02); top: calc(var(--sw2) * -1.0); transform: rotate(-12deg); z-index: 1; }
.clu .prl { z-index: 4; }
.clu .q1 { width: calc(var(--sw2) * .2); left: calc(var(--sw2) * .3); top: calc(var(--sw2) * -.6); }
.clu .q2 { width: calc(var(--sw2) * .25); left: calc(var(--sw2) * .44); top: calc(var(--sw2) * -.06); }
.clu .q3 { width: calc(var(--sw2) * .18); left: calc(var(--sw2) * .28); top: calc(var(--sw2) * .34); }
.clu .q4 { width: calc(var(--sw2) * .17); left: calc(var(--sw2) * -.66); top: calc(var(--sw2) * -.5); }
.clu .q5 { width: calc(var(--sw2) * .14); left: calc(var(--sw2) * .6); top: calc(var(--sw2) * .34); }
.glint { position: absolute; z-index: 60; left: calc(var(--sx) - var(--sw2) * .2); top: calc(var(--sy) - var(--sw2) * .26); width: calc(var(--sw2) * .5); height: auto; margin: calc(var(--sw2) * -.25) 0 0 calc(var(--sw2) * -.25); opacity: 0; pointer-events: none; }
html.film .env:not(.open) .glint { animation: glint 4.8s ease-in-out .5s infinite; }
.seal-hit { position: absolute; z-index: 70; left: var(--sx); top: var(--sy); width: calc(var(--sw2) * 1.3); height: calc(var(--sw2) * 1.3); transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seal-hit:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 4px; }
html.film .env.open .seal-hit { pointer-events: none; outline: none; }
.envhint { position: absolute; z-index: 70; left: 0; right: 0; bottom: calc(5% + var(--bot)); margin: 0; text-align: center; font: 600 max(11px, calc(var(--s) * 2.8))/1 var(--f-sans); letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: var(--gold-d); text-shadow: 0 0 6px #FBF6EC, 0 0 2px #FBF6EC; pointer-events: none; }
/* the opening (champagne.js adds the classes on its clock, OPEN, and measures the moves for the window at the touch: --ed --co, --px --py --pk, --ux --uy, --edrop):
   e-press   the seal gives under the touch;
   e-flap    the flap lifts on its fold, toward you, and the moment it stands on edge its inside takes over, folding on back until it points up, behind the card;
   e-out     the card slides up out of the envelope, from behind the pocket, until it is clear of it, while the envelope (back and front together) moves
             down just enough for the card to stay on the screen;
   e-pop     only then the card comes forward over everything, to the middle of the screen at the invitation's size, still folded, as the envelope drops
             away below;
   e-unfold  the card opens: its upper half swings up on the fold while the lower half settles where the invitation's lower half is;
   e-done    the invitation is there under it, the same card in the same place: the card gives way to it. */
html.film .envwrap.e-press .clu .seal { transform: scale(.93); }
html.film .envwrap.e-flap .fout { animation: f1flip 280ms cubic-bezier(.5, 0, .9, .5) forwards; }
html.film .envwrap.e-flap .fin { animation: f2flip 320ms cubic-bezier(.1, .5, .5, 1) 270ms forwards; }
@keyframes f1flip { 0% { transform: rotateX(0deg); opacity: 1; } 99% { transform: rotateX(-90deg); opacity: 1; } 100% { transform: rotateX(-90deg); opacity: 0; } }
@keyframes f2flip { 0% { transform: rotateX(-90deg); opacity: 1; } 100% { transform: rotateX(-180deg); opacity: 1; } }
html.film .eback, html.film .efront, html.film .ecard { transition: transform 650ms cubic-bezier(.3, .7, .3, 1); }
html.film .envwrap.e-out .eback, html.film .envwrap.e-out .efront { transform: translateY(var(--ed, 0px)); }
html.film .envwrap.e-out .ecard { transform: translate(0, var(--co, 0px)) scale(1); }
html.film .envwrap.e-pop .ecard { z-index: 5; transform: translate(var(--px, 0px), var(--py, 0px)) scale(var(--pk, 1)); transition: transform 750ms cubic-bezier(.25, 1.1, .4, 1); }
html.film .envwrap.e-pop .eback, html.film .envwrap.e-pop .efront { transform: translateY(var(--edrop, 100cqh)) rotate(4deg); transition: transform 800ms cubic-bezier(.55, 0, .9, .55); }
html.film .ecard .up { transition: transform 700ms cubic-bezier(.45, .05, .3, 1); }
html.film .envwrap.e-unfold .ecard { transform: translate(var(--ux, 0px), var(--uy, 0px)) scale(var(--pk, 1)); transition: transform 700ms cubic-bezier(.45, .05, .3, 1); }
html.film .envwrap.e-unfold .ecard .up { transform: perspective(calc(var(--cwi) * 4)) rotateX(0deg); }
html.film .envwrap.e-done .ecard { opacity: 0; transition: opacity 200ms ease; }
html.film .env.open .envhint, html.film .env.open .glint { opacity: 0; animation: none; transition: opacity 250ms ease; }
html.film .env.open { cursor: default; }
html.film .env.snap, html.film .env.snap * { transition: none !important; animation: none !important; }

/* ---------------- back, pause and next: the top left corner, once the envelope is open ---------------- */
.nav { display: none; }
html.film .nav { display: flex; position: fixed; left: calc(12px + env(safe-area-inset-left, 0px)); top: calc(12px + var(--top)); z-index: 90; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
html.film #stage.opened:not(.busy) .nav { opacity: .85; pointer-events: auto; }
.nav button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0 0 2px; border-radius: 50%; border: 1px solid rgba(142, 116, 71, .5); background: rgba(255, 254, 251, .88); color: var(--gold-d); font: 24px/1 var(--f-serif); cursor: pointer; }
.nav button.off { visibility: hidden; }
.nav button:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 3px; }
#b-pause i { display: block; width: 12px; height: 13px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
#b-pause[aria-pressed="true"] i { width: 0; height: 0; border: 0; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
html.paused .fk, html.paused .snow i, html.paused .gl, html.paused .sweep, html.paused .tw, html.paused .dflake .sw { animation-play-state: paused !important; }

/* ---------------- the RSVP sheet (the shared reply, over the invitation) ---------------- */
.sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(60, 48, 30, .36); }
.sheet-card { position: relative; width: min(100%, 440px); max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain; padding: 22px 18px 18px; border-radius: 14px; background: #FFFEFB; color: var(--ink2); text-align: left;
  box-shadow: 0 18px 50px rgba(60, 44, 18, .35), inset 0 0 0 1px var(--line); }
.sheet-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--gold-d); font: 30px/1 var(--f-serif); cursor: pointer; }
.sheet-x:focus-visible { outline: 2px solid var(--gold-d); }
.s-please { margin: 0; font-size: 38px; text-align: left; padding-left: 18%; }
.s-head { margin: -6px 0 2px; font-size: 48px; font-weight: 700; letter-spacing: .02em; line-height: 1; color: var(--gold); }
.s-by { margin: 0 0 16px; text-align: center; font: 30px/1.1 var(--f-script); color: var(--gold); }
.ans { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0 0 14px; }
.ans label { flex: 1 1 140px; }
.ans input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ans span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 6px; border: 1px solid rgba(142, 116, 71, .45); border-radius: 8px; background: #FFFFFF; font: 500 15px/1.2 var(--f-sans); color: var(--ink2); cursor: pointer; text-align: center; white-space: nowrap; }
.ans input:checked + span { background: linear-gradient(180deg, #BEA578, #A3885A); border-color: #A3885A; color: #fff; }
.ans input:focus-visible + span { outline: 2px solid var(--gold-d); outline-offset: 2px; }
.f { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; font: 600 12px/1.3 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); }
.f input[type=text], .f textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(142, 116, 71, .45); border-radius: 8px; background: #FFFFFF; color: var(--ink); font: 400 16px/1.35 var(--f-sans); letter-spacing: 0; text-transform: none; }
.f textarea { min-height: 62px; resize: vertical; }
.f input:focus, .f textarea:focus { outline: 2px solid var(--line); outline-offset: 1px; }
.step { display: flex; align-items: center; gap: 14px; }
.step button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(142, 116, 71, .55); background: #FFFFFF; color: var(--gold-d); font-size: 22px; cursor: pointer; }
.step output { min-width: 24px; text-align: center; font: 600 20px/1 var(--f-sans); color: var(--ink); letter-spacing: 0; }
#err { min-height: 1.2em; margin: 0 0 10px; font: 400 14px/1.4 var(--f-sans); color: var(--ink2); }
#err.err { color: #8E2B1E; }
.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 1px solid #A3885A; background: #FFFFFF; color: var(--gold-d); font: 600 14px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.btn.solid { background: linear-gradient(180deg, #BEA578, #A3885A); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: default; }
.rdone { text-align: center; padding: 4px 0 2px; }
.rdone .got { margin: 6px 0 8px; font: 42px/1.05 var(--f-script); color: var(--gold); }
.rdone p { margin: 0 0 10px; font: 400 15px/1.55 var(--f-sans); }
.rdone .btn { margin-top: 8px; }
.closed { margin: 0; font: 400 15px/1.5 var(--f-sans); }
.going { margin: 12px 0 0; text-align: center; font: italic 500 17px/1.3 var(--f-body); color: var(--ink2); }
.linkish { border: 0; background: none; padding: 6px 2px; color: var(--gold-d); font: 500 14px/1.4 var(--f-sans); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }
.linkish:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 3px; }

/* ================= the film: hidden starting states and every move (html.film only) ================= */
html.film .scr .m, html.film .scr .c, html.film .scr .wo, html.film .scr .w, html.film .scr .wi, html.film .scr .ln {
  transition: transform var(--t, 650ms) var(--ez, var(--e2)) var(--d, 0ms), opacity var(--to, var(--t, 650ms)) ease var(--d, 0ms); }
html.film .scr .w, html.film .scr .wi { --ez: var(--pen); }
html.film .scr:not(.go) .w { transform: translateX(-100%); }
html.film .scr:not(.go) .w > .wi { transform: translateX(100%); }
html.film .scr:not(.go) .wo { opacity: 0; transform: translateY(.45em); }
html.film .scr .wo { --t: 550ms; }

/* 1. the invitation: the tree is there from the start, under its star (it came on the card out of the envelope), and twinkles from then on; the
   little ornament grows, settles and takes its cap and bow; the words round its top, "Christmas" written, HOSTED BY typed, PARTY popping in letter by
   letter, the date row's lines drawn out, the host written, the place typed */
html.film .s-inv:not(.go) .badge .m { opacity: 0; }
html.film .s-inv.go .badge .m { animation: badgein 1150ms var(--d, 0ms) both; }
html.film .s-inv.done .badge .m, html.film .s-inv.x .badge .m { animation: none; }
@keyframes badgein {
  0% { opacity: 0; transform: translateY(calc(var(--hh) * -9)) scale(.3); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  32% { opacity: 1; transform: translateY(calc(var(--hh) * -9)) scale(1.1); animation-timing-function: ease-in-out; }
  50% { transform: translateY(calc(var(--hh) * -9)) scale(1); animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  100% { opacity: 1; transform: none; }
}
html.film .s-inv .badge .cap, html.film .s-inv .badge .bow { transition: transform 450ms var(--e3) var(--dd, 0ms), opacity 300ms ease var(--dd, 0ms); }
html.film .s-inv:not(.go) .badge .cap { opacity: 0; transform: translate(-50%, -90%); }
html.film .s-inv:not(.go) .badge .bow { opacity: 0; transform: translate(-50%, -45%) scale(.55); }
html.film .s-inv:not(.go) .arc .c, html.film .s-inv:not(.go) .hosted .c, html.film .s-inv:not(.go) .place .c { opacity: 0; }
html.film .s-inv .arc .c, html.film .s-inv .hosted .c, html.film .s-inv .place .c { --t: 220ms; }
html.film .s-inv:not(.go) .sub .c { opacity: 0; transform: translateY(.25em) scale(.35); }
html.film .s-inv .sub .c { --t: 420ms; --ez: var(--pop); --to: 260ms; }
html.film .s-inv:not(.go) .ln { transform: scaleX(0); }
html.film .s-inv .ln { --t: 450ms; --ez: var(--e2); }
html.film .s-inv:not(.go) .wl .m, html.film .s-inv:not(.go) .wr .m { opacity: 0; transform: translateY(.3em); }
html.film .s-inv:not(.go) .wd { opacity: 0; transform: scale(.85); }
html.film .s-inv .when .m { --t: 420ms; }
html.film .s-inv .title .w, html.film .s-inv .title .wi { --t: 1000ms; }
html.film .s-inv .host .w, html.film .s-inv .host .wi { --t: 750ms; }
/* leaving for the details: the words lift a little and fade; the tree and the ornament rise away */
html.film .s-inv .pc, html.film .s-inv .clip { transition: translate 600ms var(--leave), opacity 600ms ease; }
html.film .s-inv.x .pc { translate: 0 calc(var(--hh) * -4); opacity: 0; }
html.film .s-inv.x .clip { translate: 0 calc(var(--hh) * -12); opacity: 0; }

/* 2. the details: "the" is written and its swash drawn out to the hanging snowflake, which drops in and sways; DETAILS rises in; the location flies in
   from the right and the attire from the left, each with its round picture; what to bring rises; the garland rises from below the screen */
html.film .s-det .swash .w, html.film .s-det .swash .wi { --ez: var(--e2); }
html.film .s-det:not(.go) .dflake .m { opacity: 0; transform: translateY(calc(var(--hh) * -3)); }
html.film .s-det .dflake .m { --t: 600ms; --ez: var(--e3); }
html.film .s-det.go .dflake .sw { animation: hang 3.6s ease-in-out 1.4s infinite alternate; }
@keyframes hang { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
html.film .s-det:not(.go) .dhead .c { opacity: 0; transform: translateY(.3em); }
html.film .s-det .dhead .c { --t: 420ms; }
html.film .s-det:not(.go) .c-loc .m, html.film .s-det:not(.go) .ph-loc .m { opacity: 0; transform: translateX(calc(var(--s) * 80)); }
html.film .s-det:not(.go) .c-att .m, html.film .s-det:not(.go) .ph-att .m { opacity: 0; transform: translateX(calc(var(--s) * -80)); }
html.film .s-det .card .m, html.film .s-det .photo .m { --t: 650ms; --ez: var(--e3); --to: 400ms; }
html.film .s-det:not(.go) .c-bring .m { opacity: 0; transform: translateY(calc(var(--hh) * 10)); }
html.film .s-det:not(.go) .garland .m { opacity: 0; transform: translateY(calc(var(--hh) * 22)); }
html.film .s-det .garland .m { --to: 450ms; }
/* leaving for the RSVP: the location goes out to the right, the attire to the left, what to bring and the garland sink away, the heading fades */
html.film .s-det .pc { transition: translate 900ms var(--leave), opacity 900ms ease; }
html.film .s-det.x .c-loc, html.film .s-det.x .ph-loc { translate: calc(var(--s) * 90) 0; opacity: 0; }
html.film .s-det.x .c-att, html.film .s-det.x .ph-att { translate: calc(var(--s) * -90) 0; opacity: 0; }
html.film .s-det.x .c-bring { translate: 0 calc(var(--hh) * 12); opacity: 0; }
html.film .s-det.x .garland { translate: 0 calc(var(--hh) * 25); }
html.film .s-det.x .the, html.film .s-det.x .dhead, html.film .s-det.x .dflake, html.film .s-det.x .swash { opacity: 0; }

/* 3. the RSVP: the bauble comes down on its thread from far above the screen, clearing as it comes, and settles with a small swing about the point it
   hangs from; please; RSVP in gold glitter; by the date; the gold RSVP NOW panel rises in */
html.film .s-rsvp .swing { transition: none; }   /* a transition would outrank the drop's animation */
html.film .s-rsvp:not(.go) .swing { opacity: 0; transform: translateY(calc(var(--hh) * -50)) rotate(-4deg); }
html.film .s-rsvp.go .swing { animation: drop 2300ms linear both; }
@keyframes drop {
  0% { opacity: .2; transform: translateY(calc(var(--hh) * -50)) rotate(-4deg); animation-timing-function: cubic-bezier(.165, .84, .44, 1); }
  42% { opacity: 1; transform: translateY(0) rotate(0deg); animation-timing-function: ease-in-out; }
  57% { opacity: 1; transform: rotate(2.5deg); animation-timing-function: ease-in-out; }
  73% { opacity: 1; transform: rotate(-1.5deg); animation-timing-function: ease-in-out; }
  88% { opacity: 1; transform: rotate(.5deg); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: none; }
}
html.film .s-rsvp .gl.g1 { --d: 900ms; }
html.film .s-rsvp .gl.g2 { --d: 2600ms; }
html.film .s-rsvp .please .w, html.film .s-rsvp .please .wi { --t: 500ms; }
html.film .s-rsvp:not(.go) .rsvp-h .c { opacity: 0; transform: translateY(calc(var(--hh) * 1.5)) scale(.85); }
html.film .s-rsvp .rsvp-h .c { --t: 500ms; }
html.film .s-rsvp .by .w, html.film .s-rsvp .by .wi { --t: 550ms; }
html.film .s-rsvp:not(.go) .rsvp-btn { opacity: 0; transform: translateY(calc(var(--hh) * 2)) scale(.97); }
html.film .s-rsvp .rsvp-btn { --t: 550ms; }
/* leaving for the last screen: the words and the button fade; the bauble flies up and to the left, shrinking onto the ring that takes its place */
html.film .s-rsvp .pc { transition: opacity 450ms ease; }
html.film .s-rsvp.fly .pc { opacity: 0; }
html.film .orn { transition: transform 850ms cubic-bezier(.6, 0, .25, 1), opacity 400ms ease 450ms; transform-origin: 50% 33%; }
html.film .s-rsvp.fly .orn { transform: translate(calc(var(--s) * -23), calc(var(--hh) * -13.2)) scale(.69); opacity: 0; }
html.film .s-rsvp.fly .swing { animation: none; transform: none; opacity: 1; }

/* 4. the last screen: the ring is there as the bauble arrives on it; the tree comes up from the bottom right, its star after it; the words */
html.film .s-end:not(.landed) .hoop .m { opacity: 0; transform: scale(1.03); }
html.film .s-end .hoop .m { transition: opacity 450ms ease 300ms, transform 600ms var(--e2) 300ms; }
html.film .s-end:not(.go) .tree2 .m { opacity: 0; transform: translate(calc(var(--s) * 24), calc(var(--hh) * 40)) scale(.92); }
html.film .s-end .tree2 .m { --t: 1150ms; --ez: var(--e3); --to: 450ms; transform-origin: 50% 100%; }
html.film .s-end:not(.go) .plaque .m { opacity: 0; transform: scale(.88); }
html.film .s-end .plaque .m { --t: 600ms; }
html.film .s-end .plaque .w, html.film .s-end .plaque .wi { --t: 800ms; }
html.film .s-end:not(.go) .plaque .so { opacity: 0; }
html.film .s-end .plaque .so { transition: opacity 400ms ease var(--d, 0ms); }
html.film .s-end:not(.go) .endnav { opacity: 0; }
html.film .s-end .endnav { transition: opacity 600ms ease var(--d, 0ms); }

/* a screen shown finished (going back, or tapped to finish): no entrance */
html.film .scr.done, html.film .scr.done * { transition: none !important; }
html.film .s-rsvp.done .swing { animation: none; }
html.film .scr.done .gl, html.film .scr.done .tw { animation-delay: 0ms; }

/* a short screen (a phone turned sideways): the stage keeps its shape, smaller, in the middle */
@media (max-height: 420px) { .nav button { width: 36px; height: 36px; } }
