@font-face{font-family:'Wedding Hand';src:url('assets/fonts/Mynerve-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
/* Charcoal pencil on pale sand. */
:root{--paper:#f2eadc;--blue:#30302d;--muted:#5f5b53;--line:#c9c0b2;--wash:#e9dfcf}
body,.invitation-scroll{background:#f2eadc;color:#30302d}
.invitation-scroll:before{background-image:url('assets/hometowns-charcoal.png');background-size:100% auto;background-position:center bottom;opacity:.8}
.invitation-scroll .header{height:96px;min-height:96px;grid-template-columns:70px minmax(0,1fr) auto;grid-template-rows:1fr;gap:18px;padding:10px 4%;background:#f2eadcf5;border-color:#30302d22}
.invitation-scroll .header .brand{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;line-height:1}
.header-monogram{display:block;width:66px;height:65px;object-fit:contain;mix-blend-mode:multiply}.header .brand:after{display:none}
.invitation-scroll .header nav{grid-column:2;grid-row:1;gap:18px;justify-content:center}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px;min-width:0;grid-column:3;grid-row:1}
.invitation-scroll .header .header-date{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:11px;padding:8px 0;border:0;text-decoration:none;letter-spacing:.2px;min-height:42px}
.header-date span{margin-left:5px}.header .header-date:hover{text-decoration:underline;text-underline-offset:5px}
.language-switch{position:relative;display:inline-flex;padding:0;border:0;border-radius:0;background:transparent;color:#30302d;white-space:nowrap;font-family:var(--invitation-serif);font-size:13px;line-height:1.4;z-index:30}
.language-trigger{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:8px 4px;border:0;background:transparent!important;border-radius:0;box-shadow:none;color:inherit;font:inherit;cursor:pointer}
.language-trigger:focus:not(:focus-visible){outline:none}.language-trigger:focus-visible,.language-menu button:focus-visible{outline:1px dashed #30302d;outline-offset:3px}
.language-chevron{display:inline-block;transition:transform .2s;font:18px/1 Georgia,serif}.language-trigger[aria-expanded=true] .language-chevron{transform:rotate(180deg)}
.language-menu{position:absolute;right:0;top:calc(100% + 5px);display:flex;flex-direction:column;min-width:150px;padding:7px;background:#f7f0e5;border:1px solid #30302d22;box-shadow:0 10px 24px #30302d12;animation:language-unfold .15s ease-out;transform-origin:top right}
.language-menu[hidden]{display:none}.language-menu button{font:14px/1.5 var(--invitation-serif);letter-spacing:.2px;display:flex;justify-content:space-between;border:0;background:transparent;color:#30302d;text-align:left;padding:10px 12px;cursor:pointer;border-radius:0}.language-menu button:hover,.language-menu button[aria-checked=true]{background:#e9dfcf}.language-menu button[aria-checked=true]:after{content:'✓';margin-left:15px}
@keyframes language-unfold{from{opacity:0;transform:translateY(-4px) scaleY(.96)}to{opacity:1;transform:none}}
.invitation-scroll .section,.invitation-scroll #chapter-film .section{background:#f2eadcd9;border-color:#30302d20}
.invitation-scroll .game-invitation{background:#ede3d3dc!important}.invitation-scroll .next-chapter{background:linear-gradient(#f2eadcd9,#e9dfcfd9)}
.invitation-scroll #shared-footer{background:#f2eadcd9;border-color:#30302d20}.invitation-scroll #shared-footer footer{color:#30302d}.invitation-scroll .hero-bottom{background:#f2eadce8}
.invitation-scroll main p,.invitation-scroll main small,.invitation-scroll main a,.invitation-scroll main span,.invitation-scroll main h1,.invitation-scroll main h2,.invitation-scroll main h3,.invitation-scroll #shared-footer a,.invitation-scroll #shared-footer p,.invitation-scroll #shared-footer span,.invitation-scroll #shared-footer small{color:#30302d!important}
.invitation-scroll main .button,.invitation-scroll main .button:hover,.invitation-scroll main .video-cover,.invitation-scroll main .video-cover:hover{background:#e9dfcf!important;color:#30302d!important;border-color:#30302d}
.photo-art,.event-sketch,.story-dance,.game-invitation-art img{filter:grayscale(1);mix-blend-mode:multiply}
html{scroll-padding-top:96px}.invitation-scroll .invitation-chapter{scroll-margin-top:96px}
/* A quiet double door. The website is revealed on entry, once per browser session. */
.entry-locked,.entry-opening{overflow:hidden}.entry-locked>:not(#wedding-entrance):not(script):not(style):not(link){visibility:hidden}
#wedding-entrance{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;overflow:auto;background:#f2eadc;color:#30302d;isolation:isolate;padding:35px 20px}
.entrance-leaf{position:absolute;top:0;bottom:0;width:50%;background:#f2eadc;z-index:-1;transition:transform .85s cubic-bezier(.22,.65,.25,1)}
.entrance-leaf-left{left:0;border-right:1px solid #30302d24}.entrance-leaf-right{right:0;border-left:1px solid #fff8}
.entrance-leaf:before{content:'';position:absolute;inset:28px;border:1px solid #30302d18;border-radius:48% 48% 0 0 / 22% 22% 0 0}.entrance-leaf-left:after,.entrance-leaf-right:after{content:'';position:absolute;top:59%;width:4px;height:44px;border-radius:4px;background:#30302d40}.entrance-leaf-left:after{right:16px}.entrance-leaf-right:after{left:16px}
.entrance-content{text-align:center;width:min(700px,100%);padding:35px 15px;background:radial-gradient(ellipse,#f2eadc 48%,#f2eadce8 65%,#f2eadc00 75%);transition:opacity .35s ease,transform .6s ease}
.entrance-monogram{display:block;width:145px;height:130px;object-fit:contain;margin:0 auto 25px;mix-blend-mode:multiply}.entrance-content .eyebrow{letter-spacing:2.5px;font-size:12px;margin:18px auto 28px}
.entrance-content h1{font:400 clamp(32px,4.5vw,57px)/1.2 var(--invitation-serif)!important;margin:15px 0 20px;letter-spacing:-.5px}.entrance-note{font:18px/1.7 var(--invitation-serif);margin:20px 0 35px}
.entrance-enter{font:14px/1.5 var(--invitation-serif);letter-spacing:.6px;color:#30302d;background:transparent;border:1px solid #30302d66;min-height:50px;padding:14px 28px;cursor:pointer;transition:background .2s}.entrance-enter:hover{background:#e9dfcf}.entrance-enter span{margin-left:18px}.entrance-enter:focus-visible{outline:2px solid #30302d;outline-offset:5px}
.entrance-language{position:absolute;right:30px;top:22px}.entrance-language .language-switch{font-size:14px}.is-opening#wedding-entrance{background:transparent;pointer-events:none}.is-opening .entrance-leaf-left{transform:translateX(-101%)}.is-opening .entrance-leaf-right{transform:translateX(101%)}.is-opening .entrance-content,.is-opening .entrance-language{opacity:0;transform:translateY(-12px)}
@media(max-width:1000px){.invitation-scroll .header{height:auto;min-height:118px;grid-template-columns:64px 1fr;grid-template-rows:auto auto;gap:8px 16px}.invitation-scroll .header nav{grid-column:1/3;grid-row:2;gap:16px!important;flex-wrap:wrap}.header-actions{grid-column:2;grid-row:1}.header-monogram{width:58px;height:54px}.invitation-scroll .header .brand{grid-column:1;grid-row:1}.invitation-scroll .header .header-date{font-size:12px}.invitation-scroll .header nav a{font-size:10px!important}html{scroll-padding-top:124px}.invitation-scroll .invitation-chapter{scroll-margin-top:124px}}
@media(max-width:700px){.invitation-scroll .header{min-height:124px;padding:8px 5% 12px;gap:8px 10px}.header-actions{gap:15px}.invitation-scroll .header .header-date{font-size:11px}.header-monogram{width:51px;height:51px}.language-trigger{font-size:13px;padding-inline:0}.invitation-scroll .header nav{gap:8px 13px!important;padding-bottom:0}.invitation-scroll .header nav a{font-size:9px!important;letter-spacing:.3px!important}.invitation-scroll .hero{height:calc(100svh - 124px)}.entrance-content{padding:35px 8px}.entrance-content h1{font-size:36px!important}.entrance-content .eyebrow{font-size:11px;letter-spacing:1.5px}.entrance-monogram{width:125px;height:118px}.entrance-note{font-size:17px;max-width:275px;margin:20px auto 30px}.entrance-leaf:before{inset:14px;border-radius:44% 44% 0 0 / 14% 14% 0 0}.entrance-language{right:20px;top:15px}}
@media(prefers-reduced-motion:reduce){.entrance-leaf,.entrance-content,.language-chevron{transition:none}.language-menu{animation:none}}

#entrance-title:focus{outline:none}.game-monogram{display:block;width:55px;height:50px;object-fit:contain;mix-blend-mode:multiply}

/* The entry label sits directly on the door's lower frame. */
.entrance-content .entrance-names{font-size:19px;letter-spacing:2.5px;margin:22px auto 30px}
.entrance-enter{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);min-height:44px;padding:0 24px;background:#f2eadc;border:0;font-size:15px;letter-spacing:.8px;z-index:2;white-space:nowrap}
.entrance-enter:hover{background:#f2eadc;text-decoration:underline;text-underline-offset:5px}
.is-opening .entrance-enter{opacity:0;transition:opacity .2s}
@media(max-width:700px){.entrance-content .entrance-names{font-size:17px;letter-spacing:1.5px}.entrance-enter{bottom:0;min-height:30px;padding-inline:20px;font-size:14px}}
/* Keep the language control at the far right on compact headers. */
.header-actions .header-date{order:0}.header-actions .language-switch{order:1;margin-left:0}
/* Lift the entry label into the lower part of the doorway. */
.entrance-enter{bottom:13vh;background:transparent}
.entrance-enter:hover{background:transparent}
@media(max-width:700px){.header-actions{justify-content:flex-end}.header-actions .language-switch{order:1}.entrance-enter{bottom:15svh;min-height:44px}}

/* Childhood invitation poster sits across the sliding doors. */
#wedding-entrance{display:flex;flex-direction:column;justify-content:center;gap:16px;padding:66px 24px 34px}
.entrance-poster{width:min(640px,100%);padding:0;background:none;flex-shrink:0}
.entrance-poster .entrance-names{margin:0 auto 16px;font-size:19px}
.entrance-poster h1{font-size:clamp(30px,3.7vw,48px)!important;max-width:600px;margin:0 auto 12px}
.entrance-kids{display:block;width:auto;height:clamp(210px,33svh,340px);max-width:100%;object-fit:contain;margin:0 auto 12px}
.entrance-invitation{font:21px/1.4 var(--invitation-serif);margin:0 0 8px}
#wedding-entrance .entrance-enter{position:static;transform:none;flex-shrink:0;min-height:44px;margin:0 auto;padding:8px 24px;border-bottom:1px solid #30302d55}
@media(max-width:700px){#wedding-entrance{padding:64px 25px 28px;gap:14px}.entrance-poster .entrance-names{font-size:17px;margin-bottom:14px}.entrance-poster h1{font-size:32px!important;max-width:340px}.entrance-kids{height:clamp(180px,30svh,270px)}.entrance-invitation{font-size:19px;max-width:290px;margin:0 auto 10px}}
@media(max-height:650px){#wedding-entrance{justify-content:flex-start}.entrance-kids{height:180px}}

/* Keep the small town facades clear of the welcome footer strip. */
.invitation-scroll:before{background-position:center bottom 66px}

/* Each name follows its own hair contour in the photograph's coordinate space. */
.entrance-portrait{position:relative;width:min(272px,58%);margin:25px auto 18px;padding:0}
.entrance-portrait .entrance-kids{display:block;width:100%;height:auto;max-height:none;margin:0;object-fit:contain}
.kid-crown{position:absolute;inset:0;width:100%;height:100%;overflow:visible;color:#30302d;fill:currentColor;pointer-events:none}
.kid-crown text{font:76px 'Wedding Hand',cursive;letter-spacing:1px;text-transform:none;fill:#252521;stroke:#252521;stroke-width:1.2;paint-order:stroke fill}
@media(max-width:700px){.entrance-portrait{margin:28px auto 20px}}

/* Give the welcome art its own row: short windows and browser zoom cannot cover copy. */
.invitation-scroll .hero{height:auto;max-height:none;min-height:calc(100svh - 96px);background:var(--paper);overflow:hidden}
.invitation-scroll .hero-top{order:0;flex-shrink:0}
.invitation-scroll .hero-copy{order:1;flex-shrink:0;padding-bottom:12px}
.invitation-scroll .hero:after{content:'';display:block;order:2;flex-shrink:0;width:calc(100% + 11.112%);margin-left:-5.556%;margin-top:auto;height:clamp(160px,27vw,420px);background:url('assets/hometowns-charcoal.png') center bottom / min(100vw,1560px) auto no-repeat;opacity:.8;pointer-events:none}
.invitation-scroll .hero-bottom{order:3;flex-shrink:0;margin-top:0}
@media(max-width:1000px){.invitation-scroll .hero{min-height:calc(100svh - 124px)}}

/* Compact invitation copy, with scenery reserved below the names. */
.invitation-scroll .invitation-chapter{scroll-margin-top:0!important}
.invitation-scroll .hero-copy{max-width:100%;width:100%;padding-top:35px}
.invitation-scroll .hero h1{display:flex;align-items:baseline;justify-content:center;gap:.3em;white-space:nowrap;font-size:clamp(30px,4.4vw,64px);letter-spacing:.035em;line-height:1.25;margin:24px auto 20px;overflow-wrap:normal}
.invitation-scroll .hero h1 span{display:inline;margin:0;font-size:.65em;line-height:1}
.invitation-scroll .hero:after{height:clamp(160px,25vw,360px)}
.invitation-scroll .section,.invitation-scroll #chapter-film .section{background:#f2eadccc}
.invitation-scroll .game-invitation{background:#ede3d3cc!important;grid-template-columns:1.35fr 1fr}
.game-invitation-copy{max-width:620px}
.invitation-scroll #film-title,.invitation-scroll #game-invitation-title,.invitation-scroll #travel-title{font-size:clamp(26px,3vw,40px);line-height:1.3;letter-spacing:0}
.invitation-scroll #chapter-film .section-heading{max-width:1100px;margin-inline:auto}
.invitation-scroll #chapter-film .section-heading>p:last-child{font-size:clamp(12px,1.2vw,16px)}
.invitation-scroll .film-bottom{justify-content:flex-end}
.invitation-scroll .film-bottom a{font-size:11px!important}
.invitation-scroll .credits{margin:22px auto 0;max-width:850px}
.invitation-scroll .credits-title{font-size:19px;font-weight:400;margin:0 0 10px}
.invitation-scroll .credits p{margin:3px 0;font-size:12px;line-height:1.5}
.invitation-scroll .next-chapter{padding-block:75px 36px;background:linear-gradient(#f2eadccc,#e9dfcfcc)}
.invitation-scroll .future-details{margin:30px 0 8px;padding:22px 0;font-size:20px}
.coming-soon-note{display:block;font-size:11px;letter-spacing:1px;margin:0 auto 8px}
.invitation-scroll #shared-footer{background:#f2eadccc}
.invitation-scroll #shared-footer footer{padding-block:32px 40px}
@media(min-width:1100px){.invitation-scroll #film-title,.invitation-scroll #game-invitation-title,.invitation-scroll #travel-title,.invitation-scroll #chapter-film .section-heading>p:last-child{white-space:nowrap}}
@media(max-width:700px){.invitation-scroll .hero-copy{padding-top:35px}.invitation-scroll .hero h1{font-size:clamp(19px,5.8vw,34px);gap:.25em;letter-spacing:.015em}.invitation-scroll .hero-copy>.eyebrow{font-size:9px;letter-spacing:1px}.invitation-scroll .game-invitation{grid-template-columns:1fr}.invitation-scroll #film-title,.invitation-scroll #game-invitation-title,.invitation-scroll #travel-title{font-size:28px}.invitation-scroll .next-chapter{padding-block:55px 25px}.invitation-scroll .credits p{font-size:11px}}

.invitation-scroll #game-invitation-title{font-size:clamp(26px,2.4vw,34px);white-space:normal}
@media(max-width:700px){html{scroll-padding-top:134px}}
@media(max-width:360px){.invitation-scroll .header{grid-template-columns:45px minmax(0,1fr);column-gap:6px}.header-actions{gap:8px}.invitation-scroll .header .header-date{font-size:9px}.header-actions .language-trigger{font-size:11px}.header-monogram{width:43px}}

/* One continuous scenery layer: no second drawing at chapter boundaries. */
.invitation-scroll:before{background-size:min(100vw,1560px) auto;background-position:center bottom;background-repeat:no-repeat;opacity:var(--scenery-opacity,.8)}
.invitation-scroll .hero{background:transparent}
.invitation-scroll .hero:after{background:none;opacity:1}
.invitation-scroll .section,.invitation-scroll #chapter-film .section,.invitation-scroll .next-chapter,.invitation-scroll #shared-footer{background:transparent}
.invitation-scroll .game-invitation{background:transparent!important}


/* The figures belong only to the final countdown, never to the viewport. */
.invitation-scroll #shared-footer footer{display:grid;grid-template-columns:180px minmax(0,420px) 180px;justify-content:center;align-items:end;gap:0 24px;padding:35px 20px 40px}
.countdown-figure{position:relative;width:180px;height:300px;overflow:hidden;pointer-events:none}
.countdown-figure img{position:absolute;top:0;left:50%;transform:translateX(-50%);width:200px;height:300px;max-width:none;object-fit:contain}


.invitation-scroll .wedding-countdown{grid-column:2;grid-row:1;align-self:center;width:100%;margin:20px 0}
.countdown-him{grid-column:1;grid-row:1}.countdown-her{grid-column:3;grid-row:1}
.invitation-scroll #shared-footer footer>small,.invitation-scroll #shared-footer footer>a{grid-column:1/-1;margin-top:18px}
.invitation-scroll .game-invitation{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);padding-inline:max(6%,calc((100% - var(--width,1080px))/2));gap:38px}
.game-invitation-copy{max-width:none;min-width:0}.game-invitation-art{min-width:0;width:100%}.game-invitation-art img{max-width:100%;height:auto}
@media(max-width:700px){
 .invitation-scroll #shared-footer footer{grid-template-columns:60px minmax(0,1fr) 60px;gap:0 8px;padding-inline:12px}
 .countdown-figure{width:60px;height:125px}.countdown-figure img{width:83px;height:125px}
 .countdown-units{gap:10px}.countdown-units div{min-width:40px}.countdown-units span{font-size:28px}.countdown-units small{font-size:7px;letter-spacing:.5px}
 .invitation-scroll .countdown-caption{font-size:22px!important;line-height:1.3}
 .invitation-scroll .game-invitation{grid-template-columns:minmax(0,1fr);gap:24px}
}

/* Shared full-width chapter composition, including the story invitation. */
.invitation-scroll .game-invitation{display:flex;flex-direction:column;align-items:stretch;text-align:center;gap:30px}
.game-invitation-copy{width:100%;max-width:none}.game-invitation-copy>p{max-width:none;margin-inline:auto}
.game-invitation-art{width:100%;max-width:none;margin:0}.game-invitation-art img{display:block;width:100%;max-width:none}
.invitation-scroll #game-invitation-title{font-size:clamp(28px,3vw,40px)}
.invitation-scroll .countdown-units{gap:24px}

@media(max-width:700px){.invitation-scroll #shared-footer footer{grid-template-columns:46px minmax(0,1fr) 46px;gap:0 5px}.countdown-figure{width:46px}.invitation-scroll .countdown-units{gap:8px}.countdown-units div{min-width:32px}.countdown-units span{font-size:25px}.countdown-units small{font-size:6px;letter-spacing:0}.invitation-scroll .game-invitation{gap:24px}}

/* Chosen name treatment; the rest of the invitation keeps its existing typography. */
.invitation-scroll .hero h1{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;white-space:normal;line-height:1.12;margin:15px auto;padding-block:15px 20px}
.invitation-scroll .hero h1 .name-person{display:block;font-family:'Miama Nueva',cursive!important;font-size:clamp(40px,5.3vw,72px);font-style:normal;font-weight:400;letter-spacing:0;text-transform:none;line-height:1.35;max-width:100%;overflow-wrap:normal}
.invitation-scroll .hero h1>span{display:block;font-family:'Miama Nueva',cursive!important;font-size:30px;line-height:1.1;letter-spacing:0;margin:1px 0;text-transform:none}
/* The story preview uses the same 920px outer frame as the save-the-date video. */
.invitation-scroll .game-invitation-art{width:100%;max-width:920px;margin:0 auto;padding:13px;border:1px solid #30302d;text-decoration:none;background:#f2eadc;overflow:hidden;box-sizing:border-box}
.game-preview-stage{width:100%;background:transparent;overflow:hidden}.story-preview-canvas{display:block;width:100%;height:auto;aspect-ratio:920/420;pointer-events:none}
.game-preview-call{display:block;padding:12px 0 3px;font-size:12px;letter-spacing:.4px;border-top:1px solid #30302d22}
.game-invitation-art:hover{background:#eee4d4}.game-invitation-art:focus-visible{outline:2px solid #30302d;outline-offset:5px}
@media(max-width:700px){.invitation-scroll .hero h1 .name-person{font-size:clamp(30px,10vw,48px)}.invitation-scroll .hero h1>span{font-size:26px}.invitation-scroll .game-invitation-art{padding:7px}.game-preview-call{font-size:11px}}

@media(max-width:700px){.story-preview-canvas{aspect-ratio:920/760}}

/* A keepsake teaser leaves the characters and story for the game itself. */
.story-preview-canvas{aspect-ratio:920/290}
@media(max-width:700px){.story-preview-canvas{aspect-ratio:920/400}}

.guest-welcome{position:relative;text-align:center;padding:9px 20px;background:#f2eadc;border-bottom:1px solid #30302d18;color:#30302d;font:14px/1.5 var(--invitation-serif);letter-spacing:.2px}.guest-welcome strong{font-weight:400}.guest-welcome+main{margin-top:0}

/* Personal name on the doorway; compact identity between calendar and language inside. */
.entrance-guest{position:absolute;left:30px;top:22px;font:14px/1.5 var(--invitation-serif);color:#30302d;max-width:42%;text-align:left}
.is-opening .entrance-guest{opacity:0;transition:opacity .3s}
.guest-name-chip{font:13px/1.4 var(--invitation-serif);color:#30302d;white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis}
.header-actions .guest-name-chip{order:1}.header-actions .language-switch{order:2}
@media(max-width:700px){.entrance-guest{left:20px;top:15px;font-size:13px}.header-actions:has(.guest-name-chip){gap:8px}.header-actions .guest-name-chip{font-size:10px;max-width:95px;flex-shrink:1;min-width:0}.header-actions:has(.guest-name-chip) .header-date{font-size:10px;max-width:85px;overflow:hidden;text-overflow:ellipsis}.header-actions:has(.guest-name-chip) .language-trigger{font-size:11px}}

/* A dedicated recipient line is distinct from navigation and sits above the actions. */
.header-actions.has-guest{display:flex;flex-wrap:wrap;max-width:360px;gap:5px 18px}
.header-actions.has-guest .guest-name-chip{flex:0 0 100%;order:-1;max-width:none;overflow:visible;text-overflow:clip;white-space:normal;text-align:right;font:14px/1.4 var(--invitation-serif);letter-spacing:0;color:#30302d}
.guest-sent-label{font-size:11px;letter-spacing:.8px;margin-right:5px}.guest-name-chip strong{font-weight:400;border-bottom:1px solid #30302d55;padding-bottom:2px}
@media(max-width:700px){.header-actions.has-guest{gap:5px 14px;max-width:100%}.header-actions.has-guest .guest-name-chip{font-size:13px;flex-shrink:0;min-width:0}.guest-sent-label{font-size:10px}.header-actions.has-guest .header-date{max-width:none;font-size:11px}.header-actions.has-guest .language-trigger{font-size:12px}}

body>header>.preview-name-chip{margin-left:auto;text-align:right;font-size:14px}

/* Keep both complete figures visible at narrow phone widths. */
@media(max-width:700px){
 .invitation-scroll #shared-footer footer{grid-template-columns:60px minmax(0,1fr) 60px}
 .invitation-scroll .countdown-figure{width:60px;height:125px;overflow:visible;align-self:center}
 .invitation-scroll .countdown-figure img{position:static;display:block;transform:none;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center}
}

/* Reserve a real art row below the welcome copy, then pin the same layer on scroll.
   The source has transparent sky; its visible drawing starts around row 599/1024. */
.invitation-scroll .hero:after{display:none}
.invitation-scroll .welcome-scenery-anchor{order:2;flex-shrink:0;width:100%;height:calc(var(--scenery-width,min(100vw,1560px)) * .2473958333 + 16px);margin-top:auto;pointer-events:none}
.invitation-scroll:before{background-size:var(--scenery-width,min(100vw,1560px)) auto;background-position:center calc(100% + var(--scenery-offset,0px) + var(--scenery-bottom-trim,0px));clip-path:inset(var(--scenery-clip-top,100vh) 0 0)}

/* Compose the names and the complete city panorama within a normal first screen.
   Very short windows can still scroll rather than clip readable text. */
.invitation-scroll .hero{min-height:calc(100svh - var(--welcome-header-height,96px));padding-top:clamp(8px,2svh,22px)}
.invitation-scroll .hero-copy{padding-top:clamp(4px,1.2svh,12px);padding-bottom:0}
.invitation-scroll .hero-copy>.eyebrow{margin:0 0 8px;line-height:1.6}
.invitation-scroll .hero h1{gap:2px;margin:6px auto 8px;padding-block:6px 8px}
.invitation-scroll .hero h1 .name-person{font-size:var(--welcome-name-size,clamp(36px,min(5.3vw,6.8svh),68px));line-height:1.25}
.invitation-scroll .hero h1>span{font-size:clamp(20px,3svh,28px);line-height:1;margin:0}
.invitation-scroll .date-line p{margin:8px 0;line-height:1.4}
.invitation-scroll .hero-location{margin:6px 0 10px;font-size:clamp(18px,2.7svh,23px);line-height:1.35}
@media(max-width:700px){.invitation-scroll .hero h1 .name-person{font-size:var(--welcome-name-size,clamp(30px,min(10vw,6.8svh),48px))}}

/* Short desktop windows tighten the typography, never narrow the city panorama. */
.invitation-scroll .hero.welcome-tight{padding-top:8px}
.invitation-scroll .welcome-tight .hero-copy{padding-top:4px}
.invitation-scroll .welcome-tight .hero-copy>.eyebrow{margin-bottom:4px}
.invitation-scroll .welcome-tight h1{gap:1px;margin:2px auto 4px;padding-block:2px 4px}
.invitation-scroll .welcome-tight .date-line p{margin:4px 0}
.invitation-scroll .welcome-tight .hero-location{margin:3px 0;font-size:18px}
@media(min-width:701px) and (max-height:650px){.invitation-scroll .welcome-tight .hero-copy>.eyebrow{display:none}}

@media(min-width:701px) and (max-height:650px){
 .invitation-scroll .welcome-tight h1{gap:0;margin:0 auto 2px;padding-block:0 2px}
 .invitation-scroll .welcome-tight h1>span{font-size:18px}
 .invitation-scroll .welcome-tight .date-line p{margin:3px 0}
 .invitation-scroll .welcome-tight .hero-location{margin:2px 0}
}

/* Miama's capitals and long descenders extend beyond its line box.
   Preserve breathing room even when the first screen uses compact type. */
.invitation-scroll .hero .hero-copy>.eyebrow{margin-bottom:20px}
.invitation-scroll .hero .hero-copy h1{margin:8px auto 18px;padding-top:calc(var(--welcome-name-size,48px) * .42);padding-bottom:calc(var(--welcome-name-size,48px) * .62);gap:8px}
.invitation-scroll .hero .hero-copy h1 .name-person{line-height:1.45}
.invitation-scroll .hero .hero-copy h1>span{margin:3px 0}
@media(max-width:700px){
 .invitation-scroll .hero .hero-copy>.eyebrow{margin-bottom:16px}
 .invitation-scroll .hero .hero-copy h1{margin-bottom:16px;gap:6px}
}

/* Keep the complete chosen lettering readable at every browser zoom.
   Content flows naturally when a short window cannot fit the whole welcome. */
.invitation-scroll .hero{height:auto;max-height:none;overflow:visible}
.invitation-scroll .hero .hero-copy{flex:0 0 auto;width:100%;max-width:100%;padding-inline:12px;box-sizing:border-box}
.invitation-scroll .hero .hero-copy h1{width:100%;max-width:none;margin:12px auto 22px;padding:24px 16px 42px;box-sizing:border-box;gap:10px}
.invitation-scroll .hero .hero-copy h1 .name-person{font-size:clamp(50px,5.375vw,75px);line-height:1.45;white-space:nowrap}
.invitation-scroll .hero .hero-copy h1>span{font-size:28px;margin:3px 0}
.invitation-scroll .welcome-scenery-anchor{margin-top:20px}
@media(max-width:700px){
 .invitation-scroll .hero .hero-copy h1{padding:20px 8px 34px;gap:8px;margin-bottom:18px}
 .invitation-scroll .hero .hero-copy h1 .name-person{font-size:clamp(40px,11.875vw,55px)}
 .invitation-scroll .hero .hero-copy h1>span{font-size:25px}
}

/* Fit one complete welcome composition to the available viewport, including zoom. */
.invitation-scroll .hero{min-height:0;padding:0 0 4px;max-height:none;overflow:hidden}
.invitation-scroll .hero .hero-copy{padding:0;flex:none;display:flex;align-items:center;justify-content:center}
.welcome-lettering{width:100%;flex:none;transform-origin:center center;padding:14px 12px}
.invitation-scroll .hero .hero-copy h1{padding:18px 16px 32px;margin:8px auto 12px;gap:6px}
.invitation-scroll .hero .hero-copy>.eyebrow,.welcome-lettering>.eyebrow{margin:0 0 16px}
.invitation-scroll .welcome-scenery-anchor{margin:4px 0 0;flex:none}

@media(max-height:650px){
 .welcome-lettering{padding-block:8px}
 .welcome-lettering>.eyebrow{margin-bottom:8px;font-size:10px;letter-spacing:1.5px}
 .invitation-scroll .hero .hero-copy h1{padding-top:10px;padding-bottom:24px;gap:3px;margin:4px auto 8px}
 .invitation-scroll .hero .hero-copy h1 .name-person{line-height:1.25}
 .invitation-scroll .hero .hero-copy h1>span{font-size:22px;margin:0}
}

/* The lettering stays centred in the welcome viewport, independently of art size. */
.invitation-scroll .hero .hero-copy{position:absolute;left:0;top:50%;transform:translateY(-50%);z-index:2}
.invitation-scroll .welcome-scenery-anchor{position:absolute;left:0;bottom:4px;margin:0}

.invitation-scroll:before{background-size:var(--scenery-width,100vw) var(--scenery-image-height,auto)}

/* Anchor Georgia, rather than the combined text block, to the screen centre. */
.invitation-scroll .hero .hero-copy{top:0;transform:none;height:100%!important}
.welcome-lettering{position:absolute;left:0;transform-origin:center top}

/* Explicit grid keeps the actions at the right edge when navigation wraps. */
.invitation-scroll .header{display:grid;width:100%;box-sizing:border-box}
.invitation-scroll .header .header-actions{justify-self:end;margin-left:0;justify-content:flex-end;text-align:right}
.invitation-scroll .header .header-actions.has-guest{width:min(360px,100%)}
@media(max-width:1000px){
 .invitation-scroll .header{grid-template-columns:64px minmax(0,1fr)}
 .invitation-scroll .header .header-actions{grid-column:2;grid-row:1}
 .invitation-scroll .header nav{grid-column:1/-1;grid-row:2;width:100%;margin-top:0}
}
@media(max-width:360px){.invitation-scroll .header{grid-template-columns:45px minmax(0,1fr)}}

/* Centre navigation on the viewport, independently of the unequal side controls. */
@media(min-width:1301px){
 .invitation-scroll .header nav{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max-content;margin:0;justify-content:center}
}
@media(max-width:1300px){
 .invitation-scroll .header{height:auto;min-height:118px;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto;gap:8px 16px}
 .invitation-scroll .header .brand{grid-column:1;grid-row:1}
 .invitation-scroll .header .header-actions{grid-column:2;grid-row:1}
 .invitation-scroll .header nav{position:static;transform:none;grid-column:1/-1;grid-row:2;width:100%;margin:0;justify-content:center;flex-wrap:wrap}
}
@media(min-width:1301px){.invitation-scroll .header nav{grid-column:1/-1;grid-row:1/-1}}

/* Supporting details stay readable; only the calligraphic names shrink to fit. */
.invitation-scroll .hero .hero-copy h1 .name-person{font-size:calc(clamp(55px,5.9vw,82.5px) * var(--welcome-name-factor,1))}
.welcome-lettering>.eyebrow{font-size:12px;line-height:1.6;letter-spacing:1.7px}
.invitation-scroll .welcome-lettering .date-line p{font-size:13px;line-height:1.5;letter-spacing:2px}
.invitation-scroll .welcome-lettering .hero-location{font-size:22px;line-height:1.4}
@media(max-width:700px){
 .invitation-scroll .hero .hero-copy h1 .name-person{font-size:calc(clamp(44px,13vw,60.5px) * var(--welcome-name-factor,1))}
 .welcome-lettering>.eyebrow{font-size:10px;letter-spacing:1px}
 .invitation-scroll .welcome-lettering .date-line p{font-size:12px}
 .invitation-scroll .welcome-lettering .hero-location{font-size:20px}
}
@media(max-height:650px){
 .welcome-lettering{padding-block:0}
 .welcome-lettering>.eyebrow{margin-bottom:4px;font-size:10px;line-height:1.3}
 .invitation-scroll .hero .hero-copy h1{margin:0 auto 5px;padding-top:0;padding-bottom:18px;gap:0}
 .invitation-scroll .hero .hero-copy h1 .name-person{line-height:1.1}
 .invitation-scroll .hero .hero-copy h1>span{font-size:18px;margin:0}
 .invitation-scroll .welcome-lettering .date-line p{margin:4px 0;font-size:12px}
 .invitation-scroll .welcome-lettering .hero-location{margin:4px 0;font-size:18px}
}
@media(max-height:650px){.welcome-lettering>.eyebrow{margin-bottom:10px}.invitation-scroll .hero .hero-copy h1{padding-top:14px}}
