@font-face{font-family:'Royal Script';src:url('./fonts/GreatVibes-Regular.woff2') format('woff2');font-display:swap}
@font-face{font-family:'Royal Display';src:url('./fonts/CinzelDecorative-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Royal Display';src:url('./fonts/CinzelDecorative-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{--royal-ground:#ffe4b3;--royal-paper:#fff9eb;--royal-red:#921c2b;--royal-wine:#641526;--royal-gold:#dea645;--royal-deep-gold:#93601e;--royal-teal:#123b40;--royal-ink:#39150f;--royal-ease:cubic-bezier(.22,1,.36,1);--shutter-ease:cubic-bezier(.65,0,.35,1)}
html{scrollbar-width:none;scroll-behavior:auto}html::-webkit-scrollbar{display:none}body.royal-invitation{margin:0;background:var(--royal-ground);color:var(--royal-ink);font-family:Cormorant,Georgia,serif;font-size:19px;line-height:1.55}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{font:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--royal-teal);outline-offset:5px}h1,h2,h3,p{margin-top:0}.section-checkpoint{min-height:100svh;display:grid;place-content:center;text-align:center}.section-checkpoint h1{font-family:'Royal Display',serif;font-size:clamp(36px,7vw,84px)}
/* Clip the artwork to a viewport-sized camera before its bounded push.
   Doors paint cropped backgrounds, not oversized image children in a 3D clip. */
dialog.royal-cover#gate{position:fixed;inset:0;width:100%;height:100svh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#0b252a;color:#fff3d4;isolation:isolate;perspective:none;backface-visibility:visible}
.royal-cover::backdrop{background:#0b252a}
.gateway-stage{position:absolute;inset:0;overflow:hidden;contain:paint}
.gateway-camera{position:absolute;inset:0;overflow:hidden;transform-origin:50% 69%}
.gateway-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.gateway-artwork{position:absolute;left:50%;top:50%;width:max(100%,calc(var(--gateway-height,100svh)*1.776833));aspect-ratio:1672/941;transform:translate(-50%,-50%)}
.gateway-scene{display:block;width:100%;height:100%;max-width:none}
.gateway-portal{position:absolute;left:38.7%;top:29.7%;width:23%;height:66%;clip-path:polygon(0 21%,10% 12%,28% 5%,50% 0,72% 5%,90% 12%,100% 21%,100% 100%,0 100%);perspective:1400px;background:#f4d39a;opacity:0}
/* The closed cover is the complete painted artwork on its own. The animation layers appear
   together only when the opening starts with the matching image decoded (gateway-motion.js),
   so the gold portal can never paint before the wooden door textures exist. */
.gateway-artwork[data-doors-visible] .gateway-portal{opacity:1}
.gateway-light{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 60%,#fff7df 20%,#f3cf8d 65%,#ac701e)}
.gateway-door{position:absolute;top:0;bottom:0;width:50%;backface-visibility:hidden;background-image:var(--gateway-image,none);background-repeat:no-repeat;background-size:869.565% 151.515%}
.gateway-left{left:0;transform-origin:left center;background-position:43.7285% 87.3532%}
.gateway-right{right:0;transform-origin:right center;background-position:56.7228% 87.3532%}
.royal-cover[data-gateway-path=flat] .gateway-portal{perspective:none}
.royal-cover[data-gateway-path=flat] .gateway-door{backface-visibility:visible;transform-style:flat}
.gateway-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 34%,rgba(5,26,33,.22) 48%,rgba(5,26,33,.88) 100%)}.gateway-flood{position:absolute;inset:0;pointer-events:none;background:#fff1d5;opacity:0}.gateway-letter{position:absolute;inset:auto 16px max(24px,5dvh);display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.25;text-shadow:0 2px 12px #071f2d}.gateway-ganesha{width:58px;height:58px;object-fit:contain;margin-bottom:8px}.gateway-invocation{font-family:Devanagari,serif;font-size:14px;margin-bottom:12px}.gateway-eyebrow{font-family:'Royal Display',serif;text-transform:uppercase;letter-spacing:.25em;font-size:12px;color:#f4d38d;margin-bottom:7px}.gateway-letter h2{font-family:'Royal Script',cursive;font-size:clamp(52px,6.6vw,86px);font-weight:400;line-height:1.12;color:#fff3d4;margin:0 0 7px}.gateway-letter h2 i{font-style:normal;font-size:.72em}.gateway-city{font-size:16px;margin-bottom:12px}.gateway-letter .cover-recipient{position:static;display:flex;flex-direction:column;gap:3px;min-height:43px;max-width:min(88vw,560px);overflow-wrap:anywhere;margin:0 0 14px}.gateway-letter .cover-recipient span{font-size:14px}.gateway-letter .cover-recipient strong{font-size:20px;font-weight:500}.gateway-open.button{min-width:192px;min-height:48px;padding:10px 22px;border:1px solid #f9de9a;background:linear-gradient(135deg,#f0cf83,#dba647);color:#35200b;box-shadow:0 4px 24px #0003;text-shadow:none;display:flex;align-items:center;justify-content:center;gap:16px;font-family:'Royal Display',serif;font-size:13px;letter-spacing:.03em}.gateway-open:disabled{opacity:.7}.gateway-open:focus-visible{outline-color:#fff3d4}.gateway-letter [data-invite-notice]:empty{display:none}.gateway-letter [data-invite-notice]{max-width:500px;font-size:14px;margin:8px 0 0}.royal-invitation footer{text-align:center;padding:35px 20px max(100px,calc(env(safe-area-inset-bottom) + 88px));background:#123b40;color:#fff1d5}.royal-invitation footer p{margin:4px 0;font-size:15px}.royal-invitation footer .footer-couple{font-size:17px;color:#f4d38d}.royal-invitation .invitation-music{background:#fff0cc;color:#641526;border-color:#c18c38}
dialog.royal-cover#gate .gateway-letter h2{font-family:'Royal Script',cursive;font-size:clamp(52px,6.6vw,86px);font-weight:400;line-height:1.12;color:#fff3d4}
dialog.royal-cover#gate .gateway-open.button{min-width:192px;min-height:48px;padding:10px 22px;border:1px solid #f9de9a;border-radius:2px;background:linear-gradient(135deg,#f0cf83,#dba647);color:#35200b;box-shadow:0 4px 24px #0003;font-family:'Royal Display',serif;font-size:13px;line-height:1.5;letter-spacing:.03em}
@media(max-height:650px) and (min-width:650px){.gateway-letter{bottom:18px}.gateway-ganesha{width:38px;height:38px}.gateway-invocation{margin-bottom:5px}dialog.royal-cover#gate .gateway-letter h2{font-size:54px}.gateway-city{margin-bottom:5px}.gateway-letter .cover-recipient{margin-bottom:8px}}
@media(max-width:600px){.gateway-letter{bottom:max(24px,6dvh)}.gateway-ganesha{width:52px;height:52px}.gateway-letter h2{font-size:56px}.gateway-city{max-width:300px;font-size:15px}.gateway-letter .cover-recipient strong{font-size:19px}.gateway-shade{background:linear-gradient(180deg,transparent 35%,rgba(5,26,33,.38) 50%,rgba(5,26,33,.94))}}
.palace-hero{position:relative;display:flex;flex-direction:column;min-height:100svh;overflow:hidden;isolation:isolate;background:var(--royal-ground)}.palace-sky{position:absolute;inset:0;z-index:-1;overflow:hidden}.palace-sky>img{height:100%;width:100%;object-fit:cover;object-position:50% 70%}.palace-sky::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 55% 42% at 50% 24%,#ffe4b380,transparent 75%),linear-gradient(0deg,#ffe4b3,transparent 30%)}.palace-rays{position:absolute;left:50%;top:55%;width:180vmax;height:180vmax;transform:translate(-50%,-50%);background:repeating-conic-gradient(from 0deg,#ffecbe50 0deg 4deg,transparent 4deg 13deg);mask-image:radial-gradient(circle,#0008,transparent 65%);mix-blend-mode:soft-light}.palace-title{position:relative;z-index:3;text-align:center;padding:clamp(64px,6vw,96px) 16px 36px}.hero-invocation{font-family:'Royal Script',Devanagari,serif;font-size:clamp(36px,3.2vw,50px);line-height:1.2;color:#895319;margin:0 0 12px}.palace-title h1{font-family:'Royal Display',serif;font-size:clamp(64px,8vw,116px);font-weight:700;line-height:1.04;letter-spacing:.035em;color:var(--royal-red);margin:0;text-shadow:0 2px 0 #ffe4b344}.palace-title h1>span{display:block}.palace-title h1 i{display:block;font-family:'Royal Script',cursive;font-weight:400;font-size:.74em;font-style:normal;line-height:.95;color:#98621c;margin:8px 0 12px}.palace-building{position:relative;z-index:2;flex-shrink:0;width:112%;margin:auto -6% -2px;transform-origin:center bottom}.palace-building>img{display:block;width:100%;height:auto;max-width:none}#hero-end{height:1px}
.royal-petals{position:fixed;inset:0;z-index:25;overflow:hidden;pointer-events:none;contain:strict}.royal-petals>span{position:absolute;top:0;display:block;animation-name:royal-petal-fall;animation-timing-function:linear;animation-iteration-count:infinite;will-change:transform}.royal-petals img{display:block;width:100%;height:100%;object-fit:contain}.royal-petals.paused>span{animation-play-state:paused}@keyframes royal-petal-fall{0%{transform:translate3d(0,-8vh,0) rotate(0);opacity:0}6%{opacity:.85}90%{opacity:.7}100%{transform:translate3d(var(--sway),108vh,0) rotate(var(--turn));opacity:0}}
#couple-names:focus{outline:none}
@media(max-width:600px){.scroll-copy .event-number,.scroll-copy .event-hindi{display:none}.scroll-copy h3{font-size:clamp(17px,5.5vw,22px)}.scroll-copy .event-dress{font-size:14px}.scroll-copy .event-when,.scroll-copy .event-where{font-size:15px}}
.royal-festivities{overflow:visible}.royal-journey{position:relative;max-width:1040px;margin:0 auto;padding:10px 0 0}.journey-route{position:absolute;left:50%;top:0;bottom:0;width:2px;background:linear-gradient(#c8974266,#b67a25,#c8974266);transform:translateX(-50%)}.journey-car{position:absolute;left:calc(50% - 37px);top:0;width:74px;height:148px;z-index:6;pointer-events:none}.journey-car img{width:100%;height:100%;object-fit:contain;display:block}.event-journey{list-style:none;padding:0;margin:0}.journey-stop{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:140px;min-height:660px;padding-bottom:30px}.journey-node{position:absolute;left:50%;top:50%;width:12px;height:12px;border:2px solid #b07723;background:#ffeac2;border-radius:50%;transform:translate(-50%,-50%)}.journey-date{grid-column:2;grid-row:1;font-family:'Royal Script',cursive;font-size:48px;color:#956021;margin:0;text-align:left}.journey-date span{display:block;font-family:'Royal Display',serif;font-size:19px;letter-spacing:.1em;margin-top:6px}.event-scroll{grid-column:1;grid-row:1;position:relative;width:100%;max-width:390px;aspect-ratio:2/3;isolation:isolate;justify-self:end}.scroll-body{position:absolute;inset:0;transform-origin:center 5%;z-index:-1;clip-path:inset(5% 0 5%)}.scroll-body img{display:block;width:100%;height:100%;object-fit:fill}.scroll-rod{position:absolute;left:0;right:0;background-image:url('./images/event-scroll.webp');background-size:100% 1500%;height:7%;z-index:2;pointer-events:none}.scroll-rod-top{top:0;background-position:50% 0}.scroll-rod-bottom{bottom:0;background-position:50% 100%}.scroll-copy{position:absolute;inset:19% 23% 20%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#ffedb9;text-align:center;line-height:1.35}.event-number{font-family:'Royal Display',serif;font-size:8px;letter-spacing:.1em;margin:0 0 11px}.scroll-copy h3{font-family:'Royal Display',serif;font-size:clamp(20px,2.4vw,30px);font-weight:400;line-height:1.15;color:#ffe5a6;margin:0 0 6px}.event-hindi{font-family:Devanagari,serif;font-size:17px;margin:0 0 13px}.event-when{font-size:18px;margin:0 0 12px}.event-where{font-size:18px;margin:0 0 13px;line-height:1.25}.event-dress{font-size:15px;line-height:1.25;margin:0 0 7px;font-style:italic}.event-dress span{display:block;font-family:'Royal Display',serif;font-size:9px;letter-spacing:.05em;font-style:normal;margin-bottom:5px}.event-calendar{display:inline-flex;gap:5px;align-items:center;justify-content:center;min-height:44px;color:#ffe9b6;text-underline-offset:4px;font-size:15px;white-space:nowrap}.event-calendar:focus-visible{outline-color:#fff4d6}.journey-stop:nth-child(even) .event-scroll{grid-column:2;justify-self:start}.journey-stop:nth-child(even) .journey-date{grid-column:1;text-align:right}.journey-end{margin:30px auto 0;font-size:38px}
@media(max-width:900px) and (min-width:601px){.journey-stop{gap:100px;min-height:570px}.event-scroll{width:315px}.scroll-copy{inset:18% 22% 19%}.event-when,.event-where{font-size:16px}.event-dress{font-size:13px}}
@media(max-width:799px){.royal-festivities{padding-left:15px;padding-right:15px}.royal-journey{max-width:390px}.journey-route{left:23px}.journey-car{left:3px;width:40px;height:80px}.journey-stop{display:block;padding:0 0 38px 64px;min-height:0}.journey-node{left:23px;top:50%;width:10px;height:10px}.journey-date,.journey-stop:nth-child(even) .journey-date{display:none}.event-scroll,.journey-stop:nth-child(even) .event-scroll{max-width:300px;width:100%;margin:auto}.scroll-copy{inset:18% 22% 20%;line-height:1.25}.scroll-copy h3{font-size:22px}.event-number{font-size:7px;margin-bottom:7px;letter-spacing:0}.event-hindi{font-size:15px;margin-bottom:8px}.event-when,.event-where{font-size:16px;margin-bottom:8px}.event-dress{font-size:13px;margin-bottom:2px}.event-dress span{font-size:8px;margin-bottom:3px}.event-calendar{font-size:14px;min-height:44px}.journey-end{font-size:31px}}
@media(prefers-reduced-motion:reduce){.journey-car{position:absolute}}
.royal-content{background-image:linear-gradient(#ffe4b3a3,#ffe4b3a3),url('./images/pattern.webp')}
.family-group{max-width:920px;margin:0 auto 70px}.family-group:last-child{margin-bottom:0}.family-group>.royal-script{font-size:38px;margin-bottom:32px}.family-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(22px,6vw,80px);align-items:start}.family-member{margin:0}.family-member:nth-child(2){margin-top:55px}.family-window{max-width:230px;margin:auto}.family-member figcaption{margin-top:12px}.family-ribbon{display:block;background:var(--royal-wine);color:#ffedc0;padding:5px 5px;clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%,4% 50%);font-family:'Royal Display',serif;font-size:10px;letter-spacing:.055em}.family-member strong{display:block;font-family:'Royal Display',serif;font-size:18px;font-weight:400;line-height:1.4;color:#8d551b;margin-top:9px}
@media(max-width:600px){.family-group{margin-bottom:45px}.family-group>.royal-script{font-size:33px}.family-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 17px;max-width:380px;margin:auto}.family-member:nth-child(2){margin-top:35px}.family-member:last-child{grid-column:1/-1;width:calc(50% - 8px);justify-self:center}.family-ribbon{font-size:9px;letter-spacing:0;padding:6px 4px}.family-member strong{font-size:16px}}
.love-chapters{max-width:900px;margin:auto}.love-chapter{display:flex;align-items:center;gap:44px;text-align:left;margin:0 0 55px}.story-window{width:175px;flex:0 0 175px}.story-year{position:absolute;inset:0;display:grid;place-content:center;font-family:'Royal Script',cursive;font-size:46px;color:#ffedbe}.chapter-copy{max-width:570px}.chapter-date{font-family:'Royal Script',cursive;font-size:32px;color:#865518;margin:0 0 3px}.chapter-copy h3{font-family:'Royal Display',serif;font-size:23px;font-weight:400;color:var(--royal-red);margin:0 0 12px}.chapter-copy>p:last-child{font-size:21px;line-height:1.6;margin:0}.love-chapter:nth-child(even){flex-direction:row-reverse;text-align:right}.love-chapter:last-child{margin-bottom:0}
@media(max-width:600px){.love-chapter{gap:18px;margin-bottom:38px;align-items:flex-start}.story-window{width:105px;flex-basis:105px}.story-year{font-size:32px}.chapter-date{font-size:26px}.chapter-copy h3{font-size:17px;line-height:1.5;margin-bottom:7px}.chapter-copy>p:last-child{font-size:18px;line-height:1.4}}
.royal-invitation .skip-link{position:fixed;top:8px;left:8px;transform:translateY(-200%);z-index:200}.royal-invitation .skip-link:focus{transform:none}
.royal-couple-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(30px,7vw,110px);max-width:900px;margin:auto}.couple-window{max-width:360px;margin:auto}.profile-copy{margin:18px auto 0;max-width:360px}.profile-role{font-family:'Royal Display',serif;font-size:13px;letter-spacing:.14em;text-transform:uppercase;margin:0 0 4px;color:#865518}.profile-copy h3{font-family:'Royal Script',cursive;font-weight:400;font-size:48px;line-height:1.2;color:var(--royal-red);margin:0 0 7px}.profile-parents{font-size:20px;line-height:1.4;margin:0 0 12px}.profile-line{font-style:italic;font-size:19px;line-height:1.4;max-width:270px;margin:auto}.date-rosette{animation:royal-rosette 60s linear infinite;animation-play-state:paused}.date-rosette.is-visible{animation-play-state:running}@keyframes royal-rosette{to{transform:rotate(360deg)}}
@media(max-width:600px){.royal-couple-grid{grid-template-columns:1fr;gap:40px}.couple-window{width:280px;max-width:100%}.profile-copy h3{font-size:43px}}
@media(prefers-reduced-motion:reduce){.date-rosette{animation:none}}
.royal-content{position:relative;background:var(--royal-ground) url('./images/pattern.webp') repeat;background-size:640px;isolation:isolate}.royal-section{position:relative;isolation:isolate;overflow:hidden;padding:72px max(22px,5vw);text-align:center}.royal-section::before,.royal-section::after{content:'';position:absolute;z-index:-1;width:min(54vw,650px);aspect-ratio:1;background:url('./images/rosette.webp') center/contain no-repeat;opacity:.16;pointer-events:none}.royal-section::before{right:-25%;top:3%}.royal-section::after{left:-30%;bottom:8%}.royal-heading{margin:0 auto 44px;max-width:1000px}.royal-heading>p,.royal-script{font-family:'Royal Script',cursive;font-size:clamp(32px,3.3vw,48px);line-height:1.25;color:#895319;margin:0 0 12px}.royal-heading h2{font-family:'Royal Display',serif;font-size:clamp(30px,4vw,54px);font-weight:400;color:var(--royal-red);line-height:1.2;margin:0}.royal-divider{display:flex;align-items:center;justify-content:center;gap:14px;color:#97601e;margin:24px auto}.royal-divider span{width:64px;height:1px;background:#a8702f88}.royal-divider b{font-size:14px;font-weight:400}.royal-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:10px 23px;border:1px solid #97601e;background:var(--royal-wine);color:#fff0cd;border-radius:3px;font-size:16px;line-height:1.3;text-decoration:none;cursor:pointer;transition:transform 180ms var(--royal-ease),opacity 180ms var(--royal-ease)}.royal-button:active{transform:scale(.98)}.royal-button:disabled{opacity:.75;cursor:default}.royal-text-link{display:inline-flex;gap:12px;align-items:center;min-height:44px;color:var(--royal-wine);font-size:17px;text-underline-offset:5px}
.date-plaque{position:relative;max-width:680px;margin:0 auto 28px}.date-plaque>img{display:block;width:100%;height:auto}.date-plaque-copy{position:absolute;inset:20% 12% 12%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff0c5;line-height:1.25;text-shadow:0 2px 5px #30000a80}.date-plaque-copy>p{font-size:20px;margin:0 0 9px}.date-plaque-copy h2{font-family:'Royal Script',cursive;font-size:clamp(44px,6vw,76px);line-height:1.2;font-weight:400;margin:0 0 12px;color:#ffe4a7}.plaque-names{font-family:'Royal Display',serif;font-size:24px;letter-spacing:.02em}.plaque-names i{font-family:'Royal Script',cursive;font-size:1.25em;font-style:normal}.scratch-card{width:min(100%,460px);margin:0 auto;position:relative}.scratch-intro{font-size:20px;color:var(--royal-wine);margin:0 0 13px}.scratch-surface{position:relative;height:190px;border:3px solid #b17b2e;border-radius:8px;background:radial-gradient(ellipse at 50% 20%,#9b3140,#65162a);box-shadow:0 8px 24px #6b281a1a;isolation:isolate}.scratch-date{position:absolute;inset:14px 9px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#fff0d0;line-height:1.5}.scratch-date p{font-family:'Royal Script',cursive;font-size:32px;margin:0 0 7px}.scratch-date strong{font-family:'Royal Display',serif;font-size:24px;font-weight:400}.scratch-date span{font-size:16px;margin-top:8px}#royal-scratch{position:absolute;inset:0;width:100%;height:100%;border-radius:5px;touch-action:none;cursor:crosshair}#royal-scratch[hidden]{display:none}.scratch-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px}.scratch-controls p{font-size:15px;line-height:1.35;text-align:left;margin:0;max-width:210px}.scratch-confetti{position:absolute;left:50%;top:50%;z-index:5;width:6px;height:12px;pointer-events:none}.date-rosette{display:block;width:92px;height:92px;object-fit:contain;margin:38px auto 22px}.family-invitation{max-width:760px;margin:0 auto}.family-invitation>p:not(.royal-script){font-size:clamp(21px,2.1vw,28px);font-style:italic;line-height:1.5;color:#711929;margin:0}.family-invitation .royal-script{font-size:clamp(36px,4vw,54px)}.royal-countdown-area{margin:40px auto 0;max-width:760px}.royal-countdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:24px 0 22px}.countdown-unit-label{display:block;font-family:'Royal Display',serif;font-size:13px;letter-spacing:.07em;text-transform:uppercase;margin-top:8px}.jharokha{position:relative;aspect-ratio:800/999;isolation:isolate;perspective:1000px}.jharokha-frame{position:relative;z-index:3;display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}.jharokha-aperture{position:absolute;inset:13.4% 15.8% 12.2%;z-index:1;background:radial-gradient(circle at 50% 25%,#a94458,#722239);overflow:hidden}.tone-teal .jharokha-aperture{background:radial-gradient(circle at 50% 25%,#26757c,#123c43)}.tone-saffron .jharokha-aperture{background:radial-gradient(circle at 50% 25%,#ba7530,#6f3519)}.tone-ruby .jharokha-aperture{background:radial-gradient(circle at 50% 25%,#a82048,#66132c)}.jharokha-aperture>img{display:block;width:100%;height:100%;object-fit:cover}.countdown-value{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff0c9;padding-top:10%}.countdown-value b{font-family:'Royal Display',serif;font-weight:400;font-size:clamp(28px,4.1vw,54px);line-height:1;font-variant-numeric:tabular-nums;backface-visibility:hidden}.window-shutters{display:none;position:absolute;inset:0;z-index:2;perspective:1100px}.royal-motion .window-shutters{display:block}.window-shutter{position:absolute;top:0;bottom:0;width:50%;background:#70462b url('./images/gate.webp') 50% 67%/900% auto;border:1px solid #a67635;backface-visibility:hidden}.window-left{left:0;transform-origin:left center}.window-right{right:0;transform-origin:right center}
@media(max-width:600px){.royal-section{padding:48px 22px}.royal-section::before,.royal-section::after{width:330px;opacity:.12}.royal-section::before{right:-220px}.royal-section::after{left:-235px}.royal-heading{margin-bottom:30px}.date-plaque-copy{inset:20% 11% 11%}.date-plaque-copy>p{font-size:13px;margin-bottom:5px}.date-plaque-copy h2{font-size:45px;margin-bottom:7px}.plaque-names{font-size:16px}.scratch-intro{font-size:18px}.scratch-surface{height:178px}.scratch-date strong{font-size:21px}.scratch-date p{font-size:30px}.scratch-controls{gap:10px}.scratch-controls p{font-size:14px;max-width:155px}.scratch-controls .royal-button{padding:10px 14px;font-size:15px;white-space:nowrap}.date-rosette{margin-top:30px;width:78px;height:78px}.royal-countdown{gap:8px;margin-top:18px}.countdown-value b{font-size:28px}.countdown-unit-label{font-size:11px;letter-spacing:0}.royal-countdown-area{margin-top:28px}}
@media(max-width:600px){dialog.royal-cover#gate .gateway-letter h2{font-size:56px}.palace-title{padding:72px 16px 30px}.palace-title h1{font-size:64px}.hero-invocation{font-size:36px}.palace-building{width:150%;margin-left:-25%;margin-right:-25%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}.gateway-stage,.gateway-camera,.gateway-door{will-change:auto}.royal-petals,.palace-rays{display:none}}

/* One stable title reveal, started by the same synchronous cover handoff.
   Keep the palace painted; no second per-name transform or text parallax. */
html.invitation-locked .palace-title{opacity:0}
body.invitation-open[data-hero-entry=fade] .palace-title{animation:royal-title-arrive 1000ms var(--royal-ease) both}
body[data-hero-fonts=fallback] .palace-title h1,body[data-hero-fonts=fallback] .palace-title h1 i,body[data-hero-fonts=fallback] .hero-invocation{font-family:Georgia,serif}
@keyframes royal-title-arrive{from{opacity:0}to{opacity:1}}
@media(max-width:900px),(pointer:coarse){.palace-rays{display:none}}
@media(prefers-reduced-motion:reduce){body.invitation-open[data-hero-entry=fade] .palace-title{animation:none}}

/* Fit unusually long live names before the gateway opens. */
@media(max-width:380px){dialog.royal-cover#gate .gateway-letter h2{font-size:clamp(32px,10.5vw,40px)}}
dialog.royal-cover#gate.gateway-compact .gateway-ganesha{width:40px;height:40px;margin-bottom:3px}
dialog.royal-cover#gate.gateway-compact .gateway-invocation{margin-bottom:4px}
dialog.royal-cover#gate.gateway-compact .gateway-eyebrow{margin-bottom:3px}
dialog.royal-cover#gate.gateway-compact .gateway-letter h2{font-size:clamp(28px,7vw,46px);line-height:1.08;margin-bottom:3px;overflow-wrap:anywhere}
dialog.royal-cover#gate.gateway-compact .gateway-city{margin-bottom:3px}
dialog.royal-cover#gate.gateway-compact .cover-recipient{min-height:0;margin-bottom:5px}
dialog.royal-cover#gate.gateway-compact .gateway-open{min-height:44px;padding-block:8px}
dialog.royal-cover#gate.gateway-tiny .gateway-letter h2{font-size:26px}
dialog.royal-cover#gate.gateway-tiny .gateway-ganesha{width:32px;height:32px}
dialog.royal-cover#gate.gateway-tiny .cover-recipient strong{font-size:16px}
dialog.royal-cover#gate.gateway-overflow .gateway-letter{top:12px;bottom:12px;overflow-y:auto;overscroll-behavior:contain}

/* The studio strip: a quiet legal footer at the very end of every invitation. */
.studio-strip{margin:14px 0 0;font-size:.72rem;line-height:1.6;color:inherit;opacity:.72}
.studio-strip a{color:inherit;text-underline-offset:3px;display:inline-block;padding:14px 8px;margin:-12px -4px}
