:root{--paper:#f3f0e8;--wine:#32191f;--wine2:#4a252d;--wax:#e9e4d8;--ink:#542c32;--gold:#c4a56b;--line:#d8cdbb}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:var(--paper);color:var(--ink);font-family:'Cormorant Garamond',Georgia,serif;overflow-x:hidden}button,input,textarea,select{font:inherit}.landing{position:relative;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:clamp(42px,8vh,84px) 18px 28px;isolation:isolate}.landing-heading{text-align:center;z-index:2;margin-bottom:clamp(18px,4vh,42px)}.english-title{font-size:clamp(43px,7vw,76px);font-style:italic;line-height:1;margin:0 0 12px;color:#622e36;letter-spacing:-1px}.landing-heading h1{font-family:'Amiri',serif;font-size:clamp(34px,5vw,52px);font-weight:400;margin:0;color:#7b6545}.language-switch{position:fixed;z-index:30;right:24px;top:22px;border:1px solid #ded5c7;background:#fffdf8e8;border-radius:30px;padding:9px 17px;color:#50323a;display:flex;gap:10px;align-items:center;box-shadow:0 5px 18px #3a20200d;cursor:pointer;font-size:14px}.language-switch i{font-style:normal;opacity:.55}.language-switch span{font-size:18px}.side-botanical{position:fixed;top:0;height:min(88vh,760px);width:min(18vw,280px);z-index:-1;opacity:.8;pointer-events:none;background-repeat:no-repeat;background-size:100% 100%}.botanical-left{left:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 760'%3E%3Cg fill='none' stroke='%2399a18d' stroke-width='2' opacity='.65'%3E%3Cpath d='M5 0 Q65 90 38 220 T80 480 Q90 610 35 760 M85 0 Q140 110 110 260 T150 520 Q145 650 190 760 M160 0 Q190 130 170 300 T220 600'/%3E%3C/g%3E%3Cg fill='%23fffaf1' stroke='%23d9c9c4' stroke-width='1'%3E%3Ccircle cx='32' cy='75' r='12'/%3E%3Ccircle cx='52' cy='65' r='10'/%3E%3Ccircle cx='42' cy='48' r='10'/%3E%3Ccircle cx='22' cy='54' r='9'/%3E%3Ccircle cx='42' cy='66' r='5' fill='%23c5a56b'/%3E%3Ccircle cx='115' cy='180' r='12'/%3E%3Ccircle cx='135' cy='170' r='10'/%3E%3Ccircle cx='125' cy='153' r='10'/%3E%3Ccircle cx='105' cy='160' r='9'/%3E%3Ccircle cx='125' cy='171' r='5' fill='%23c5a56b'/%3E%3Ccircle cx='60' cy='330' r='10'/%3E%3Ccircle cx='78' cy='320' r='9'/%3E%3Ccircle cx='70' cy='305' r='9'/%3E%3Ccircle cx='52' cy='312' r='8'/%3E%3Ccircle cx='70' cy='322' r='4' fill='%23c5a56b'/%3E%3C/g%3E%3Cg fill='%2399a18d' opacity='.6'%3E%3Cellipse cx='66' cy='115' rx='8' ry='18' transform='rotate(-35 66 115)'/%3E%3Cellipse cx='22' cy='145' rx='8' ry='18' transform='rotate(35 22 145)'/%3E%3Cellipse cx='145' cy='240' rx='8' ry='18' transform='rotate(-35 145 240)'/%3E%3Cellipse cx='92' cy='270' rx='8' ry='18' transform='rotate(35 92 270)'/%3E%3Cellipse cx='95' cy='410' rx='8' ry='18' transform='rotate(-35 95 410)'/%3E%3Cellipse cx='32' cy='455' rx='8' ry='18' transform='rotate(35 32 455)'/%3E%3C/g%3E%3C/svg%3E")}.botanical-right{right:0;transform:scaleX(-1);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 760'%3E%3Cg fill='none' stroke='%2399a18d' stroke-width='2' opacity='.65'%3E%3Cpath d='M5 0 Q65 90 38 220 T80 480 Q90 610 35 760 M85 0 Q140 110 110 260 T150 520 Q145 650 190 760 M160 0 Q190 130 170 300 T220 600'/%3E%3C/g%3E%3Cg fill='%23fffaf1' stroke='%23d9c9c4' stroke-width='1'%3E%3Ccircle cx='32' cy='75' r='12'/%3E%3Ccircle cx='52' cy='65' r='10'/%3E%3Ccircle cx='42' cy='48' r='10'/%3E%3Ccircle cx='22' cy='54' r='9'/%3E%3Ccircle cx='42' cy='66' r='5' fill='%23c5a56b'/%3E%3Ccircle cx='115' cy='180' r='12'/%3E%3Ccircle cx='135' cy='170' r='10'/%3E%3Ccircle cx='125' cy='153' r='10'/%3E%3Ccircle cx='105' cy='160' r='9'/%3E%3Ccircle cx='125' cy='171' r='5' fill='%23c5a56b'/%3E%3C/g%3E%3Cg fill='%2399a18d' opacity='.6'%3E%3Cellipse cx='66' cy='115' rx='8' ry='18' transform='rotate(-35 66 115)'/%3E%3Cellipse cx='22' cy='145' rx='8' ry='18' transform='rotate(35 22 145)'/%3E%3Cellipse cx='145' cy='240' rx='8' ry='18' transform='rotate(-35 145 240)'/%3E%3C/g%3E%3C/svg%3E")}.envelope-scene{width:min(30vw,500px);min-width:340px;height:min(76vh,850px);min-height:570px;perspective:1600px;position:relative}.envelope{position:absolute;inset:0;background:linear-gradient(115deg,#2b151b,#47232b 45%,#32191f);overflow:hidden;box-shadow:0 22px 45px #1c0d122c;transform-style:preserve-3d}.envelope:before{content:"";position:absolute;inset:0;opacity:.3;background:repeating-linear-gradient(0deg,#ffffff08 0 1px,transparent 1px 4px),radial-gradient(ellipse at 50% 48%,#6c3a421c,transparent 65%)}.envelope-back{position:absolute;inset:0;background:linear-gradient(135deg,#351c22,#29141a)}.envelope-front{position:absolute;inset:0;pointer-events:none}.envelope-left{clip-path:polygon(0 0,50% 51%,0 100%);background:linear-gradient(90deg,#32191f,#48252c 70%,#2a151a);z-index:4}.envelope-right{clip-path:polygon(100% 0,50% 51%,100% 100%);background:linear-gradient(270deg,#32191f,#48252c 70%,#2a151a);z-index:4}.envelope-bottom{clip-path:polygon(0 100%,50% 48%,100% 100%);background:linear-gradient(0deg,#2a151a,#48252c);z-index:5}.envelope-flap{position:absolute;inset:0 0 auto;height:52%;clip-path:polygon(0 0,100% 0,50% 100%);background:linear-gradient(180deg,#4a252d,#32191f 78%);transform-origin:50% 0;z-index:8;transition:transform 1.35s cubic-bezier(.2,.72,.18,1),filter 1s;filter:drop-shadow(0 8px 8px #12080b70)}.envelope-flap:after{content:"";position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cg fill='none' stroke='%23a98b91' stroke-width='2' opacity='.26'%3E%3Cpath d='M150 30 C130 70 170 90 150 130 C130 170 170 190 150 240 M150 80 Q100 40 90 75 Q105 110 150 100 Q195 110 210 75 Q200 40 150 80 M150 145 Q100 115 88 150 Q110 180 150 165 Q190 180 212 150 Q200 115 150 145'/%3E%3C/g%3E%3C/svg%3E");background-size:70% auto;background-position:center 15%;background-repeat:no-repeat}.embossed-flowers{position:absolute;z-index:3;color:#96777c;opacity:.38;font-size:clamp(70px,8vw,130px);line-height:.8;text-shadow:1px 1px #160b0e,-1px -1px #6d4b52;pointer-events:none}.embossed-flowers i{display:block;font-style:normal;font-size:.8em;margin:18px 0}.flowers-left{left:-10px;top:24%;transform:rotate(-22deg)}.flowers-right{right:-10px;top:24%;transform:scaleX(-1) rotate(-22deg)}.wax-seal{position:absolute;z-index:12;top:49%;left:50%;transform:translate(-50%,-50%);width:clamp(88px,8vw,124px);aspect-ratio:1;border-radius:43% 48% 44% 50%;border:8px solid #d8d3c9;background:radial-gradient(circle at 35% 28%,#fff,#d9d4ca 70%,#bdb7ac);box-shadow:0 5px 12px #0e070a80,inset 0 0 0 2px #f9f6ed,inset 0 0 15px #a8a196;color:#746d64;cursor:pointer;display:grid;place-items:center;transition:transform .45s,opacity .5s,filter .4s}.wax-seal:before{content:"";position:absolute;inset:8px;border:1px solid #b6afa3;border-radius:inherit}.wax-seal span{font-family:'Cormorant Garamond',serif;font-size:clamp(19px,2.1vw,28px);font-weight:600;text-shadow:0 1px #fff}.seal-amp{font-size:.75em;margin:0 2px}.wax-seal:hover{filter:brightness(1.08);transform:translate(-50%,-50%) scale(1.04)}.emboss.sprig{position:absolute;bottom:12%;left:50%;transform:translateX(-50%);font-size:65px;color:#a58d91;opacity:.34}.letter{position:absolute;z-index:2;left:7%;right:7%;top:7%;height:88%;background:linear-gradient(135deg,#fbf8f0,#eee8dc);box-shadow:0 5px 22px #13080d70;transform:translateY(75%);transition:transform 1.7s cubic-bezier(.18,.72,.2,1);padding:24px 18px;color:#563b36;text-align:center}.letter-inner{border:1px solid #c7b99f;height:100%;padding:22px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center}.letter-kicker,.letter-footer{font-size:13px;font-style:italic}.letter h2{font-family:'Amiri',serif;font-size:clamp(30px,3vw,44px);margin:8px 0}.letter-message{font-size:15px;line-height:1.7;max-width:270px}.letter-flourish{font-size:34px;color:#a88d61;margin:8px}.letter-details{width:100%;border-block:1px solid #cdbf9f;padding:8px 0}.letter-details p{margin:8px 0}.letter-details small{display:block;letter-spacing:2px;font-size:10px;color:#987d62}.letter-details strong{display:block;font-size:16px}.letter-footer{margin-top:15px}.tap-open{margin:20px 0 0;background:none;border:0;color:#eee6d9;font-style:italic;font-size:20px;letter-spacing:.5px;text-shadow:0 1px 4px #29141a;cursor:pointer}.landing-hint{margin:4px 0 0;color:#9b8c80;font-size:12px}.landing.opening .envelope-flap{transform:rotateX(180deg);z-index:1}.landing.opening .wax-seal{opacity:0;transform:translate(-50%,-50%) scale(1.5)}.landing.opening .letter{transform:translateY(-2%);transition-delay:.45s}.landing.opened{min-height:0;padding-bottom:0}.landing.opened .tap-open,.landing.opened .landing-hint{opacity:0}.invitation{width:min(100% - 28px,760px);margin:35px auto 65px;position:relative;z-index:2}.invitation-card{background:#f8f4eb;border:1px solid #c9b99d;box-shadow:0 20px 60px #2d171b16;padding:clamp(26px,5vw,58px);text-align:center;color:#533a36}.card-ornament{font-size:44px;color:#a78a60}.card-kicker{letter-spacing:2px;color:#947a5b;font-size:13px}.invitation-card h2{font-family:'Amiri',serif;font-size:clamp(44px,8vw,70px);font-weight:400;margin:8px}.card-message{max-width:530px;margin:12px auto 22px;line-height:1.9}.card-rule{color:#a78a60;font-size:24px}.event-details{display:grid;gap:15px;margin:22px auto;max-width:460px}.event-details>div{padding:12px;border-block:1px solid #ded3c0}.event-details small{display:block;letter-spacing:2px;color:#967e64;font-size:11px}.event-details strong{display:block;font-size:19px;margin-top:4px}.countdown-section{margin:25px 0;padding:20px 0;border-block:1px solid #ded3c0}.countdown-section>p{letter-spacing:2px;font-size:11px;color:#967e64}.countdown{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;max-width:440px;margin:15px auto}.countdown div{border:1px solid #d8cbb7;padding:12px 4px}.countdown strong{display:block;font-size:clamp(24px,5vw,36px)}.countdown span{font-size:12px}.rsvp-section{max-width:500px;margin:auto}.rsvp-section h3{font-family:'Amiri',serif;font-size:34px;margin:4px}form{text-align:start;margin-top:22px}form>label,fieldset{display:block;margin:14px 0;font-family:'Cairo',sans-serif;font-size:13px}input[type=text],textarea,select{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #d7cbb9;background:#fffdf9;color:#493239}fieldset{border:1px solid #d7cbb9}legend{padding:0 6px}.choice{display:flex;gap:9px;align-items:center;margin:8px 0}.choice input{accent-color:#6b3540}.submit-button{background:#4a252d;color:#fff;border:0;padding:13px 30px;cursor:pointer;width:100%}.form-feedback{text-align:center;min-height:24px}footer{display:flex;flex-direction:column;gap:7px;margin-top:30px;color:#967e64;font-style:italic}footer strong{font-family:'Amiri',serif;font-size:25px;color:#563b36}.music-toggle{position:fixed;bottom:18px;left:18px;z-index:25;background:#fffdf8;border:1px solid #d8cdbb;border-radius:24px;padding:10px 16px;color:#56343a;cursor:pointer}.hidden{display:none!important}.opening .tap-open{opacity:0;transition:opacity .3s}.rtl{font-family:'Cairo',sans-serif}.rtl .landing-heading h1,.rtl .invitation-card h2{font-family:'Amiri',serif}.rtl .event-details,.rtl form{text-align:right}@media(max-width:650px){.landing{padding-top:70px}.side-botanical{width:24vw;opacity:.52}.envelope-scene{width:min(74vw,430px);min-width:0;height:min(66vh,700px);min-height:480px}.english-title{font-size:clamp(39px,10vw,58px)}.landing-heading h1{font-size:37px}.wax-seal{width:94px}.letter{left:5%;right:5%;padding:12px 9px}.letter-inner{padding:12px 6px}.letter h2{font-size:31px}.letter-message{font-size:13px}.letter-details strong{font-size:14px}.embossed-flowers{font-size:68px}.language-switch{top:12px;right:12px}.invitation{margin-top:20px}.invitation-card{padding:25px 18px}}

/* Exact reference-inspired envelope landing layout */
:root{--paper:#f1efe6;--wine:#351b22;--wine2:#44232b;--wax:#e8e4da;--ink:#4a3033;--gold:#b9a27b}
body{background:#f1efe6}
.landing{height:100svh;min-height:620px;padding:0;justify-content:flex-start;overflow:hidden}
.landing-heading{display:none}
.language-switch{position:fixed;top:22px;right:24px;border:1px solid #e0ddd3;background:#fbfaf5;border-radius:28px;padding:9px 17px;gap:9px;color:#544346;box-shadow:0 3px 14px #4b3a2d0b;font-family:'Cormorant Garamond',serif;letter-spacing:.4px}
.language-switch b{font-weight:500}.language-switch i{font-style:italic;opacity:.68}
.side-botanical{position:fixed;top:0;height:100svh;width:35vw;max-width:560px;z-index:0;opacity:.9;background-repeat:no-repeat;background-size:100% 100%;pointer-events:none}
.botanical-left{left:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 1000'%3E%3Cg fill='none' stroke='%23949b8c' stroke-width='2' opacity='.55'%3E%3Cpath d='M-10 0 Q80 100 55 230 T100 470 Q120 650 35 1000 M70 0 Q170 120 140 300 T190 590 Q180 800 240 1000 M210 0 Q260 160 240 340 T330 700 Q330 850 390 1000'/%3E%3C/g%3E%3Cg fill='%23fffaf5' stroke='%23dfd4d0' stroke-width='2' opacity='.95'%3E%3Ccircle cx='60' cy='65' r='24'/%3E%3Ccircle cx='92' cy='55' r='21'/%3E%3Ccircle cx='80' cy='25' r='22'/%3E%3Ccircle cx='43' cy='32' r='19'/%3E%3Ccircle cx='75' cy='50' r='8' fill='%23c4b28d'/%3E%3Ccircle cx='170' cy='190' r='20'/%3E%3Ccircle cx='198' cy='180' r='18'/%3E%3Ccircle cx='185' cy='151' r='18'/%3E%3Ccircle cx='155' cy='160' r='17'/%3E%3Ccircle cx='180' cy='178' r='7' fill='%23c4b28d'/%3E%3C/g%3E%3Cg fill='%23a2a995' opacity='.65'%3E%3Cellipse cx='130' cy='105' rx='12' ry='30' transform='rotate(-38 130 105)'/%3E%3Cellipse cx='25' cy='150' rx='12' ry='30' transform='rotate(38 25 150)'/%3E%3Cellipse cx='220' cy='250' rx='12' ry='30' transform='rotate(-38 220 250)'/%3E%3Cellipse cx='115' cy='290' rx='12' ry='30' transform='rotate(38 115 290)'/%3E%3Cellipse cx='60' cy='430' rx='12' ry='30' transform='rotate(38 60 430)'/%3E%3C/g%3E%3C/svg%3E")}
.botanical-right{right:0;transform:scaleX(-1);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 1000'%3E%3Cg fill='none' stroke='%23949b8c' stroke-width='2' opacity='.55'%3E%3Cpath d='M-10 0 Q80 100 55 230 T100 470 Q120 650 35 1000 M70 0 Q170 120 140 300 T190 590 Q180 800 240 1000 M210 0 Q260 160 240 340 T330 700 Q330 850 390 1000'/%3E%3C/g%3E%3Cg fill='%23fffaf5' stroke='%23dfd4d0' stroke-width='2' opacity='.95'%3E%3Ccircle cx='60' cy='65' r='24'/%3E%3Ccircle cx='92' cy='55' r='21'/%3E%3Ccircle cx='80' cy='25' r='22'/%3E%3Ccircle cx='43' cy='32' r='19'/%3E%3Ccircle cx='75' cy='50' r='8' fill='%23c4b28d'/%3E%3Ccircle cx='170' cy='190' r='20'/%3E%3Ccircle cx='198' cy='180' r='18'/%3E%3Ccircle cx='185' cy='151' r='18'/%3E%3Ccircle cx='155' cy='160' r='17'/%3E%3Ccircle cx='180' cy='178' r='7' fill='%23c4b28d'/%3E%3C/g%3E%3Cg fill='%23a2a995' opacity='.65'%3E%3Cellipse cx='130' cy='105' rx='12' ry='30' transform='rotate(-38 130 105)'/%3E%3Cellipse cx='25' cy='150' rx='12' ry='30' transform='rotate(38 25 150)'/%3E%3Cellipse cx='220' cy='250' rx='12' ry='30' transform='rotate(-38 220 250)'/%3E%3Cellipse cx='115' cy='290' rx='12' ry='30' transform='rotate(38 115 290)'/%3E%3Cellipse cx='60' cy='430' rx='12' ry='30' transform='rotate(38 60 430)'/%3E%3C/g%3E%3C/svg%3E")}
.envelope-scene{position:absolute;top:0;left:50%;transform:translateX(-50%);width:clamp(340px,31vw,520px);height:100svh;min-height:620px;max-height:none;z-index:2;perspective:1800px}
.envelope{inset:0;border-radius:0;background:linear-gradient(110deg,#2b151b,#47252c 48%,#30171d);box-shadow:0 0 35px #1c0d1228;overflow:hidden}
.envelope-back{background:linear-gradient(135deg,#43252c,#2e171d 58%,#3b2027)}
.envelope:before{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;opacity:.62;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 1000'%3E%3Cg fill='none' stroke='%237d5960' stroke-width='2.3' opacity='.58'%3E%3Cpath d='M0 150 Q80 110 130 220 Q155 270 110 330 Q45 370 0 300 M420 150 Q340 110 290 220 Q265 270 310 330 Q375 370 420 300 M20 520 Q100 470 140 580 Q160 650 90 710 Q45 740 0 680 M400 520 Q320 470 280 580 Q260 650 330 710 Q375 740 420 680 M40 870 Q130 780 180 850 M380 870 Q290 780 240 850'/%3E%3Cpath d='M75 205 q-35 -55 -65 -20 q0 45 65 55 q65 -10 65 -55 q-30 -35 -65 20 M345 205 q-35 -55 -65 -20 q0 45 65 55 q65 -10 65 -55 q-30 -35 -65 20'/%3E%3C/g%3E%3C/svg%3E");background-size:100% 100%}
.envelope-front{z-index:5}
.envelope-left{clip-path:polygon(0 0,50% 50%,0 100%);background:linear-gradient(90deg,#321920,#482831)}
.envelope-right{clip-path:polygon(100% 0,50% 50%,100% 100%);background:linear-gradient(270deg,#321920,#482831)}
.envelope-bottom{clip-path:polygon(0 100%,50% 48%,100% 100%);background:linear-gradient(0deg,#2b151b,#45232b)}
.envelope-flap{height:54%;z-index:8;background:linear-gradient(180deg,#3d2027,#2d171d);clip-path:polygon(0 0,100% 0,50% 100%);transform-origin:50% 0}
.envelope-flap:after{inset:4% 0 0;background-size:100% 100%;opacity:.7}
.recipient{position:absolute;z-index:2;top:24%;left:0;width:100%;text-align:center;color:#e8ddcc;font-family:'Cormorant Garamond',serif;font-style:italic;font-size:clamp(21px,2vw,30px);letter-spacing:.3px;text-shadow:0 1px 2px #16090d}
.embossed-flowers{z-index:6;color:#8a6c72;opacity:.32;font-size:clamp(100px,10vw,165px);text-shadow:1px 1px #170b0e,-1px -1px #684950}
.flowers-left{left:-28px;top:25%}.flowers-right{right:-28px;top:25%}
.wax-seal{top:51%;width:clamp(90px,9vw,132px);border:7px solid #e2dfd6;background:radial-gradient(circle at 35% 25%,#fffefa,#e2dfd6 70%,#c7c3bb);box-shadow:0 8px 16px #12090d8c,inset 0 0 0 2px #faf8f0,inset 0 0 16px #aaa69e}
.wax-seal .seal-sprig{font-family:'Cormorant Garamond',serif;font-size:47px;color:#8d8980;transform:rotate(-20deg);text-shadow:0 1px #fff}
.tap-open{position:absolute;z-index:15;left:50%;bottom:7%;transform:translateX(-50%);margin:0;color:#e8ddcc;font-size:clamp(17px,1.7vw,23px);text-shadow:0 1px 4px #13090b;letter-spacing:.4px;white-space:nowrap}
.landing-hint{display:none}
.landing.opened{height:auto;min-height:0;overflow:visible;padding:0}
.landing.opened .envelope-scene{display:none}
.landing.opened .tap-open{display:none}
.landing.opening .envelope-flap{transform:rotateX(180deg);z-index:1}
.landing.opening .wax-seal{opacity:0;transform:translate(-50%,-50%) scale(1.45)}
.landing.opening .letter{transform:translateY(-2%);transition-delay:.45s}
.letter{z-index:7}
@media(max-width:700px){.envelope-scene{width:min(100vw,500px);height:100svh;min-height:600px}.side-botanical{width:22vw;opacity:.42}.language-switch{top:12px;right:12px}.recipient{font-size:22px}.tap-open{bottom:6%}.wax-seal{width:96px}.embossed-flowers{font-size:90px}}


/* Reference media layer: use the captured invitation video and floral artwork */
.side-botanical{width:min(34vw,560px);height:100svh;opacity:1;background-size:100% 100%;background-position:top center;z-index:0}
.botanical-left{background-image:url("/assets/reference/desktop-hanging-florals.webp");background-size:100% auto;background-position:top left}
.botanical-right{background-image:url("/assets/reference/desktop-hanging-florals.webp");background-size:100% auto;background-position:top right;transform:scaleX(-1)}
.envelope-scene{width:clamp(340px,31vw,520px);height:100svh;min-height:620px;max-height:none;perspective:none;transition:opacity 1.1s ease,transform 1.3s cubic-bezier(.2,.7,.2,1)}
.reference-envelope{position:absolute;inset:0;overflow:hidden;background:#32191f;box-shadow:0 0 35px #1c0d1228}
.envelope-video{display:block;width:100%;height:100%;object-fit:cover;object-position:center center}
.recipient{position:absolute;top:12.5%;left:0;width:100%;z-index:3;text-align:center;color:#fff4d6;font-family:'Cormorant Garamond',serif;font-size:clamp(22px,2vw,31px);font-style:italic;font-weight:500;text-shadow:0 1px 4px #2a1118;pointer-events:none}
.seal-hit-area{position:absolute;z-index:5;left:50%;top:46%;transform:translate(-50%,-50%);width:31%;aspect-ratio:1;border:0;border-radius:50%;background:transparent;cursor:pointer}
.tap-open{bottom:7%;color:#fff4d6;font-size:clamp(17px,1.7vw,23px);text-shadow:0 1px 4px #13090b}
.landing.opening .envelope-scene{opacity:0;transform:translateX(-50%) scale(1.035);pointer-events:none}
.landing.opened .envelope-scene{display:none}
.invitation{isolation:isolate;overflow:hidden;border-radius:2px;padding:clamp(24px,4vw,48px) 0}
.invitation-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;opacity:.42}
.invitation-card{position:relative;background:#f8f4ebee;backdrop-filter:blur(2px)}
@media(max-width:700px){.envelope-scene{width:min(100vw,500px);height:100svh;min-height:600px}.side-botanical{width:25vw;opacity:.8}.recipient{font-size:22px}.seal-hit-area{width:34%}}


/* Keep the envelope fixed at the center while its opening video plays. */
.landing.opening:not(.fading-out) .envelope-scene {
  opacity: 1 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  transition: none !important;
  pointer-events: none;
}
.landing.opening:not(.fading-out) .reference-envelope {
  visibility: visible;
}
.landing.opening:not(.fading-out) .envelope-video {
  opacity: 1;
}

/* Once the envelope film ends, fade it away without shifting it horizontally. */
.landing.opening.fading-out .envelope-scene {
  left: 50% !important;
  opacity: 0 !important;
  transform: translateX(-50%) scale(.99) !important;
  transform-origin: center center;
  transition: opacity 240ms ease, transform 240ms ease !important;
  pointer-events: none;
}
.invitation.invite-fade-in {
  opacity: 0;
  transition: opacity 260ms ease;
}
.invitation.invite-fade-in.invite-visible {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .landing.opening.fading-out .envelope-scene,
  .invitation.invite-fade-in {
    transition-duration: 1ms !important;
  }
}


/* Post-envelope invitation: match the tall Tuscan watercolor reference composition. */
body { background: #f2f0e8; }
.side-botanical { z-index: 0; }
.invitation {
  width: 100%; max-width: none; margin: 0 auto; padding: 0;
  position: relative; z-index: 2; overflow: visible; isolation: auto;
}
.invitation-hero {
  position: relative; width: clamp(340px, 30vw, 520px); height: 100svh;
  min-height: 690px; margin: 0 auto; overflow: hidden;
  background: #f5d89b; box-shadow: 0 8px 34px rgba(70,48,27,.16);
}
.invitation-art {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center center;
  animation: invitation-drift 26s ease-in-out infinite alternate;
}
@keyframes invitation-drift { from { transform: scale(1); } to { transform: scale(1.035); } }
.hero-title {
  position: absolute; z-index: 2; left: 10%; right: 10%; top: 8.2%;
  text-align: center; color: #33271f; text-shadow: 0 1px 0 rgba(255,255,255,.24);
}
.hero-name { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 2.4vw, 40px); font-weight: 500; line-height: .98; letter-spacing: .8px; }
.hero-and { margin: 7px 0 5px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(19px,2vw,25px); line-height: 1; }
.hero-subtitle { margin: 5px 0 0; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(8px,.9vw,11px); line-height: 1.25; letter-spacing: .35px; white-space: nowrap; }
.hero-date { position: absolute; z-index: 2; top: 38%; left: 8%; right: 8%; display: flex;
  flex-direction: column; align-items: center; gap: 14px; color: #3f3329; }
.date-rule { display: flex; align-items: center; justify-content: center; gap: 9px; width: 43%; color: #9b855e; }
.date-rule i { height: 1px; flex: 1; background: #9b855e; }
.date-rule b { font-size: 10px; font-weight: 400; }
.hero-date time { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(18px,1.7vw,24px); font-weight: 600; letter-spacing: .5px; }
.hero-scroll { position: absolute; z-index: 3; top: 73.5%; left: 0; right: 0; display: flex; flex-direction: column;
  align-items: center; gap: 8px; color: #302720; text-decoration: none; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(12px,1.15vw,16px); font-weight: 600; letter-spacing: 1.9px; text-shadow: 0 1px 4px rgba(255,255,255,.6); }
.hero-scroll b { display: grid; place-items: center; width: 31px; height: 47px; border: 2px solid #332a24; border-radius: 20px; font-size: 21px; font-weight: 400; line-height: 1; animation: scroll-nudge 1.5s ease-in-out infinite; }
@keyframes scroll-nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.invitation-details { width: min(92vw, 660px); margin: 42px auto 70px; position: relative; z-index: 2; }
.invitation-card { background: rgba(250,247,239,.96); border: 1px solid #c9b99d; box-shadow: 0 20px 60px rgba(45,23,27,.13); padding: clamp(26px,5vw,58px); text-align: center; color: #533a36; }
.invitation-card h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; letter-spacing: .4px; }
.music-toggle { left: auto; right: 28px; bottom: 24px; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: #302f2e; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.18); display: grid; place-items: center; font-size: 25px; }
.music-toggle span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.language-switch { z-index: 40; }
.rtl .hero-title, .rtl .hero-date, .rtl .hero-scroll { font-family: 'Cairo', sans-serif; }
.rtl .hero-name { font-family: 'Amiri', serif; }
.rtl .hero-subtitle { letter-spacing: 0; }
@media (max-width: 700px) {
  .side-botanical { width: 20vw; opacity: .7; }
  .invitation-hero { width: min(100vw, 520px); height: auto; aspect-ratio: 940 / 1672; min-height: 0; }
  .hero-title { top: 8.5%; }
  .hero-name { font-size: clamp(36px, 10vw, 46px); }
  .hero-and { font-size: 22px; }
  .hero-subtitle { font-size: 9px; }
  .hero-date { top: 38.5%; }
  .hero-scroll { top: 73%; font-size: 13px; }
  .invitation-details { width: calc(100% - 24px); margin: 22px auto 55px; }
  .music-toggle { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
@media (max-height: 720px) and (min-width: 701px) {
  .invitation-hero { min-height: 100svh; }
  .hero-title { top: 6%; }
  .hero-date { top: 39%; }
  .hero-scroll { top: 72%; }
}



/* Page two: supplied screenshot preserved as a still image; only four countdown numbers change. */
.countdown-page {
  position: relative;
  width: clamp(340px, 30vw, 520px);
  aspect-ratio: 841 / 1300;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background: #ead6b0 url("/assets/countdown-static-reference.webp") center / 100% 100% no-repeat;
  box-shadow: 0 8px 34px rgba(70,48,27,.14);
}
.countdown-live-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.countdown-live-number {
  position: absolute;
  top: 61.1%;
  display: block;
  width: 16%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #241a18;
  font-family: 'Italianno', 'Cormorant Garamond', cursive;
  font-size: clamp(28px, 8.2cqw, 58px);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.countdown-live-number:nth-child(1) { left: 15.55%; }
.countdown-live-number:nth-child(2) { left: 37.55%; }
.countdown-live-number:nth-child(3) { left: 61.15%; }
.countdown-live-number:nth-child(4) { left: 85.15%; }
.countdown-click-area {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 17%;
  display: block;
  cursor: pointer;
  text-decoration: none;
}
/* No pulse, zoom, float, or parallax on the countdown image or its scroll cue. */
@media (max-width:700px) {
  .countdown-page {
    width: min(100vw, 520px);
    aspect-ratio: 841 / 1300;
  }
  .countdown-live-number { font-size: clamp(26px, 8.2cqw, 44px); }
}


/* Arabic opening and Quran verse: common, highly readable Naskh font and balanced spacing. */
.invitation-hero .hero-title {
  top: 3.8%;
  left: 4%;
  right: 4%;
}
.invitation-hero .bismillah {
  direction: rtl;
  unicode-bidi: plaintext;
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: clamp(20px, 1.65vw, 23px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  color: #392d24;
  margin: 0 auto 6px;
  max-width: 100%;
  text-shadow: 0 1px 0 rgba(255,255,255,.34);
}
.invitation-hero .quran-verse {
  direction: rtl;
  unicode-bidi: plaintext;
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: clamp(20px, 1.55vw, 22px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  color: #3c3027;
  margin: 0 auto 12px;
  max-width: 98%;
  text-shadow: 0 1px 0 rgba(255,255,255,.34);
}
@media (max-width: 700px) {
  .invitation-hero .hero-title { top: 3.8%; left: 3.2%; right: 3.2%; }
  .invitation-hero .bismillah {
    font-size: clamp(20px, 5vw, 22px);
    line-height: 1.35;
    margin-bottom: 5px;
  }
  .invitation-hero .quran-verse {
    font-size: clamp(21px, 5.35vw, 23px);
    line-height: 1.48;
    margin-bottom: 10px;
  }
  .invitation-hero .hero-date { top: 41.5%; }
}
@media (max-height: 720px) and (min-width: 701px) {
  .invitation-hero .hero-title { top: 2.0%; }
}

/* Keep the Arabic text clear of the ornamental top border: place the full text block below the crest. */
.invitation-hero .hero-title {
  top: 10.4%;
  left: 5%;
  right: 5%;
}
.invitation-hero .bismillah {
  font-size: clamp(20px, 1.7vw, 23px);
  line-height: 1.3;
  margin: 0 auto 4px;
}
.invitation-hero .quran-verse {
  font-size: clamp(18px, 1.45vw, 20px);
  line-height: 1.38;
  max-width: 96%;
  margin: 0 auto 6px;
}
.invitation-hero .hero-name {
  font-size: clamp(34px, 2.3vw, 39px);
  line-height: .94;
}
.invitation-hero .hero-and {
  font-size: 21px;
  margin: 4px 0 3px;
}
.invitation-hero .hero-subtitle {
  font-size: clamp(8px, .85vw, 10px);
  line-height: 1.2;
  margin-top: 4px;
}
.invitation-hero .hero-date {
  top: 43.2%;
  gap: 10px;
}
@media (max-width: 700px) {
  .invitation-hero .hero-title {
    top: 10.4%;
    left: 4%;
    right: 4%;
  }
  .invitation-hero .bismillah {
    font-size: clamp(19px, 5vw, 21px);
    line-height: 1.28;
    margin-bottom: 3px;
  }
  .invitation-hero .quran-verse {
    font-size: clamp(17px, 4.35vw, 18.5px);
    line-height: 1.36;
    max-width: 96%;
    margin-bottom: 5px;
  }
  .invitation-hero .hero-name {
    font-size: clamp(33px, 8.8vw, 36px);
    line-height: .93;
  }
  .invitation-hero .hero-and {
    font-size: 20px;
    margin: 4px 0 3px;
  }
  .invitation-hero .hero-subtitle {
    font-size: clamp(7px, 1.9vw, 8px);
    letter-spacing: .15px;
    line-height: 1.2;
    margin-top: 3px;
    white-space: nowrap;
  }
  .invitation-hero .hero-date {
    top: 43.2%;
    gap: 9px;
  }
}


/* Final name scale refinement: keep the Arabic text and Tuscan artwork airy. */
.invitation-hero .hero-name {
  font-size: clamp(29px, 2vw, 33px);
  line-height: 1;
  letter-spacing: 1px;
  font-weight: 500;
}
.invitation-hero .hero-and {
  font-size: 18px;
  line-height: 1;
  margin: 3px 0 2px;
}
.invitation-hero .quran-verse {
  margin-bottom: 9px;
}
.invitation-hero .hero-subtitle {
  font-size: clamp(8px, .8vw, 9px);
  letter-spacing: .25px;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .invitation-hero .hero-name {
    font-size: clamp(29px, 7.4vw, 32px);
    line-height: 1;
    letter-spacing: .9px;
  }
  .invitation-hero .hero-and {
    font-size: 17px;
    margin: 3px 0 2px;
  }
  .invitation-hero .hero-subtitle {
    font-size: clamp(7px, 1.8vw, 8px);
    letter-spacing: .18px;
  }
}

/* Load the complete invitation behind the envelope before the hand-off. */
.invitation.preloading {
  display: block !important;
  opacity: 0;
  pointer-events: none;
}

/* The original soft fade duration, started near the end of the envelope film. */
.landing.opening.fading-out .envelope-scene {
  left: 50% !important;
  opacity: 0 !important;
  transform: translateX(-50%) scale(.99) !important;
  transform-origin: center center;
  transition: opacity 1.1s ease, transform 1.1s ease !important;
  pointer-events: none;
}
.invitation.invite-fade-in {
  opacity: 0;
  transition: opacity 320ms ease;
}
.invitation.invite-fade-in.invite-visible {
  opacity: 1;
}


/* Reliable no-flash handoff: the entire invitation is painted underneath the
   fixed envelope from initial load. Only the overlay fades away. */
#cover.landing {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100svh !important;
  min-height: 100svh !important;
  max-height: 100svh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  z-index: 50 !important;
  background: #f2f0e8 !important;
  opacity: 1;
  transition: opacity 1.1s ease !important;
}
#cover.landing.opening:not(.fading-out) { opacity: 1 !important; }
#cover.landing.opening.fading-out {
  opacity: 0 !important;
  transition: opacity 1.1s ease !important;
  pointer-events: none !important;
}
#cover.landing.opened { display: none !important; }
#cover .envelope-scene {
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  opacity: 1 !important;
  transition: none !important;
}
#cover.landing.opening.fading-out .envelope-scene {
  opacity: 1 !important;
  transform: translateX(-50%) !important;
  transition: none !important;
}
.invitation.preloading {
  display: block !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.invitation.ready-underlay {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: none !important;
}
.language-switch { z-index: 60 !important; }
@media (prefers-reduced-motion: reduce) {
  #cover.landing.opening.fading-out { transition-duration: 1ms !important; }
}


/* Names set on one line with generous breathing room after the Quran verse. */
.invitation-hero .quran-verse {
  margin-bottom: 0;
}
.invitation-hero .hero-names {
  display: flex;
  flex-direction: row;
  direction: ltr;
  justify-content: center;
  align-items: baseline;
  gap: clamp(12px, 2.1vw, 24px);
  width: 100%;
  margin: clamp(18px, 2.4vh, 28px) auto 0;
}
.invitation-hero .hero-names .hero-name {
  flex: 0 1 auto;
  margin: 0;
  white-space: nowrap;
  font-size: clamp(25px, 2.05vw, 33px);
  line-height: 1;
  letter-spacing: .7px;
}
.invitation-hero .hero-names .hero-and {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1;
}
.invitation-hero .hero-subtitle {
  margin-top: 10px;
}
.rtl .invitation-hero .hero-names {
  direction: rtl;
}
.rtl .invitation-hero .hero-names .hero-name {
  letter-spacing: 0;
  font-family: 'Amiri', serif;
  font-size: clamp(27px, 2.2vw, 35px);
}
@media (max-width: 700px) {
  .invitation-hero .hero-names {
    gap: clamp(10px, 3vw, 16px);
    margin-top: clamp(16px, 2vh, 21px);
  }
  .invitation-hero .hero-names .hero-name {
    font-size: clamp(23px, 6.6vw, 29px);
    letter-spacing: .45px;
  }
  .invitation-hero .hero-names .hero-and {
    font-size: clamp(14px, 4vw, 17px);
  }
  .rtl .invitation-hero .hero-names .hero-name {
    font-size: clamp(25px, 7vw, 31px);
  }
  .invitation-hero .hero-subtitle {
    margin-top: 9px;
    font-size: clamp(7px, 1.8vw, 8px);
    letter-spacing: .12px;
  }
}
