:root{--cream:#f8f5ef;--ink:#282821;--muted:#77746a;--olive:#6a7156;--line:#dedbd2;--serif:'Playfair Display',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);font-size:14px}a{color:inherit;text-decoration:none}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 6.5%;position:absolute;z-index:4;top:0;left:0;width:100%;color:white;border-bottom:1px solid #ffffff42}.monogram{font-family:var(--serif);font-size:19px;letter-spacing:.11em}.monogram span{font-style:italic;font-size:15px}.topbar nav{display:flex;align-items:center;gap:38px;font-size:11px;letter-spacing:.06em}.topbar nav a{opacity:.9;transition:opacity .2s}.topbar nav a:hover{opacity:1}.nav-rsvp{border:1px solid #ffffff9c;padding:12px 17px}.nav-rsvp span{padding-left:14px}.menu-toggle{display:none;color:inherit;background:none;border:0;font-size:22px}.hero{height:min(820px,100svh);min-height:620px;position:relative;color:#fff;display:grid;place-items:center;text-align:center;overflow:hidden}.hero-image,.hero-shade{position:absolute;inset:0}.hero-image{background-image:url('https://images.unsplash.com/photo-1537633552985-df8429e8048b?auto=format&fit=crop&w=2200&q=85');background-size:cover;background-position:center 43%;transform:scale(1.015);animation:heroIn 1.5s ease-out both}.hero-shade{background:linear-gradient(180deg,#20211957 0%,#24241c38 38%,#201f1b75 100%)}.hero-copy{position:relative;margin-top:40px;animation:fadeUp .9s .1s both}.eyebrow{font-size:9px;letter-spacing:.22em;font-weight:600;color:var(--olive);margin:0 0 23px}.eyebrow.light{color:#ffffffc9}.hero h1{font:400 clamp(58px,9vw,116px)/.99 var(--serif);letter-spacing:-.055em;margin:0}.hero h1 i{font-size:.58em;font-weight:400}.hero-subtitle{font:italic 16px var(--serif);color:#ffffffdb;margin:25px 0 38px}.round-link{border:1px solid #ffffffad;width:43px;height:43px;border-radius:50%;display:inline-grid;place-items:center;font-size:17px;transition:.25s}.round-link:hover{background:white;color:var(--ink)}.hero-caption{position:absolute;bottom:28px;left:6.5%;font-size:8px;letter-spacing:.2em;color:#ffffffc9}.section{padding:120px 24px}.intro{text-align:center;max-width:760px;margin:auto;padding-top:132px;padding-bottom:115px}.intro-mark{font:24px var(--serif);letter-spacing:.12em;margin-bottom:54px}.intro-mark span{font-style:italic}.intro h2,.details h2,.rsvp h2{font:400 clamp(39px,5vw,61px)/1.17 var(--serif);letter-spacing:-.035em;margin:0}.intro h2 em,.details h2 em,.rsvp h2 em,.story-note h2 em,.countdown-content h2 em,.closing h2 em{font-weight:400;color:var(--olive)}.intro-text{max-width:470px;margin:25px auto 0;color:var(--muted);line-height:1.9;font-size:13px}.flourish{color:#a3a183;font-size:26px;margin-top:33px}.photo-story{min-height:680px;padding:0 7%;display:grid;grid-template-columns:1fr .85fr 1fr;align-items:center;gap:5%;background:#f0ede5}.story-photo{background-size:cover;background-position:center;min-height:420px}.story-photo-one{height:500px;background-image:url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1000&q=85');align-self:start;margin-top:64px}.story-photo-two{height:390px;background-image:url('https://images.unsplash.com/photo-1522673607200-164d1b6ce486?auto=format&fit=crop&w=1000&q=85');align-self:end;margin-bottom:64px}.story-note{padding:20px 0}.story-note .eyebrow{margin-bottom:20px}.story-note h2{font:400 clamp(32px,4vw,48px)/1.25 var(--serif);letter-spacing:-.035em;margin:0 0 23px}.story-note>p:not(.eyebrow){font-size:12px;line-height:1.9;color:var(--muted)}.handwritten{display:block;margin-top:28px;font:italic 18px var(--serif);color:var(--olive)}.details{text-align:center;padding-top:125px;padding-bottom:130px}.details h2{margin-bottom:28px}.date-large{font:400 20px var(--serif);letter-spacing:.14em;margin:0;color:#676856}.date-large span{color:#b6ae95;padding:0 6px}.details-grid{max-width:790px;margin:58px auto 0;display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line)}.detail-card{padding:37px 24px 41px}.detail-card+ .detail-card{border-left:1px solid var(--line)}.featured-card{background:#efede5}.detail-icon{display:block;font:italic 15px var(--serif);color:#99977e;margin-bottom:22px}.detail-card .eyebrow{margin-bottom:13px}.detail-card h3{font:400 26px var(--serif);margin:0 0 13px}.detail-card p:not(.eyebrow){font-size:11px;line-height:1.8;color:var(--muted);margin:0 0 18px}.detail-card a{font-size:10px;letter-spacing:.06em;border-bottom:1px solid #a9a58e;padding-bottom:4px}.countdown-section{height:490px;position:relative;color:white;display:grid;place-items:center;text-align:center;overflow:hidden}.countdown-photo{position:absolute;inset:0;background:url('https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=2000&q=85') center 52%/cover}.countdown-section:after{content:'';position:absolute;inset:0;background:#28282075}.countdown-content{position:relative;z-index:1}.countdown-content h2{font:400 49px/1.1 var(--serif);margin:0 0 31px}.countdown-content h2 em{color:#e3dfca}.countdown{display:flex;justify-content:center;align-items:flex-start;gap:21px}.countdown div{display:grid;gap:5px;min-width:54px}.countdown strong{font:400 32px var(--serif)}.countdown span{font-size:8px;letter-spacing:.16em;color:#ffffffc7}.countdown>i{font:20px var(--serif);color:#ffffffa6}.rsvp{text-align:center;padding-top:126px;padding-bottom:120px}.rsvp h2{margin-bottom:17px}.rsvp-copy{max-width:390px;margin:0 auto 30px;color:var(--muted);font-size:12px;line-height:1.8}.button{display:inline-flex;align-items:center;gap:30px;padding:16px 21px;background:var(--olive);color:white;font-size:10px;letter-spacing:.08em;transition:background .2s}.button:hover{background:#515840}.button span{font-size:14px}.rsvp-note{font:italic 14px var(--serif);color:#898675;margin-top:27px}.closing{height:540px;position:relative;color:white;display:grid;place-items:center;text-align:center}.closing-image,.closing-overlay{position:absolute;inset:0}.closing-image{background:url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=2000&q=85') center 48%/cover}.closing-overlay{background:#25251f78}.closing-copy{position:relative}.closing-copy .eyebrow{margin-bottom:18px}.closing h2{font:400 clamp(44px,6vw,70px)/1.08 var(--serif);margin:0 0 28px}.closing h2 em{color:#e8e2d2}.closing-copy>p:last-child{font-size:8px;letter-spacing:.2em;color:#ffffffcf}footer{height:88px;padding:0 6.5%;display:flex;align-items:center;justify-content:space-between}footer .monogram{font-size:17px}footer p,footer .back-top{font-size:9px;color:var(--muted);letter-spacing:.06em}.back-top{border-bottom:1px solid var(--line);padding-bottom:5px}@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes heroIn{from{transform:scale(1.07);filter:brightness(.8)}to{transform:scale(1.015);filter:brightness(1)}}
@media(max-width:760px){.topbar{height:65px;padding:0 6%}.topbar nav{display:none;position:absolute;top:65px;left:0;right:0;background:var(--cream);color:var(--ink);padding:22px 6%;flex-direction:column;align-items:flex-start;gap:22px}.topbar nav.open{display:flex}.nav-rsvp{border-color:var(--line)}.menu-toggle{display:block}.hero{min-height:650px;height:92svh}.hero-image{background-position:55% center}.hero h1{font-size:clamp(57px,14vw,90px)}.hero-subtitle{font-size:14px;padding:0 20px}.hero-caption{left:0;width:100%;text-align:center}.section{padding:88px 22px}.intro{padding-top:90px;padding-bottom:82px}.intro-mark{margin-bottom:40px}.intro-text{font-size:12px}.photo-story{padding:45px 7%;grid-template-columns:1fr 1fr;gap:18px;min-height:unset}.story-photo-one{height:310px;min-height:0;margin:0}.story-note{grid-column:1/-1;grid-row:2;padding:18px 5px 22px}.story-photo-two{height:270px;min-height:0;margin:0;grid-column:2;grid-row:1}.story-note h2{font-size:36px}.details-grid{margin-top:40px;grid-template-columns:1fr}.detail-card{padding:31px 18px}.detail-card+.detail-card{border-left:0;border-top:1px solid var(--line)}.countdown-section{height:410px}.countdown-content h2{font-size:42px}.countdown{gap:10px}.countdown div{min-width:50px}.countdown strong{font-size:27px}.countdown span{font-size:7px}.rsvp{padding-top:90px;padding-bottom:90px}.closing{height:450px}footer{padding:0 5%;height:78px}footer p{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Photo album and wedding gift details */
.gallery-section{max-width:1240px;margin:auto;padding-top:110px;padding-bottom:115px}
.gallery-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:34px}
.gallery-heading h2,.gift-section h2{font:400 clamp(38px,5vw,57px)/1.15 var(--serif);letter-spacing:-.035em;margin:0}
.gallery-heading h2 em,.gift-section h2 em{font-weight:400;color:var(--olive)}
.gallery-heading>p{max-width:220px;color:var(--muted);font-size:11px;line-height:1.8;margin:0 0 5px}
.gallery-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;grid-template-rows:220px 220px;gap:12px}
.gallery-item{padding:0;border:0;background:#e8e5dc;overflow:hidden;cursor:zoom-in;position:relative}
.gallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.gallery-item:hover img{transform:scale(1.045)}
.gallery-tall{grid-row:span 2}.gallery-wide{grid-column:span 2}
.gallery-hint{text-align:right;font-size:9px;letter-spacing:.06em;color:#969285;margin:14px 0 0}
.gift-section{text-align:center;background:#efede5;padding-top:105px;padding-bottom:112px}
.gift-copy{max-width:490px;margin:20px auto 34px;color:var(--muted);font-size:12px;line-height:1.9}
.gift-card{max-width:760px;margin:auto;padding:32px;background:var(--cream);display:grid;grid-template-columns:220px 1fr;gap:38px;align-items:center;text-align:left;border:1px solid var(--line)}
.qr-placeholder{width:200px;aspect-ratio:1;background:repeating-linear-gradient(45deg,#efede5 0 6px,#f8f5ef 6px 12px);border:1px dashed #b8b4a5;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#77746a;text-align:center;gap:10px}
.qr-placeholder span{font:italic 53px var(--serif);color:#99977e}.qr-placeholder small{font-size:8px;line-height:1.6;letter-spacing:.13em}
.gift-info .eyebrow{margin-bottom:17px}.gift-info dl{margin:0}.gift-info dl div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:10px}.gift-info dt{color:var(--muted)}.gift-info dd{margin:0;font-weight:600;text-align:right}.gift-reminder{font-size:9px;line-height:1.6;color:#9a755f;margin:13px 0 0}
.lightbox{border:0;padding:0;background:#161612ed;max-width:min(92vw,1100px);max-height:92vh;overflow:visible}.lightbox::backdrop{background:#171713e8}.lightbox img{display:block;max-width:90vw;max-height:86vh;object-fit:contain}.lightbox-close{position:absolute;right:-14px;top:-15px;border:0;border-radius:50%;width:36px;height:36px;background:var(--cream);font-size:25px;cursor:pointer;color:var(--ink)}
@media(max-width:760px){.gallery-section{padding-top:80px;padding-bottom:82px}.gallery-heading{display:block}.gallery-heading>p{margin-top:14px}.gallery-grid{grid-template-columns:1fr 1fr;grid-template-rows:190px 150px 190px;gap:8px}.gallery-tall{grid-row:span 2}.gallery-wide{grid-column:span 2}.gallery-hint{font-size:8px}.gift-section{padding-top:82px;padding-bottom:86px}.gift-card{grid-template-columns:1fr;justify-items:center;gap:25px;padding:24px 18px}.gift-info{width:100%}.gift-info dl div{font-size:9px}.gift-copy{max-width:390px}.lightbox-close{right:-8px;top:-42px}}

/* Sang & Thu custom invitation identity */
:root{--olive:#9a5a47;--cream:#f6f0e8;--ink:#28231f;--line:#ded2c5;--sans:'DM Sans',Arial,sans-serif}
body{background:#f6f0e8}.topbar{font-family:var(--sans);font-size:10px}.hero-image{background-image:url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=2200&q=90');background-position:center 42%;filter:saturate(.76)}.hero-shade{background:linear-gradient(180deg,#17151270 0%,#201a1960 48%,#17151286 100%)}.hero-copy{border:1px solid #fff9;padding:38px 54px 35px;backdrop-filter:blur(2px)}.hero h1{font-size:clamp(75px,12vw,150px);letter-spacing:-.075em}.hero h1 i{font-family:var(--sans);font-size:.28em;font-style:normal;vertical-align:middle;letter-spacing:0;color:#e6c8a8}.hero .eyebrow{font-family:var(--sans);font-size:8px;letter-spacing:.12em}.hero-caption{font-family:var(--sans)}.hero-stamp{position:absolute;right:6.5%;top:115px;width:66px;height:66px;border:1px solid #ffffffad;border-radius:50%;display:grid;place-content:center;text-align:center;font:12px/1.15 var(--sans);transform:rotate(10deg);color:#fff}.hero-stamp span{font-size:12px;color:#e6c8a8}
.intro{position:relative;max-width:820px}.letter-topline{display:flex;justify-content:space-between;max-width:470px;margin:0 auto 48px;font:8px var(--sans);letter-spacing:.12em;color:#a1745f}.intro-mark{font:italic 19px var(--serif);color:#8e6653;margin-bottom:22px}.intro h2 em,.details h2 em,.rsvp h2 em,.story-note h2 em,.gallery-heading h2 em,.gift-section h2 em{color:#9a5a47}.intro-text{font-size:13px}.letter-signature{font:italic 14px/1.8 var(--serif);color:var(--muted);margin:27px auto 0}.letter-signature span{font-size:23px;color:var(--olive)}.flourish{display:none}
.photo-story{background:#eae1d5}.story-photo-one,.story-photo-two{filter:saturate(.72)}.story-note .eyebrow,.gallery-section .eyebrow,.details>.eyebrow,.rsvp>.eyebrow,.gift-section>.eyebrow{font-family:var(--sans);letter-spacing:.1em}.story-note h2{font-size:clamp(32px,3.4vw,44px)}.handwritten{font-size:15px;color:#9a5a47}
.gallery-section{max-width:none;padding-left:max(7%,calc((100% - 1120px)/2));padding-right:max(7%,calc((100% - 1120px)/2));background:#f8f5ef}.gallery-grid{grid-template-columns:1.1fr .9fr 1.05fr;grid-template-rows:260px 200px;gap:7px}.gallery-item{background:#e9ded2}.gallery-item img{filter:saturate(.82)}.gallery-item:nth-child(2){transform:translateY(22px)}.gallery-item:nth-child(3){transform:translateY(22px)}.gallery-wide{transform:translateY(-12px)}
.details{background:#eee5d9}.date-large{font:13px var(--sans);letter-spacing:.1em;color:#936c58}.details-grid{border-color:#d7c7b8}.detail-card+.detail-card{border-color:#d7c7b8}.featured-card{background:#e8dccd}.detail-icon{font-family:var(--sans);color:#a37c67}
.countdown-section{height:430px}.countdown-photo{filter:saturate(.68)}.countdown-section:after{background:#34231f85}.countdown-content h2 em,.closing h2 em{color:#e3c7b2}.countdown strong{font-family:var(--sans);font-size:27px}
.rsvp{background:#f8f5ef}.rsvp .button{background:#9a5a47}.rsvp .button:hover{background:#784533}.gift-section{background:#eae1d5}.gift-card{border-color:#d7c7b8;box-shadow:8px 8px 0 #d8c8b8}.qr-placeholder{background-color:#faf7f0}.closing-image{filter:saturate(.72)}.closing-overlay{background:#30211f82}.closing h2 em{color:#f1d5bd}footer{font-family:var(--sans)}
@media(max-width:760px){.hero-copy{padding:31px 18px 27px;width:calc(100% - 38px)}.hero h1{font-size:clamp(67px,18vw,100px)}.hero-stamp{top:87px;right:7%;width:52px;height:52px;font-size:10px}.hero-caption{font-size:7px}.letter-topline{margin-bottom:36px}.gallery-grid{grid-template-rows:190px 150px 190px}.gallery-item:nth-child(2),.gallery-item:nth-child(3),.gallery-wide{transform:none}}

/* Palette and hand-drawn details sampled from the couple's printed invitation */
:root{--cream:#fffdf9;--ink:#555942;--muted:#7c7e68;--olive:#6f7452;--line:#e6dfd8;--pink:#f18da5;--blue:#9bcce5;--yellow:#f4ce59;--green:#a8c47a}
body{background:#fffdf9;color:var(--ink)}.topbar{color:#6f7452;border-bottom-color:#f18da55c;background:#fffdf9ed;position:sticky;top:0;height:68px}.topbar nav a{opacity:1}.nav-rsvp{border-color:#f18da5}.hero{height:690px;min-height:590px;background:#f49aae;color:#66694e}.hero-image{inset:8% 13%;background-image:url('https://images.unsplash.com/photo-1537633552985-df8429e8048b?auto=format&fit=crop&w=1800&q=85');background-position:center 43%;filter:saturate(.62);clip-path:inset(0 round 48% 48% 4px 4px);opacity:.2}.hero-shade{inset:8% 13%;background:linear-gradient(180deg,#fffdf923,#f49aae80);clip-path:inset(0 round 48% 48% 4px 4px)}.hero-copy{border:1px solid #f18da5;background:#fffdf9ed;color:#66694e;backdrop-filter:none;padding:46px 70px 40px;box-shadow:0 0 0 8px #fffdf9,0 0 0 9px #f18da5}.hero .eyebrow{color:#ef7895}.hero-subtitle{color:#72765a}.hero h1{font-size:clamp(53px,8vw,94px);letter-spacing:-.04em}.hero h1 i{color:#f18da5;font-family:var(--serif);font-style:italic}.round-link{border-color:#f18da5;color:#ef7895}.round-link:hover{background:#f18da5;color:white}.hero-caption{color:#65694d;left:0;width:100%;text-align:center}.hero-stamp{border-color:#f18da5;color:#e87796;background:#fce3e9;right:calc(13% - 26px);top:80px}
.intro{background:#fffdf9}.letter-topline{color:#ed819a}.intro-mark{color:#737755}.intro h2 em,.details h2 em,.rsvp h2 em,.story-note h2 em,.gallery-heading h2 em,.gift-section h2 em{color:#777b58}.letter-signature span{color:#777b58}.photo-story{background:#fcebf0;position:relative}.photo-story:before,.photo-story:after{position:absolute;z-index:2;color:#ef88a0;font-size:32px;line-height:1}.photo-story:before{content:'✿';top:24px;left:4%}.photo-story:after{content:'✿';right:4%;bottom:20px;color:#9ecde3}.story-photo-one,.story-photo-two{filter:saturate(.6);border:5px solid #fffdf9;outline:1px solid #f18da5}.story-note h2 em{color:#777b58}.gallery-section{background:#fffdf9}.gallery-item{border:1px solid #f2c6d0;background:#fae7ec}.gallery-item img{filter:saturate(.64)}.gallery-item:nth-child(2),.gallery-item:nth-child(3){transform:translateY(22px)}.gallery-wide{transform:translateY(-12px)}.gallery-item:after{content:'✿';position:absolute;right:12px;top:8px;color:#f18da5;font-size:17px;text-shadow:0 1px 5px white}.details{background:#f9e7ec}.details-grid{border-color:#edb9c5;background:#fffdf9}.detail-card+.detail-card{border-color:#edb9c5}.featured-card{background:#fff7f4}.detail-icon{color:#ed819a}.detail-card a{border-color:#f18da5;color:#747853}.date-large{color:#6f7452}.date-large span{color:#ef8fa5}.countdown-section{height:410px;background:#f49aae}.countdown-photo{filter:saturate(.5);opacity:.26}.countdown-section:after{background:#ed94a8a6}.countdown-content h2 em,.closing h2 em{color:#fff4bf}.countdown strong{font-family:var(--serif);font-size:32px}.rsvp{background:#fffdf9}.rsvp .button{background:#f18da5;color:#fff}.rsvp .button:hover{background:#df6f8b}.gift-section{background:#eaf4f7}.gift-card{background:#fffdf9;border-color:#a8cfe1;box-shadow:8px 8px 0 #d6e9ed}.qr-placeholder{border-color:#9bcce5;background:#f9fcfd}.qr-placeholder span{color:#83b8d1}.gift-reminder{color:#b77959}.closing{background:#f49aae}.closing-image{filter:saturate(.4);opacity:.23}.closing-overlay{background:#f18da587}.closing h2 em{color:#fff5bf}.closing-copy .eyebrow{color:white}footer{background:#fffdf9;color:#777b58}
@media(max-width:760px){.topbar{height:62px;background:#fffdf9f2}.topbar nav{background:#fffdf9}.hero{height:690px;min-height:630px}.hero-image,.hero-shade{inset:12% 5%}.hero-copy{padding:38px 19px 33px;width:calc(100% - 52px)}.hero h1{font-size:clamp(48px,13vw,76px)}.hero-stamp{right:5%;top:76px;width:48px;height:48px}.photo-story:before{left:5%;top:10px}.photo-story:after{right:5%;bottom:6px}.gallery-item:nth-child(2),.gallery-item:nth-child(3),.gallery-wide{transform:none}}

/* The invitation opens like the couple's printed envelope */
.is-opening{overflow:hidden}.invitation-opening{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:23px;background:#f49aae;color:#66694e;text-align:center;transition:opacity .7s ease,visibility .7s ease;overflow:hidden}.invitation-opening:before,.invitation-opening:after{content:'✿';position:absolute;color:#fce1e8;font-size:clamp(72px,14vw,170px);opacity:.72;animation:floatFlower 5s ease-in-out infinite}.invitation-opening:before{left:7%;top:12%;transform:rotate(-18deg)}.invitation-opening:after{right:8%;bottom:10%;color:#a8d4e6;animation-delay:-2s}.opening-copy{position:relative;z-index:1}.opening-copy .eyebrow{color:#fff;font-size:8px;margin-bottom:14px}.opening-copy h1{font:400 clamp(34px,5vw,55px)/1.15 var(--serif);margin:0;letter-spacing:-.03em}.opening-copy h1 i{font-size:.7em;color:#fff;font-weight:400}.opening-copy>p:last-child{font:10px var(--sans);letter-spacing:.12em;margin:12px 0 0;color:#fff}.envelope{width:min(390px,78vw);height:min(245px,49vw);min-height:180px;position:relative;perspective:900px;filter:drop-shadow(0 18px 24px #924a5940);margin:4px 0}.envelope-back{position:absolute;inset:0;background:#fffdf9;border:1px solid #f18da5;border-radius:5px}.envelope-card{position:absolute;z-index:1;left:10%;right:10%;top:8%;height:84%;background:#fff;border:1px solid #efc6cf;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#737755;transition:transform .8s cubic-bezier(.2,.75,.2,1);box-shadow:0 2px 5px #694b4c12}.envelope-card span{font:italic 27px var(--serif)}.envelope-card i{color:#f18da5;font-style:normal}.envelope-card small{font:8px var(--sans);letter-spacing:.18em;margin-top:8px;color:#a2a084}.envelope-flap{position:absolute;z-index:4;left:0;right:0;top:0;height:55%;background:#fff1f4;clip-path:polygon(0 0,100% 0,50% 100%);transform-origin:top;transition:transform .65s ease;backface-visibility:hidden;border-top:1px solid #f18da5}.envelope-front{position:absolute;inset:0;z-index:3;clip-path:polygon(0 0,50% 55%,100% 0,100% 100%,0 100%);background:linear-gradient(145deg,#fffdf9,#fff7f8 72%);border:1px solid #f18da5;border-radius:5px}.envelope-seal{position:absolute;z-index:5;left:50%;top:47%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;background:#f18da5;color:#fff;display:grid;place-content:center;font:11px/1.1 var(--serif);box-shadow:0 2px 8px #a4435a35;transition:opacity .2s}.envelope-seal span{font-size:10px}.open-invitation{position:relative;z-index:2;border:1px solid #fff;background:#fffdf9;color:#8b705d;padding:14px 25px;font:10px var(--sans);letter-spacing:.1em;cursor:pointer;transition:background .2s,transform .2s}.open-invitation:hover{background:#fff;transform:translateY(-2px)}.open-invitation span{margin-left:15px;color:#f18da5}.opening-footnote{position:absolute;bottom:24px;font:7px var(--sans);letter-spacing:.16em;color:#fff}.invitation-opening.is-opening .envelope-flap{transform:rotateX(180deg)}.invitation-opening.is-opening .envelope-card{transform:translateY(-80px) scale(1.04)}.invitation-opening.is-opening .envelope-seal{opacity:0}.invitation-opening.is-gone{opacity:0;visibility:hidden;pointer-events:none}
.hero-image{background-image:url('assets/photos/01-beach.jpg');background-position:center 47%;filter:saturate(.93);opacity:1;transform:scale(1.025)}.hero-shade{background:linear-gradient(180deg,#4b293538 0%,#2f30312d 42%,#58383d6b 100%)}.hero-copy{animation:fadeUp .9s .12s both}.hero-subtitle{max-width:430px;margin-left:auto;margin-right:auto}.hero h1 i{font-size:.53em;color:#f8d9dc}.story-photo-one{background-image:url('assets/photos/05-00787.jpg');background-position:center 28%;filter:saturate(.92)}.story-photo-two{background-image:url('assets/photos/21-00626.jpg');background-position:center 35%;filter:saturate(.92)}.countdown-photo{background-image:url('assets/photos/09-00979.jpg');background-position:center 42%;filter:saturate(.78);opacity:1}.countdown-section:after{background:linear-gradient(180deg,#211c1c85,#211c1c57 32%,#211c1c0d 57%)}.closing-image{background-image:url('assets/photos/10-00991.jpg');background-position:center 52%;filter:saturate(.82);opacity:1}.closing-overlay{background:linear-gradient(180deg,#36251c35,#302a2480)}
.gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(6,210px);grid-auto-flow:dense;gap:12px}.gallery-item{min-height:0;border:3px solid #fffdf9;box-shadow:0 6px 20px #9a5a4720}.gallery-item img{filter:saturate(.85);transition:transform .6s cubic-bezier(.2,.7,.2,1),filter .6s}.gallery-item:hover img{transform:scale(1.07);filter:saturate(1)}.gallery-tall{grid-row:span 2}.gallery-wide{grid-column:span 2}.gallery-item:after{content:'♡';font-family:var(--serif);font-size:22px;right:11px;top:5px;color:#f18da5;text-shadow:0 1px 7px #fff}.gallery-hint{font:8px var(--sans);letter-spacing:.1em;color:#a27465;margin-top:18px}
.lightbox{width:min(94vw,1200px);max-width:94vw;max-height:94vh;padding:24px 60px 18px;background:#fffaf7;border:1px solid #efbbc7;box-shadow:0 20px 80px #25171955;overflow:visible}.lightbox::backdrop{background:#31201fd9;backdrop-filter:blur(5px)}.lightbox figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px}.lightbox img{max-width:100%;max-height:78vh;object-fit:contain;display:block}.lightbox figcaption{font:italic 14px var(--serif);color:#777b58;text-align:center}.lightbox-close{right:-14px;top:-16px;width:38px;height:38px;border:1px solid #efbbc7;color:#9a5a47}.lightbox-nav{position:absolute;top:48%;width:42px;height:42px;border-radius:50%;border:1px solid #efbbc7;background:#fffdf9;color:#9a5a47;font-size:20px;cursor:pointer}.lightbox-prev{left:10px}.lightbox-next{right:10px}.lightbox-nav:hover,.lightbox-close:hover{background:#fce8ed}
[data-reveal]{opacity:0;transform:translateY(24px);transition:opacity .75s ease,transform .75s cubic-bezier(.2,.7,.2,1)}[data-reveal].is-visible{opacity:1;transform:translateY(0)}.gallery-item[data-reveal]{transition-delay:var(--reveal-delay,0ms),0ms}.photo-story .story-photo{animation:photoDrift 7s ease-in-out infinite alternate}.photo-story .story-photo-two{animation-delay:-3s}.hero-image{animation:heroIn 1.5s ease-out both,heroFloat 16s ease-in-out infinite alternate}.hero-stamp{animation:stampFloat 5s ease-in-out infinite}.closing-image{animation:heroFloat 19s ease-in-out infinite alternate}
@keyframes floatFlower{0%,100%{translate:0 0;rotate:-8deg}50%{translate:0 -16px;rotate:8deg}}@keyframes photoDrift{from{transform:translateY(-4px)}to{transform:translateY(5px)}}@keyframes heroFloat{from{background-position:50% 42%;transform:scale(1.025)}to{background-position:53% 49%;transform:scale(1.07)}}@keyframes stampFloat{0%,100%{translate:0 0;rotate:10deg}50%{translate:0 -6px;rotate:14deg}}
@media(max-width:900px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(9,185px);gap:9px}.gallery-item.gallery-wide{grid-column:span 2}}
@media(max-width:760px){.invitation-opening{gap:22px}.opening-copy h1{font-size:36px}.envelope{width:80vw;height:49vw;min-height:170px}.opening-footnote{font-size:6px;text-align:center;width:90%}.gallery-grid{grid-template-columns:1fr 1fr;grid-template-rows:none;grid-auto-rows:180px;gap:8px}.gallery-tall{grid-row:span 2}.gallery-wide{grid-column:span 2}.gallery-item:nth-child(2),.gallery-item:nth-child(3){transform:none}.lightbox{padding:18px 9px 14px;width:96vw;max-width:96vw}.lightbox img{max-height:72vh}.lightbox-nav{width:34px;height:34px;top:auto;bottom:-45px}.lightbox-prev{left:calc(50% - 44px)}.lightbox-next{right:calc(50% - 44px)}.lightbox-close{right:0;top:-44px}.photo-story .story-photo{animation-duration:9s}}
@media(prefers-reduced-motion:reduce){.invitation-opening:before,.invitation-opening:after,.hero-image,.hero-stamp,.closing-image,.photo-story .story-photo{animation:none!important}.invitation-opening,.envelope-card,.envelope-flap,[data-reveal]{transition:none!important}[data-reveal]{opacity:1;transform:none}}

/* Guest-specific invite code and a more editorial, playful photo album */
.invitation-opening{overflow-y:auto;justify-content:center;padding:28px 18px;gap:14px}
.opening-copy{flex:none}
.invite-code-card{width:min(390px,calc(100vw - 36px));padding:17px 20px 14px;background:#fffaf5eF;border:1px solid #fff;box-shadow:0 14px 45px #37241c24;text-align:left;color:#493d36;position:relative;z-index:2}
.invite-code-card .eyebrow{font:8px var(--sans);letter-spacing:.08em;color:#a46b57;margin:0 0 11px}
.invite-code-row{height:44px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #d8c7bb}
.invite-code-mark{font-size:15px;color:#bf866f}.invite-code-row input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#352d28;font:16px var(--sans);letter-spacing:.12em;text-transform:uppercase}.invite-code-row input::placeholder{font:11px var(--sans);letter-spacing:.02em;color:#a69a90;text-transform:none}.invite-code-check{font:20px var(--serif);color:#b77c68}
.invite-code-hint{font:10px/1.5 var(--sans);color:#84766c;min-height:15px;margin:9px 0 0}
.copy-invite-link{display:block;margin:8px 0 0 auto;padding:3px 0;border:0;background:none;color:#925c49;font:8px var(--sans);cursor:pointer}.copy-invite-link span{margin-left:6px}
.gallery-section{background:radial-gradient(ellipse at 96% 7%,#eddfd533,transparent 33%),#f6f0e8;padding-top:93px;padding-bottom:100px}
.gallery-edition{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px;padding:0 0 10px;border-bottom:1px solid #d9c9bc;color:#a1745f;font:8px var(--sans);letter-spacing:.1em}
.gallery-heading{margin-bottom:30px;gap:24px}.gallery-heading h2{max-width:700px;font-size:clamp(37px,5.3vw,66px);line-height:1.05}.gallery-heading>p{max-width:230px;margin-bottom:4px}
.gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:clamp(155px,19vw,235px);gap:13px;counter-reset:frame}
.gallery-item{border:4px solid #fffaf5;box-shadow:0 9px 24px #523a2a19;counter-increment:frame;isolation:isolate}
.gallery-item:first-child{grid-column:span 2;grid-row:span 2}
.gallery-item:nth-child(6){grid-column:span 2}
.gallery-item:nth-child(10){grid-column:span 2}
.gallery-item:nth-child(16){grid-column:span 2}
.gallery-item::before{content:counter(frame,decimal-leading-zero);position:absolute;z-index:2;left:10px;top:10px;padding:6px 7px;background:#fffaf0e8;color:#6a4e40;font:8px var(--sans);letter-spacing:.08em}
.gallery-item::after{content:attr(data-caption);position:absolute;z-index:2;left:0;right:0;bottom:0;top:auto;padding:28px 13px 12px;background:linear-gradient(transparent,#171512bd);color:white;text-align:left;font:italic 13px/1.35 var(--serif);opacity:0;transform:translateY(5px);transition:opacity .25s,transform .25s}
.gallery-item:hover::after,.gallery-item:focus-visible::after{opacity:1;transform:none}
.gallery-item img{filter:saturate(.83);transition:transform .65s cubic-bezier(.2,.7,.2,1),filter .5s}
.gallery-item:hover img{transform:scale(1.055);filter:saturate(1.04)}
.gallery-hint{font:8px var(--sans);letter-spacing:.1em;color:#a27465;margin-top:18px}
@media(max-width:900px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:190px;grid-template-rows:none}.gallery-item:first-child{grid-column:span 2;grid-row:span 2}.gallery-item:nth-child(6),.gallery-item:nth-child(10),.gallery-item:nth-child(16){grid-column:span 2}}
@media(max-width:760px){.invitation-opening{justify-content:flex-start;padding:32px 16px;gap:13px}.opening-copy h1{font-size:34px}.invite-code-card{padding:14px 16px 12px}.invite-code-card .eyebrow{font-size:7px}.invite-code-row{height:39px}.gallery-section{padding-top:72px;padding-bottom:78px}.gallery-edition{font-size:7px;margin-bottom:17px}.gallery-heading{display:block;margin-bottom:23px}.gallery-heading h2{font-size:clamp(37px,10vw,54px)}.gallery-heading>p{margin-top:13px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:170px;gap:8px}.gallery-item:first-child{grid-column:span 2;grid-row:span 2}.gallery-item:nth-child(6),.gallery-item:nth-child(10),.gallery-item:nth-child(16){grid-column:span 2}.gallery-item.gallery-tall{grid-row:span 2}.gallery-item::after{font-size:11px;padding:22px 9px 9px;opacity:.94;transform:none}.gallery-item::before{left:7px;top:7px;font-size:7px;padding:5px}.gallery-hint{font-size:7px}}

/* Local wedding photos keep every scene personal and available offline. */
.hero-image{background-image:url('assets/photos/01-beach.jpg')}
.story-photo-one{background-image:url('assets/photos/05-00787.jpg')}
.story-photo-two{background-image:url('assets/photos/21-00626.jpg')}
.countdown-photo{background-image:url('assets/photos/09-00979.jpg')}
.closing-image{background-image:url('assets/photos/10-00991.jpg')}

/* A real page-turning keepsake album */
.gallery-grid{display:none}
.gallery-heading>p{max-width:270px}
.album-book{position:relative;display:grid;grid-template-columns:54px minmax(0,760px) 54px;justify-content:center;align-items:center;gap:24px;padding:25px 0 12px;perspective:1800px}
.album-page{position:relative;isolation:isolate;overflow:hidden;height:clamp(390px,58vw,650px);aspect-ratio:1.22;background:#fffdf9;padding:48px 48px 72px;box-shadow:0 24px 58px #45291e24,0 2px 6px #45291e19;border:1px solid #dfd0c0;transform-origin:left center;transform-style:preserve-3d;backface-visibility:hidden}
.album-page:before{content:"";position:absolute;inset:0 auto 0 0;width:24px;background:linear-gradient(90deg,#d8c8b8aa,#fffdf900);z-index:2;pointer-events:none}
.album-photo{display:block;width:100%;height:100%;min-height:270px;max-height:490px;object-fit:contain;background:#f2eee8}
.album-page-number{position:absolute;top:20px;right:24px;color:#9c7d68;font:8px var(--sans);letter-spacing:.13em}
.album-caption{position:absolute;left:48px;right:48px;bottom:24px;margin:0;text-align:center;color:#6e5446;font:italic 18px/1.35 var(--serif)}
.album-page-edge{position:absolute;z-index:1;right:0;top:0;bottom:0;width:12px;background:repeating-linear-gradient(90deg,#e9dfd5 0 1px,#fbf8f2 1px 3px)}
.album-arrow{width:48px;height:48px;border-radius:50%;border:1px solid #bd9d89;background:#fffaf4;color:#875a46;font:24px var(--serif);cursor:pointer;transition:transform .2s,background .2s,color .2s;box-shadow:0 5px 16px #492c2014}
.album-arrow:hover{transform:translateY(-2px);background:#9a5a47;color:#fff}
.album-page.turn-forward{animation:pageForward .62s cubic-bezier(.22,.72,.2,1)}
.album-page.turn-back{animation:pageBack .62s cubic-bezier(.22,.72,.2,1)}
@keyframes pageForward{0%{transform:rotateY(0);filter:brightness(1)}45%{transform:rotateY(-82deg);filter:brightness(.78)}100%{transform:rotateY(0);filter:brightness(1)}}
@keyframes pageBack{0%{transform:rotateY(0);filter:brightness(1)}45%{transform:rotateY(82deg);filter:brightness(.78)}100%{transform:rotateY(0);filter:brightness(1)}}
.album-controls{max-width:760px;margin:18px auto 0;display:grid;grid-template-columns:1fr auto;gap:9px 20px;align-items:center;color:#9a6b56;font:8px var(--sans);letter-spacing:.1em}
.album-progress{grid-column:1/-1;height:2px;background:#dfd1c5}.album-progress i{display:block;width:4%;height:100%;background:#9a5a47;transition:width .35s ease}
.album-count b{padding:0 6px;color:#c7a48d;font-weight:400}.album-instruction{text-align:right;color:#a38c7d;font-size:7px}
@media(max-width:760px){.album-book{grid-template-columns:36px minmax(0,1fr) 36px;gap:8px;padding:14px 0 6px}.album-page{height:clamp(330px,112vw,500px);aspect-ratio:.82;padding:34px 14px 58px;box-shadow:0 16px 36px #45291e24}.album-page:before{width:10px}.album-page-number{top:12px;right:14px;font-size:7px}.album-photo{min-height:220px;max-height:none}.album-caption{left:15px;right:15px;bottom:17px;font-size:15px}.album-page-edge{width:7px}.album-arrow{width:34px;height:34px;font-size:20px}.album-controls{margin-top:14px;gap:8px 10px}.album-instruction{font-size:6px;letter-spacing:.04em}.gallery-heading>p{max-width:unset}}
@media(prefers-reduced-motion:reduce){.album-page.turn-forward,.album-page.turn-back{animation:none!important}.album-arrow,.album-progress i{transition:none!important}}

/* Compact album proportions and a personal gift popup */
.album-book{grid-template-columns:44px minmax(0,600px) 44px;gap:16px;padding-top:16px}
.album-page{height:clamp(350px,43vw,510px);padding:40px 40px 62px}
.album-photo{min-height:0;max-height:none}
.album-caption{left:38px;right:38px;font-size:16px}
.album-controls{max-width:620px}
.gift-open-card{display:flex;align-items:center;gap:17px;width:min(100%,410px);margin:32px auto 0;padding:20px 24px;text-align:left;color:#694a45;background:#fffdf9;border:1px solid #a8cfe1;box-shadow:6px 6px 0 #d6e9ed;cursor:pointer;transition:transform .2s,box-shadow .2s}
.gift-open-card:hover{transform:translateY(-3px);box-shadow:8px 9px 0 #d6e9ed}
.gift-box-art{position:relative;flex:0 0 52px;height:45px;display:grid;place-items:center;background:#f8e8ed;border:1px solid #edc7d0;color:#da8499;font:22px var(--serif)}
.gift-box-art:before{content:"";position:absolute;top:-6px;left:-1px;right:-1px;height:8px;background:#f4d5dd;border:1px solid #edc7d0}
.gift-box-art i{position:absolute;left:50%;top:-14px;width:16px;height:9px;border:1px solid #da8499;border-radius:12px 12px 0 12px;transform:translateX(-100%) rotate(20deg)}
.gift-box-art b{font-weight:400}
.gift-open-label{display:flex;justify-content:space-between;align-items:center;flex:1;font:italic 17px var(--serif)}
.gift-open-label b{font:16px var(--sans);color:#ed8fa5}
.gift-open-card:focus-visible,.gift-dialog button:focus-visible{outline:3px solid #e99aae;outline-offset:4px}
.gift-dialog{position:fixed;inset:0;margin:auto;width:min(760px,calc(100vw - 28px));max-height:min(90svh,780px);overflow:auto;padding:clamp(22px,4vw,42px);border:1px solid #c9dce0;background:#fffdf9;color:var(--ink);box-shadow:0 24px 100px #1d171766}
.gift-dialog::backdrop{background:#221d1dcc;backdrop-filter:blur(3px)}
.gift-dialog-close{position:absolute;top:12px;right:14px;width:38px;height:38px;border:1px solid #d7c8ba;border-radius:50%;background:#fff;color:#745447;font-size:25px;cursor:pointer}
.gift-dialog>.eyebrow{margin:2px 48px 12px 0;color:#d77f94;font-family:var(--sans)}
.gift-dialog h2{margin:0;font:400 clamp(30px,5vw,43px)/1.12 var(--serif);letter-spacing:-.03em}
.gift-dialog h2 em{color:#9a5a47;font-weight:400}
.gift-dialog-intro{margin:12px 0 0;color:var(--muted);font-size:12px;line-height:1.7}
.gift-people{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}
.gift-person{min-width:0;padding:20px;background:#f4f7f5;border:1px solid #d3e1dd}
.gift-person-bride{background:#fff4f5;border-color:#f0cbd2}
.gift-person-top{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.gift-mini-qr{width:58px;height:58px;flex:0 0 58px;display:grid;place-items:center;border:1px dashed #a4bdb5;background:repeating-linear-gradient(45deg,#fff 0 5px,#edf2ef 5px 10px);color:#6f8b80;font:8px var(--sans);letter-spacing:.12em}
.gift-person-bride .gift-mini-qr{border-color:#dfa9b5;background:repeating-linear-gradient(45deg,#fff 0 5px,#fff0f2 5px 10px);color:#c5788b}
.gift-person-top .eyebrow{margin:0 0 5px;color:#7b8e80;font:8px var(--sans);letter-spacing:.13em}
.gift-person-bride .gift-person-top .eyebrow{color:#c5788b}
.gift-person h3{margin:0;font:400 20px/1.2 var(--serif);overflow-wrap:anywhere}
.gift-person dl{margin:0}
.gift-person dl div{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-top:1px solid #dce5df;font-size:10px}
.gift-person-bride dl div{border-color:#f0dce0}
.gift-person dt{color:var(--muted)}
.gift-person dd{margin:0;text-align:right;overflow-wrap:anywhere}
.gift-person-note{margin:12px 0 0;color:#a4776b;font:italic 11px var(--serif)}
.gift-dialog-footnote{margin:22px 0 0;text-align:center;color:#8b806e;font:italic 13px var(--serif)}
@media(max-width:760px){
  .album-book{grid-template-columns:32px minmax(0,1fr) 32px;gap:6px;padding:10px 0 0}
  .album-page{height:clamp(300px,88vw,390px);aspect-ratio:.9;padding:30px 12px 50px}
  .album-page-number{top:11px;right:12px}
  .album-photo{width:100%;height:100%;min-height:0;object-fit:contain}
  .album-caption{left:14px;right:14px;bottom:14px;font-size:13px}
  .album-arrow{width:30px;height:30px;font-size:18px}
  .album-controls{margin-top:12px}
  .album-instruction{font-size:6px}
  .countdown-section{height:auto;min-height:490px;padding:76px 16px;isolation:isolate}
  .countdown-photo{background-position:center;background-size:cover;filter:saturate(.78);opacity:1}
  .countdown-section:after{z-index:0;background:linear-gradient(180deg,#211c1c91,#211c1c66 31%,#211c1c0d 53%)}
  .countdown-content{position:relative;z-index:1;width:100%}
  .countdown-content h2{font-size:clamp(35px,10vw,46px);margin-bottom:25px}
  .countdown{gap:10px}
  .countdown div{min-width:46px}
  .countdown strong{font-size:26px}
  .gift-open-card{width:min(100%,380px);padding:17px 16px;gap:13px}
  .gift-dialog{padding:26px 18px 22px}
  .gift-dialog>.eyebrow{font-size:8px}
  .gift-people{grid-template-columns:1fr;gap:11px;margin-top:18px}
  .gift-person{padding:15px}
  .gift-person-top{margin-bottom:10px}
  .gift-dialog-footnote{margin-top:16px;font-size:12px}
}
@media(max-width:360px){.album-book{grid-template-columns:28px minmax(0,1fr) 28px;gap:4px}.album-arrow{width:27px;height:27px}.album-page{padding-left:9px;padding-right:9px}.countdown{gap:6px}}

/* Keep the page inside its grid track so the flip controls never sit under it. */
.album-book{grid-template-columns:44px minmax(0,min(600px,calc(100vw - 152px))) 44px}
.album-page{width:100%;min-width:0;max-width:600px;aspect-ratio:auto;justify-self:center}
@media(max-width:760px){.album-book{grid-template-columns:32px minmax(0,1fr) 32px;gap:8px}.album-page{width:100%;max-width:none;aspect-ratio:auto}}
@media(max-width:360px){.album-book{grid-template-columns:28px minmax(0,1fr) 28px;gap:5px}}

/* The envelope seal is the invitation's single, memorable opening action. */
.invitation-opening{background:radial-gradient(ellipse at 50% 55%,#ffdce3 0%,#f7a5b6 48%,#ed8da4 100%);gap:12px}
.invitation-opening:before{left:5%;top:10%;color:#ffe8ed;text-shadow:0 8px 24px #a94c6128}
.invitation-opening:after{right:5%;bottom:8%;text-shadow:0 8px 24px #5c899628}
.opening-copy .eyebrow{font-size:9px;letter-spacing:.24em;text-shadow:0 1px 8px #9b4b5d38}
.opening-copy h1{font-size:clamp(38px,5vw,60px);text-shadow:0 3px 18px #fff7f544}
.opening-copy>p:last-child{font-size:10px}
.invite-code-card{border-radius:2px;box-shadow:0 18px 42px #793e4b20,0 2px 8px #fff8 inset}
.envelope{appearance:none;-webkit-appearance:none;display:block;flex:none;padding:0;border:0;background:transparent;cursor:pointer;touch-action:manipulation;filter:drop-shadow(0 20px 25px #87465342);transition:filter .35s,transform .35s}
.envelope:hover{filter:drop-shadow(0 24px 32px #87465358);transform:translateY(-4px)}
.envelope:focus-visible{outline:2px solid #fffdf9;outline-offset:9px;border-radius:8px}
.envelope-back{background:linear-gradient(145deg,#fffefa 0%,#f8f1ec 100%);border-color:#e8c9c6;border-radius:3px;box-shadow:inset 0 0 0 6px #fffefa,inset 0 0 0 7px #f1d7d5}
.envelope-card{background:linear-gradient(145deg,#fff 0%,#fffaf5 100%);border-color:#e6c6c0;box-shadow:0 8px 24px #694b4c18,inset 0 0 0 5px #fff,inset 0 0 0 6px #f4e3dd}
.envelope-card span{font-size:30px;letter-spacing:.015em}
.envelope-card small{color:#ae8775;letter-spacing:.24em}
.envelope-flap{background:linear-gradient(145deg,#fff8f5 0%,#fce8ec 100%);filter:drop-shadow(0 2px 2px #c779851a)}
.envelope-front{background:linear-gradient(145deg,#fffefa 0%,#fff7f6 60%,#f9ecea 100%);border-color:#e5b9bc;box-shadow:inset 0 0 0 6px #fffdf9,inset 0 0 0 7px #f2d8d7}
.envelope-seal{width:64px;height:64px;border:1px solid #fff4;border-radius:50%;background:radial-gradient(circle at 34% 25%,#f7b3c1 0%,#e9829b 62%,#d86c88 100%);box-shadow:0 5px 17px #9e455b55,inset 0 0 0 3px #fce2e7a6;font-size:14px;line-height:1.02}
.envelope-seal:after{content:"";position:absolute;inset:-7px;border:1px solid #fff9;border-radius:50%;animation:sealPulse 2.4s ease-out infinite}
.envelope-seal span{font-size:12px}
.opening-tap-hint{margin:-1px 0 0;color:#fffdf9;font:8px var(--sans);letter-spacing:.1em;text-shadow:0 1px 8px #82425466;animation:hintGlow 2.8s ease-in-out infinite}
.opening-tap-hint span{padding:0 7px;color:#fff1c8}
.opening-tap-hint b{font-weight:700;color:#fff1c8}
.opening-footnote{color:#fffdf9d9}
.invitation-opening.is-opening .envelope{transform:scale(1.025)}
.invitation-opening.is-opening .envelope-seal:after{animation:none;opacity:0}
@keyframes sealPulse{0%{transform:scale(.88);opacity:.9}75%,100%{transform:scale(1.52);opacity:0}}
@keyframes hintGlow{0%,100%{opacity:.78}50%{opacity:1}}
@media(max-width:760px){
  .invitation-opening{justify-content:flex-start;padding:clamp(26px,7vh,54px) 16px 38px;gap:12px}
  .opening-copy h1{font-size:clamp(33px,8.5vw,42px)}
  .envelope{width:min(390px,84vw);height:clamp(178px,48vw,225px);min-height:0;margin:7px 0}
  .envelope-seal{width:58px;height:58px}
  .opening-tap-hint{font-size:7px;letter-spacing:.07em}
  .opening-footnote{position:static;margin:4px 0 0}
}
@media(prefers-reduced-motion:reduce){.envelope,.opening-tap-hint,.envelope-seal:after{animation:none!important;transition:none!important}}

/* A soft, continuous reveal: seal pop, envelope lift, petals, then page. */
.petal-burst{position:fixed;inset:0;z-index:30;overflow:hidden;pointer-events:none}
.burst-petal,.burst-flower{position:absolute;display:block;pointer-events:none;will-change:transform,opacity}
.burst-petal{width:13px;height:21px;border-radius:2px 90% 2px 90%;background:var(--petal-color);box-shadow:0 2px 7px #7f4d5528}
.burst-flower{color:var(--petal-color);font:30px/1 var(--serif);text-shadow:0 2px 8px #7f4d5530}
.envelope-flap{transition:transform .9s cubic-bezier(.25,.72,.18,1),filter .9s ease}
.envelope-card{transition:transform .95s .18s cubic-bezier(.16,.78,.23,1),box-shadow .7s ease}
.envelope-seal{transition:opacity .26s .22s,filter .24s,scale .35s cubic-bezier(.2,.85,.2,1)}
.envelope-seal:after{transition:opacity .3s}
.invitation-opening.is-opening .envelope{animation:envelopeLift 1.12s .14s cubic-bezier(.18,.72,.22,1) both;pointer-events:none}
.invitation-opening.is-opening .envelope-flap{transform:rotateX(180deg);filter:brightness(1.08)}
.invitation-opening.is-opening .envelope-card{transform:translateY(-92px) scale(1.04);box-shadow:0 15px 32px #694b4c22,inset 0 0 0 5px #fff,inset 0 0 0 6px #f4e3dd}
.invitation-opening.is-opening .envelope-seal{opacity:0;scale:1.45;filter:brightness(1.7)}
.invitation-opening.is-opening .envelope-seal:after{animation:none;opacity:0}
.invitation-opening.is-opening .opening-copy,.invitation-opening.is-opening .invite-code-card,.invitation-opening.is-opening .opening-tap-hint,.invitation-opening.is-opening .opening-footnote{animation:openingCopyAway .62s .12s cubic-bezier(.3,0,.7,1) both}
.invitation-opening.is-gone{transition:opacity 1s cubic-bezier(.22,.72,.25,1),visibility 0s 1s;opacity:0;visibility:hidden;pointer-events:none}
@keyframes envelopeLift{0%{transform:translateY(0) scale(1);opacity:1}24%{transform:translateY(2px) scale(1.045);opacity:1}64%{transform:translateY(-15px) scale(1.015);opacity:.92}100%{transform:translateY(-35px) scale(.97);opacity:.32}}
@keyframes openingCopyAway{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-18px)}}
@media(max-width:760px){.envelope-card{transition-duration:.82s}.invitation-opening.is-opening .envelope-card{transform:translateY(-72px) scale(1.03)}.burst-petal{width:11px;height:18px}.burst-flower{font-size:25px}}
@media(prefers-reduced-motion:reduce){.invitation-opening.is-opening .envelope,.invitation-opening.is-opening .opening-copy,.invitation-opening.is-opening .invite-code-card,.invitation-opening.is-opening .opening-tap-hint,.invitation-opening.is-opening .opening-footnote{animation:none!important}.invitation-opening.is-opening .envelope-flap{transform:rotateX(180deg)}.invitation-opening.is-gone{transition:opacity .12s,visibility 0s .12s}}

/* Keep the insert inside the envelope: it must never travel into the invite-code card. */
.envelope-card{transition:transform .72s .22s cubic-bezier(.2,.72,.2,1),box-shadow .6s ease}
.invitation-opening.is-opening .invite-code-card{animation:codeCardAway .28s ease-out both}
.invitation-opening.is-opening .envelope{animation:envelopeSettle 1s .12s cubic-bezier(.22,.72,.24,1) both}
.invitation-opening.is-opening .envelope-card{transform:translateY(-13px) scale(1.015);box-shadow:0 10px 25px #694b4c1c,inset 0 0 0 5px #fff,inset 0 0 0 6px #f4e3dd}
@keyframes envelopeSettle{0%{transform:scale(1);opacity:1}35%{transform:scale(1.025);opacity:1}72%{transform:scale(1.008);opacity:.95}100%{transform:scale(1);opacity:.45}}
@keyframes codeCardAway{to{opacity:0}}
@media(max-width:760px){.invitation-opening.is-opening .envelope-card{transform:translateY(-10px) scale(1.01)}}
@media(prefers-reduced-motion:reduce){.invitation-opening.is-opening .envelope{animation:none!important}.invitation-opening.is-opening .invite-code-card{opacity:0}}

/* One-screen invitation: the guest code lives on the letter inside the envelope. */
.invitation-opening{justify-content:center;gap:0;padding:24px;background:radial-gradient(ellipse at 50% 48%,#ffdce3 0%,#f7a5b6 50%,#ed8da4 100%)}
.invitation-opening:before,.invitation-opening:after{opacity:.24;pointer-events:none}
.envelope{width:min(500px,88vw);height:clamp(285px,36vw,350px);min-height:0;margin:0;overflow:visible}
.envelope-back{border-radius:5px;background:linear-gradient(145deg,#fffefa,#f8f1ec);box-shadow:inset 0 0 0 7px #fffefa,inset 0 0 0 8px #f1d7d5}
.envelope-front{border-radius:5px;background:linear-gradient(145deg,#fffefa 0%,#fff7f6 60%,#f9ecea 100%);box-shadow:inset 0 0 0 7px #fffdf9,inset 0 0 0 8px #f2d8d7}
.envelope-card{left:3%;right:3%;top:5%;height:90%;z-index:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:10px;padding:13px 16px 12px;overflow:hidden;border:1px solid #e6c6c0;background:linear-gradient(145deg,#fff 0%,#fffaf5 100%);box-shadow:0 8px 24px #694b4c18,inset 0 0 0 5px #fff,inset 0 0 0 6px #f4e3dd;transition:transform .75s cubic-bezier(.2,.72,.2,1),box-shadow .6s ease}
.letter-heading{display:flex;align-items:center;justify-content:space-between;padding:0 2px 8px;border-bottom:1px solid #ead9d1;color:#737755}
.letter-heading>span{font:italic 19px var(--serif)}
.letter-heading i{color:#ed8fa5;font-style:normal}
.letter-heading small{font:7px var(--sans);letter-spacing:.2em;color:#ae8775}
.invitation-opening .invite-code-card{position:relative;inset:auto;z-index:auto;width:100%;margin:0;padding:6px 2px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#493d36;text-align:left;opacity:1;animation:none}
.invite-code-card>label{display:block;margin:0 0 5px;color:#925c49;font:7px/1.4 var(--sans);letter-spacing:.065em}
.invite-code-row{height:33px;gap:9px;border-bottom-color:#d8c7bb}
.invite-code-row input{font-size:14px}
.invite-code-row input::placeholder{font-size:10px}
.invite-code-hint{min-height:13px;margin:5px 0 0;color:#84766c;font:8px/1.4 var(--sans)}
.copy-invite-link{margin:5px 0 0 auto;padding:3px 0;color:#925c49;font:7px var(--sans)}
.copy-invite-link:hover{text-decoration:underline;text-underline-offset:3px}
.letter-progress{height:2px;margin-top:auto;background:#f0e3dc;overflow:hidden}
.letter-progress i{display:block;width:100%;height:100%;background:#ed8fa5;transform:scaleX(0);transform-origin:left center}
.envelope-seal{z-index:5;width:66px;height:66px;padding:0;border:0;appearance:none;-webkit-appearance:none;cursor:pointer;touch-action:manipulation}
.envelope-seal:hover{scale:1.1}
.envelope:focus-within .envelope-seal{outline:2px solid #fff;outline-offset:5px}
.envelope.is-open .envelope-flap{transform:rotateX(180deg);filter:brightness(1.08)}
.envelope.is-open .envelope-seal{opacity:0;scale:1.45;pointer-events:none}
.envelope.card-out .envelope-card{z-index:7;overflow:visible;transform:translateY(-275px) scale(.98);box-shadow:0 24px 55px #694b4c30,inset 0 0 0 5px #fff,inset 0 0 0 6px #f4e3dd}
.envelope.is-holding .letter-progress i{transform:scaleX(1);transition:transform 7s linear}
.invitation-opening.is-opening .envelope{animation:none;opacity:1;transform:none;pointer-events:auto}
.invitation-opening.is-opening .envelope-card{animation:none}
.invitation-opening.is-opening .invite-code-card{opacity:1;animation:none}
.invitation-opening.is-opening .opening-copy,.invitation-opening.is-opening .opening-tap-hint,.invitation-opening.is-opening .opening-footnote{display:none}
.invitation-opening.is-leaving{opacity:0;visibility:visible;pointer-events:none;transition:opacity .9s cubic-bezier(.22,.72,.25,1)}
.invitation-opening.is-gone{opacity:0;visibility:hidden;pointer-events:none;transition:none}
@media(max-width:760px){
  .invitation-opening{justify-content:center;padding:18px}
  .envelope{width:min(430px,88vw);height:clamp(220px,58vw,290px)}
  .envelope-card{left:3%;right:3%;top:5%;height:90%;gap:7px;padding:10px 12px 9px}
  .letter-heading{padding-bottom:5px}
  .letter-heading>span{font-size:17px}
  .invitation-opening .invite-code-card{padding-top:3px}
  .invite-code-card>label{font-size:6.5px}
  .invite-code-row{height:29px}
  .invite-code-hint{font-size:7px}
  .copy-invite-link{font-size:6.5px}
  .envelope-seal{width:58px;height:58px}
  .envelope.card-out .envelope-card{transform:translateY(-205px) scale(.98)}
}
@media(max-height:560px){.envelope{height:min(52vh,285px)}.envelope.card-out .envelope-card{transform:translateY(-185px) scale(.96)}}
@media(prefers-reduced-motion:reduce){.envelope.card-out .envelope-card{transform:translateY(-150px)}.envelope.is-holding .letter-progress i{transition:none;transform:scaleX(1)}}

/* A balanced field of floating blossoms, with a full-sized flower burst on tap. */
.invitation-opening{display:grid;place-items:center;align-content:center;min-height:100dvh;padding:0;overflow:hidden}
.invitation-opening:before,.invitation-opening:after{content:none}
.ambient-flowers{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.ambient-flowers span{position:absolute;display:block;color:#fff4ed;line-height:1;text-shadow:0 5px 18px #a8506722;opacity:.76;will-change:transform;animation:ambientBlossom 8s ease-in-out infinite alternate}
.ambient-flowers span:nth-child(1){left:8%;top:12%;font-size:36px;animation-duration:8.5s;animation-delay:-2s}
.ambient-flowers span:nth-child(2){right:9%;top:17%;font-size:59px;color:#fbe5e9;animation-duration:11s;animation-delay:-6s}
.ambient-flowers span:nth-child(3){left:3%;bottom:19%;font-size:49px;color:#d8eaf0;animation-duration:9.5s;animation-delay:-3s}
.ambient-flowers span:nth-child(4){right:7%;bottom:9%;font-size:30px;color:#fff0c6;animation-duration:7.5s;animation-delay:-1s}
.ambient-flowers span:nth-child(5){left:21%;top:30%;font-size:24px;color:#fff8f4;animation-duration:10s;animation-delay:-7s}
.ambient-flowers span:nth-child(6){right:23%;bottom:28%;font-size:40px;color:#f5d1db;animation-duration:12s;animation-delay:-4s}
.ambient-flowers span:nth-child(7){right:36%;top:7%;font-size:28px;color:#fff0c6;animation-duration:8s;animation-delay:-5s}
.ambient-flowers span:nth-child(8){left:35%;bottom:7%;font-size:43px;color:#e0edf0;animation-duration:10.5s;animation-delay:-2.5s}
.ambient-flowers span:nth-child(9){left:4%;top:54%;font-size:29px;color:#f6d1dc;animation-duration:9s;animation-delay:-6.5s}
.ambient-flowers span:nth-child(10){right:4%;top:48%;font-size:44px;color:#fff5eb;animation-duration:11.5s;animation-delay:-3.5s}
.ambient-flowers span:nth-child(11){left:14%;bottom:7%;font-size:26px;color:#fff0c6;animation-duration:7s;animation-delay:-4.5s}
.ambient-flowers span:nth-child(12){right:15%;top:34%;font-size:24px;color:#d9eaf0;animation-duration:8.8s;animation-delay:-1.5s}
.ambient-flowers span:nth-child(13){left:31%;top:7%;font-size:39px;color:#f4d0da;animation-duration:12.5s;animation-delay:-8s}
.ambient-flowers span:nth-child(14){right:32%;bottom:7%;font-size:33px;color:#fff7ec;animation-duration:9.8s;animation-delay:-5.5s}
.envelope{position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:1;justify-self:center;align-self:center}
.petal-burst{z-index:4}
.burst-flower{line-height:1;filter:drop-shadow(0 4px 10px #70465035)}
.burst-petal{filter:drop-shadow(0 3px 7px #70465033)}
@keyframes ambientBlossom{0%{transform:translate3d(0,8px,0) rotate(-16deg) scale(.92)}45%{transform:translate3d(9px,-13px,0) rotate(6deg) scale(1.04)}100%{transform:translate3d(-8px,-27px,0) rotate(21deg) scale(.96)}}
@media(max-width:760px){
  .invitation-opening{display:grid;place-items:center;align-content:center;padding:0}
  .ambient-flowers span:nth-child(2){font-size:45px;right:5%;top:12%}
  .ambient-flowers span:nth-child(3){font-size:38px;left:2%;bottom:14%}
  .ambient-flowers span:nth-child(5){left:4%;top:31%}
  .ambient-flowers span:nth-child(6){right:4%;bottom:27%;font-size:31px}
  .ambient-flowers span:nth-child(7),.ambient-flowers span:nth-child(8){font-size:26px}
  .ambient-flowers span:nth-child(9){top:48%;left:1%}
  .ambient-flowers span:nth-child(10){top:55%;right:1%;font-size:35px}
  .ambient-flowers span:nth-child(12){right:5%;top:31%}
  .ambient-flowers span:nth-child(13){left:28%;top:5%;font-size:29px}
  .ambient-flowers span:nth-child(14){right:26%;bottom:5%;font-size:27px}
}
@media(prefers-reduced-motion:reduce){.ambient-flowers span{animation:none!important}.burst-flower,.burst-petal{display:none}}
