/* Paper Party (birthday): design motion on top of assets/scenes/scenes.css. Generated by src/paper_party/gen.py (+ sections.py).
   Plain rules = the rest state. The hero's candles are UNLIT at rest (the still, frame 0) and light one by one
   once the stage goes live; every other plain rule is the final state (what reduced motion and the editor show). */

/* hero flames: small and lit at rest (the still, the envelope card, reduced motion); once the stage goes live each
   blooms up from its wick to full size (--t staggers them 160 ms apart), then the inner actor flickers */
.sc-piece.sc-paper_party.sc-hero [data-pp=flame]{transform:scale(.55)}
.sc-js .sc-piece.sc-paper_party.sc-hero.sc-in [data-pp=flame]{animation:sc-pp-bloom var(--d,640ms) cubic-bezier(.23,1,.32,1) var(--t,0ms) both}
@keyframes sc-pp-bloom{
  0%{transform:scale(.55)}
  55%{transform:scale(1.04,1.16)}
  100%{transform:none}}

/* falling confetti: two side lanes (the text column stays calm), spread by the seeded --r1, slow, a little sway */
.sc-piece.sc-paper_party [data-pp^=confetti]{width:calc(1.7% + var(--r3,.5) * 1.1%)!important;--sw:calc(8px + var(--r3,.5) * 14px)}
.sc-piece.sc-paper_party [data-pp=confetti-l]{left:calc(9% + var(--r1,.5) * 13%)!important}
.sc-piece.sc-paper_party [data-pp=confetti-r]{left:calc(77% + var(--r1,.5) * 13%)!important}
.sc-js .sc-piece.sc-paper_party.sc-in [data-pp^=confetti]{animation-duration:calc(14s + var(--r3,.5) * 7s)}

/* the hero text area is drawn clear (plain paper), so the studio's white wash over the art is not needed */
body.sc-paper_party.es-studio-v2 .sa-hero .sa-hero-overlay{background:none}

/* ---- countdown: the head piece is a small bunting; each cell becomes a paper candle standing in a cake ---- */
body.sc-paper_party #countdown>.sc-p-countdown{width:min(78vw,300px);margin:-18px auto 14px}
body.sc-paper_party.es-studio-v2 #countdown .grid{position:relative;gap:0 4px;max-width:420px;margin:0 auto 68px;padding:0 4px}
body.sc-paper_party.es-studio-v2 #countdown .grid>div{position:relative;width:60px;height:112px;margin:58px auto 0;padding:0;border:0;
  border-radius:13px 13px 3px 3px;box-shadow:4px 5px 0 rgba(59,42,53,.13);
  background:linear-gradient(#FFFBF3,#FFFBF3) 50% 30px/52px 44px no-repeat,var(--pp-s) 0 0/21px 21px repeat #FFFBF3}
body.sc-paper_party.es-studio-v2 #countdown .grid>div+div{border:0}
body.sc-paper_party #countdown .grid>div:nth-child(1){--pp-s:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M0 0H9.5L0 9.5ZM21 0V9.5L9.5 21H0Z' fill='%23F0735A'/%3E%3C/svg%3E");--k:0}
body.sc-paper_party #countdown .grid>div:nth-child(2){--pp-s:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M0 0H9.5L0 9.5ZM21 0V9.5L9.5 21H0Z' fill='%236FA8DC'/%3E%3C/svg%3E");--k:1}
body.sc-paper_party #countdown .grid>div:nth-child(3){--pp-s:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M0 0H9.5L0 9.5ZM21 0V9.5L9.5 21H0Z' fill='%237CC6A4'/%3E%3C/svg%3E");--k:2}
body.sc-paper_party #countdown .grid>div:nth-child(4){--pp-s:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M0 0H9.5L0 9.5ZM21 0V9.5L9.5 21H0Z' fill='%23F6C85F'/%3E%3C/svg%3E");--k:3}
/* the flame (lit = the final state) and its wick */
body.sc-paper_party #countdown .grid>div::before{content:"";position:absolute;left:50%;bottom:calc(100% + 3px);width:44px;height:62px;margin-left:-22px;max-width:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 84'%3E%3Cdefs%3E%3CradialGradient id='sc-paper_party-cg'%3E%3Cstop offset='0' stop-color='%23F6C85F' stop-opacity='.6'/%3E%3Cstop offset='.55' stop-color='%23F6C85F' stop-opacity='.18'/%3E%3Cstop offset='1' stop-color='%23F6C85F' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='30' cy='52' r='30' fill='url(%23sc-paper_party-cg)'/%3E%3Cpath d='M28 24C31.7 38.6 42 43.6 42 63.5C42 71.2 36.5 76 30 76C23.5 76 18 71.2 18 63.5C18 43.6 25.9 38.6 28 24Z' fill='%23F0735A'/%3E%3Cpath d='M28.8 41C31 50 37 54.1 37 65.7C37 70.2 33.8 73 30 73C26.2 73 23 70.2 23 65.7C23 54.1 27.6 50 28.8 41Z' fill='%23F6C85F'/%3E%3Cpath d='M29.5 58C30.4 61.6 33 62.9 33 67.9C33 69.8 31.6 71 30 71C28.4 71 27 69.8 27 67.9C27 62.9 29 61.6 29.5 58Z' fill='%23FFFBF3'/%3E%3C/svg%3E") 50% 100%/contain no-repeat;transform-origin:50% 92%;pointer-events:none}
body.sc-paper_party #countdown .grid>div::after{content:"";position:absolute;left:50%;bottom:100%;width:3px;height:10px;margin-left:-1.5px;border-radius:2px;background:#3B2A35}
/* the number on a paper band round the candle, the unit piped on the icing below */
body.sc-paper_party.es-studio-v2 #countdown [id^=cd_]{display:block;margin-top:30px;height:44px;font-size:27px;line-height:44px;color:#3B2A35!important;letter-spacing:-.01em}
body.sc-paper_party.es-studio-v2 #countdown .grid span:last-child{position:absolute;z-index:2;left:-14px;right:-14px;top:calc(100% + 7px);
  font:700 9.5px/1.3 var(--font-body);letter-spacing:.14em;color:#3B2A35!important;text-align:center}
html[dir=rtl] body.sc-paper_party.es-studio-v2 #countdown .grid span:last-child{font-size:11.5px;line-height:1.15;letter-spacing:0}
/* the cake the candles stand in: scalloped icing over a coral tier (a repeating paper tile), BEHIND the candles;
   each candle wears a dollop of icing at its base so it reads pushed into the cake */
body.sc-paper_party #countdown .grid::before{content:"";position:absolute;left:-8px;right:-8px;top:calc(100% - 9px);height:70px;max-width:none;
  border-radius:12px 12px 6px 6px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 70'%3E%3Cpath d='M0 0H36V30Q27 43 18 30Q9 43 0 30Z' fill='%23FFFBF3'/%3E%3Ccircle cx='18' cy='49' r='3.6' fill='%23F6C85F'/%3E%3Ccircle cx='9' cy='64' r='5.4' fill='%23FFFBF3'/%3E%3Ccircle cx='27' cy='64' r='5.4' fill='%23FFFBF3'/%3E%3C/svg%3E") 0 0/36px 70px repeat-x #F0735A;box-shadow:4px 6px 0 rgba(59,42,53,.13)}
body.sc-paper_party #countdown .grid span:last-child::before{content:"";position:absolute;left:50%;top:-23px;width:80px;height:23px;margin-left:-38px;max-width:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 22' preserveAspectRatio='none'%3E%3Cpath d='M4 9Q4 3 12 4Q17 -1 25 3Q31 -1 37 3Q43 -1 49 3Q57 -1 62 4Q70 3 70 9V14Q70 20 62 20H12Q4 20 4 14Z' fill='%23FFFBF3'/%3E%3C/svg%3E") 50% 0/100% 100% no-repeat;pointer-events:none}

/* entrance: the flames light one by one (160 ms apart) and then flicker; loops pause off screen */
.sc-js body.sc-paper_party #countdown .grid:not(.sc-in)>div::before{opacity:0;scale:.3}
.sc-js body.sc-paper_party #countdown .grid.sc-in>div::before{animation:sc-pp-clight 560ms cubic-bezier(.23,1,.32,1) calc(380ms + var(--k,0) * 160ms) both,
  sc-pp-cflick calc(2.4s + var(--k,0) * .31s) linear calc(940ms + var(--k,0) * 160ms) infinite}
.sc-js body.sc-paper_party #countdown:not(.sc-run) .grid>div::before{animation-play-state:paused}
@keyframes sc-pp-clight{0%{opacity:0;scale:.25}45%{opacity:1}62%{scale:1.12}100%{opacity:1;scale:1}}
@keyframes sc-pp-cflick{0%,100%{transform:none}18%{transform:scale(.96,1.05) rotate(-2deg)}41%{transform:scale(1.03,.97) rotate(1.4deg)}
  63%{transform:scale(.98,1.05) rotate(-1deg)}84%{transform:scale(1.01,.98) rotate(.6deg)}}
/* the cake settles in first, then the candles rise into it */
.sc-js body.sc-paper_party #countdown .grid:not(.sc-in)::before{opacity:0;transform:translateY(10px)}
.sc-js body.sc-paper_party #countdown .grid.sc-in::before{animation:sc-rise 520ms cubic-bezier(.23,1,.32,1) both}
.sc-js body.sc-paper_party #countdown .grid:not(.sc-in)>div{opacity:0;transform:translateY(12px)}
.sc-js body.sc-paper_party #countdown .grid.sc-in>div{animation:sc-rise 520ms cubic-bezier(.23,1,.32,1) calc(120ms + var(--k,0) * 70ms) both}
/* every tick, the new number drops softly onto its band */
.sc-js body.sc-paper_party #countdown [id^=cd_].sc-tick{animation:sc-pp-tick 320ms cubic-bezier(.23,1,.32,1) both}
@keyframes sc-pp-tick{from{opacity:.5;transform:translateY(-14%)}to{opacity:1;transform:none}}

/* ---- welcome: the letter sits on a paper card, taped at the top, confetti in two corners ---- */
body.sc-paper_party.es-studio-v2 .es-welcome-inner{padding:34px 22px 36px;background:var(--cz-section-bg,#FFFBF3);border-radius:3px;box-shadow:6px 8px 0 rgba(59,42,53,.1),0 0 0 1px rgba(59,42,53,.05)}
body.sc-paper_party .es-welcome-inner>.sc-p-welcome{position:absolute;left:50%;top:-40px;width:min(92%,400px);margin:0 0 0 max(-46%,-200px)}
body.sc-paper_party .es-welcome-inner::after{content:"";position:absolute;inset-inline-end:-14px;bottom:-22px;width:92px;height:64px;max-width:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 20 130 90'%3E%3Cpath d='M60 59.5Q63.1 66.9 70.5 70Q63.1 73.1 60 80.5Q56.9 73.1 49.5 70Q56.9 66.9 60 59.5Z' transform='translate(2 3)' fill='%233B2A35' fill-opacity='0.12'/%3E%3Cpath d='M60 59.5Q63.1 66.9 70.5 70Q63.1 73.1 60 80.5Q56.9 73.1 49.5 70Q56.9 66.9 60 59.5Z' fill='%237CC6A4'/%3E%3Cpath d='M86.2 41.8L93.7 49.9L97.8 46.2L90.3 38.1Z' transform='translate(2 3)' fill='%233B2A35' fill-opacity='0.12'/%3E%3Cpath d='M86.2 41.8L93.7 49.9L97.8 46.2L90.3 38.1Z' fill='%236FA8DC'/%3E%3Cpath d='M118.6 70.9L120 85.6L125.4 85.1L124 70.4Z' transform='translate(2 3)' fill='%233B2A35' fill-opacity='0.12'/%3E%3Cpath d='M118.6 70.9L120 85.6L125.4 85.1L124 70.4Z' fill='%23F0735A'/%3E%3Cpath d='M134 46a6 6 0 1 0 12.1 0a6 6 0 1 0 -12.1 0Z' transform='translate(2 3)' fill='%233B2A35' fill-opacity='0.12'/%3E%3Cpath d='M134 46a6 6 0 1 0 12.1 0a6 6 0 1 0 -12.1 0Z' fill='%23F6C85F'/%3E%3Cpath d='M93.9 96a6.1 6.1 0 1 0 12.2 0a6.1 6.1 0 1 0 -12.2 0Z' transform='translate(2 3)' fill='%233B2A35' fill-opacity='0.12'/%3E%3Cpath d='M93.9 96a6.1 6.1 0 1 0 12.2 0a6.1 6.1 0 1 0 -12.2 0Z' fill='%237CC6A4'/%3E%3C/svg%3E") 50% 50%/contain no-repeat;pointer-events:none}
.sc-js body.sc-paper_party .es-welcome:not(.sc-in) .es-welcome-inner{opacity:0;transform:translateY(18px)}
.sc-js body.sc-paper_party .es-welcome.sc-in .es-welcome-inner{animation:sc-rise 700ms cubic-bezier(.23,1,.32,1) both}
.sc-js body.sc-paper_party .es-welcome:not(.sc-in) .es-welcome-inner::after{opacity:0;transform:scale(.6)}
.sc-js body.sc-paper_party .es-welcome.sc-in .es-welcome-inner::after{animation:sc-pop 520ms cubic-bezier(.23,1,.32,1) 900ms both}

/* ---- venue: a folded paper map with a route that draws, the pin drops, a balloon bobs; rows, buttons and the map in paper ---- */
body.sc-paper_party #details>.sc-p-details{width:min(80vw,310px);margin:-18px auto 6px}
body.sc-paper_party.es-studio-v2 #details .sa-map-rows>div>div:first-child{border-radius:50%!important;background:var(--pp-rc,#F6C85F)!important;border:0!important;box-shadow:3px 4px 0 rgba(59,42,53,.13)!important;color:#3B2A35!important}
body.sc-paper_party #details .sa-map-rows>div:nth-child(2){--pp-rc:#A9DBC3;--k:1}
body.sc-paper_party #details .sa-map-rows>div:nth-child(3){--pp-rc:#A2C7EA;--k:2}
body.sc-paper_party.es-studio-v2 #details .sa-map-actions a{border:1.5px solid var(--cz-text,#3B2A35)!important;border-radius:6px!important;background:var(--cz-section-bg,#FFFBF3)!important;box-shadow:3px 4px 0 rgba(59,42,53,.13);color:var(--cz-text,#3B2A35)!important}
body.sc-paper_party.es-studio-v2 #details .sa-map-embed .sa-gallery-card{border:7px solid var(--cz-section-bg,#FFFBF3)!important;border-radius:2px!important;box-shadow:6px 8px 0 rgba(59,42,53,.1)!important}
.sc-js body.sc-paper_party #details .sa-map-rows>div:not(.sc-in){opacity:0;transform:translateY(14px)}
.sc-js body.sc-paper_party #details .sa-map-rows>div.sc-in{animation:sc-rise 560ms cubic-bezier(.23,1,.32,1) calc(var(--k,0) * 110ms) both}
.sc-js body.sc-paper_party #details .sa-map-rows>div:not(.sc-in)>div:first-child{transform:scale(.4)}
.sc-js body.sc-paper_party #details .sa-map-rows>div.sc-in>div:first-child{animation:sc-pop 520ms cubic-bezier(.23,1,.32,1) calc(120ms + var(--k,0) * 110ms) both}
.sc-js body.sc-paper_party #details .sa-map-actions:not(.sc-in) a{opacity:0;transform:translateY(10px)}
.sc-js body.sc-paper_party #details .sa-map-actions.sc-in a{animation:sc-rise 520ms cubic-bezier(.23,1,.32,1) both}
.sc-js body.sc-paper_party #details .sa-map-actions.sc-in a:nth-child(2){animation-delay:90ms}
.sc-js body.sc-paper_party #details .sa-map-actions.sc-in a:nth-child(3){animation-delay:180ms}

/* ---- program: two paper pinwheels head it (sticks draw, wheels pop and turn slowly); down a striped paper pole each
   row's icon rides a pennant that unfurls from the pole as that row scrolls in ---- */
body.sc-paper_party #program>.sc-p-program{width:min(70vw,270px);margin:-22px auto 4px}
body.sc-paper_party.es-studio-v2 #program .sa-prog-line-v{left:auto;inset-inline-start:5px;width:6px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 24'%3E%3Crect width='6' height='24' fill='%23FFFBF3'/%3E%3Cpath d='M0 0L6 6V12L0 6ZM0 12L6 18V24L0 18Z' fill='%23F0735A'/%3E%3C/svg%3E") 0 0/6px 24px repeat-y;border-radius:3px;box-shadow:2px 3px 0 rgba(59,42,53,.1)}
body.sc-paper_party.es-studio-v2 #program .sa-prog-line-v::before{content:"";position:absolute;left:-4px;top:-12px;width:14px;height:14px;border-radius:50%;background:#F6C85F;box-shadow:2px 3px 0 rgba(59,42,53,.12)}
body.sc-paper_party.es-studio-v2 #program .sa-prog-row{padding-inline-start:4px;align-items:center}
body.sc-paper_party.es-studio-v2 #program .sa-prog-row>div:first-child{width:66px;height:46px;margin-inline-start:4px;justify-content:flex-start;padding-inline-start:15px;border:0!important;border-radius:0!important;
  box-shadow:none!important;background:var(--pp-flag) 0 0/100% 100% no-repeat!important;color:#3B2A35!important;transform-origin:0 50%}
.sc-js[dir=rtl] body.sc-paper_party.es-studio-v2 #program .sa-prog-row>div:first-child,[dir=rtl] body.sc-paper_party.es-studio-v2 #program .sa-prog-row>div:first-child{background-image:var(--pp-flag-r)!important;transform-origin:100% 50%}
body.sc-paper_party #program .sa-prog-row:nth-child(4n+1){--pp-flag:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 46'%3E%3Cpath d='M5 5H62L50 24L62 43H5Z' fill='%233B2A35' fill-opacity='.13' transform='translate(3 3)'/%3E%3Cpath d='M4 2H61L49 21L61 40H4Z' fill='%23F0735A'/%3E%3Cpath d='M4 2H11V40H4Z' fill='%233B2A35' fill-opacity='.14'/%3E%3C/svg%3E");--pp-flag-r:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 46'%3E%3Cg transform='translate(66 0) scale(-1 1)'%3E%3Cpath d='M5 5H62L50 24L62 43H5Z' fill='%233B2A35' fill-opacity='.13' transform='translate(3 3)'/%3E%3Cpath d='M4 2H61L49 21L61 40H4Z' fill='%23F0735A'/%3E%3Cpath d='M4 2H11V40H4Z' fill='%233B2A35' fill-opacity='.14'/%3E%3C/g%3E%3C/svg%3E")}
body.sc-paper_party #program .sa-prog-row:nth-child(4n+2){--pp-flag:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 46'%3E%3Cpath d='M5 5H62L50 24L62 43H5Z' fill='%233B2A35' fill-opacity='.13' transform='translate(3 3)'/%3E%3Cpath d='M4 2H61L49 21L61 40H4Z' fill='%23F6C85F'/%3E%3Cpath d='M4 2H11V40H4Z' fill='%233B2A35' fill-opacity='.14'/%3E%3C/svg%3E");--pp-flag-r:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 46'%3E%3Cg transform='translate(66 0) scale(-1 1)'%3E%3Cpath d='M5 5H62L50 24L62 43H5Z' fill='%233B2A35' fill-opacity='.13' transform='translate(3 3)'/%3E%3Cpath d='M4 2H61L49 21L61 40H4Z' fill='%23F6C85F'/%3E%3Cpath d='M4 2H11V40H4Z' fill='%233B2A35' fill-opacity='.14'/%3E%3C/g%3E%3C/svg%3E")}
body.sc-paper_party #program .sa-prog-row:nth-child(4n+3){--pp-flag:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 46'%3E%3Cpath d='M5 5H62L50 24L62 43H5Z' fill='%233B2A35' fill-opacity='.13' transform='translate(3 3)'/%3E%3Cpath d='M4 2H61L49 21L61 40H4Z' fill='%237CC6A4'/%3E%3Cpath d='M4 2H11V40H4Z' fill='%233B2A35' fill-opacity='.14'/%3E%3C/svg%3E");--pp-flag-r:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 46'%3E%3Cg transform='translate(66 0) scale(-1 1)'%3E%3Cpath d='M5 5H62L50 24L62 43H5Z' fill='%233B2A35' fill-opacity='.13' transform='translate(3 3)'/%3E%3Cpath d='M4 2H61L49 21L61 40H4Z' fill='%237CC6A4'/%3E%3Cpath d='M4 2H11V40H4Z' fill='%233B2A35' fill-opacity='.14'/%3E%3C/g%3E%3C/svg%3E")}
body.sc-paper_party #program .sa-prog-row:nth-child(4n+4){--pp-flag:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 46'%3E%3Cpath d='M5 5H62L50 24L62 43H5Z' fill='%233B2A35' fill-opacity='.13' transform='translate(3 3)'/%3E%3Cpath d='M4 2H61L49 21L61 40H4Z' fill='%236FA8DC'/%3E%3Cpath d='M4 2H11V40H4Z' fill='%233B2A35' fill-opacity='.14'/%3E%3C/svg%3E");--pp-flag-r:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 46'%3E%3Cg transform='translate(66 0) scale(-1 1)'%3E%3Cpath d='M5 5H62L50 24L62 43H5Z' fill='%233B2A35' fill-opacity='.13' transform='translate(3 3)'/%3E%3Cpath d='M4 2H61L49 21L61 40H4Z' fill='%236FA8DC'/%3E%3Cpath d='M4 2H11V40H4Z' fill='%233B2A35' fill-opacity='.14'/%3E%3C/g%3E%3C/svg%3E")}
body.sc-paper_party.es-studio-v2 #program .sa-prog-row .sa-prog-time{padding:2px 8px;border-radius:4px;background:var(--cz-section-bg,#FFFBF3)!important;box-shadow:2px 3px 0 rgba(59,42,53,.12);color:var(--cz-title,#3B2A35)!important;font-weight:700}
.sc-js body.sc-paper_party #program:not(.sc-in) .sa-prog-line-v{clip-path:inset(0 0 100% 0)}
.sc-js body.sc-paper_party #program.sc-in .sa-prog-line-v{animation:sc-unroll 1.4s cubic-bezier(.65,0,.35,1) 200ms both}
.sc-js body.sc-paper_party #program .sa-prog-row:not(.sc-in){opacity:0}
.sc-js body.sc-paper_party #program .sa-prog-row.sc-in{animation:sc-fade 420ms cubic-bezier(.23,1,.32,1) calc(300ms + var(--k,0) * 140ms) both}
.sc-js body.sc-paper_party #program .sa-prog-row:not(.sc-in)>div:first-child{transform:scaleX(0)}
.sc-js body.sc-paper_party #program .sa-prog-row.sc-in>div:first-child{animation:sc-pp-unfurl 640ms cubic-bezier(.23,1,.32,1) calc(380ms + var(--k,0) * 140ms) both}
@keyframes sc-pp-unfurl{0%{transform:scaleX(0)}60%{transform:scaleX(1.08) skewY(-3deg)}100%{transform:none}}
body.sc-paper_party #program .sa-prog-row:nth-child(2){--k:1}
body.sc-paper_party #program .sa-prog-row:nth-child(3){--k:2}
body.sc-paper_party #program .sa-prog-row:nth-child(n+4){--k:3}
/* tablets (the three-column programme): a bunting string along the top, each item's icon on a coloured paper disc */
@media (min-width:768px){
  body.sc-paper_party.es-studio-v2 #program .sa-prog-line-h{height:3px;top:68px;background:#3B2A35;opacity:.75;border-radius:2px}
  body.sc-paper_party.es-studio-v2 #program .sa-prog-item>div:nth-child(2){border:0!important;background:var(--pp-disc,#F7A28E)!important;box-shadow:3px 4px 0 rgba(59,42,53,.14)!important;color:#3B2A35!important}
  body.sc-paper_party #program .sa-prog-item:nth-child(4n+2){--pp-disc:#FADB8E}
  body.sc-paper_party #program .sa-prog-item:nth-child(4n+3){--pp-disc:#A9DBC3}
  body.sc-paper_party #program .sa-prog-item:nth-child(4n){--pp-disc:#A2C7EA}
  body.sc-paper_party.es-studio-v2 #program .sa-prog-item .sa-prog-time{padding:3px 10px;border-radius:4px;background:var(--cz-section-bg,#FFFBF3)!important;box-shadow:2px 3px 0 rgba(59,42,53,.12);color:var(--cz-title,#3B2A35)!important;font-weight:700}
  .sc-js body.sc-paper_party #program:not(.sc-in) .sa-prog-item{opacity:0;transform:translateY(12px)}
  .sc-js body.sc-paper_party #program.sc-in .sa-prog-item{animation:sc-rise 560ms cubic-bezier(.23,1,.32,1) calc(300ms + var(--k,0) * 140ms) both}
  body.sc-paper_party #program .sa-prog-item:nth-child(2){--k:1}
  body.sc-paper_party #program .sa-prog-item:nth-child(3){--k:2}
}

/* ---- gallery: a paper camera heads it (the lens ring draws, a sparkle pops); photos sit in paper frames, each a little
   tilted, and washi tape presses onto two corners as the photo scrolls in ---- */
body.sc-paper_party #gallery>.sc-p-gallery{width:min(64vw,250px);margin:-20px auto 8px}
body.sc-paper_party.es-studio-v2 #gallery .grid{gap:26px 18px;padding:8px 4px}
body.sc-paper_party.es-studio-v2 #gallery .sa-gallery-card{position:relative;overflow:visible;border:7px solid var(--cz-section-bg,#FFFBF3);box-shadow:5px 7px 0 rgba(59,42,53,.12);transform:rotate(var(--pp-tilt,-1.6deg))}
body.sc-paper_party #gallery .grid>:nth-child(4n+2){--pp-tilt:1.4deg;--pp-tape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44'%3E%3Cpath d='M8 7L14 13L8 19L14 25L8 31L14 37L112 37L106 31L112 25L106 19L112 13L106 7Z' fill='%23A9DBC3' fill-opacity='.82'/%3E%3Cpath d='M10.8 9L16.8 9L16.8 35L10.8 35ZM22.3 9L28.3 9L28.3 35L22.3 35ZM33.9 9L39.9 9L39.9 35L33.9 35ZM45.4 9L51.4 9L51.4 35L45.4 35ZM57 9L63 9L63 35L57 35ZM68.6 9L74.6 9L74.6 35L68.6 35ZM80.1 9L86.1 9L86.1 35L80.1 35ZM91.7 9L97.7 9L97.7 35L91.7 35ZM103.2 9L109.2 9L109.2 35L103.2 35Z' fill='%23FFFBF3' fill-opacity='0.45'/%3E%3C/svg%3E")}
body.sc-paper_party #gallery .grid>:nth-child(4n+3){--pp-tilt:1.1deg;--pp-tape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44'%3E%3Cpath d='M8 7L14 13L8 19L14 25L8 31L14 37L112 37L106 31L112 25L106 19L112 13L106 7Z' fill='%23FADB8E' fill-opacity='.82'/%3E%3Cpath d='M19.6 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM29 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM38.5 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM47.9 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM57.4 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM66.9 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM76.3 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM85.8 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM95.2 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM104.7 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0Z' fill='%23FFFBF3' fill-opacity='0.75'/%3E%3C/svg%3E")}
body.sc-paper_party #gallery .grid>:nth-child(4n){--pp-tilt:-1.2deg;--pp-tape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44'%3E%3Cpath d='M8 7L14 13L8 19L14 25L8 31L14 37L112 37L106 31L112 25L106 19L112 13L106 7Z' fill='%23A2C7EA' fill-opacity='.82'/%3E%3Cpath d='M10.8 9L16.8 9L16.8 35L10.8 35ZM22.3 9L28.3 9L28.3 35L22.3 35ZM33.9 9L39.9 9L39.9 35L33.9 35ZM45.4 9L51.4 9L51.4 35L45.4 35ZM57 9L63 9L63 35L57 35ZM68.6 9L74.6 9L74.6 35L68.6 35ZM80.1 9L86.1 9L86.1 35L80.1 35ZM91.7 9L97.7 9L97.7 35L91.7 35ZM103.2 9L109.2 9L109.2 35L103.2 35Z' fill='%23FFFBF3' fill-opacity='0.45'/%3E%3C/svg%3E")}
body.sc-paper_party #gallery .sa-gallery-card::before,body.sc-paper_party #gallery .sa-gallery-card::after{content:"";position:absolute;z-index:2;top:-16px;width:62px;height:24px;max-width:none;
  background:var(--pp-tape,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44'%3E%3Cpath d='M8 7L14 13L8 19L14 25L8 31L14 37L112 37L106 31L112 25L106 19L112 13L106 7Z' fill='%23F7A28E' fill-opacity='.82'/%3E%3Cpath d='M19.6 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM29 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM38.5 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM47.9 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM57.4 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM66.9 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM76.3 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM85.8 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM95.2 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM104.7 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0Z' fill='%23FFFBF3' fill-opacity='0.75'/%3E%3C/svg%3E")) 50% 50%/100% 100% no-repeat;pointer-events:none}
body.sc-paper_party #gallery .sa-gallery-card::before{left:-18px;transform:rotate(-34deg)}
body.sc-paper_party #gallery .sa-gallery-card::after{right:-18px;transform:rotate(32deg)}
.sc-js body.sc-paper_party #gallery .grid>:not(.sc-in){opacity:0;transform:translateY(18px) rotate(calc(var(--pp-tilt,-1.6deg) * 3))}
.sc-js body.sc-paper_party #gallery .grid>.sc-in{animation:sc-pp-settle 700ms cubic-bezier(.23,1,.32,1) both}
@keyframes sc-pp-settle{from{opacity:0;transform:translateY(18px) rotate(calc(var(--pp-tilt,-1.6deg) * 3))}to{opacity:1;transform:rotate(var(--pp-tilt,-1.6deg))}}
.sc-js body.sc-paper_party #gallery .grid>:not(.sc-in)::before,.sc-js body.sc-paper_party #gallery .grid>:not(.sc-in)::after{opacity:0}
.sc-js body.sc-paper_party #gallery .grid>.sc-in::before{animation:sc-pp-tape-l 380ms cubic-bezier(.23,1,.32,1) 520ms both}
.sc-js body.sc-paper_party #gallery .grid>.sc-in::after{animation:sc-pp-tape-r 380ms cubic-bezier(.23,1,.32,1) 640ms both}
@keyframes sc-pp-tape-l{from{opacity:0;transform:rotate(-34deg) scale(1.35)}to{opacity:1;transform:rotate(-34deg)}}
@keyframes sc-pp-tape-r{from{opacity:0;transform:rotate(32deg) scale(1.35)}to{opacity:1;transform:rotate(32deg)}}

/* ---- dress code: a paper swatch book fans open from its pin; the words sit on a paper note with a strip of tape ---- */
body.sc-paper_party #dress_code>.sc-p-dress_code{width:min(64vw,250px);margin:-20px auto 6px}
.sc-piece.sc-paper_party .sc-pp-sw{transform:rotate(var(--rot,0deg))}
.sc-js .sc-piece.sc-paper_party:not(.sc-in) .sc-pp-sw{transform:none}
.sc-js .sc-piece.sc-paper_party.sc-in .sc-pp-sw{animation:sc-pp-fan 760ms cubic-bezier(.23,1,.32,1) var(--t,0ms) both}
@keyframes sc-pp-fan{0%{transform:none}70%{transform:rotate(calc(var(--rot,0deg) * 1.08))}100%{transform:rotate(var(--rot,0deg))}}
body.sc-paper_party.es-studio-v2 :is(#dress_code,#gifts) .sa-text-section__body{position:relative;padding:24px 22px 22px;background:var(--cz-section-bg,#FFFBF3);border-radius:3px;box-shadow:5px 7px 0 rgba(59,42,53,.1);color:var(--cz-text,#3B2A35)!important}
body.sc-paper_party #dress_code .sa-text-section__body{margin-top:18px!important}
body.sc-paper_party #dress_code .sa-text-section__body::before{content:"";position:absolute;left:50%;top:-13px;width:84px;height:26px;margin-left:-42px;max-width:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44'%3E%3Cpath d='M8 7L14 13L8 19L14 25L8 31L14 37L112 37L106 31L112 25L106 19L112 13L106 7Z' fill='%23A9DBC3' fill-opacity='.82'/%3E%3Cpath d='M10.8 9L16.8 9L16.8 35L10.8 35ZM22.3 9L28.3 9L28.3 35L22.3 35ZM33.9 9L39.9 9L39.9 35L33.9 35ZM45.4 9L51.4 9L51.4 35L45.4 35ZM57 9L63 9L63 35L57 35ZM68.6 9L74.6 9L74.6 35L68.6 35ZM80.1 9L86.1 9L86.1 35L80.1 35ZM91.7 9L97.7 9L97.7 35L91.7 35ZM103.2 9L109.2 9L109.2 35L103.2 35Z' fill='%23FFFBF3' fill-opacity='0.45'/%3E%3C/svg%3E") 50% 50%/100% 100% no-repeat;transform:rotate(-2deg)}
.sc-js body.sc-paper_party :is(#dress_code,#gifts) .sa-text-section__body:not(.sc-in){opacity:0;transform:translateY(16px)}
.sc-js body.sc-paper_party :is(#dress_code,#gifts) .sa-text-section__body.sc-in{animation:sc-rise 620ms cubic-bezier(.23,1,.32,1) 250ms both}

/* ---- gifts: a present; the bow draws itself, then the lid lifts 6 px and settles; the words on a gift tag ---- */
body.sc-paper_party #gifts>.sc-p-gifts{width:min(64vw,250px);margin:-20px auto 6px}
.sc-js .sc-piece.sc-paper_party:not(.sc-in) .sc-pp-lid{opacity:0}
.sc-js .sc-piece.sc-paper_party.sc-in .sc-pp-lid{animation:sc-fade 420ms cubic-bezier(.23,1,.32,1) both,sc-pp-lid 820ms cubic-bezier(.33,0,.2,1) var(--t,0ms) both}
@keyframes sc-pp-lid{0%{transform:none}38%{transform:translateY(-6px) rotate(-1.4deg)}70%{transform:translateY(1px) rotate(.3deg)}100%{transform:none}}
body.sc-paper_party #gifts .sa-text-section__body{margin-top:34px!important}
body.sc-paper_party #gifts .sa-text-section__body::before{content:"";position:absolute;left:50%;top:9px;width:12px;height:12px;margin-left:-6px;border-radius:50%;
  background:var(--ivory);box-shadow:inset 1px 1px 0 rgba(59,42,53,.25)}
body.sc-paper_party #gifts .sa-text-section__body::after{content:"";position:absolute;left:50%;top:-24px;width:44px;height:30px;margin-left:-22px;max-width:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath d='M30 38C22 26 12 22 14 12C16 2 28 6 30 14C32 6 44 2 46 12C48 22 38 26 30 38Z' fill='none' stroke='%23F0735A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 50% 50%/100% 100% no-repeat}

/* ---- rsvp: a party popper heads it (streamers draw out, confetti pops); the form is a taped paper card; a "yes" sends
   a confetti burst up from the button (paper_party.js; never on "no", never when the form does not submit) ---- */
body.sc-paper_party #rsvp>.sc-p-rsvp{width:min(64vw,250px);margin:-20px auto 6px}
body.sc-paper_party.es-studio-v2 #rsvp form{overflow:visible;border:0;border-radius:3px;box-shadow:6px 8px 0 rgba(59,42,53,.1),0 0 0 1px rgba(59,42,53,.06)}
body.sc-paper_party #rsvp form::before{content:"";position:absolute;left:50%;top:-14px;width:112px;height:30px;margin-left:-56px;max-width:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44'%3E%3Cpath d='M8 7L14 13L8 19L14 25L8 31L14 37L112 37L106 31L112 25L106 19L112 13L106 7Z' fill='%23F7A28E' fill-opacity='.82'/%3E%3Cpath d='M19.6 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM29 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM38.5 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM47.9 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM57.4 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM66.9 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM76.3 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM85.8 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM95.2 14.9a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM104.7 29.1a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0Z' fill='%23FFFBF3' fill-opacity='0.75'/%3E%3C/svg%3E") 50% 50%/100% 100% no-repeat;transform:rotate(-2deg);pointer-events:none}
body.sc-paper_party #rsvp form :is(input[type=radio],input[type=checkbox]){accent-color:#F0735A}
/* keyboard focus stays clearly visible on the card: the ink colour (>= 7:1), not the pale accent */
/* the ring must contrast with the form card: on a couple's own section colour it takes the page's form ink (their text
   colour, or the ink the page picked for that background); --pp-ring exists only when they chose a section colour */
body.sc-paper_party{--pp-ring:color-mix(in srgb,var(--es-form-ink) 100%,var(--cz-section-bg))}
body.sc-paper_party.es-studio-v2 #rsvp form :is(input,textarea,select,button):focus-visible{outline:2px solid var(--pp-ring,var(--cz-text,#3B2A35));outline-offset:2px}
body.sc-paper_party.es-studio-v2 #rsvp button[type=submit]{border:0;border-radius:6px;box-shadow:3px 4px 0 rgba(59,42,53,.18)}
.sc-js body.sc-paper_party #rsvp form>:not(.sc-in):not([type=hidden]){opacity:0;transform:translateY(10px)}
.sc-js body.sc-paper_party #rsvp form>.sc-in:not([type=hidden]){animation:sc-rise 480ms cubic-bezier(.23,1,.32,1) both}
/* the burst: 24 bits thrown up and out, falling back under gravity (the script only places them; CSS moves them) */
body.sc-paper_party #rsvp>.sc-pp-burst{position:absolute;z-index:20;width:0;height:0;margin:0;pointer-events:none}
body.sc-paper_party #rsvp>.sc-pp-burst,body.sc-paper_party #rsvp>.sc-pp-burst i{max-width:none;max-height:none}
body.sc-paper_party #rsvp>.sc-pp-burst i{position:absolute;left:0;top:0;width:var(--w,8px);height:var(--h,8px);margin:calc(var(--h,8px) / -2) 0 0 calc(var(--w,8px) / -2);background:var(--c,#F0735A);
  border-radius:var(--br,2px);animation:sc-pp-burst 900ms linear var(--dl,0ms) both}
@keyframes sc-pp-burst{
  0%{transform:translate(0,0) rotate(0);opacity:1;animation-timing-function:cubic-bezier(.15,.7,.35,1)}
  45%{transform:translate(calc(var(--dx) * .72),var(--dy)) rotate(calc(var(--rt) * .5));opacity:1;animation-timing-function:cubic-bezier(.55,0,.85,.45)}
  80%{opacity:1}
  100%{transform:translate(var(--dx),calc(var(--dy) + var(--fall))) rotate(var(--rt));opacity:0}}

/* ---- closing: the party's candles are blown out one by one, a curl of smoke rises from each wick and fades.
   Final (plain) state: the candles out, the smoke gone. ---- */
body.sc-paper_party #closing>.sc-p-closing{width:min(70vw,280px);margin:-10px auto 18px}
.sc-piece.sc-paper_party .sc-pp-out{opacity:0}
.sc-js .sc-piece.sc-paper_party:not(.sc-in) .sc-pp-out{opacity:1}
.sc-js .sc-piece.sc-paper_party.sc-in .sc-pp-out{animation:sc-pp-blow 1.7s linear var(--t,0ms) both}
@keyframes sc-pp-blow{
  0%{opacity:1;transform:none;animation-timing-function:ease-in-out}
  22%{transform:scale(.97,1.05) rotate(-2deg)}
  44%{transform:scale(1.02,.97) rotate(2deg);animation-timing-function:cubic-bezier(.4,0,.8,.4)}
  70%{opacity:.9;transform:translateX(-3px) rotate(-38deg) scale(.7,.5)}
  100%{opacity:0;transform:translateX(-6px) rotate(-50deg) scale(0)}}
.sc-piece.sc-paper_party [data-pp=smoke]{opacity:0;stroke-dasharray:1 1}
.sc-js .sc-piece.sc-paper_party.sc-in [data-pp=smoke]{animation:sc-pp-smoke 2.2s cubic-bezier(.3,.6,.4,1) var(--t,0ms) both}
@keyframes sc-pp-smoke{0%{opacity:0;stroke-dashoffset:1}8%{opacity:.9}60%{opacity:.7;stroke-dashoffset:0}100%{opacity:0;stroke-dashoffset:0}}
.sc-js body.sc-paper_party #closing .sa-text-section__body:not(.sc-in),.sc-js body.sc-paper_party #closing .sa-closing-sign:not(.sc-in){opacity:0;transform:translateY(12px)}
.sc-js body.sc-paper_party #closing .sa-text-section__body.sc-in{animation:sc-rise 620ms cubic-bezier(.23,1,.32,1) 200ms both}
.sc-js body.sc-paper_party #closing .sa-closing-sign.sc-in{animation:sc-rise 700ms cubic-bezier(.23,1,.32,1) 450ms both}
