/* Luxury Reveal: Premium midnight-navy + champagne-gold editorial theme (universal / architectural artwork, no
   religion-specific symbols: palace arches, chandeliers, star-jaali, filigree, florals). Loaded AFTER /engine/base.css.
   Colours flow from the palette tokens, so Premium theme.palette overrides (accent / background / text) still work. */
:root {
  --color-bg: #09101D;          /* Royal Midnight Navy (same room as the Royal Doors) */
  --color-surface: #111A2E;     /* Velvet Navy */
  --color-text: #F5EDE0;        /* Warm Champagne Ivory */
  --color-accent: #D4AF6A;      /* Burnished Champagne Gold */
  --font-display: 'Cormorant Garamond', 'Noto Serif Gujarati', 'Noto Serif Devanagari', Georgia, serif;
  --font-body: 'Noto Sans Gujarati', system-ui, sans-serif;   /* crisp, effortless body copy on phones; Cormorant stays for display */
  /* theme tokens */
  --gold-bright: #EBD29B;
  --navy-deep: #060B15;
  --velvet-crimson: #5C1A2A;    /* royal curtain accents only */
  --hair: color-mix(in srgb, var(--color-accent) 38%, transparent);   /* fine gold hairline */
  --hair-strong: color-mix(in srgb, var(--color-accent) 75%, transparent);
  --art-divider: url("/themes/luxury-reveal/assets/divider.svg");
  --art-closing: url("/themes/luxury-reveal/assets/closing.svg");
  --art-pattern: url("/themes/luxury-reveal/assets/pattern.svg");
  --art-grain: url("/themes/luxury-reveal/assets/grain.svg");
  --art-corner-tl: url("/themes/luxury-reveal/assets/corner-tl.svg");
  --art-corner-tr: url("/themes/luxury-reveal/assets/corner-tr.svg");
  --art-corner-bl: url("/themes/luxury-reveal/assets/corner-bl.svg");
  --art-corner-br: url("/themes/luxury-reveal/assets/corner-br.svg");
}
html[lang="gu"], html[lang="hi"] {
  --font-display: 'Noto Serif Gujarati', 'Noto Serif Devanagari', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Noto Sans Gujarati', 'Noto Serif Devanagari', system-ui, sans-serif;
}
/* Gujarati / Hindi controls and labels keep clean script shaping everywhere (intro AND floating bar), even inside an English page */
[lang="gu"], [lang="hi"], .lang-btn[lang="gu"], .lang-btn[lang="hi"] { font-family: 'Noto Sans Gujarati', 'Noto Serif Devanagari', system-ui, sans-serif; letter-spacing: 0; }
html { background: var(--navy-deep); }
body { background: transparent; font-size: 1.0625rem; line-height: 1.7; }
html[lang="gu"] body, html[lang="hi"] body { line-height: 1.95; }
h1, h2, h3 { line-height: 1.4; letter-spacing: .02em; }
html[lang="gu"] h1, html[lang="gu"] h2, html[lang="gu"] h3 { line-height: 1.6; letter-spacing: 0; }

/* the invitation column: velvet navy, star-jaali texture + matte grain, gold hairlines either side */
.invite, .static-fallback { background: var(--color-bg); position: relative; box-shadow: 0 0 70px rgba(0, 0, 0, .6); }
.invite { border-inline: 1px solid var(--hair); isolation: isolate; }
.invite::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--art-pattern) 0 0 / 64px; opacity: .055; }
.invite::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--art-grain) 0 0 / 220px; opacity: .5; mix-blend-mode: soft-light; }
/* slow network / JS off: readable warm champagne ivory on midnight navy */
.static-fallback { min-height: 100dvh; color: #F5EDE0; background: #09101D; }
.static-fallback h1, .static-fallback h2 { color: var(--gold-bright); }
.sec { padding: 3.25rem 1.4rem; position: relative; }
.sec + .sec { border-top: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(92, 26, 42, .6), inset 0 16px 24px -20px rgba(92, 26, 42, .55); }
.sec-blessing + .sec { box-shadow: none; }
a { color: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* buttons: gold-filled pill + hairline outline */
.btn { border-radius: 999px; border: 1px solid var(--hair-strong); color: var(--gold-bright); background: transparent; letter-spacing: .04em; font-weight: 600; transition: background .25s ease, color .25s ease; }
.btn-primary { background: linear-gradient(180deg, var(--gold-bright), var(--color-accent) 60%, #B8924A); color: var(--navy-deep); border-color: var(--gold-bright); box-shadow: 0 6px 18px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn:hover, .btn:active { background: color-mix(in srgb, var(--color-accent) 16%, transparent); }
.btn-primary:hover, .btn-primary:active { background: var(--gold-bright); }

/* ---------- A. cover ---------- */
.sec-cover { padding: 2.75rem 1.4rem 3.5rem; background: radial-gradient(120% 52% at 50% -8%, rgba(92, 26, 42, .42), transparent 72%), radial-gradient(90% 55% at 50% 22%, rgba(235, 210, 155, .13), transparent 70%); }
.sec-cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--art-corner-tl) left 8px top 8px / 76px no-repeat, var(--art-corner-tr) right 8px top 8px / 76px no-repeat; }
.demo-ribbon { display: none; }                       /* one quiet demo notice lives in the closing */
.cover-art { max-width: 15.5rem; margin: 0 auto .75rem; }
.cover-kind { font-size: 1.05rem; letter-spacing: .28em; color: var(--color-accent); margin: 0 0 .5rem; text-transform: none; }
html[lang="gu"] .cover-kind { letter-spacing: .06em; }
.cover-names { color: var(--color-text); font-size: clamp(2.1rem, 9.6vw, 3rem); font-weight: 600; text-shadow: 0 2px 24px rgba(235, 210, 155, .25); gap: .1rem; }
html[lang="gu"] .cover-names { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
.cover-names .amp { color: var(--color-accent); font-weight: 400; font-style: italic; }
.cover-date { font-size: 1.25rem; color: var(--gold-bright); letter-spacing: .08em; margin-top: 1.25rem; position: relative; padding-top: 1.7rem; }
.cover-date::before { content: ""; position: absolute; left: 50%; top: 0; width: 15rem; max-width: 80%; height: 1.4rem; transform: translateX(-50%); background: var(--art-divider) center / contain no-repeat; }
.countdown { gap: .55rem; max-width: 23rem; }
.cd-unit { background: linear-gradient(180deg, var(--color-surface), var(--navy-deep)); border: 1px solid var(--hair-strong); border-radius: .45rem; padding: .6rem .2rem .5rem; box-shadow: inset 0 0 0 3px var(--navy-deep), inset 0 0 0 4px var(--hair); }
.cd-num { color: var(--gold-bright); font-size: 1.9rem; font-weight: 600; }
.cd-label { color: var(--color-text); opacity: .85; font-size: .85rem; letter-spacing: .06em; }
.countdown-done { color: var(--gold-bright); }

/* ---------- B. blessing + families ---------- */
.sec-blessing { padding: 2.5rem 1.4rem 1rem; }
.blessing-text { font-family: var(--font-display); font-size: 1.55rem; color: var(--gold-bright); margin: 0; font-weight: 600; text-shadow: 0 0 22px rgba(212, 175, 106, .35); }
.sec-blessing + .sec { border-top: 0; }
.invitation-title { font-size: 1.85rem; color: var(--gold-bright); margin-bottom: 1rem; }
.invitation-text p { max-width: 28rem; margin-inline: auto; }
.family-pair { gap: 0; margin-top: 2rem; }
.family { padding: 1.5rem 0; }
.family + .family { border-top: 1px solid var(--hair); position: relative; }
.family + .family::before { content: ""; position: absolute; left: 50%; top: -.7rem; width: 12rem; height: 1.4rem; transform: translateX(-50%); background: var(--art-divider) center / contain no-repeat; }
.family-title { color: var(--color-accent); font-size: 1.1rem; letter-spacing: .16em; font-weight: 600; margin-bottom: .6rem; }
html[lang="gu"] .family-title { letter-spacing: .04em; }
.family-names li { line-height: 1.7; }
@media (min-width: 40rem) { .family + .family { border-top: 0; border-left: 1px solid var(--hair); } .family + .family::before { display: none; } }

/* ---------- C. events: velvet stationery cards with gold filigree corners ---------- */
.sec-events { padding-inline: 1rem; }
.event { position: relative; background: radial-gradient(115% 46% at 50% 0%, rgba(92, 26, 42, .46), transparent 72%), radial-gradient(80% 30% at 50% 0%, rgba(235, 210, 155, .07), transparent 70%), linear-gradient(170deg, #0E1830 0%, var(--color-surface) 40%, var(--navy-deep) 100%); border: 1px solid var(--hair-strong); border-radius: .35rem; padding: 2.4rem 1.4rem 1.6rem; box-shadow: 0 18px 36px rgba(0, 0, 0, .45), inset 0 0 0 5px var(--navy-deep), inset 0 0 0 6px var(--hair); }
.event + .event { margin-top: 1.7rem; }
.event::before { content: ""; position: absolute; inset: 6px; pointer-events: none; background: var(--art-corner-tl) left top / 56px no-repeat, var(--art-corner-tr) right top / 56px no-repeat, var(--art-corner-bl) left bottom / 56px no-repeat, var(--art-corner-br) right bottom / 56px no-repeat; }
.event::after { content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(92, 26, 42, .95), var(--gold-bright), rgba(92, 26, 42, .95), transparent); opacity: .85; }
.event-title { color: var(--gold-bright); font-size: 1.75rem; font-weight: 600; margin-bottom: .6rem; }
.event-date { font-size: 1.2rem; margin-bottom: .1rem; color: var(--color-text); }
.event-trad { color: var(--color-accent); font-style: italic; }
.event-time { color: var(--color-accent); font-size: 1.15rem; letter-spacing: .06em; margin-bottom: .9rem; position: relative; padding-bottom: 1rem; }
.event-time::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 9rem; height: 1.1rem; transform: translateX(-50%); background: var(--art-divider) center / contain no-repeat; opacity: .9; }
.event-venue strong { font-weight: 600; color: var(--color-text); }
.event-address { opacity: .85; font-size: 1.05rem; }
.event-dress { display: inline-block; max-width: 100%; margin: .4rem 0 .7rem; padding: .3rem 1rem; border: 1px solid var(--hair-strong); border-radius: 1rem; background: rgba(212, 175, 106, .1); font-size: .98rem; line-height: 1.7; color: var(--color-text); }
.event-dress .label { color: var(--gold-bright); font-weight: 600; }
.event-dress .label::after { content: ":"; }
.event-schedule { margin: 1rem auto; max-width: 20rem; padding-top: .9rem; border-top: 1px solid var(--hair); }
.schedule-title { color: var(--color-accent); font-size: 1.05rem; letter-spacing: .14em; margin-bottom: .35rem; text-align: center; }
html[lang="gu"] .schedule-title { letter-spacing: .03em; }
.event-schedule li { gap: .9rem; padding: .3rem 0; border-bottom: 1px dotted var(--hair); }
.event-schedule li:last-child { border-bottom: 0; }
.sch-time { color: var(--gold-bright); font-weight: 600; }
.event-actions { margin-top: 1.1rem; }
.demo-action-note { background: var(--navy-deep); border: 1px solid var(--hair-strong); border-radius: .5rem; color: var(--color-text); font-size: .98rem; }

/* ---------- D. photos: framed gold cards, romantic captions, swipe rail with pagination dots ---------- */
.photo { background: var(--navy-deep); border: 1px solid var(--hair-strong); border-radius: .35rem; padding: .55rem .55rem 0; box-shadow: 0 16px 32px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(235, 210, 155, .08); }
.photo img { border-radius: .2rem; height: auto; }
.photo-caption { padding: .95rem .5rem 1.15rem; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.5; text-align: center; color: var(--gold-bright); text-wrap: balance; }
html[lang="gu"] .photo-caption { font-style: normal; font-size: 1.02rem; line-height: 1.8; }
.layout-premium { padding-inline: 0; }
.layout-premium .photo-rail { gap: .85rem; padding: .35rem 9% .9rem; scroll-padding-inline: 9%; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; touch-action: pan-x pan-y; }
.layout-premium .photo-rail::-webkit-scrollbar { display: none; }
.layout-premium .photo-rail .photo { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.photo-dots { display: flex; justify-content: center; gap: .55rem; margin-top: .6rem; }
.photo-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--color-accent); opacity: .3; transform: scale(1); transition: opacity .3s ease, transform .3s ease; }
.photo-dot.is-active { opacity: 1; transform: scale(1.55); background: var(--gold-bright); }
.sec-photos .photo-grid { max-width: 24rem; margin: 0 auto; }
.sec-photos .photo-featured { max-width: 22rem; }

/* ---------- E. video: framed poster card + gold play medallion ---------- */
.video-heading { color: var(--gold-bright); font-size: 1.7rem; }
.video-box { padding: .55rem; background: var(--navy-deep); border: 1px solid var(--hair-strong); border-radius: .35rem; box-shadow: 0 16px 32px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(235, 210, 155, .08); }
.video-poster, .video-el, .video-poster img { border-radius: .2rem; }
.video-play::before { width: 4.4rem; height: 4.4rem; opacity: 1; background: radial-gradient(circle at 35% 30%, #FFF1C9, var(--gold-bright) 40%, #B8924A); box-shadow: 0 8px 22px rgba(0, 0, 0, .55), 0 0 0 1px var(--gold-bright); }
.video-play::after { content: ""; position: absolute; width: 5.4rem; height: 5.4rem; border-radius: 50%; border: 1px solid var(--hair-strong); }
.video-play { color: var(--navy-deep); }
.video-play .icon { margin-left: .15rem; }

/* ---------- F. scratch-to-reveal (gold foil) ---------- */
.sec-scratch { padding: 3rem 1.4rem; }
.scratch-heading { color: var(--gold-bright); font-size: 1.7rem; }
.scratch-hint { max-width: 22rem; margin: .5rem auto 0; opacity: .92; font-size: 1.05rem; }
.scratch-card { width: min(100%, 17.5rem); height: 10rem; margin: 1.4rem auto 1rem; border: 1px solid var(--hair-strong); border-radius: .5rem; background: radial-gradient(110% 70% at 50% 0%, rgba(92, 26, 42, .5), transparent 70%), radial-gradient(120% 120% at 50% 20%, #15213B, var(--navy-deep)); box-shadow: 0 0 0 4px var(--navy-deep), 0 0 0 5px var(--hair-strong), 0 0 0 9px rgba(92, 26, 42, .4), 0 20px 36px rgba(0, 0, 0, .5); display: grid; place-items: center; }
.scratch-reveal { padding: .6rem 1rem; text-align: center; }
.scratch-date { margin: 0 0 .35rem; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.4; color: var(--gold-bright); }
.scratch-place { margin: 0; font-size: .98rem; line-height: 1.55; color: var(--color-text); }
.scratch-canvas { border-radius: .5rem; transition: opacity .6s ease; }
.scratch-canvas.is-gone { opacity: 0; }
.scratch-reveal-btn { margin-top: .4rem; padding-inline: 1.4rem; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; color: var(--color-accent); font-size: .92rem; min-height: 44px; font-weight: 400; letter-spacing: 0; box-shadow: none; }
.scratch-reveal-btn:hover, .scratch-reveal-btn:active { background: transparent; color: var(--gold-bright); }
.scratch-hint[hidden] { display: none; }
.scratch-reveal-btn[hidden] { display: none; }

/* ---------- G. rsvp + closing ---------- */
.sec-rsvp { background: linear-gradient(180deg, var(--navy-deep), var(--color-bg)); }
.rsvp-heading { color: var(--gold-bright); font-size: 1.7rem; }
.sec-footer { padding: 3.25rem 1.1rem 6.75rem; background: radial-gradient(110% 42% at 50% 100%, rgba(92, 26, 42, .36), transparent 76%), linear-gradient(180deg, var(--color-bg), var(--navy-deep)); }
.footer-hosts::before, .footer-invited::before { content: ""; display: block; width: 14rem; height: 2.4rem; margin: 0 auto .9rem; background: var(--art-closing) center / contain no-repeat; }
.footer-hosts { max-width: 24rem; margin: 0 auto 1.6rem; }
.footer-hosts-heading { color: var(--gold-bright); font-size: 1.3rem; letter-spacing: .08em; margin-bottom: .6rem; }
html[lang="gu"] .footer-hosts-heading { letter-spacing: .02em; }
.footer-hosts-list { font-size: 1.1rem; line-height: 1.6; color: var(--color-text); }
.footer-hosts--two-col { max-width: 26rem; }
.footer-hosts--two-col .footer-hosts-list { font-size: 1rem; column-gap: .75rem; row-gap: .35rem; }
/* Noto Sans is wider than Cormorant: sized from the real font metrics so the longest host ("Mr. Jitendrabhai Parikh") fits one line at 320 / 360 / 390 px */
html[lang="en"] .footer-hosts--two-col .footer-hosts-list { font-size: clamp(.72rem, 3.6vw, .95rem); column-gap: .6rem; letter-spacing: 0; }
html[lang="en"] .footer-hosts--two-col .footer-hosts-list li { white-space: nowrap; }   /* one clean line per host at 360 / 390 px */
.footer-message { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--gold-bright); margin-top: 1.4rem; }
html[lang="gu"] .footer-message { font-style: normal; font-size: 1.1rem; }
.footer-notice { max-width: 22rem; margin: 1rem auto 0; padding-top: .9rem; border-top: 1px solid var(--hair); font-size: .92rem; opacity: .8; }
.studio-credit { opacity: .9; margin-top: 1.4rem; display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .88rem; }
.studio-logo { width: 7.5rem; height: auto; opacity: 1; }   /* the approved champagne-gold wordmark, shown in its true colour */

/* ---------- H. floating controls: midnight-navy glass with crisp gold borders ---------- */
.lang-toggle { background: rgba(6, 11, 21, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1.5px solid var(--color-accent); box-shadow: 0 8px 22px rgba(0, 0, 0, .55); }
.lang-btn { color: var(--color-text); min-height: 2.75rem; padding: 0 .95rem; font-weight: 600; }
.lang-btn[aria-pressed="true"] { background: var(--color-accent); color: var(--navy-deep); }
.fab { background: rgba(6, 11, 21, .88); border: 1.5px solid var(--color-accent); color: var(--gold-bright); box-shadow: 0 8px 22px rgba(0, 0, 0, .55); }
.fab[aria-pressed="true"] { background: var(--color-accent); color: var(--navy-deep); }
/* labelled music pill: ♪ સંગીત / ♪ Music */
.fab-music { width: auto; min-width: 3rem; height: auto; min-height: 2.85rem; padding: 0 1rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-size: .95rem; white-space: nowrap; background: rgba(6, 11, 21, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.fab-music .fab-label { display: inline; font-weight: 700; line-height: 1; color: inherit; }
.music-status { background: rgba(6, 11, 21, .92); border: 1px solid var(--hair-strong); color: var(--color-text); border-radius: 999px; padding: .2rem .8rem; }

/* ---------- I. opening: Royal Doors + Velvet Curtains (about 3.5 s, transform + opacity only) ---------- */
.intro-doors, .intro-envelope { padding: 0; background: var(--navy-deep); overflow: hidden; transition: opacity .7s ease; }
.intro-envelope { transition-duration: .5s; }
.doors-stage { position: absolute; inset: 0; max-width: 34rem; margin: 0 auto; overflow: hidden; perspective: 1400px; perspective-origin: 50% 42%; background: var(--navy-deep); }
.doors-glow { position: absolute; inset: -10%; opacity: 0; transform: scale(.8); background: radial-gradient(ellipse 60% 50% at 50% 50%, #FFF1C9 0%, rgba(235, 210, 155, .85) 22%, rgba(212, 175, 106, .35) 52%, transparent 75%); will-change: transform, opacity; }
.doors-door { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--color-bg); backface-visibility: hidden; will-change: transform; }
.doors-door-left { left: 0; transform-origin: 0 50%; }
.doors-door-right { right: 0; transform-origin: 100% 50%; }
.doors-door-img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.doors-curtain { position: absolute; top: 0; bottom: 0; width: 17%; z-index: 2; will-change: transform;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .34) 0 5%, rgba(255, 255, 255, .05) 5% 11%, transparent 11% 17%), linear-gradient(90deg, #2A0B14, var(--velvet-crimson) 38%, #7A2539 62%, #3B1019); }
.doors-curtain-left { left: 0; box-shadow: inset -2px 0 0 var(--color-accent), 8px 0 18px rgba(0, 0, 0, .5); }
.doors-curtain-right { right: 0; box-shadow: inset 2px 0 0 var(--color-accent), -8px 0 18px rgba(0, 0, 0, .5); }
.doors-valance { position: absolute; top: 0; left: 0; right: 0; z-index: 3; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); }
.doors-valance-img { width: 100%; height: auto; display: block; }
.doors-crest { position: absolute; z-index: 4; left: 50%; top: 45%; width: 8.5rem; transform: translate(-50%, -50%); will-change: transform, opacity; animation: crest-breathe 3.2s ease-in-out infinite; }
.doors-crest-img { width: 100%; height: auto; display: block; }
@keyframes crest-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.035); } }
.doors-stage, .doors-crest, .envelope-stage, .envelope-seal { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.doors-ui { pointer-events: none; position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.2rem 1.4rem 0; text-align: center; background: radial-gradient(ellipse 80% 90% at 50% 62%, rgba(6, 11, 21, .94) 30%, transparent 75%); transition: opacity .35s ease; }
.doors-kind { margin: 0; font-size: 1rem; line-height: 1.9rem; min-height: 1.9rem; letter-spacing: .26em; color: var(--color-accent); }
html[lang="gu"] .doors-kind { letter-spacing: .05em; }
/* one shared size + line-height + min-height for gu and en: both names fit the same line count, so the button never jumps */
.doors-open { pointer-events: auto; }
.doors-names { --doors-box: clamp(1.45rem, 6.6vw, 1.95rem); --doors-name-size: var(--doors-box); margin: 0; font-size: var(--doors-name-size); line-height: 1.5; min-height: calc(var(--doors-box) * 1.5); text-wrap: balance; color: var(--color-text); text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
html[lang="gu"] .doors-names { font-size: var(--doors-name-size); line-height: 1.5; }
@media (max-width: 21rem) { .doors-names { min-height: calc(var(--doors-box) * 3); } }
.doors-open { margin-top: .35rem; min-width: 12.5rem; min-height: 3rem; line-height: 1.2; }
.intro-doors > .lang-toggle, .intro-envelope > .lang-toggle { position: absolute; z-index: 6; left: 50%; bottom: calc(1.3rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); margin: 0; transition: opacity .35s ease; }
.intro-doors.is-opening .doors-ui, .intro-doors.is-opening > .lang-toggle, .intro-envelope.is-opening > .lang-toggle, .intro-envelope.is-opening .intro-names, .intro-envelope.is-opening .envelope-open { opacity: 0; pointer-events: none; }
.intro-doors.is-opening .doors-crest { animation: none; transform: translate(-50%, -50%) scale(1.14); opacity: 0; transition: transform .7s ease, opacity .7s ease; }
.intro-doors.is-opening .doors-glow { opacity: 1; transform: scale(1.18); transition: transform 2.4s ease .6s, opacity 1.5s ease .6s; }
.intro-doors.is-opening .doors-door { transition: transform 2.4s cubic-bezier(.55, .05, .2, 1) .5s; }
.intro-doors.is-opening .doors-door-left { transform: translateX(-4%) rotateY(78deg); }
.intro-doors.is-opening .doors-door-right { transform: translateX(4%) rotateY(-78deg); }
.intro-doors.is-opening .doors-curtain { transition: transform 2.4s cubic-bezier(.5, .05, .25, 1) .5s; }
.intro-doors.is-opening .doors-curtain-left { transform: translateX(-104%); }
.intro-doors.is-opening .doors-curtain-right { transform: translateX(104%); }

/* English readability: Noto Sans reads larger than the old Cormorant, so only the small labels get a +0.5-1pt lift */
html[lang="en"] .invitation-text p, html[lang="en"] .family-names { font-size: 1.125rem; }
html[lang="en"] .event-date { font-size: 1.15rem; }
html[lang="en"] .event-address { font-size: 1.1rem; }
html[lang="en"] .event-dress { font-size: 1.04rem; }
html[lang="en"] .event-schedule { font-size: 1.05rem; }
html[lang="en"] .scratch-hint { font-size: 1.1rem; }
/* Cormorant Garamond has a smaller x-height than Noto Serif Gujarati: lift English display headings ~12% (gu untouched, same text widths) */
html[lang="en"] .cover-names { font-size: clamp(2.35rem, 10.6vw, 3.35rem); }
html[lang="en"] .invitation-title { font-size: 2.05rem; }
html[lang="en"] .event-title { font-size: 1.95rem; }
html[lang="en"] .scratch-heading, html[lang="en"] .rsvp-heading { font-size: 1.9rem; }
html[lang="en"] .intro-envelope .intro-names { font-size: clamp(1.7rem, 7.8vw, 2.25rem); line-height: 1.3; }
/* doors: min-height stays on the gu box (--doors-box), so the button never jumps when the language flips */
/* doors names are width-bound: "Vihaan Desai & Anaya Parikh" = 11.69 em (Cormorant 600 metrics), so only ~+8% fits one line: 299 of 315 px at 360, 324 of 345 px at 390 */
html[lang="en"] .doors-names { --doors-name-size: clamp(1.55rem, 7.1vw, 2.05rem); line-height: 1.39; }
html[lang="en"] .scratch-place { font-size: 1.04rem; }
html[lang="en"] .cd-label { font-size: .92rem; }
html[lang="en"] .footer-notice { font-size: .98rem; }

/* ---------- J. opening: Wax-Seal Envelope (about 2.2 s) ---------- */
.intro-envelope { gap: 1.1rem; background: radial-gradient(90% 60% at 50% 38%, rgba(92, 26, 42, .32) 0%, transparent 60%), radial-gradient(90% 60% at 50% 38%, #111C34 0%, var(--navy-deep) 72%); }
.intro-envelope .intro-names { z-index: 5; max-width: 26rem; font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.45; color: var(--color-text); transition: opacity .3s ease; }
html[lang="gu"] .intro-envelope .intro-names { font-size: clamp(1.35rem, 6.2vw, 1.8rem); line-height: 1.65; }
.envelope-open { transition: opacity .3s ease; z-index: 5; margin-bottom: 4rem; }
.envelope-stage { position: relative; width: min(86vw, 22rem); aspect-ratio: 360 / 250; margin-top: 5rem; perspective: 1200px; }
.envelope-front { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.envelope-card { position: absolute; z-index: 1; left: 7%; right: 7%; top: 7%; bottom: 14%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: .8rem; text-align: center; color: var(--navy-deep); background: linear-gradient(180deg, #FBF5E8, #F1E6D0); border: 1px solid var(--color-accent); box-shadow: inset 0 0 0 4px #F5EDE0, inset 0 0 0 5px var(--hair-strong); will-change: transform; }
.envelope-card-kind { font-size: .85rem; letter-spacing: .22em; color: #8A6A2E; }
html[lang="gu"] .envelope-card-kind { letter-spacing: .04em; }
.envelope-card-names { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 5.2vw, 1.5rem); line-height: 1.45; }
.envelope-flap { position: absolute; z-index: 3; left: 0; top: 0; width: 100%; height: 60%; transform-origin: 50% 0; transform-style: preserve-3d; will-change: transform; }
.envelope-flap-face, .envelope-flap-back { position: absolute; inset: 0; backface-visibility: hidden; }
.envelope-flap-back { transform: rotateX(180deg); filter: brightness(.62); }
.envelope-flap-img { width: 100%; height: 100%; display: block; }
.envelope-seal { position: absolute; z-index: 4; left: 50%; top: 58%; width: 21%; transform: translate(-50%, -50%); will-change: transform, opacity; }
.envelope-seal { animation: seal-invite 2.6s ease-in-out infinite; }   /* gentle pulse + glow: invites a tap */
.envelope-seal::before { content: ""; position: absolute; inset: -45%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 241, 201, .9), rgba(235, 210, 155, .35) 45%, transparent 70%); opacity: 0; animation: seal-invite-glow 2.6s ease-in-out infinite; }
.envelope-seal-img { position: relative; width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); }
.intro-envelope.is-opening .envelope-seal { animation: seal-release .5s ease-out forwards; }
.intro-envelope.is-opening .envelope-seal::before { animation: seal-glow .6s ease-out forwards; }
.intro-envelope.is-opening .envelope-flap { animation: flap-open .85s cubic-bezier(.45, .05, .25, 1) .3s forwards; }
.intro-envelope.is-opening .envelope-card { transform: translateY(-62%); transition: transform .9s cubic-bezier(.3, .1, .2, 1) .85s; }
@keyframes seal-invite { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.07); } }
@keyframes seal-invite-glow { 0%, 100% { opacity: 0; } 50% { opacity: .55; } }
@keyframes seal-glow { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes seal-release { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 45% { transform: translate(-50%, -50%) scale(1.16); opacity: 1; } 100% { transform: translate(-50%, -38%) scale(.9); opacity: 0; } }
@keyframes flap-open { 0% { transform: rotateX(0); z-index: 3; } 49% { transform: rotateX(-88deg); z-index: 3; } 50% { z-index: 0; } 100% { transform: rotateX(-180deg); z-index: 0; } }

@media (prefers-reduced-motion: reduce) {
  .doors-crest, .envelope-seal, .envelope-seal::before { animation: none; }
  .intro-doors *, .intro-envelope * { animation: none !important; transition: none !important; }
}
@media (min-width: 40rem) { .doors-crest { width: 10rem; } }
