@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@400;500;600;700&display=swap');
:root{--navy:#101e35;--navy-light:#192b45;--gold:#c6a76d;--cream:#f7f5ef;--ink:#202e41;--muted:#7e8390;--line:#dcd5c7}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:80px}body{margin:0;color:var(--ink);background:var(--cream);font:14px/1.8 Manrope,Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--gold);outline-offset:5px}header{height:88px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;background:var(--navy);color:#eee8da;border-bottom:1px solid #ffffff14}.brand{font:27px Georgia,serif;letter-spacing:2px}.brand span{color:var(--gold);font-size:19px;padding:0 5px}.brand small{display:block;font:7px Manrope,sans-serif;letter-spacing:3px;text-align:center;margin-top:5px}nav{display:flex;gap:36px;font-size:11px;color:#d3d7df}.nav-rsvp{border:1px solid #c6a76d66;padding:10px 17px;font-size:10px;letter-spacing:.4px}.nav-rsvp span{margin-left:16px;color:var(--gold)}.hero{background:var(--navy);color:var(--cream);min-height:820px;position:relative;text-align:center;padding:66px 24px 80px;overflow:hidden}.hero:before,.hero:after{content:'';position:absolute;width:440px;height:680px;border:1px solid #c6a76d25;border-radius:50% 50% 0 0;top:75px;pointer-events:none}.hero:before{left:-295px;transform:rotate(20deg)}.hero:after{right:-295px;transform:rotate(-20deg)}.hero-lines{position:absolute;inset:27px;border:1px solid #c6a76d30;pointer-events:none}.hero-lines:before,.hero-lines:after{content:'✧';position:absolute;color:var(--gold);font-size:29px;background:var(--navy);top:-23px}.hero-lines:before{left:-9px}.hero-lines:after{right:-9px}.stars{color:var(--gold);font-size:22px;margin-bottom:18px}.eyebrow{font-size:9px;letter-spacing:3px;font-weight:600;color:#a3844e}.hero .eyebrow{color:#cbb687}.crest{margin:28px auto 15px;width:105px;height:120px;display:flex;flex-direction:column;justify-content:center;position:relative;color:var(--gold);border:1px solid #c6a76d75;border-radius:50% 50% 44% 44%;outline:1px solid #c6a76d30;outline-offset:7px}.crest>span{font-size:26px;line-height:1.2}.crest b{font:30px 'Cormorant Garamond',Georgia,serif;font-weight:400}.crest i{font-size:19px}.crest small{font-size:6px;letter-spacing:2px}h1,h2,h3{font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;line-height:1.12}h1{font-size:clamp(60px,7vw,96px);margin:26px 0 20px;letter-spacing:-2px}h1 em{color:var(--gold);font-size:.7em;padding:0 15px}h2{font-size:clamp(36px,4vw,52px);margin:15px 0 22px}h3{font-size:37px;margin:14px 0}.hero-quote{font:italic 18px/1.65 'Cormorant Garamond',Georgia,serif;color:#c5cbd3}.hero-date{display:flex;justify-content:center;align-items:center;gap:22px;margin:28px 0 22px}.hero-date span{font-size:8px;letter-spacing:2px}.hero-date strong{font-weight:400;letter-spacing:4px;font-size:17px;border-left:1px solid #c6a76d55;border-right:1px solid #c6a76d55;padding:0 24px}.hero-date i{font-style:normal;color:var(--gold)}.guest{margin:22px 0}.guest span{font-size:9px;color:#aeb9ca}.guest strong{display:block;font:21px 'Cormorant Garamond',Georgia,serif;margin-top:7px}.button{display:inline-flex;justify-content:center;align-items:center;gap:25px;padding:14px 25px;border:0;font-size:10px;font-weight:600;letter-spacing:.5px;transition:background .2s,transform .2s}.button:hover{transform:translateY(-2px)}.gold{background:#cfb17a;color:var(--navy)}.gold:hover{background:#dfc38e}.hero-bottom{position:absolute;bottom:19px;left:53px;right:53px;display:flex;justify-content:space-between;font-size:7px;letter-spacing:2px;color:#9ca7b7}.section{padding:100px 8%;text-align:center}.intro-text{font-size:12px;color:#7d8186;line-height:2.2}.couple{display:flex;justify-content:center;align-items:center;gap:100px;margin:60px 0}.couple article{width:230px}.initial{height:145px;width:115px;border:1px solid #c6a76d80;border-radius:60px 60px 0 0;margin:0 auto 25px;font:82px/145px 'Cormorant Garamond',Georgia,serif;color:#b19460;position:relative}.initial span{position:absolute;bottom:-15px;right:-17px;font-size:45px;line-height:1}.couple article>p:not(.eyebrow){font-size:11px;color:#7b7f85;margin:3px}.couple-and{font:italic 58px 'Cormorant Garamond',serif;color:#bd9b64}.verse{max-width:620px;margin:60px auto 0;border-top:1px solid var(--line);padding-top:25px}.verse>span{color:var(--gold);font-size:24px}.verse blockquote{font:italic 21px/1.7 'Cormorant Garamond',serif;margin:15px 0}.verse p{font-size:8px;letter-spacing:2px;color:#a3844e}.story{background:#ecefeF;background:linear-gradient(120deg,#edf0ef,#f0efea)}.section-head>p:last-child,.events>p:not(.eyebrow),.wishes>p:not(.eyebrow){color:#83878a;font-size:12px}.story-labels{display:flex;justify-content:space-between;max-width:450px;margin:60px auto 25px;color:#69808f;font-size:10px;letter-spacing:3px}.story-labels span:last-child{color:#ae8d83}.timeline{max-width:660px;margin:auto;position:relative}.milestone{position:relative;width:50%;padding:0 32px 40px;text-align:right;border-right:1px solid #ad9a7c;min-height:120px}.milestone:nth-child(odd){margin-left:50%;border-right:0;border-left:1px solid #ad9a7c;text-align:left}.milestone:after{content:'';position:absolute;width:7px;height:7px;border:1px solid #aa987a;border-radius:50%;background:#f0efea;right:-4px;top:5px}.milestone:nth-child(odd):after{left:-4px;right:auto}.milestone time,.branch time{font-size:9px;letter-spacing:.5px;color:#9a8058;font-weight:700}.milestone h4,.branch h4{font:23px 'Cormorant Garamond',Georgia,serif;margin:5px 0 8px}.milestone p,.branch p{font-size:10px;line-height:1.9;color:#81858a;margin:0}.split{display:grid;grid-template-columns:1fr 1fr;gap:65px;position:relative;margin:0 auto;width:70%;border-top:1px solid #bba98d;border-bottom:1px solid #bba98d;border-radius:25px;padding:20px 0;margin-bottom:0}.branch{padding:4px 18px;display:flex;flex-direction:column;justify-content:center;gap:28px}.branch:first-child{border-left:2px solid #849eac;text-align:left}.branch:last-child{border-right:2px solid #bc9894;text-align:right}.branch:first-child time{color:#69808f}.branch:last-child time{color:#ad8684}.story-end{font:italic 23px 'Cormorant Garamond',Georgia,serif;margin:25px auto 0;color:#9c8c73}.story-end span{display:block;margin-top:15px}.events{background:var(--navy);color:var(--cream)}.events .eyebrow{color:var(--gold)}.events>p:not(.eyebrow){color:#9ca7b5}.countdown{display:flex;justify-content:center;gap:45px;margin:42px auto}.countdown strong{display:block;font:42px 'Cormorant Garamond',Georgia,serif;color:#d2ba8d;min-width:58px}.countdown span{font-size:8px;letter-spacing:2px;color:#9ca7b5}.event-grid{display:grid;grid-template-columns:1fr 1fr;max-width:800px;margin:45px auto 32px;gap:25px}.event-grid article{border:1px solid #c6a76d50;padding:32px 30px;position:relative}.event-icon{font-size:28px;color:var(--gold)}.event-grid h3{font-size:40px}.event-grid p{font-size:11px;color:#9da9b9}.event-grid .eyebrow{font-size:8px}.event-grid .event-date{color:#eee8da}.event-grid hr{border:0;border-top:1px solid #c6a76d30;width:45px;margin:25px auto}.event-grid h4{font-weight:500;font-size:12px;margin:10px 0}.text-link{display:inline-block;color:#aa8853;font-size:10px;border-bottom:1px solid #c6a76d60;padding-bottom:4px;margin-top:18px}.events .text-link{color:#d4ba8a}.outline{background:transparent;border:1px solid #c6a76d60;color:#dfccaa}.response{display:grid;grid-template-columns:1fr 1fr;gap:80px;text-align:left;max-width:1250px;margin:auto;align-items:center}.response-copy p:not(.eyebrow){font-size:12px;color:#83878a}.tiny-ornament{color:var(--gold);margin:35px 0;letter-spacing:4px}.response-copy .note{font-size:10px!important}form{background:#eeede6;padding:35px}form>label,legend{display:block;font-size:10px;font-weight:600;margin-bottom:8px}form label span{font-weight:400;color:#888}input:not([type=radio]),select,textarea{width:100%;border:1px solid #d8d5ca;background:#f9f8f3;color:var(--ink);padding:12px;font-size:11px;border-radius:0;margin-bottom:20px}textarea{resize:vertical}fieldset{border:0;margin:0 0 20px;padding:0}.radio{padding:10px;background:#f9f8f3;border:1px solid #d8d5ca;display:flex;gap:10px;align-items:center;font-size:10px;margin-bottom:7px}.radio input{accent-color:var(--navy)}.radio span{margin-left:auto}.honeypot{display:none!important}form .button{width:100%}#form-status{font-size:11px;margin:10px 0 0}.wishes{background:#efeee8;padding-top:80px}.wish-list{max-width:900px;margin:36px auto;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;text-align:left}.wish{padding:25px;border:1px solid #d8d2c4;background:#f8f6f0;overflow-wrap:anywhere}.wish .quote{color:var(--gold);font:40px Georgia;line-height:1}.wish p{font-size:11px;color:#7d8288;white-space:pre-wrap}.wish strong{font-size:11px;font-weight:600}.wish time{display:block;font-size:8px;color:#9a9b98;margin-top:5px}.empty{grid-column:1/-1;text-align:center;font-size:12px;color:#81858a;padding:20px}footer{text-align:center;background:var(--navy);color:#aeb7c4;padding:65px 6% 20px}.footer-crown{font-size:30px;color:var(--gold)}footer>p{font-size:11px;margin:22px 0}footer h2{color:#eadfc9;font-size:48px}.footer-bottom{border-top:1px solid #ffffff13;margin-top:50px;padding-top:20px;display:flex;justify-content:space-between;font-size:7px;letter-spacing:1.5px}.back-top{position:fixed;bottom:22px;right:22px;background:var(--navy);color:var(--gold);border:1px solid #c6a76d77;width:36px;height:36px}a:hover{color:#b89963}@media(min-width:1500px){.hero{min-height:860px;padding-top:85px}}@media(max-width:760px){header{height:74px;padding:0 6%}nav{gap:15px;font-size:9px}.nav-rsvp{display:none}.hero{min-height:800px;padding-top:58px}.hero-lines{inset:15px}.hero h1{font-size:64px}.hero h1 em{padding:0 3px}.hero-date{gap:10px}.hero-date span{font-size:6px;letter-spacing:1px}.hero-date strong{font-size:14px;padding:0 12px;letter-spacing:2px}.hero-bottom{left:30px;right:30px;font-size:5px;letter-spacing:1px}.section{padding:72px 7%}.couple{gap:25px;margin:45px 0}.couple article{width:40%}.couple h3{font-size:31px}.couple-and{font-size:38px}.initial{width:90px;height:120px;line-height:120px;font-size:64px}.couple article>p:not(.eyebrow){font-size:9px}.verse blockquote{font-size:19px}.story-labels{padding:0 10px;margin-top:40px}.milestone{padding:0 18px 32px;min-height:125px}.milestone h4,.branch h4{font-size:20px}.milestone p,.branch p{font-size:9px}.milestone time,.branch time{font-size:8px}.split{width:85%;gap:20px}.branch{padding:6px 12px}.countdown{gap:18px}.event-grid{gap:16px}.event-grid article{padding:24px 13px}.event-grid h3{font-size:32px}.event-grid p{font-size:10px}.event-grid .eyebrow{font-size:6px;letter-spacing:1.5px}.response{display:block}.response-copy{text-align:center;margin-bottom:35px}form{padding:25px}.wish-list{grid-template-columns:1fr}.footer-bottom{font-size:5px;gap:12px}.desktop{display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Entrance animations: enabled by JavaScript only, with an accessible fallback. */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .85s ease var(--reveal-delay,0ms),transform .85s cubic-bezier(.2,.65,.3,1) var(--reveal-delay,0ms)}
.reveal.revealed{opacity:1;transform:translateY(0)}
.reveal:focus-within{opacity:1;transform:none}
.music-toggle{position:fixed;bottom:22px;left:22px;z-index:20;display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 14px 7px 8px;border:1px solid #c6a76d88;border-radius:30px;background:#101e35f5;color:#d8bd8b;box-shadow:0 4px 20px #0002}
.music-disc{display:grid;place-items:center;width:29px;height:29px;border:1px solid #c6a76d66;border-radius:50%;font-size:17px}
.music-label{font-size:9px;letter-spacing:.4px}
.music-bars{display:flex;align-items:center;gap:3px;height:18px}
.music-bars i{display:block;width:2px;height:4px;background:var(--gold);border-radius:2px}
.playing .music-disc{animation:disc-turn 8s linear infinite}
.playing .music-bars i{animation:music-wave 1.1s ease-in-out infinite alternate}
.playing .music-bars i:nth-child(2){animation-delay:-.4s}
.playing .music-bars i:nth-child(3){animation-delay:-.8s}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@keyframes music-wave{from{height:4px}to{height:16px}}
@keyframes disc-turn{to{transform:rotate(360deg)}}
@media(max-width:760px){.music-toggle{bottom:18px;left:15px}.back-top{bottom:22px;right:15px}}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}.playing .music-disc,.playing .music-bars i{animation:none}}

/* Full-screen royal entrance, sized to the visible mobile viewport. */
.entrance-locked{overflow:hidden}
.castle-entrance{position:fixed;inset:0;z-index:100;isolation:isolate;height:100vh;height:100dvh;min-height:0;overflow:hidden;display:grid;place-items:center;background:#080f1d;perspective:1400px;color:var(--cream)}
.castle-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 48%,#d4b77b99 0%,#b6914933 28%,#101e35 70%);opacity:.35;transition:opacity 1.2s ease}
.castle-door{position:absolute;top:0;bottom:0;width:50%;background:repeating-linear-gradient(90deg,transparent 0px,transparent 65px,#0002 66px,#ffffff03 68px),linear-gradient(105deg,#1c304e,#0c192d 60%,#182a43);border:1px solid #b5935666;box-shadow:inset 0 0 70px #0007;transition:transform 1.8s cubic-bezier(.45,.05,.2,1),filter 1.8s;backface-visibility:hidden}
.door-left{left:0;transform-origin:left center;border-right:2px solid #b99b63}
.door-right{right:0;transform-origin:right center;border-left:2px solid #b99b63;background-color:#15243b}
.door-panel{position:absolute;inset:6% 10%;border:1px solid #c6a76d66;border-radius:50% 50% 3px 3px;box-shadow:inset 0 0 0 7px #101e35,inset 0 0 0 8px #c6a76d33}
.door-panel:before,.door-panel:after{content:'✧';position:absolute;left:50%;transform:translateX(-50%);color:#b89a61;font-size:26px}
.door-panel:before{top:12%}.door-panel:after{bottom:10%}
.door-handle{position:absolute;top:58%;height:36px;width:12px;border:2px solid #c6a76d;border-radius:50%;box-shadow:0 2px 10px #0007}
.door-left .door-handle{right:14px}.door-right .door-handle{left:14px}
.castle-arch{position:absolute;inset:18px;border:1px solid #c6a76d80;border-radius:48% 48% 0 0;pointer-events:none;box-shadow:0 0 0 8px #101e3555,0 0 0 9px #c6a76d22;transition:opacity .8s}
.entrance-content{position:relative;z-index:2;text-align:center;width:min(90%,600px);padding:24px;transition:opacity .55s,transform .7s;text-shadow:0 2px 20px #080f1d}
.entrance-crown{font-size:clamp(30px,6vh,54px);color:var(--gold)}
.entrance-content .eyebrow{color:#d3ba88;letter-spacing:3px;margin:14px 0}
.entrance-content h2{font-size:clamp(46px,7vw,85px);margin:14px 0 20px;color:#f3ead9}
.entrance-date{font-size:10px;letter-spacing:4px;color:#d3bb90}
.entrance-divider{font-size:24px;color:var(--gold);margin:22px 0}
.entrance-greeting{font-size:10px;color:#c4c8cf;margin:0}
.entrance-guest{display:block;font:25px 'Cormorant Garamond',Georgia,serif;margin:8px 0 26px;overflow-wrap:anywhere}
.entrance-content .button{min-height:46px;box-shadow:0 5px 30px #0005;text-shadow:none}
.entrance-hint{font-size:8px;letter-spacing:1px;color:#aeb8c9;margin-top:17px}
.castle-entrance.opening .door-left{transform:rotateY(-105deg);filter:brightness(.55)}
.castle-entrance.opening .door-right{transform:rotateY(105deg);filter:brightness(.55)}
.castle-entrance.opening .entrance-content{opacity:0;transform:translateY(-12px);pointer-events:none}
.castle-entrance.opening .castle-arch{opacity:0}
.castle-entrance.opening .castle-glow{opacity:1}
.castle-entrance.opening{animation:entrance-fade .5s ease 1.45s forwards}
@keyframes entrance-fade{to{opacity:0}}
@media(max-width:760px){
 header{height:64px}
 .hero{height:calc(100svh - 64px);min-height:580px;padding:22px 20px 45px;display:flex;flex-direction:column;align-items:center;justify-content:center}
 .hero>.stars{font-size:17px;margin:0 0 8px}
 .hero>.eyebrow{font-size:7px;margin:7px 0}
 .hero>.crest{width:82px;height:95px;min-height:95px;margin:18px auto 10px}
 .hero h1{font-size:clamp(48px,12vw,64px);margin:16px 0 9px}
 .hero-quote{font-size:16px;margin:8px 0}
 .hero-date{margin:17px 0 10px}
 .hero .guest{margin:10px 0 17px}
 .hero .guest span{font-size:8px}
 .hero .guest strong{font-size:20px}
 .hero .button{min-height:44px;padding:12px 25px}
 .hero-bottom{bottom:13px}
 .entrance-content{padding:18px 12px}
 .castle-arch{inset:12px}
}
@media(max-width:760px) and (max-height:700px){
 .hero{min-height:0;padding:14px 18px 35px}
 .hero>.stars{display:none}
 .hero>.crest{width:65px;height:77px;min-height:77px;margin:12px auto 4px}
 .crest>span{font-size:21px}.crest b{font-size:24px}
 .hero h1{font-size:48px;margin:12px 0 5px}
 .hero-quote{font-size:14px;margin:5px 0}
 .hero-date{margin:12px 0 5px}
 .hero .guest{margin:7px 0 12px}
 .entrance-divider{margin:12px 0}
 .entrance-content h2{margin:10px 0;font-size:48px}
 .entrance-crown{font-size:30px}
}
@media(max-height:460px) and (orientation:landscape){
 .entrance-content{padding:8px}.entrance-crown,.entrance-divider,.entrance-hint{display:none}
 .entrance-content h2{font-size:38px;margin:8px}.entrance-content .eyebrow{margin:5px}.entrance-guest{margin:5px 0 12px;font-size:20px}.entrance-date{margin:5px}
}
@media(prefers-reduced-motion:reduce){.castle-door,.entrance-content,.castle-arch,.castle-glow{transition:none}.castle-entrance.opening{animation:none;opacity:0}}

/* The castle is decorative and opens automatically; there is no cover text or CTA. */
.castle-entrance{pointer-events:none}

/* Walk through the gate: the invitation itself sits behind the opening doors. */
html{scroll-padding-top:20px}
body{overflow-x:clip}
.hero{min-height:100svh}
@media(max-width:760px){.hero{height:100svh;min-height:0}}
.castle-entrance{display:block;background:transparent;perspective:1100px}
.castle-stage{position:absolute;inset:0;perspective:1100px;transform-style:preserve-3d;transform-origin:50% 48%;transform:translateZ(0) scale(1);transition:transform 3.2s cubic-bezier(.22,.65,.22,1);will-change:transform}
.castle-door{width:50.15%;border-width:2px;box-shadow:inset 0 0 70px #0007,inset 0 0 0 5px #c6a76d12,0 0 30px #0008;transition:transform 2.9s cubic-bezier(.35,.06,.18,1),filter 2.9s ease;will-change:transform;transform:rotateY(0deg)}
.door-left{transform-origin:0 50%;border-right:4px ridge #ad8d56}
.door-right{transform-origin:100% 50%;border-left:4px ridge #ad8d56}
.castle-door:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0003,transparent 35%,#d1ae6b0a 65%,#0006);transition:opacity 2.9s;opacity:.3}
.door-right:after{background:linear-gradient(270deg,#0003,transparent 35%,#d1ae6b0a 65%,#0006)}
.door-panel{border-width:2px;box-shadow:inset 0 0 0 5px #07111e,inset 0 0 0 7px #c6a76d55,inset 0 0 22px #0006,0 0 12px #0005}
.door-handle{height:46px;width:15px;background:linear-gradient(90deg,#705329,#e4cb91,#8a6836);border:2px solid #b89b64;box-shadow:2px 4px 9px #0009,inset 1px 0 2px #ffe5a7}
.castle-arch{border:3px ridge #b7986255;box-shadow:0 0 0 8px #101e3588,0 0 0 10px #c6a76d33,0 0 35px #0006;transition:opacity 2.7s ease}
.castle-glow{background:radial-gradient(ellipse at 50% 48%,#e9d5a329,transparent 48%),linear-gradient(#070e1980,#070e19a0);opacity:1;transition:opacity 2.8s ease .2s}
.castle-entrance.opening .castle-stage{transform:translateZ(150px) scale(1.32)}
.castle-entrance.opening .door-left{transform:rotateY(-108deg);filter:brightness(.6)}
.castle-entrance.opening .door-right{transform:rotateY(108deg);filter:brightness(.6)}
.castle-entrance.opening .castle-door:after{opacity:1}
.castle-entrance.opening .castle-arch{opacity:0}
.castle-entrance.opening .castle-glow{opacity:0}
.castle-entrance.opening{animation:gate-clear .55s ease 2.8s forwards}
@keyframes gate-clear{from{opacity:1}to{opacity:0}}
.entrance-locked{background:var(--navy)}
.entrance-locked .hero{transform:scale(.88);transform-origin:50% 48%;filter:brightness(.48) blur(2px);transition:transform 3.2s cubic-bezier(.22,.65,.22,1),filter 2.9s ease;will-change:transform,filter}
.entrance-locked.entrance-moving .hero{transform:scale(1);filter:brightness(1) blur(0)}
.entrance-locked .music-toggle,.entrance-locked .back-top{opacity:0;pointer-events:none}
.music-toggle,.back-top{transition:opacity .6s ease}
@media(prefers-reduced-motion:reduce){.castle-stage,.castle-door,.castle-glow,.castle-arch,.entrance-locked .hero{transition:none;will-change:auto}.entrance-locked .hero{transform:none;filter:none}.castle-entrance.opening{animation:none;opacity:0}}

/* Royal editorial finish: engraved corners, warm parchment and miniature portrait medallions. */
:root{--navy:#0b182b;--navy-light:#142942;--gold:#c5a66c;--cream:#f6f2e9;--line:#d9cdb7}
.hero{background:radial-gradient(ellipse at 50% 38%,#203a55 0%,#0c1c31 48%,#081322 100%)}
.hero-lines{border-color:#c6a76d47;inset:28px}
.hero-lines:before,.hero-lines:after{display:none}
.royal-corners{position:absolute;inset:12px;pointer-events:none;color:#c6a76d8a;z-index:1}
.royal-corner{position:absolute;width:clamp(85px,12vw,160px);height:clamp(85px,12vw,160px)}
.royal-corner svg{display:block;width:100%;height:100%}
.corner-0{left:0;top:0}.corner-1{right:0;top:0;transform:rotate(90deg)}.corner-2{right:0;bottom:0;transform:rotate(180deg)}.corner-3{left:0;bottom:0;transform:rotate(270deg)}
.hero h1{color:#f6ecd8;text-shadow:0 3px 30px #d9b87a14}
.crest{background:linear-gradient(145deg,#c6a76d0c,transparent);box-shadow:0 0 35px #c6a76d08}
.crest>span{display:block;width:42px;height:30px;margin:0 auto 6px}
.crest svg,.footer-crown svg{display:block;width:100%;height:100%}
.footer-crown{display:block;width:60px;height:42px;margin:auto}
.hero .gold{background:linear-gradient(110deg,#b89353,#e0c58f 50%,#bc995e);border:1px solid #dfc695;box-shadow:0 5px 25px #0003}
.intro{background:radial-gradient(ellipse at 50% 10%,#fffdf9 0%,#f3eee3 80%)}
.intro>h2{max-width:650px;margin-left:auto;margin-right:auto}
.couple{gap:85px}
.couple .initial{width:146px;height:178px;line-height:178px;border-radius:74px 74px 55px 55px;border:1px solid #b6945b;outline:1px solid #c8ad7b88;outline-offset:7px;background:radial-gradient(ellipse at 40% 30%,#fffcf5,#e6ddca);box-shadow:0 10px 35px #79633a16,inset 0 0 0 5px #fbf8ef;margin-bottom:20px;font-size:82px;isolation:isolate}
.couple .initial:before,.couple .initial:after{content:'❧';position:absolute;z-index:3;bottom:10px;font:38px Georgia,serif;color:#b4945e;line-height:1}
.couple .initial:before{left:-20px;transform:rotate(-28deg)}
.couple .initial:after{right:-20px;transform:scaleX(-1) rotate(-28deg)}
.couple .initial .portrait-crown{position:absolute;z-index:4;left:50%;right:auto;bottom:auto;top:-23px;transform:translateX(-50%);width:43px;height:30px;line-height:1;color:#a88343}
.portrait-crown svg{display:block;width:100%;height:100%;background:#f6f2e9;border-radius:50%}
.initial img{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);object-fit:cover;object-position:center 30%;border-radius:inherit;opacity:0;transition:opacity .7s ease;z-index:1}
.initial.has-photo img{opacity:1}
.portrait-caption{display:block;font-size:6px;letter-spacing:1.7px;color:#a18451;margin-bottom:20px}
.couple article>.eyebrow{font-size:8px;letter-spacing:2px}
.verse{position:relative;padding:35px 30px 0}
.verse:before{content:'✧';position:absolute;top:-19px;left:calc(50% - 18px);width:36px;background:#f6f2e9;color:#b5955e;font-size:22px}
.story{background:radial-gradient(ellipse at top,#f3f3ee,#e9edea)}
.story-labels{border-bottom:1px solid #ad9a7c40;padding-bottom:16px}
.events{background:radial-gradient(ellipse at 50% 10%,#1d354d,#0b192c 65%);position:relative}
.event-grid article{background:linear-gradient(135deg,#ffffff03,transparent);outline:1px solid #c6a76d22;outline-offset:-7px;border-radius:120px 120px 4px 4px;padding-top:45px}
.event-grid .event-icon{display:inline-block;margin-bottom:7px}
.event-grid h3{color:#eee1c9}
.countdown>div{position:relative}
.countdown>div+div:before{content:'·';position:absolute;left:-25px;top:8px;color:#a3844e;font:30px Georgia,serif}
.response{gap:85px}.response form{background:#f0ebe1;outline:1px solid #c5a66c44;outline-offset:7px;box-shadow:0 15px 50px #392c1710}
.wishes{background:#eee9de}.wish{border-top:2px solid #c6a76d80;background:#faf7f0}
.soundtrack{padding-top:55px;padding-bottom:55px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:50px;text-align:left;max-width:1100px;margin:auto}
.soundtrack h2{font-size:37px}.soundtrack-copy>p:not(.eyebrow){font-size:11px;color:#8a877f}
.soundtrack-frame{padding:7px;border:1px solid #c6a76d77;background:var(--navy);min-width:0;box-shadow:0 8px 25px #0001}
.soundtrack-frame iframe{display:block;width:100%;height:240px;border:0}
#wedding-player{min-height:240px}
/* A pair of colonnades travels past the viewer after the foreground doors part. */
.royal-passage{position:absolute;inset:0;perspective:850px;overflow:hidden;pointer-events:none}
.passage-layer{position:absolute;inset:0;transform-origin:50% 48%;transform:scale(.46);opacity:0;will-change:transform,opacity}
.passage-layer-2{transform:scale(.3)}
.royal-pillar{position:absolute;top:4%;bottom:-8%;width:11%;min-width:34px;background:repeating-linear-gradient(90deg,#12233a 0%,#34455a 12%,#15273c 23%,#0a1729 32%);border-left:2px solid #d0af6d77;border-right:2px solid #b18a5055;box-shadow:10px 0 40px #0008}
.pillar-left{left:3%}.pillar-right{right:3%;transform:scaleX(-1)}
.pillar-cap,.pillar-base{position:absolute;left:-15%;width:130%;height:25px;border-top:3px solid #bda16c;border-bottom:2px solid #a08656;background:linear-gradient(#24364a,#0d192a)}
.pillar-cap{top:0;box-shadow:0 9px 0 #112036,0 11px 0 #92774c}
.pillar-base{bottom:0;height:50px}
.passage-arch{position:absolute;inset:0 10% -40%;border:20px solid #1a2e46;border-radius:50% 50% 0 0;box-shadow:inset 0 0 0 2px #c5a66c99,0 0 0 2px #9e815455,inset 0 0 35px #0005}
.royal-banner{position:absolute;top:17%;width:11%;height:30%;max-height:230px;background:linear-gradient(90deg,#08172b,#213c5b 45%,#10263e);border-top:4px solid #bd9f65;clip-path:polygon(0 0,100% 0,100% 85%,50% 100%,0 85%);display:flex;justify-content:center;padding-top:30px;color:#cdb17a;box-shadow:0 10px 25px #0008}
.banner-left{left:16%}.banner-right{right:16%}.royal-banner span{font:clamp(24px,4vw,50px) Georgia,serif}
.passage-dust{position:absolute;inset:0;opacity:0;background-image:radial-gradient(circle,#e6c787 1px,transparent 2px),radial-gradient(circle,#d8b47366 1px,transparent 2px);background-size:93px 131px,157px 97px;background-position:12px 43px,40px 5px}
.castle-entrance.opening .passage-layer-1{animation:pass-column 3.5s cubic-bezier(.32,.3,.35,1) .3s both}
.castle-entrance.opening .passage-layer-2{animation:pass-column-deep 3.8s cubic-bezier(.32,.3,.35,1) .65s both}
.castle-entrance.opening .passage-dust{animation:pass-dust 4.4s ease both}
.castle-entrance.opening{animation:gate-clear .6s ease 4.3s forwards}
.castle-stage{transition-duration:3.8s}
.entrance-locked .hero{transform:scale(.8);filter:brightness(.35) blur(3px);transition:transform 4.8s cubic-bezier(.2,.55,.22,1),filter 4.6s ease}
.entrance-locked.entrance-moving .hero{transform:scale(1);filter:brightness(1) blur(0)}
@keyframes pass-column{0%{opacity:0;transform:scale(.46)}18%{opacity:.95}70%{opacity:1}100%{opacity:0;transform:scale(2.4)}}
@keyframes pass-column-deep{0%{opacity:0;transform:scale(.3)}20%{opacity:.8}70%{opacity:1}100%{opacity:0;transform:scale(2.15)}}
@keyframes pass-dust{0%,100%{opacity:0;transform:scale(.8)}30%,65%{opacity:.25}100%{transform:scale(1.55)}}
@media(max-width:760px){
 .hero-lines{inset:20px}.royal-corners{inset:7px}.hero>.crest{width:82px;height:96px;min-height:96px}
 .crest>span{width:35px;height:24px;margin-bottom:2px}
 .couple{gap:20px}.couple .initial{width:112px;height:142px;line-height:142px;font-size:65px}
 .portrait-caption{font-size:5px;letter-spacing:1px}.couple .initial .portrait-crown{width:36px;height:26px;top:-20px}
 .couple-and{font-size:36px}.couple article{width:42%}.couple h3{font-size:32px}
 .event-grid article{border-radius:85px 85px 3px 3px;padding-top:38px}
 .countdown>div+div:before{left:-12px;font-size:25px}
 .soundtrack{display:block;padding:42px 8%;text-align:center}.soundtrack h2{font-size:32px}.soundtrack-frame{margin-top:26px}
 .royal-pillar{width:10%;min-width:26px}.passage-arch{border-width:12px}.royal-banner{width:12%;padding-top:20px}
}
@media(max-width:760px) and (max-height:700px){.hero>.crest{width:65px;height:77px;min-height:77px}.crest>span{width:28px;height:20px}}
@media(prefers-reduced-motion:reduce){.passage-layer,.passage-dust{animation:none!important;display:none}.castle-entrance.opening{animation:none;opacity:0}.entrance-locked .hero{transition:none;transform:none;filter:none}}

/* Keep the whole invitation at one camera depth while travelling through the hall. */
.entrance-locked .hero{transform:scale(.2);transform-origin:50% 48%;filter:brightness(.3) blur(2px);transition:none;will-change:transform,filter}
.entrance-locked.entrance-moving .hero{animation:invitation-approach 4.9s linear both;transition:none}
.entrance-locked .hero>.reveal{opacity:1;transform:none;transition:none}
@keyframes invitation-approach{
  0%{transform:scale(.2);filter:brightness(.3) blur(2px)}
  25%{transform:scale(.26);filter:brightness(.42) blur(1.6px)}
  50%{transform:scale(.4);filter:brightness(.6) blur(1px)}
  72%{transform:scale(.64);filter:brightness(.82) blur(.4px)}
  90%{transform:scale(.91);filter:brightness(.97) blur(0)}
  100%{transform:scale(1);filter:brightness(1) blur(0)}
}
/* Original uploaded monogram; only its on-page colour is adapted to the gold palette. */
.hero .crest.custom-crest{width:150px;height:150px;min-height:150px;margin:12px auto 4px;padding:0;border:0;outline:0;border-radius:0;background:none;box-shadow:none}
.royal-monogram{display:block;width:100%;height:100%;object-fit:contain;filter:invert(1) sepia(1) saturate(.65) brightness(.85);mix-blend-mode:screen}
@media(max-width:760px){.hero>.crest.custom-crest{width:125px;height:125px;min-height:125px;margin:8px auto 2px}}
@media(max-width:760px) and (max-height:700px){.hero>.crest.custom-crest{width:95px;height:95px;min-height:95px;margin:4px auto 0}}
@media(prefers-reduced-motion:reduce){.entrance-locked .hero,.entrance-locked.entrance-moving .hero{animation:none;transform:none;filter:none;transition:none}}
/* Set before the first paint, avoiding a flash of full-size invitation while modules load. */
html.entrance-pending .hero{transform:scale(.2);transform-origin:50% 48%;filter:brightness(.3) blur(2px)}
@media(prefers-reduced-motion:reduce){html.entrance-pending .hero{transform:none;filter:none}}

/* Quiet light reveal: no camera scaling, text zoom, or passing foreground props. */
html.entrance-pending .hero,
.entrance-locked .hero,
.entrance-locked.entrance-moving .hero{transform:none;filter:none;animation:none;transition:none;will-change:auto}
html.entrance-pending .hero>.reveal,
.entrance-locked .hero>.reveal{opacity:0;transform:none;filter:blur(4px);transition:none}
.entrance-locked.entrance-moving .hero>.reveal{opacity:1;transform:none;filter:blur(0);transition:opacity 1.6s ease calc(1s + var(--reveal-delay,0ms)),filter 1.6s ease calc(1s + var(--reveal-delay,0ms))}
.castle-stage{transition:none;will-change:auto}
.castle-entrance.opening .castle-stage{transform:none}
.castle-door{transition:transform 2.5s cubic-bezier(.35,.1,.2,1),filter 2.5s ease}
.castle-entrance.opening .door-left{transform:rotateY(-102deg)}
.castle-entrance.opening .door-right{transform:rotateY(102deg)}
.castle-glow{background:radial-gradient(ellipse at 50% 40%,#e8ce973d,transparent 60%);opacity:0;transition:none}
.castle-entrance.opening .castle-glow{animation:royal-light-bloom 3.5s ease both}
.entrance-light{position:absolute;inset:-30%;pointer-events:none;opacity:0;mix-blend-mode:screen;background:linear-gradient(115deg,transparent 37%,#e7cd9020 45%,#ffefd55c 50%,#e7cd9020 55%,transparent 63%);transform:translateX(-65%)}
.castle-entrance.opening .entrance-light{animation:royal-light-sweep 3s cubic-bezier(.2,.5,.3,1) .3s both}
.castle-entrance.opening{animation:gate-clear .55s ease 3s forwards}
@keyframes royal-light-bloom{0%{opacity:0}30%{opacity:.75}60%{opacity:.45}100%{opacity:0}}
@keyframes royal-light-sweep{0%{opacity:0;transform:translateX(-65%)}25%{opacity:.65}60%{opacity:.4}100%{opacity:0;transform:translateX(65%)}}
.royal-monogram{mix-blend-mode:normal;filter:brightness(0) saturate(100%) invert(73%) sepia(24%) saturate(610%) hue-rotate(359deg) brightness(90%) contrast(89%)}
@media(prefers-reduced-motion:reduce){html.entrance-pending .hero>.reveal,.entrance-locked .hero>.reveal,.entrance-locked.entrance-moving .hero>.reveal{opacity:1;filter:none;transition:none}.entrance-light{display:none}.castle-entrance.opening,.castle-entrance.opening .castle-glow{animation:none;opacity:0}}

/* Illustrated king and queen portraits: retain the full crown and modest attire. */
.couple .initial.illustrated-portrait{width:180px;height:225px;line-height:225px;border-radius:95px 95px 65px 65px;background:radial-gradient(ellipse at 50% 35%,#fffdf6,#e6dbc5);margin-top:18px}
.initial.illustrated-portrait img{inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);object-fit:contain;object-position:center bottom;border-radius:0;transform-origin:center bottom}
.initial.illustrated-portrait.has-photo{color:transparent}
.initial.illustrated-portrait.has-photo .portrait-crown{display:none}
.couple article.revealed .illustrated-portrait.has-photo img{animation:royal-portrait-breathe 6s ease-in-out infinite}
.couple article:nth-of-type(2).revealed .illustrated-portrait.has-photo img{animation-delay:-3s}
@keyframes royal-portrait-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(max-width:760px){.couple .initial.illustrated-portrait{width:128px;height:164px;line-height:164px;border-radius:70px 70px 45px 45px}.initial.illustrated-portrait img{inset:6px;width:calc(100% - 12px);height:calc(100% - 12px)}}
@media(max-width:360px){.couple .initial.illustrated-portrait{width:110px;height:146px;line-height:146px}}
@media(prefers-reduced-motion:reduce){.couple article .illustrated-portrait.has-photo img{animation:none!important;transform:none}}
