:root{
  --gele:#7e153c; --gele-deep:#2a0614; --sheen:#c9507d; --gele-mid:#993c55;
  --olive:#4d4e3a; --beige:#b19a79; --beige-light:#cbbb9c;
  --tie:#c56c42;
  --weave:radial-gradient(circle at 35% 40%,rgba(246,176,112,.75) 0 2px,transparent 2.6px) 0 0/22px 26px,radial-gradient(circle at 35% 40%,rgba(246,176,112,.6) 0 2px,transparent 2.6px) 11px 13px/22px 26px,repeating-linear-gradient(45deg,rgba(255,205,160,.16) 0 1px,transparent 1px 3px),repeating-linear-gradient(-45deg,rgba(90,30,0,.2) 0 1px,transparent 1px 3px),linear-gradient(90deg,#b45c31,#d0763f 45%,#c86c39 60%,#a9532b); --lily:#f3eee7; --ink:#241a12; --paper:#fbf6f1; --wood:#a9773f;
  --serif:"Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --mono:"IBM Plex Mono", ui-monospace, Menlo, monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--gele-deep)}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}
body{background:var(--gele-deep);color:var(--paper);font-family:var(--serif);overflow-x:hidden;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
body.closed{overflow:hidden;height:100svh}
.mono{font-family:var(--mono);font-weight:500;text-transform:uppercase;letter-spacing:.18em}

/* the scroll track: plain height; the walk reads its position, nothing snaps */
#track{position:relative;z-index:0;height:2200vh}

/* the layers */
#back,#fore{position:fixed;inset:0;width:100vw;height:100lvh;display:block;pointer-events:none}
#back{z-index:1}
#photos{position:fixed;inset:0;z-index:2;pointer-events:none;overflow:hidden}
#fore{z-index:3}
#words{position:fixed;inset:0;z-index:4;pointer-events:none;overflow:hidden}
.grain{position:fixed;inset:-50%;z-index:6;pointer-events:none;opacity:.2;mix-blend-mode:overlay;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation:grain 1s steps(6) infinite}
@keyframes grain{0%{transform:translate(0,0)}20%{transform:translate(-3%,2%)}40%{transform:translate(2%,-4%)}60%{transform:translate(-4%,-1%)}80%{transform:translate(3%,3%)}100%{transform:translate(0,0)}}

/* photos: cut into the painted ground, edges melting into the same backdrop */
.ph{position:absolute;opacity:0;will-change:opacity,transform}
.ph img{display:block;width:100%;height:100%;object-fit:cover}
:root{--petal:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160' preserveAspectRatio='none'%3E%3Cpath d='M50 0C80 26 99 74 82 122C72 148 60 160 50 160C40 160 28 148 18 122C1 74 20 26 50 0Z'/%3E%3C/svg%3E")}
.ph-open{left:calc(50% - 40vh);top:0;height:100%;aspect-ratio:4/5;
  -webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 64%,transparent 100%);mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 64%,transparent 100%)}
.ph-half{top:0;width:50vw;height:100%;overflow:hidden}
.ph-half-l{left:0}.ph-half-r{right:0}
.ph-half-l img{transform:scale(1.5);transform-origin:50% 42%}
.ph-half-r img{transform:scale(1.12);transform-origin:50% 30%}
/* arched windows (24 Nov): the pointed petal cut faces off. A classic round arch (radii clamp to half the width)
   keeps both of them whole; the frames are wider than the photo, so only the x of object-position moves anything */
.ph-petal{border-radius:50vw 50vw 0 0;overflow:hidden;box-shadow:0 0 0 .5vw #f4efe4,0 2vh 5vh rgba(60,45,30,.28)}
.ph-petal img{object-position:50% 50%}
.ph-p3 img{object-position:44% 50%}
/* the close room (24 Nov): four plain frames across the full width, edge to edge, white borders meeting, tops staggered */
.ph-p1,.ph-p2,.ph-p3,.ph-p4{border-radius:0;box-sizing:border-box;border:.6vw solid #f8f4ec;box-shadow:0 2.4vh 5vh rgba(60,45,30,.3)}
.ph-p1{left:0;top:15vh;width:25vw;height:68vh}
.ph-p2{left:25vw;top:6vh;width:25vw;height:68vh}
.ph-p3{left:50vw;top:19vh;width:25vw;height:68vh}
.ph-p4{left:75vw;top:9vh;width:25vw;height:68vh}
.ph-day{right:0;top:0;height:100%;aspect-ratio:4/5;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 30%);mask-image:linear-gradient(90deg,transparent 0,#000 30%)}
.ph-hall-bg{inset:0}
.ph-hall-bg img{filter:blur(22px) brightness(.5);transform:scale(1.15)}
.ph-hall{left:calc(50% - 28.13vh);top:0;height:100%;aspect-ratio:9/16;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent);mask-image:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent)}
.ph-ph1{left:7vw;top:26vh;width:15vw;height:52vh}
.ph-ph2{right:5vw;top:8vh;width:13vw;height:44vh}
.ph-lift{right:4vw;top:0;height:100%;aspect-ratio:4/5;
  -webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 48%,#000 62%,transparent 100%);
          mask-image:radial-gradient(ellipse 50% 50% at 50% 48%,#000 62%,transparent 100%)}
.ph-lift img{object-position:50% 40%}
.ph-hands{left:-3vw;top:0;height:100%;aspect-ratio:4/5;
  -webkit-mask-image:radial-gradient(ellipse 50% 52% at 50% 50%,#000 66%,transparent 100%);
          mask-image:radial-gradient(ellipse 50% 52% at 50% 50%,#000 66%,transparent 100%)}

/* the words */
.w{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s linear .45s}
.w.on{opacity:1;visibility:visible;transition:opacity .7s ease .05s,visibility 0s}
.w > *{transform:translateY(3vh);transition:transform .9s cubic-bezier(.2,.7,.1,1)}
.w.on > *{transform:none}

/* room 0: the bud */
.name{position:absolute;left:3.4vw;bottom:15vh;font-weight:800;font-size:15.6vw;line-height:.83;letter-spacing:-.035em;white-space:nowrap;color:var(--paper);
  text-shadow:0 .02em .25em rgba(30,0,10,.45)}
.line{position:absolute;left:4vw;bottom:7.4vh;font-style:italic;font-weight:500;font-size:clamp(20px,2.2vw,34px);color:#f6e3ea;text-shadow:0 2px 18px rgba(30,0,10,.6)}

/* room 1: the words ride the folds */
.arc{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.arc text{font-family:var(--serif);font-weight:800;fill:var(--paper);letter-spacing:-.01em;paint-order:stroke;stroke:rgba(40,0,14,.35);stroke-width:.02em}
.arc-b{font-style:normal}

/* room 2: the countdown */
.count{position:absolute;left:2.6vw;bottom:-3vh;display:flex;align-items:flex-end;gap:1.2vw;color:var(--paper)}
.days{font-weight:800;font-size:66vh;line-height:.8;letter-spacing:-.02em;font-variation-settings:'opsz' 10;text-shadow:0 .01em .12em rgba(20,8,10,.55)}
.unit{font-style:italic;font-weight:500;font-size:6vh;margin-bottom:9vh;text-shadow:0 2px 14px rgba(20,8,10,.6)}
.countline{position:absolute;left:3.4vw;top:8vh;font-weight:800;font-size:4.1vw;line-height:.92;letter-spacing:-.01em;white-space:nowrap;font-variation-settings:'opsz' 24;color:var(--paper);text-shadow:0 2px 20px rgba(20,22,10,.5)}
.ph-br{display:none}
.clock{position:absolute;right:3vw;bottom:4.5vh;font-size:12px;color:#ece6d6}
.clock span{font-size:15px;letter-spacing:.12em;margin-right:.8em;color:#fff}

/* room 3: the turn has landed on beige */
.invite{position:absolute;right:4vw;top:11vh;width:min(36vw,560px);font-style:italic;font-weight:500;font-size:clamp(26px,3.1vw,50px);line-height:1.08;color:var(--ink)}
.when{position:absolute;right:2.4vw;bottom:3.5vh;text-align:right;font-weight:800;font-size:5.6vw;line-height:.84;letter-spacing:-.03em;color:var(--ink)}
.when em{font-style:italic;font-weight:500;color:var(--tie)}

/* room 4: full bloom, the tie blade at its heart */
.name2{position:absolute;left:0;right:0;top:4vh;text-align:center;font-weight:800;font-size:7.6vw;line-height:.9;letter-spacing:-.03em;white-space:nowrap;color:var(--paper);text-shadow:0 .03em .3em rgba(40,20,10,.55)}
.rsvp{position:absolute;left:50%;top:50%;width:150px;height:300px;margin:-118px 0 0 -75px;pointer-events:auto;display:block;color:#fff;text-decoration:none;
  filter:drop-shadow(0 18px 26px rgba(50,20,5,.45));transform-origin:50% 0;transition:transform .5s cubic-bezier(.2,.7,.1,1)}
.rsvp .knot{position:absolute;left:50%;top:0;width:58px;height:50px;margin-left:-29px;background:linear-gradient(180deg,rgba(255,210,170,.2),rgba(70,20,0,.35)),var(--weave);
  clip-path:polygon(0 0,100% 0,82% 100%,18% 100%)}
.rsvp .blade{position:absolute;left:0;right:0;top:46px;bottom:0;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(90deg,rgba(60,20,5,.4),transparent 28%,rgba(255,215,175,.2) 50%,transparent 68%,rgba(60,20,5,.45)),var(--weave);
  clip-path:polygon(22% 0,78% 0,100% 80%,50% 100%,0 80%)}
.rsvp b{font:800 34px/1 var(--serif);letter-spacing:.02em;margin-top:-18px;text-shadow:0 2px 10px rgba(80,25,0,.6)}
.rsvp:hover,.rsvp:focus-visible{transform:rotate(-4deg) translateY(4px)}
.rsvp:focus-visible{outline:none}
.rsvp:focus-visible .blade{box-shadow:inset 0 0 0 3px #fff}
/* the RSVP card: a cut of white silk at the heart of the bloom, no browser controls anywhere.
   The choice is two cut-cloth tabs in the colours of the day, the fields are lines of type, the send is the tie. */
.card{position:absolute;left:50%;top:calc(4vh + 7.6vw * .9 + 3vh);width:500px;margin-left:-250px;padding:30px 42px 160px;transform-origin:50% 0;
  pointer-events:auto;color:var(--ink);font-family:var(--serif);perspective:1400px;translate:0 var(--kb,0px);transition:translate .35s cubic-bezier(.2,.7,.1,1)}
.card-bg{position:absolute;inset:0 0 104px;filter:drop-shadow(0 22px 34px rgba(50,18,6,.42))}
.card-bg::before{content:"";position:absolute;inset:0;
  clip-path:polygon(0 0,calc(100% - 44px) 0,100% 44px,100% 100%,0 100%);
  background:repeating-linear-gradient(90deg,rgba(120,95,70,.035) 0 1px,transparent 1px 3px),
    linear-gradient(112deg,#f7f2ea 0,#ece3d6 34%,#fbf8f2 52%,#e7ddcf 78%,#f3ede4)}
/* the corner folded back shows the gele's pink underside */
.card-bg::after{content:"";position:absolute;right:0;top:0;width:44px;height:44px;
  clip-path:polygon(0 0,100% 100%,0 100%);background:linear-gradient(135deg,#e88bb0,#b8406c 70%,#7e153c)}
.card > *:not(.card-bg){position:relative}
.kick{display:flex;justify-content:space-between;gap:12px;padding-right:30px;font-size:12px;letter-spacing:.12em;color:#9c4325;margin-bottom:18px}
.kick span{color:var(--ink)}
.field{display:block;margin-bottom:14px}
.lab{display:block;font-size:12px;letter-spacing:.12em;color:var(--ink);margin-bottom:2px}
.lab .opt{color:#5a4634;letter-spacing:.08em}
.field input,.field textarea{-webkit-appearance:none;appearance:none;display:block;width:100%;border:0;border-radius:0;outline:0;background:transparent;
  font:italic 500 24px/1.25 var(--serif);font-variation-settings:'opsz' 12;color:var(--ink);padding:6px 0 7px;caret-color:var(--tie);
  box-shadow:inset 0 -2px 0 rgba(36,26,18,.8);transition:box-shadow .25s ease}
.field textarea{resize:none;overflow-y:auto;max-height:5.2em;min-height:calc(1.25em + 13px)}
.field input:focus,.field textarea:focus{box-shadow:inset 0 -3px 0 var(--tie)}
.field input:-webkit-autofill{-webkit-box-shadow:inset 0 -1.5px 0 rgba(36,26,18,.55),inset 0 0 0 60px #f3ede4;-webkit-text-fill-color:var(--ink)}
.err{display:block;min-height:17px;padding-top:4px;font-size:12px;letter-spacing:.08em;color:#7e153c}
.field.bad input,.field.bad textarea{box-shadow:inset 0 -3px 0 #7e153c}
.field.bad .lab{color:#7e153c}
/* will you be there: two cut-cloth tabs, a ribbon end notched into each */
.tabs{display:flex;gap:10px;margin-top:8px}
.tab{-webkit-appearance:none;appearance:none;flex:1;height:58px;border:0;border-radius:0;cursor:pointer;color:#fff;position:relative;
  font:normal 800 20px/1 var(--serif);letter-spacing:.01em;color:#fbf6ec;text-shadow:0 0 1px rgba(20,4,10,.9),0 1px 2px rgba(20,4,10,.7);
  transition:transform .45s cubic-bezier(.2,.7,.1,1),filter .45s ease,opacity .45s ease}
.tab-yes{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,16px 50%);padding-left:12px;transform:rotate(-1.2deg);
  background:linear-gradient(100deg,#7a1640,#8e1f4c 45%,#9a2756 55%,#7a1640)}
.tab-no{clip-path:polygon(0 0,100% 0,calc(100% - 16px) 50%,100% 100%,0 100%);padding-right:12px;transform:rotate(1.2deg);
  background:linear-gradient(100deg,#3f402e,#4d4e3a 45%,#56583f 55%,#3f402e)}
.tab span{position:relative;display:inline-block;color:#fbf6ec}
.tab[aria-checked="true"] span::after{content:"";position:absolute;left:0;right:0;bottom:-7px;height:2px;background:#fbf6ec}
.tab:hover{transform:rotate(0) translateY(-2px)}
.tabs.picked .tab[aria-checked="true"]{transform:rotate(0) translateY(-3px) scale(1.03);filter:drop-shadow(0 6px 8px rgba(40,10,5,.35))}
.tabs.picked .tab[aria-checked="false"]{opacity:.78;filter:saturate(.3);transform:rotate(0) scale(.94)}
.tab:focus-visible{outline:none}
.tab:focus-visible span{outline:2px solid #fff;outline-offset:6px}
.choice.bad .tabs{animation:nudge .5s cubic-bezier(.3,0,.2,1)}
@keyframes nudge{20%{transform:translateX(-7px)}45%{transform:translateX(6px)}70%{transform:translateX(-3px)}}
/* the WhatsApp line unfolds only for a yes */
.unfold{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .5s cubic-bezier(.2,.7,.1,1),opacity .4s ease;visibility:hidden}
.unfold > *{min-height:0;overflow:hidden}
.unfold.open{grid-template-rows:1fr;opacity:1;visibility:visible}
.trap{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.ts:empty{display:none}
.ts{margin:4px 0 8px}
.status{min-height:17px;font-size:12px;letter-spacing:.1em;color:var(--ink);text-align:center;margin-top:-4px}
.status.bad{color:#7e153c}
.joy{position:absolute!important;left:42px;bottom:120px;font-size:12px;letter-spacing:.1em;color:var(--ink);text-decoration:none;
  box-shadow:inset 0 -1.5px 0 rgba(36,26,18,.7);padding-bottom:2px}
.joy:hover,.joy:focus-visible{color:var(--ink);box-shadow:inset 0 -2px 0 var(--tie);outline:none}
/* the send: the tie hanging from the card's lower edge */
.card .send{position:absolute;left:50%;top:auto;bottom:0;width:88px;height:160px;margin:0 0 0 -44px;border:0;background:none;padding:0;cursor:pointer;font:inherit;
  transform-origin:50% 0}
.card .send .knot{width:36px;height:30px;margin-left:-18px}
.card .send .blade{top:28px}
.card .send b{font-size:21px;margin-top:-16px}
.card .send[disabled]{cursor:progress}
.card .send[disabled] .blade{filter:brightness(.88)}
.card.sending .send{animation:tug 1.2s ease-in-out infinite}
@keyframes tug{50%{transform:rotate(3deg)}}
/* the answer: a petal of the gele folds down over the card */
.fold{position:absolute!important;left:0;right:0;top:0;bottom:60px;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 44px 70px;color:#fff;
  clip-path:polygon(0 0,100% 0,100% 74%,50% 100%,0 74%);
  background:linear-gradient(180deg,rgba(150,30,75,.62),rgba(120,20,60,.55) 45%,rgba(70,0,30,.7)),var(--gele-cloth,none) 50% 45%/190% auto,#a8335f;
  transform-origin:50% 0;transform:rotateX(-98deg);opacity:0;transition:transform 1.1s cubic-bezier(.3,1.25,.4,1),opacity .25s ease}
.fold[hidden]{display:none}
.fold.in{transform:rotateX(0);opacity:1}
.fold-name{font:800 40px/1 var(--serif);letter-spacing:-.02em;text-shadow:0 2px 14px rgba(60,0,20,.5)}
.fold-line{font:italic 500 22px/1.25 var(--serif);margin:16px 0 18px;max-width:360px;text-shadow:0 1px 10px rgba(60,0,20,.6)}
.fold-day{font-size:12px;letter-spacing:.1em;line-height:1.8;color:#fff;text-shadow:0 1px 6px rgba(50,0,20,.7)}
.again{-webkit-appearance:none;appearance:none;margin-top:18px;border:0;border-radius:0;background:none;color:#fff;cursor:pointer;font-size:12px;letter-spacing:.1em;padding:4px 0;box-shadow:inset 0 -1px 0 rgba(255,255,255,.6)}
.again:hover,.again:focus-visible{outline:none;box-shadow:inset 0 -2px 0 #fff}
.card.replied .send,.card.replied .joy{opacity:0;pointer-events:none;transition:opacity .4s ease}
.w9.replied .excited{opacity:0}
@media (min-width:701px) and (max-height:820px){.card{scale:.84}}
@media (min-width:701px) and (max-height:700px){.card{scale:.7}}
.where{position:absolute;left:3vw;right:3vw;bottom:9vh;text-align:center;font-weight:800;font-size:4.6vw;line-height:.95;letter-spacing:-.02em;color:var(--paper);text-shadow:0 .03em .35em rgba(40,20,10,.6)}
.where em{font-style:italic;font-weight:500}
.excited{position:absolute;left:0;right:0;bottom:3.6vh;text-align:center;font-style:italic;font-weight:500;font-size:clamp(16px,1.5vw,22px);color:#fff;text-shadow:0 1px 12px rgba(40,15,5,.85)}

/* room 5: two portraits, a name on each half */
.half-name{position:absolute;bottom:3vh;font-weight:800;font-size:9.4vw;line-height:.85;letter-spacing:-.03em;color:var(--paper);text-shadow:0 .03em .3em rgba(40,25,10,.45)}
.half-name-l{left:2vw}.half-name-r{right:2vw}

/* room 8: the day and the place */
.w8 .when{left:3.4vw;right:auto;top:8vh;bottom:auto;text-align:left;font-size:6.4vw}
.where2{position:absolute;left:3.6vw;bottom:13vh;width:52vw;font-weight:800;font-size:3.7vw;line-height:.98;letter-spacing:-.02em;color:var(--ink)}
.where2 em{font-style:italic;font-weight:500;color:var(--tie)}
.first{position:absolute;left:3.8vw;bottom:6vh;font-size:12px;color:var(--ink)}

/* room 10: the walk away */
.name3{position:absolute;left:3.4vw;top:9vh;font-weight:800;font-size:5.6vw;line-height:.9;letter-spacing:-.03em;color:var(--paper);text-shadow:0 .03em .3em rgba(0,0,0,.5)}
.last{position:absolute;left:3.6vw;bottom:5vh;font-size:12px;line-height:1.9;color:#f2ede6;text-shadow:0 1px 8px rgba(0,0,0,.7)}
.rsvp-small{left:auto;right:23vw;top:auto;bottom:8vh;margin:0;transform:scale(.8);transform-origin:50% 100%}
.rsvp-small:hover,.rsvp-small:focus-visible{transform:scale(.8) rotate(-4deg) translateY(4px)}

/* the door: ENTER is the loose tail of the gele, hanging in from the right edge */
.tail{position:fixed;z-index:7;right:-8px;bottom:6vh;width:330px;height:96px;border:0;background:none;cursor:pointer;color:#fff;
  transform-origin:100% 50%;animation:sway 5.5s ease-in-out infinite;transition:transform 1.1s cubic-bezier(.6,0,.2,1),opacity .6s ease .5s}
.tail-cloth{position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(255,190,215,.28),transparent 38%,rgba(40,0,15,.4)),
    linear-gradient(90deg,rgba(40,0,15,.35),transparent 30%),
    url(../img/fern.jpg) 40% 55%/120% auto,var(--gele-mid);
  clip-path:polygon(10% 8%,100% 0,100% 100%,7% 92%,0 70%,4% 56%,0 42%,3% 26%)}
.tail-word{position:relative;font:500 15px var(--mono);letter-spacing:.42em;padding-left:.42em;text-shadow:0 1px 6px rgba(40,0,14,.8)}
.tail:hover,.tail:focus-visible{animation-play-state:paused;transform:translateX(-14px) rotate(-1.5deg)}
.tail:focus-visible{outline:2px solid #fff;outline-offset:4px}
@keyframes sway{0%,100%{transform:rotate(0)}50%{transform:rotate(-1.6deg) translateX(-4px)}}
body.open .tail{animation:none;transform:translateX(120%) rotate(-8deg);opacity:0;pointer-events:none}

/* the mark, the rungs, the mute petal: hidden until the door opens */
.mark,.rungs,#mute{opacity:0;transition:opacity .8s ease 1s;pointer-events:none}
body.open .mark,body.open .rungs,body.open #mute{opacity:1;pointer-events:auto}
.mark{position:fixed;z-index:7;left:3vw;top:3.2vh;font-size:11px;color:#fff;text-decoration:none;mix-blend-mode:difference}
body.r0 .mark{opacity:0;pointer-events:none}

.rungs{position:fixed;z-index:7;right:0;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:flex-end;gap:11px}
.rungs a{display:block;width:26px;height:7px;background:linear-gradient(180deg,#d39a5c,var(--wood) 45%,#6d4620);box-shadow:0 2px 3px rgba(0,0,0,.35);transition:width .5s cubic-bezier(.2,.7,.1,1),filter .5s}
.rungs a.on{width:58px;filter:brightness(1.25)}

#mute{position:fixed;z-index:7;right:2.4vw;top:2.2vh;width:auto;height:56px;display:flex;align-items:center;gap:10px;background:none;border:0;cursor:pointer;color:#fff}
#mute .petal{display:block;width:40px;height:54px;order:2;background:url(../media/adire-flower-his-top-s06.jpg) 40% 30%/230px auto,#93819c;
  clip-path:path("M20 0 C36 12 40 34 20 54 C0 34 4 12 20 0 Z");transition:transform .55s cubic-bezier(.5,0,.2,1)}
#mute .mute-word{font-size:10px;mix-blend-mode:difference}
#mute[aria-pressed="true"] .petal{transform:scaleX(.16) rotate(8deg)}
#mute:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* phone */
@media (max-width:700px){
  .name{left:4vw;bottom:19vh;font-size:22vw}
  .line{left:5vw;bottom:14vh;font-size:20px}
  .tail{bottom:3.2vh;width:230px;height:70px}
  .ph-lift{left:-6vw;right:-6vw;top:auto;bottom:0;height:auto;width:112vw;aspect-ratio:4/5;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 26%,#000 100%);mask-image:linear-gradient(180deg,transparent 0,#000 26%,#000 100%)}
  .ph-hands{left:-4vw;top:auto;bottom:0;height:62%;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22%,#000 100%),linear-gradient(90deg,#000 70%,transparent);mask-image:linear-gradient(180deg,transparent 0,#000 22%);}
  .ph-open{left:-10vw;width:120vw;height:auto;top:auto;bottom:0;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 24%);mask-image:linear-gradient(180deg,transparent 0,#000 24%)}
  .half-name{font-size:9.2vw;bottom:4vh}
  .half-name-l{color:var(--ink);text-shadow:0 0 18px rgba(255,250,240,.6)}
  .ph-p1{left:0;top:8vh;width:50vw;height:42vh}
  .ph-p2{left:50vw;top:13vh;width:50vw;height:42vh}
  .ph-p3{left:0;top:50vh;width:50vw;height:42vh}
  .ph-p4{left:50vw;top:55vh;width:50vw;height:42vh}
  .ph-p1,.ph-p2,.ph-p3,.ph-p4{border-width:1.6vw}
  .ph-p1 img{object-position:58% 50%}
  .ph-day{left:-6vw;right:auto;top:auto;bottom:0;height:auto;width:112vw;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 26%);mask-image:linear-gradient(180deg,transparent 0,#000 26%)}
  .w8 .when{left:5vw;top:8vh;font-size:11vw}
  .where2{left:5vw;top:31vh;bottom:auto;width:80vw;font-size:6.6vw}
  .first{left:5vw;top:45vh;bottom:auto;font-size:10px}
  .ph-hall{left:0;width:100vw;height:100%;-webkit-mask-image:none;mask-image:none}
  .ph-ph1{left:4vw;top:auto;bottom:22vh;width:28vw;height:24vh}
  .ph-ph2{right:4vw;top:auto;bottom:30vh;width:28vw;height:24vh}
  .name3{left:5vw;top:8vh;font-size:12vw}
  .last{left:5vw;bottom:4vh;font-size:10px}
  .rsvp-small{right:4vw;bottom:5vh;transform:scale(.62)}
  .rsvp-small:hover,.rsvp-small:focus-visible{transform:scale(.62) rotate(-4deg)}
  .days{font-size:50vw}
  .ph-br{display:inline}
  .count{left:4vw;top:7vh;bottom:auto}
  .unit{font-size:22px;margin-bottom:6vw}
  .countline{left:5vw;right:auto;top:32vh;text-align:left;font-size:9.4vw;white-space:normal;font-variation-settings:'opsz' 6}
  .clock{left:5vw;right:auto;bottom:3vh;font-size:10px}
  .clock span{display:block;font-size:14px;margin:0 0 4px}
  .invite{left:5vw;right:auto;top:8vh;width:62vw;font-size:22px}
  .name2{font-size:13vw;top:7vh;white-space:normal}
  .rsvp{width:120px;height:240px;margin:-96px 0 0 -60px}
  .rsvp b{font-size:28px}
  .excited{bottom:3vh;left:6vw;right:6vw;font-size:15px}
  .card{left:4vw;width:92vw;margin-left:0;top:calc(7vh + 13vw * 1.86 + 12px);padding:22px 22px 160px}
  .w9 .excited{display:none}
  .kick{margin-bottom:12px}
  .field{margin-bottom:8px}
  .field input,.field textarea{font-size:22px}
  .kick,.lab,.err,.status,.joy,.fold-day,.again{font-size:13px;letter-spacing:.06em}
  .kick{padding-right:26px}
  .tabs{gap:8px}
  .tab{height:54px;font-size:18px}
  .joy{left:22px}
  .fold{padding:24px 26px 70px}
  .fold-name{font-size:34px}
  .fold-line{font-size:19px}
  .rungs{gap:9px}
  .rungs a{width:16px;height:6px}
  .rungs a.on{width:34px}
  .mark{left:5vw;top:2.6vh;font-size:10px}
}
@media (prefers-reduced-motion:reduce){
  .grain{animation:none}
  .tail{animation:none}
}

/* legibility (24 Nov): Bodoni's display cut has hairlines that vanish over petals and cloth, so every size uses the
   sturdier text cut; and never one word set in italic: an accent word keeps the line's own weight and slant */
body{font-optical-sizing:none;font-variation-settings:'opsz' 12}
.unit,.when em,.where em,.where2 em{font-style:normal;font-weight:800}
.when em,.where2 em{color:#9c4325}
.w8 .when,.where2,.invite{text-shadow:0 0 .06em rgba(246,241,231,.75),0 0 .5em rgba(246,241,231,.22)}
.line,.excited,.invite{font-weight:500;font-variation-settings:'opsz' 9}
.line{text-shadow:0 1px 3px rgba(30,0,10,.8),0 2px 18px rgba(30,0,10,.7)}
.first{font-weight:500;text-shadow:0 0 6px rgba(246,241,231,.85)}
/* the corner words read on every room, light petals or dark cloth: white, held by a tight dark edge, no blend */
.mark,#mute .lbl,#mute span{mix-blend-mode:normal;color:#fff;text-shadow:0 0 2px rgba(20,10,8,.9),0 1px 8px rgba(20,10,8,.55)}
@media (max-width:700px){ .name{font-size:19.4vw} }
/* the walk away (24 Nov): their phone pictures as die-cut stickers, the two of them lifted out with a cream edge, stuck on at a tilt */
.ph-sticker{overflow:visible}
.ph-sticker img{object-fit:contain;filter:drop-shadow(0 .5vh .5vh rgba(0,0,0,.35)) drop-shadow(0 1.6vh 2.4vh rgba(0,0,0,.4))}
.ph-sticker.ph-ph1{left:3vw;top:22vh;width:27vw;height:58vh}
.ph-sticker.ph-ph1 img{transform:rotate(-5deg)}
.ph-sticker.ph-ph2{left:auto;right:11vw;top:7vh;width:19vw;height:46vh}
.ph-sticker.ph-ph2 img{transform:rotate(6deg)}
/* the day and the place on a phone: the words get a paper ground of their own, the rose shows below it */
.w8{isolation:isolate}
@media (max-width:700px){
  .ph-sticker.ph-ph1{left:2vw;top:auto;bottom:18vh;width:46vw;height:30vh}
  .ph-sticker.ph-ph2{right:2vw;top:auto;bottom:30vh;width:38vw;height:28vh}
  .w8::before{content:'';position:absolute;left:0;right:0;top:0;height:60vh;z-index:-1;
    background:linear-gradient(180deg,rgba(244,239,228,.96) 0,rgba(244,239,228,.93) 80%,rgba(244,239,228,0))}
  .w8 .when,.where2{text-shadow:none}
  .where2{width:90vw;font-size:7.4vw}
  .first{font-size:12.5px;letter-spacing:.12em}
}
/* the walk away (24 Nov): the tie became three plain actions, each a line ruled off like the foot of an invitation */
.w10 .last{display:none}
.acts{position:absolute;right:4vw;bottom:6vh;width:min(40vw,620px);pointer-events:auto;border-top:1px solid rgba(248,244,236,.5)}
.act{position:relative;display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:.2em 1.4em;padding:1.6vh 3.2em 1.6vh 0;
  color:#fbf6ec;text-decoration:none;border-bottom:1px solid rgba(248,244,236,.5);text-shadow:0 1px 3px rgba(0,0,0,.7)}
.act b{font:800 clamp(24px,2.3vw,38px)/1 var(--serif);letter-spacing:-.01em}
.act span{font-size:12.5px;letter-spacing:.12em;color:#efe8da;text-align:right}
.act i{position:absolute;right:0;top:50%;width:1.9em;height:1px;background:#fbf6ec;transition:width .35s cubic-bezier(.2,.7,.1,1)}
.act i::after{content:'';position:absolute;right:0;top:-4px;width:8px;height:8px;border-top:1px solid #fbf6ec;border-right:1px solid #fbf6ec;transform:rotate(45deg)}
.act:hover i,.act:focus-visible i{width:2.8em}
.act:hover b,.act:focus-visible b{color:#f0b9a0}
.act:focus-visible{outline:2px solid #fbf6ec;outline-offset:4px}
@media (max-width:700px){
  .acts{left:5vw;right:5vw;width:auto;bottom:4vh}
  .act{grid-template-columns:1fr;padding:1.3vh 3em 1.3vh 0}
  .act b{font-size:24px}
  .act span{text-align:left;font-size:12px}
  .ph-sticker.ph-ph1{top:19vh;bottom:auto;height:30vh}
  .ph-sticker.ph-ph2{top:31vh;bottom:auto;height:27vh}
}
/* the door (24 Nov): the tail is the drawn gele, not the soft photo, and its edge flashes so a guest knows to press it */
.tail-cloth{background:linear-gradient(180deg,rgba(255,190,215,.34),transparent 38%,rgba(40,0,15,.4)),linear-gradient(90deg,rgba(40,0,15,.35),transparent 30%),var(--gele-tile,none) center/cover,var(--gele-mid)}
.tail{animation:sway 5.5s ease-in-out infinite,edgeflash 1.6s ease-in-out infinite}
.tail-word{font-weight:500;font-size:17px;color:#fff;text-shadow:0 0 2px rgba(30,0,10,.9),0 1px 8px rgba(30,0,10,.8)}
@keyframes edgeflash{
  0%,100%{filter:drop-shadow(0 0 .7px rgba(255,246,236,.6)) drop-shadow(0 0 .7px rgba(255,246,236,.6)) drop-shadow(0 0 0 rgba(255,200,225,0))}
  45%{filter:drop-shadow(0 0 1.4px rgba(255,246,236,1)) drop-shadow(0 0 1.4px rgba(255,246,236,1)) drop-shadow(0 0 16px rgba(255,200,225,.95))}
}
@media (prefers-reduced-motion:reduce){ .tail{filter:drop-shadow(0 0 1.2px #fff6ec) drop-shadow(0 0 1.2px #fff6ec)} }
/* the walk away's actions sit in the middle, clear of the petals at both edges, on a darkened floor */
.w10::before{content:'';position:absolute;left:0;right:0;bottom:0;height:46vh;background:linear-gradient(0deg,rgba(14,12,10,.88),rgba(14,12,10,.6) 55%,rgba(14,12,10,0));pointer-events:none}
.acts{left:50%;right:auto;transform:translateX(-50%);width:min(38vw,560px);bottom:5vh}
.act{grid-template-columns:1fr;padding:1.5vh 3.2em 1.5vh 0}
.act span{text-align:left}
@media (max-width:700px){ .acts{left:5vw;right:5vw;width:auto;transform:none} }
/* the countdown clock (24 Nov): big enough to read across the room, each figure named under it */
.clock{right:3vw;bottom:5vh;font-size:inherit;color:#fbf6ec;text-align:right;text-shadow:0 1px 3px rgba(10,12,6,.7),0 2px 18px rgba(10,12,6,.5)}
.clock-row{display:flex;gap:2.2vw;justify-content:flex-end}
.cu{display:flex;flex-direction:column;align-items:flex-end}
.cu b{font:800 clamp(44px,6.4vw,104px)/.9 var(--serif);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.cu i{font-style:normal;font-size:13px;letter-spacing:.16em;margin-top:.7vh;color:#f3ecdd}
.clock-to{margin-top:2.2vh;font-size:14px;letter-spacing:.14em}
/* her portrait: zoom from the top of the frame so her head stays in */
.ph-half-l img{transform:scale(1.3);transform-origin:50% 0}
@media (max-width:700px){
  .clock{left:5vw;right:5vw;bottom:3.5vh;text-align:left}
  .clock-row{justify-content:flex-start;gap:5vw}
  .cu{align-items:flex-start}
  .cu b{font-size:13vw}
  .cu i{font-size:11.5px}
  .clock-to{font-size:12.5px}
}
.clock .cu{display:flex;margin:0;font-size:inherit;letter-spacing:0;color:inherit}
/* room 1 (24 Nov): the arc read badly over the cloth; the words now sit straight across the dark heart of the rose */
.w1 .arc{display:none}
.w1::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 60% 55% at 50% 52%,rgba(22,0,10,.72),rgba(22,0,10,.35) 60%,rgba(22,0,10,0) 100%);pointer-events:none}
.wed{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);text-align:center;color:#fbf6ec;font-weight:800;line-height:.86;
  text-shadow:0 2px 4px rgba(20,0,8,.6),0 6px 40px rgba(20,0,8,.55)}
.wed span{display:block;font-size:clamp(26px,4.2vw,68px);letter-spacing:.06em;margin-bottom:1.6vh}
.wed b{display:block;font-size:15.5vw;letter-spacing:-.03em}
@media (max-width:700px){ .wed span{font-size:7.4vw} .wed b{font-size:16.5vw} }
/* Joshua's notes, 24 Nov late */
/* 1. the invite line reads from across the room */
.invite{width:min(46vw,760px);font-size:clamp(34px,4.3vw,72px);line-height:1.05}
/* 4. the walk away: the bright hallway goes dark so the words and stickers carry */
.ph-hall img{filter:brightness(.56) contrast(1.05)}
@media (max-width:700px){
  .invite{left:5vw;right:5vw;width:auto;font-size:8.8vw}
  /* 2. the day and the place: words in the top third, their faces fully below the paper */
  .w8 .when{top:7vh}
  .where2{top:22vh}
  .first{top:32vh}
  .w8::before{height:40vh;background:linear-gradient(180deg,rgba(244,239,228,.96) 0,rgba(244,239,228,.93) 78%,rgba(244,239,228,0))}
  .ph-day{left:0;width:100vw;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 7%);mask-image:linear-gradient(180deg,transparent 0,#000 7%)}
  /* 3. the reply: the names and the card sit together in the middle of the screen */
  .w9{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2.4vh}
  .w9 .name2{position:relative;top:auto;left:auto;right:auto}
  .w9 .card{position:relative;top:auto;left:auto;margin:0}
}
/* the reply's send (24 Nov): the tie is gone; a full-width cut ribbon in her gele's magenta, the same cloth as "Joyfully, yes" */
.card{padding-bottom:30px}
.card-bg{inset:0}
.card .send{position:relative;left:auto;bottom:auto;top:auto;display:flex;align-items:center;justify-content:space-between;width:100%;height:62px;margin:20px 0 0;padding:0 24px 0 26px;
  border:0;border-radius:0;cursor:pointer;color:#fbf6ec;background:linear-gradient(100deg,#7a1640,#8e1f4c 45%,#9a2756 55%,#7a1640);
  clip-path:polygon(0 0,100% 0,calc(100% - 14px) 50%,100% 100%,0 100%);filter:none;animation:none;transition:transform .35s cubic-bezier(.2,.7,.1,1),filter .35s ease}
.card .send b{font:800 22px/1 var(--serif);letter-spacing:.01em;margin:0;text-shadow:0 0 1px rgba(20,4,10,.9),0 1px 2px rgba(20,4,10,.6)}
.card .send i{position:relative;width:34px;height:1.5px;background:#fbf6ec;margin-right:12px;transition:width .35s cubic-bezier(.2,.7,.1,1)}
.card .send i::after{content:'';position:absolute;right:0;top:-4px;width:8px;height:8px;border-top:1.5px solid #fbf6ec;border-right:1.5px solid #fbf6ec;transform:rotate(45deg)}
.card .send:hover{transform:translateY(-2px)}
.card .send:hover i{width:46px}
.card .send:focus-visible{outline:none}
.card .send:focus-visible b{outline:2px solid #fbf6ec;outline-offset:6px}
.card.sending .send{animation:none;filter:brightness(.9)}
.card.sending .send i{animation:sendgo 1s ease-in-out infinite}
@keyframes sendgo{50%{width:52px}}
.joy{position:relative!important;left:auto;bottom:auto;display:inline-block;margin-top:16px}
@media (max-width:700px){ .card{padding-bottom:22px} .card .send{height:58px} .card .send b{font-size:20px} }
/* sound: a speaker everyone knows, its waves crossed out when muted */
#mute{gap:10px;height:48px;padding:0 4px}
#mute .spk{order:2;width:30px;height:30px;overflow:visible;filter:drop-shadow(0 0 1.5px rgba(20,10,8,.9)) drop-shadow(0 1px 6px rgba(20,10,8,.5))}
#mute .spk path{fill:none;stroke:#fff;stroke-width:2;stroke-linejoin:miter;stroke-linecap:square}
#mute .spk .spk-body{fill:#fff}
#mute .spk-x{display:none}
#mute[aria-pressed="true"] .spk-w1,#mute[aria-pressed="true"] .spk-w2{display:none}
#mute[aria-pressed="true"] .spk-x{display:inline}
#mute .mute-word{font-size:11px}
/* the names stay only in the hero, the corner mark and the last room (24 Nov); the reply card now centres on its own */
.w9{display:flex;flex-direction:column;justify-content:center;align-items:center}
.w9 .card{position:relative;top:auto;left:auto;margin:0}
/* the reply (24 Nov): one big question first; the rest of the card unfolds once they answer */
.ask{font:800 clamp(34px,3.2vw,48px)/1 var(--serif);letter-spacing:-.015em;color:var(--ink);margin:2px 0 16px}
.choice{margin-bottom:6px}
.rest{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .6s cubic-bezier(.2,.7,.1,1),opacity .45s ease .1s,visibility 0s linear .6s}
.rest-in{min-height:0;overflow:hidden;padding-top:14px}
.card.chosen .rest{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows .6s cubic-bezier(.2,.7,.1,1),opacity .45s ease .1s,visibility 0s}
@media (max-width:700px){ .ask{font-size:9.6vw;margin-bottom:12px} }
/* the walk away's actions on a sticker card (24 Nov): cream paper, a white die-cut edge, stuck on at a slight tilt, dark ink */
.acts{background:#f6f1e6;border:0;outline:9px solid #fffdf8;padding:6px 26px;rotate:-1.6deg;
  box-shadow:0 0 0 10px rgba(0,0,0,.08),0 18px 34px rgba(0,0,0,.45),0 4px 8px rgba(0,0,0,.3)}
.acts .act{color:var(--ink);text-shadow:none;border-bottom:1px solid rgba(36,26,18,.28)}
.acts .act:last-child{border-bottom:0}
.acts .act span{color:#5a4a3a}
.acts .act i,.acts .act i::after{background:var(--ink);border-color:var(--ink)}
.acts .act i::after{background:none}
.acts .act:hover b,.acts .act:focus-visible b{color:#7e153c}
.acts .act:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media (max-width:700px){ .acts{left:6vw;right:6vw;padding:2px 18px;outline-width:7px;rotate:-1deg;bottom:5vh} }
/* the room's reveal owns transform, so the card centres with translate */
.acts{transform:none;translate:-50% 0}
@media (max-width:700px){ .acts{translate:none} }
/* the walk moves room to room (main.js); the page itself never free-scrolls once the door is open */
html:has(body.open),body.open{overflow:hidden;overscroll-behavior:none}
/* the foot of the page */
.copy{position:absolute;left:0;right:0;bottom:1.4vh;text-align:center;font-size:11px;letter-spacing:.16em;color:#e9e1d2;text-shadow:0 1px 4px rgba(0,0,0,.8)}
@media (max-width:700px){ .acts{bottom:6.5vh} .copy{bottom:1.6vh;font-size:10.5px} }
/* a tap on a phone must not leave a hover colour behind */
@media (hover:none){ .acts .act:hover b{color:var(--ink)} .card .send:hover{transform:none} }

/* the three layered photos (24 Nov): their wall is drawn full-screen in the back canvas, so the figure holds only the
   couple, cut out; no mask, or the cut edge would fade twice. Petals drifting behind pass between wall and couple. */
.ph[data-layer]:not(.flat){-webkit-mask-image:none!important;mask-image:none!important}
.ph[data-layer] img{object-position:50% 50%!important}
/* countdown (24 Nov): the clock sits over his legs; a shade rising from the floor, darkest under the clock's corner,
   clear by mid-screen so the lift stays bright */
.w3::before{content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 52% 46% at 88% 100%,rgba(8,10,5,.62),rgba(8,10,5,.28) 55%,rgba(8,10,5,0) 100%),
             linear-gradient(0deg,rgba(8,10,5,.55) 0,rgba(8,10,5,.3) 18%,rgba(8,10,5,0) 46%)}
@media (max-width:700px){
  .w3::before{background:linear-gradient(0deg,rgba(8,10,5,.78) 0,rgba(8,10,5,.5) 20%,rgba(8,10,5,0) 42%)}
}
/* sentences upright (24 Nov): the italic Bodoni read as wedding-template script; the invite, the hero line and the
   thank-you now use the headings' upright 800 cut */
.invite,.line,.excited,.fold-line{font-style:normal;font-weight:800;font-variation-settings:'opsz' 12;letter-spacing:-.01em}
.invite{font-size:clamp(30px,3.7vw,62px);line-height:1.04}
@media (max-width:700px){ .invite{font-size:8vw} }
