/* Roshni & Nikhil – wedding invitation styles (extracted verbatim from the single-file build) */
:root {
  color-scheme: light;
  --page: #FBF6EC;
  --page-2: #F5ECDC;
  --ink: #1D2847;
  --muted: #5A5F70;
  --gold: #A9823F;
  --gold-soft: rgba(169, 130, 63, .45);
  --foil: linear-gradient(100deg, #7E5A1E 0%, #C9A04F 28%, #8F6A2A 48%, #D9B66C 70%, #7A5419 100%);
  --ph-a: #F3EAD9;
  --ph-b: #E9DBC2;
  --shadow: 0 18px 40px rgba(29, 40, 71, .16);
  --scrim: rgba(251, 246, 236, .93);

  /* Fixed royal and object colours (same in both themes) */
  --royal: #17244A;
  --royal-deep: #0F1834;
  --royal-ink: #F6EEDC;
  --royal-muted: #D8CBB0;
  --foil-bright: linear-gradient(100deg, #B9872F 0%, #F7E7A9 28%, #CFA049 48%, #F4DC90 68%, #AF7A22 100%);
  --champagne: #E8D29E;
  --ruby: #8B1E2E;
  --ruby-hi: #C2475A;
  --ruby-lo: #560E19;
  --sapphire: #2B4C8C;
  --blush: #EBCBC4;
  --obj: #FFFBF3;
  --obj-2: #F4EBDB;
  --obj-ink: #1D2847;
  --obj-muted: #5A5F70;
  --obj-line: rgba(169, 130, 63, .55);

  --f-en: "Cormorant Garamond", Cormorant, Garamond, Georgia, serif;
  --f-ui-en: Jost, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-gu: Rasa, "Noto Serif Gujarati", "Gujarati Sangam MN", Shruti, serif;
  --f-hi: "Tiro Devanagari Hindi", "Noto Serif Devanagari", "Kohinoor Devanagari", Mangal, serif;
  --f-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --f-text: var(--f-en);
  --f-ui: var(--f-ui-en);
  --f-names: var(--f-script);
  --body-size: 1.22rem;
  --body-lh: 1.55;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html[lang="gu"], html[lang="hi"] { --f-names: var(--f-text); --body-size: 1.15rem; --body-lh: 1.7; }
html[lang="gu"] { --f-text: var(--f-gu); --f-ui: var(--f-gu); }
html[lang="hi"] { --f-text: var(--f-hi); --f-ui: var(--f-hi); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0E1428;
    --page-2: #121A33;
    --ink: #F3EBDD;
    --muted: #C2B8A6;
    --gold: #CFA85E;
    --gold-soft: rgba(207, 168, 94, .45);
    --foil: linear-gradient(100deg, #B9872F 0%, #F7E7A9 28%, #CFA049 48%, #F4DC90 68%, #AF7A22 100%);
    --ph-a: #1C2440;
    --ph-b: #252E4D;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
    --scrim: rgba(14, 20, 40, .88);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0E1428;
  --page-2: #121A33;
  --ink: #F3EBDD;
  --muted: #C2B8A6;
  --gold: #CFA85E;
  --gold-soft: rgba(207, 168, 94, .45);
  --foil: linear-gradient(100deg, #B9872F 0%, #F7E7A9 28%, #CFA049 48%, #F4DC90 68%, #AF7A22 100%);
  --ph-a: #1C2440;
  --ph-b: #252E4D;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --scrim: rgba(14, 20, 40, .88);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#top:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.foil { color: var(--gold); background: var(--foil); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.foil-bright { color: var(--champagne); background: var(--foil-bright); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.script { font-family: var(--f-names); font-weight: 400; }
html[lang="en"] .script { padding: 0 .2em .12em; }
html:not([lang="en"]) .script { font-weight: 600; }
.amp { font-family: var(--f-script) !important; font-weight: 400 !important; }

/* ---------- Ornaments ---------- */
.ganesha { display: block; margin: 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ganesha .f { fill: currentColor; stroke: none; }
.ganesha .halo { stroke-width: 2.3; stroke-dasharray: 0 5.2; }
.ganesha.gold { stroke: url(#goldStroke); }
.ganesha.gold .f { fill: url(#goldStroke); }
.ganesha.bright { stroke: url(#goldBright); stroke-width: 2.6; }
.ganesha.bright .f { fill: url(#goldBright); }
.flourish { display: block; width: 180px; height: 22px; margin: .6rem auto 0; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1; overflow: visible; }
.flourish .f { fill: currentColor; stroke: none; }
.corner { position: absolute; width: 46px; height: 46px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.2; pointer-events: none; }
.corner .f { fill: currentColor; stroke: none; }
.corner.tl { top: 8px; left: 8px; }
.corner.tr { top: 8px; right: 8px; transform: scaleX(-1); }
.corner.bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.corner.br { bottom: 8px; right: 8px; transform: scale(-1, -1); }
.jaali-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.lantern { position: absolute; top: 0; width: 38px; height: 112px; transform-origin: 50% 0; animation: lsway 5.5s ease-in-out infinite alternate; pointer-events: none; z-index: 2; }
.lantern.short { height: 92px; width: 32px; animation-duration: 6.5s; animation-delay: -2s; }
@keyframes lsway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }

/* ---------- Artwork slots ---------- */
.art { position: relative; background-size: cover; background-position: center; }
.art.ph {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(169, 130, 63, .08) 14px 15px),
    linear-gradient(160deg, var(--ph-a), var(--ph-b));
}
.art.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 85%;
  padding: .35rem .8rem;
  border: 1px dashed rgba(169, 130, 63, .8);
  border-radius: 999px;
  background: rgba(255, 251, 243, .88);
  color: #6E5626;
  font-family: var(--f-ui-en);
  font-size: .76rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Scroll reveal ---------- */
html.js [data-rv] { opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform 1.05s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
html.js [data-rv="zoom"] { transform: translateY(56px) scale(.86); }
html.js [data-rv="left"] { transform: translate(-46px, 20px) rotate(-3deg); }
html.js [data-rv="right"] { transform: translate(46px, 20px) rotate(3deg); }
html.js [data-rv].rv-in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
section { position: relative; padding: 4.75rem 1.25rem; }
.sec-head { text-align: center; position: relative; z-index: 3; }
.kicker { margin: 0; font-family: var(--f-script); font-size: 2rem; line-height: 1.2; padding: 0 .2em .1em; }
html:not([lang="en"]) .kicker { font-family: var(--f-text); font-size: 1.1rem; font-weight: 600; padding: 0; }
.sec-title { margin: 0; font-family: var(--f-text); font-weight: 500; font-size: clamp(2.3rem, 1.7rem + 3vw, 3.1rem); line-height: 1.15; letter-spacing: .01em; color: var(--ink); }
html:not([lang="en"]) .sec-title { font-weight: 700; font-size: clamp(1.85rem, 1.5rem + 2vw, 2.3rem); }
.cream { background: var(--page-2); }
.royal { background: var(--royal); color: var(--royal-ink); margin: 18px 0; padding-top: 4rem; padding-bottom: 4rem; }
.royal .sec-title { color: var(--royal-ink); }
.royal .flourish { color: var(--champagne); }
.royal .muted { color: var(--royal-muted); }
.edge { position: absolute; left: 0; width: 100%; height: 18px; color: var(--royal); display: block; }
.edge.top { top: -17px; }
.edge.bottom { bottom: -17px; }
.hint { margin: .6rem auto 0; max-width: 30ch; text-align: center; font-family: var(--f-ui); font-size: .9rem; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--obj-line);
  background: transparent;
  color: var(--obj-ink);
  font-family: var(--f-ui);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--obj-2); }
.btn.primary { background: var(--royal); border-color: var(--royal); color: var(--royal-ink); }
.btn.primary:hover { background: #22336A; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Floating controls ---------- */
.lang { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(232, 210, 158, .55); }
.lang .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 999px; background: var(--foil-bright); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); z-index: 0; }
.lang .thumb.ready { transition: left .42s cubic-bezier(.3, .75, .2, 1), width .42s cubic-bezier(.3, .75, .2, 1); }
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--royal-muted);
  min-height: 44px;
  min-width: 44px;
  padding: 0 .95rem;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  font-weight: 500;
  position: relative;
  z-index: 1;
  transition: color .35s ease;
}
.lang button[lang="en"] { font-family: var(--f-ui-en); font-size: .9rem; letter-spacing: .02em; }
.lang button[lang="gu"] { font-family: var(--f-gu); }
.lang button[lang="hi"] { font-family: var(--f-hi); }
.lang button[aria-pressed="true"] { color: var(--royal-deep); }
html.lang-anim .i18n { transition: opacity .3s ease, filter .3s ease !important; transition-delay: 0s !important; }
html.lang-out .i18n { opacity: 0 !important; filter: blur(5px); }
[data-scrub] { --p: 1; transform: translateY(calc((1 - var(--p)) * 130px)) scale(calc(.84 + var(--p) * .16)); opacity: calc(.08 + var(--p) * .92); will-change: transform; }
.float-lang { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 10px; z-index: 40; background: rgba(15, 24, 52, .82); box-shadow: 0 6px 18px rgba(15, 24, 52, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.float-lang button { padding: 0 .6rem; }

.music {
  position: fixed;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 40;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 210, 158, .6);
  background: rgba(15, 24, 52, .85);
  color: var(--champagne);
  box-shadow: 0 6px 18px rgba(15, 24, 52, .25);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.music svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.music .bars { display: none; gap: 3px; align-items: flex-end; height: 18px; }
.music .bars i { display: block; width: 3px; background: currentColor; border-radius: 2px; animation: bar 1s ease-in-out infinite; }
.music .bars i:nth-child(2) { animation-delay: .2s; }
.music .bars i:nth-child(3) { animation-delay: .4s; }
@keyframes bar { 0%, 100% { height: 5px; } 50% { height: 18px; } }
.music[aria-pressed="true"] .note { display: none; }
.music[aria-pressed="true"] .bars { display: flex; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); z-index: 70; transform: translate(-50%, 10px); max-width: min(90vw, 22rem); padding: .6rem 1rem; border-radius: 12px; background: var(--royal); color: var(--royal-ink); font-family: var(--f-ui-en); font-size: .9rem; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 1. Envelope cover ---------- */
.cover { display: none; }
html.js .cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1.25rem calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% 45%, #1E2E5C 0%, var(--royal) 45%, var(--royal-deep) 100%);
  color: var(--royal-ink);
  transition: opacity 1s ease;
}
.cover .lantern { top: calc(env(safe-area-inset-top, 0px) - 8px); width: 46px; height: 138px; }
.cover .lantern.short { width: 40px; height: 112px; }
.cover .lantern.l1 { left: 6%; }
.cover .lantern.l2 { right: 6%; }
.cover-top, .cover-hint { position: relative; z-index: 3; transition: opacity .5s ease; }
.cover-title { margin: 1.4rem 0 0; font-family: var(--f-gu); font-weight: 600; font-size: 2.1rem; line-height: 1.2; }
.cover-title[lang="hi"] { font-family: var(--f-hi); }
.cover-title[lang="en"] { font-family: var(--f-en); font-weight: 500; letter-spacing: .05em; }
.cover-shloka { margin: .5rem 0 0; font-family: var(--f-hi); color: var(--royal-muted); font-size: .98rem; line-height: 1.75; white-space: pre-line; }
html[lang="gu"] .cover-shloka { font-family: var(--f-gu); }

.envelope { position: relative; z-index: 2; width: min(86vw, 400px); aspect-ratio: 4 / 3; margin: 2.2rem auto 1.5rem; transition: transform .9s ease, opacity .8s ease; }
.env-back { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #EBD293, #C9A04F 50%, #E6C982); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.env-back svg { width: 100%; height: 100%; display: block; }
.letter {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 6%;
  height: 88%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .75rem;
  background: var(--obj);
  color: var(--obj-ink);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  transition: transform 1.1s cubic-bezier(.3, .7, .2, 1) 1.15s, opacity .8s ease;
}
.letter::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--obj-line); box-shadow: inset 0 0 0 3px var(--obj), inset 0 0 0 4px rgba(169, 130, 63, .3); pointer-events: none; }
.letter .ganesha { width: 34px; height: 34px; }
.letter-kicker { margin: .35rem 0 0; font-family: var(--f-ui); font-size: .72rem; letter-spacing: .14em; color: var(--obj-muted); }
html:not([lang="en"]) .letter-kicker { letter-spacing: 0; font-size: .95rem; }
.letter-names { margin: .1rem 0 0; font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.15; white-space: nowrap; }
html:not([lang="en"]) .letter-names { font-size: clamp(1.5rem, 7vw, 1.9rem); }
.letter-date { margin: .1rem 0 0; font-size: 1rem; color: var(--obj-muted); }
.env-front { position: absolute; inset: 0; z-index: 3; border-radius: 6px; background: linear-gradient(180deg, #F3EADA, #FFFBF3 65%); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env-front svg, .flap-front svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.emb-hi { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 1.2; }
.emb-lo { fill: none; stroke: rgba(169, 130, 63, .28); stroke-width: 1.2; }
.emb-gold { fill: none; stroke: url(#goldStroke); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.flap { position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d; transform: perspective(900px) rotateX(0deg); transition: transform 1s cubic-bezier(.5, .05, .3, 1) .35s, z-index 0s linear .85s; }
.flap-face { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px 6px 0 0; overflow: hidden; }
.flap-front { background: linear-gradient(180deg, #EFE4D1 0%, #F8F1E4 80%, #E6D7BD 100%); }
.flap-back { transform: rotateX(180deg); background: linear-gradient(0deg, #EBD293, #B98E3E 55%, #E3C47E); }
.flap-back svg { width: 100%; height: 100%; display: block; }
.seal {
  position: absolute;
  left: 50%;
  top: 60%;
  z-index: 5;
  width: 29%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  border-radius: 47% 53% 45% 55% / 52% 45% 55% 48%;
  background: radial-gradient(circle at 34% 28%, var(--ruby-hi), var(--ruby) 42%, var(--ruby-lo) 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .4), inset 0 -4px 7px rgba(0, 0, 0, .3), inset 0 3px 6px rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: transform .5s cubic-bezier(.5, -.4, .3, 1), opacity .4s ease .1s;
  animation: nudge 3.2s ease-in-out 1.8s infinite;
}
.seal::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 1.5px solid rgba(232, 210, 158, .75); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .15); }
.seal::after { content: ""; position: absolute; inset: 15%; border-radius: 50%; border: 1px dotted rgba(232, 210, 158, .55); }
.seal .ganesha { position: absolute; inset: 21%; width: 58%; height: 58%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
@keyframes nudge { 0%, 86%, 100% { transform: translate(-50%, -50%) scale(1); } 92% { transform: translate(-50%, -50%) scale(1.06); } }
.cover-hint { margin: 0; font-family: var(--f-ui); font-size: .95rem; color: var(--royal-muted); }

.cover.opening .seal { animation: none; transform: translate(-50%, -75%) scale(1.12) rotate(-12deg); opacity: 0; pointer-events: none; }
.cover.opening .flap { transform: perspective(900px) rotateX(180deg); z-index: 1; }
.cover.opening .letter { transform: translateY(-54%); }
.cover.opening .cover-hint { opacity: 0; }
.cover.opening .cover-top { opacity: 0; transition-delay: 1s; }
.cover.leaving { opacity: 0; pointer-events: none; }
.cover.leaving .envelope { transform: translateY(24px) scale(1.04); }

/* Petals */
.petals { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: -24px; left: var(--x); width: 11px; height: 15px; border-radius: 80% 0 80% 0; background: var(--pc); box-shadow: 0 1px 2px rgba(29, 40, 71, .15); opacity: .95; animation: fall var(--d) linear var(--delay) forwards; }
.petal.flake { width: 6px; height: 6px; border-radius: 1px; }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0) scale(var(--s)); }
  30% { transform: translate(calc(var(--drift) * .6), 32vh) rotate(calc(var(--r) * .3)) scale(var(--s)); }
  60% { transform: translate(calc(var(--drift) * -.3), 66vh) rotate(calc(var(--r) * .6)) scale(var(--s)); }
  100% { transform: translate(var(--drift), 112vh) rotate(var(--r)) scale(var(--s)); }
}

/* ---------- 2. Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 0; overflow: hidden; }
.hero .hero-art { position: absolute; inset: 0; transform-origin: 50% 70%; }
.hero.awake .hero-art { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-art.ph::after { top: auto; bottom: 20%; }
.hero-scrim { position: absolute; inset: 0 0 auto 0; height: 66%; background: linear-gradient(180deg, var(--scrim) 0%, var(--scrim) 34%, transparent 100%); }
.hero-frame { position: absolute; inset: 12px; border: 1px solid var(--gold-soft); pointer-events: none; z-index: 2; }
.hero-frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--gold-soft); opacity: .6; }
.hero .lantern { top: 22px; }
.hero .lantern.l1 { left: 9%; }
.hero .lantern.l2 { right: 9%; }
.hero-content { position: relative; z-index: 3; padding: calc(env(safe-area-inset-top, 0px) + 5.25rem) 1.5rem 2rem; text-align: center; }
.hero-content .ganesha { width: 54px; height: 54px; }
.hero-kicker { margin: .8rem 0 0; font-family: var(--f-ui); font-size: .8rem; letter-spacing: .2em; color: var(--muted); }
html:not([lang="en"]) .hero-kicker { letter-spacing: 0; font-size: 1.05rem; }
.names { margin: .35rem 0 0; font-size: clamp(3.6rem, 16vw, 5.75rem); line-height: 1.05; font-weight: 400; }
.names > span { display: block; }
.names .amp { font-size: .5em; line-height: 1.15; }
html:not([lang="en"]) .names { font-size: clamp(2.7rem, 11.5vw, 4.2rem); line-height: 1.3; }
.hero-date { margin: .55rem 0 0; font-size: 1.35rem; letter-spacing: .02em; color: var(--ink); }
.scroll-cue { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem); z-index: 3; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; min-height: 44px; padding: .35rem 1.1rem; border-radius: 999px; background: rgba(15, 24, 52, .78); color: var(--champagne); font-family: var(--f-ui); font-size: .85rem; text-decoration: none; }
.scroll-cue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- 3. Invitation scroll ---------- */
.invite-sec { padding-top: 4.25rem; overflow: hidden; }
.scroll { position: relative; z-index: 1; width: min(100% - 2.5rem, 26rem); margin: 0 auto; }
.roller { position: relative; height: 28px; margin: 0 -14px; border-radius: 14px; background: linear-gradient(180deg, #F6E7BE 0%, #D8B66C 28%, #9C7330 55%, #E3C47E 78%, #8A6424 100%); box-shadow: 0 8px 14px rgba(29, 40, 71, .25); z-index: 2; }
.roller::before, .roller::after { content: ""; position: absolute; top: 50%; width: 22px; height: 38px; transform: translateY(-50%); border-radius: 45%; background: radial-gradient(circle at 40% 32%, var(--ruby-hi), var(--ruby) 50%, var(--ruby-lo)); box-shadow: 0 0 0 2px #C9A04F, 0 3px 5px rgba(0, 0, 0, .3); }
.roller::before { left: -14px; }
.roller::after { right: -14px; }
.paper { position: relative; max-height: 0; overflow: hidden; margin: -6px 0; background: linear-gradient(90deg, rgba(169, 130, 63, .16), transparent 7%, transparent 93%, rgba(169, 130, 63, .16)), var(--obj); color: var(--obj-ink); transition: max-height 1.8s cubic-bezier(.4, .1, .2, 1); }
.paper.no-anim { transition: none; }
.paper-in { position: relative; padding: 2.75rem 1.9rem 2.5rem; text-align: center; }
.paper-in > .frame-line { position: absolute; inset: 14px 12px; border: 1px solid var(--obj-line); box-shadow: inset 0 0 0 4px var(--obj), inset 0 0 0 5px rgba(169, 130, 63, .3); pointer-events: none; }
.paper .corner { width: 40px; height: 40px; }
.paper .corner.tl { top: 18px; left: 16px; }
.paper .corner.tr { top: 18px; right: 16px; }
.paper .corner.bl { bottom: 18px; left: 16px; }
.paper .corner.br { bottom: 18px; right: 16px; }
.paper .ganesha { width: 58px; height: 58px; }
.paper-shloka { margin: .9rem 0 0; font-family: var(--f-hi); font-size: 1rem; line-height: 1.75; color: var(--ruby); white-space: pre-line; }
html[lang="gu"] .paper-shloka { font-family: var(--f-gu); }
.p-lead { margin: .9rem 0 0; color: var(--obj-muted); font-style: italic; }
html:not([lang="en"]) .p-lead { font-style: normal; }
.p-hosts { margin: .3rem 0 0; font-size: 1.4rem; font-weight: 600; color: var(--obj-ink); line-height: 1.35; }
.p-before, .p-after { margin: .5rem auto 0; max-width: 26ch; color: var(--obj-muted); }
.p-names { margin: .4rem 0 0; font-size: clamp(2.7rem, 11vw, 3.4rem); line-height: 1.15; }
.p-names > span { display: block; }
.p-names .amp { font-size: .55em; line-height: 1.1; }
html:not([lang="en"]) .p-names { font-size: clamp(1.9rem, 8vw, 2.4rem); }
.p-dates { margin: 1rem 0 0; font-family: var(--f-ui); font-size: .95rem; letter-spacing: .05em; color: var(--obj-ink); }

/* ---------- 4. Couple ---------- */
.couple .lantern.l1 { left: 4%; }
.couple .lantern.l2 { right: 4%; }
.couple-grid { display: grid; gap: 3.25rem; max-width: 52rem; margin: 2.75rem auto 0; }
.person { text-align: center; }
.medallion { position: relative; width: min(70vw, 16rem); aspect-ratio: 1; margin: 0 auto; }
.medallion svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 18px rgba(29, 40, 71, .18)); }
.medallion .photo { position: absolute; inset: 15%; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(169, 130, 63, .6); }
.medallion .photo.ph::after { font-size: .7rem; }
.role { margin: 1.4rem 0 0; font-family: var(--f-ui); font-size: .82rem; letter-spacing: .22em; color: var(--gold); }
html:not([lang="en"]) .role { letter-spacing: 0; font-size: 1.05rem; font-weight: 600; }
.pre { margin: .2rem 0 0; color: var(--muted); font-size: 1rem; }
.pname { margin: .1rem 0 0; font-size: 2.9rem; line-height: 1.2; }
html:not([lang="en"]) .pname { font-size: 1.85rem; }
.parents { margin: .1rem 0 0; color: var(--muted); }
.quote { margin: 3.25rem auto 0; max-width: 24ch; text-align: center; font-size: clamp(1.5rem, 1.25rem + 1.2vw, 1.9rem); line-height: 1.4; font-style: italic; color: var(--ink); }
html:not([lang="en"]) .quote { font-style: normal; font-size: 1.35rem; }
html[lang="en"] .quote::before { content: "“"; color: var(--gold); }
html[lang="en"] .quote::after { content: "”"; color: var(--gold); }

/* ---------- 5. Save the date ---------- */
.pull-card { position: relative; z-index: 2; width: min(100%, 23rem); min-height: 22rem; margin: 2.25rem auto 0; border-radius: 16px; background: var(--obj); color: var(--obj-ink); box-shadow: 0 0 0 1px var(--obj-line), 0 24px 50px rgba(0, 0, 0, .35); overflow: hidden; }
.pull-card > .frame-line { position: absolute; inset: 10px; border: 1px solid var(--obj-line); box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px rgba(169, 130, 63, .3); border-radius: 10px; pointer-events: none; z-index: 3; }
.pull-card .corner { z-index: 3; width: 36px; height: 36px; top: 14px; left: 14px; }
.pull-card .corner.tr { left: auto; right: 14px; }
.pull-card .corner.bl { top: auto; bottom: 14px; }
.pull-card .corner.br { top: auto; left: auto; bottom: 14px; right: 14px; }
.revealed { padding: 2.6rem 1.25rem 2.2rem; text-align: center; }
.r-kicker { margin: 0; font-family: var(--f-ui); font-size: .8rem; letter-spacing: .2em; color: var(--gold); }
html:not([lang="en"]) .r-kicker { letter-spacing: 0; font-size: 1.05rem; font-weight: 600; }
.r-weekday { margin: .7rem 0 0; color: var(--obj-muted); }
.r-date { margin: 0; font-size: 2.3rem; line-height: 1.15; font-weight: 600; color: var(--obj-ink); }
.r-time { margin: .2rem 0 0; color: var(--obj-muted); }
.countdown { display: flex; justify-content: center; gap: .55rem; margin-top: 1.4rem; }
.cd { width: 66px; height: 66px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--obj-line); box-shadow: inset 0 0 0 3px var(--obj), inset 0 0 0 4px rgba(169, 130, 63, .3); }
.cd-num { font-family: var(--f-ui-en); font-size: 1.3rem; line-height: 1; color: var(--obj-ink); font-variant-numeric: tabular-nums; }
html[lang="gu"] .cd-num { font-family: var(--f-gu); font-size: 1.45rem; }
html[lang="hi"] .cd-num { font-family: var(--f-hi); font-size: 1.45rem; }
.cd-lab { margin-top: .2rem; font-family: var(--f-ui); font-size: .6rem; letter-spacing: .08em; color: var(--obj-muted); }
html:not([lang="en"]) .cd-lab { font-size: .78rem; letter-spacing: 0; }
.sleeve { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 2.4rem; background: radial-gradient(circle at 13px 13px, rgba(169, 130, 63, .22) 1.4px, transparent 2px) 0 0 / 26px 26px, linear-gradient(180deg, #F3E9D6, #FFFBF3); will-change: transform; }
.sleeve.snap { transition: transform .4s cubic-bezier(.3, .7, .2, 1); }
.sleeve.gone { transition: transform .75s cubic-bezier(.5, 0, .3, 1), opacity .5s ease .25s; transform: translateY(105%) !important; opacity: 0; pointer-events: none; }
.ribbon { position: absolute; top: 0; left: 50%; width: 3px; height: 45%; transform: translateX(-50%); background: linear-gradient(90deg, #8A6424, #E3C47E, #8A6424); }
.tag { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -6px); width: 80px; height: 80px; border: 0; border-radius: 47% 53% 45% 55% / 52% 45% 55% 48%; background: radial-gradient(circle at 34% 28%, var(--ruby-hi), var(--ruby) 42%, var(--ruby-lo)); box-shadow: 0 8px 16px rgba(0, 0, 0, .35), inset 0 -3px 6px rgba(0, 0, 0, .3); color: var(--champagne); font-family: var(--f-ui); font-size: .8rem; letter-spacing: .16em; cursor: grab; touch-action: none; }
html:not([lang="en"]) .tag { letter-spacing: 0; font-size: 1rem; }
.tag::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 1.5px solid rgba(232, 210, 158, .7); }
.tag:active { cursor: grabbing; }
.pull-hint { display: inline-flex; flex-direction: column; align-items: center; gap: .15rem; font-family: var(--f-ui); font-size: .8rem; letter-spacing: .14em; color: var(--obj-muted); }
html:not([lang="en"]) .pull-hint { letter-spacing: 0; font-size: 1rem; }
.pull-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: hint 1.8s ease-in-out infinite; }
.confetti { position: fixed; inset: 0; z-index: 65; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: var(--x0); top: var(--y0); width: var(--w); height: var(--h); background: var(--c); border-radius: var(--br); animation: burst var(--t) cubic-bezier(.15, .6, .35, 1) forwards; }
@keyframes burst {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  45% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) * .5)); opacity: 1; }
  100% { transform: translate(calc(var(--dx) * 1.2), calc(var(--dy) + 55vh)) rotate(var(--rot)); opacity: 0; }
}

/* ---------- 6. Gallery (scroll-driven) ---------- */
.gallery { padding: 0; overflow-x: clip; }
.g-pin { position: relative; height: calc(100vh + 250vh); height: calc(100svh + 250vh); }
.g-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(env(safe-area-inset-top, 0px) + 3.25rem) 1.25rem 1.25rem; overflow: hidden; }
.lights { display: block; position: relative; z-index: 4; width: calc(100% + 2.5rem); max-width: 40rem; height: 64px; margin: 1.1rem -1.25rem -22px; overflow: visible; flex: none; }
@media (min-width: 42.5rem) { .lights { margin-left: auto; margin-right: auto; } }
.lights .wire { fill: none; stroke: rgba(29, 40, 71, .45); stroke-width: 1; }
.lights .glow { fill: url(#bulbGlow); animation: twinkle 3.2s ease-in-out infinite; }
.lights .glow:nth-of-type(3n) { animation-delay: -1.1s; }
.lights .glow:nth-of-type(3n+1) { animation-delay: -2.2s; }
.lights .bulb { fill: #FFE9A8; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.stack { position: relative; flex: none; width: min(70vw, 17rem, 38vh); width: min(70vw, 17rem, 38svh); aspect-ratio: 4 / 5; margin: 0 auto; touch-action: pan-y; }
.polaroid { position: absolute; inset: 0; padding: 10px 10px 44px; border: 0; background: #FFFFFF; border-radius: 4px; box-shadow: 0 12px 28px rgba(29, 40, 71, .22); transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); transition: transform .5s cubic-bezier(.3, .7, .2, 1), opacity .35s ease; cursor: pointer; will-change: transform; }
.stack.scrubbing .polaroid { transition: none; }
.polaroid .art { width: 100%; height: 100%; border-radius: 2px; }
.polaroid .art.ph::after { font-size: .72rem; }
.polaroid.fly-next { transform: translate(118%, -8%) rotate(18deg) !important; opacity: 0; }
.polaroid.fly-prev { transform: translate(-118%, -8%) rotate(-18deg) !important; opacity: 0; }
.stack-nav, .book-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.round { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold-soft); background: var(--page); color: var(--ink); cursor: pointer; touch-action: manipulation; }
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round:disabled { opacity: .35; cursor: default; }
.round.solid { background: var(--royal); border-color: var(--royal); color: var(--royal-ink); }
.counter { min-width: 4.5rem; text-align: center; font-family: var(--f-ui); font-size: .95rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 7. Book: two-page spread ---------- */
/* Phones: album opens top-to-bottom (photo above, details below). Wide screens: left/right spread. */
.book { position: relative; width: min(88vw, 25rem); aspect-ratio: 1 / 2.14; margin: 2.75rem auto 0; perspective: 1700px; touch-action: pan-y; }
.board { position: absolute; inset: -8px -8px -14px -8px; border-radius: 12px; background: radial-gradient(ellipse at 50% 30%, #23366E, var(--royal) 60%, #0B1330); box-shadow: 0 30px 60px rgba(15, 24, 52, .35); }
.board::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 7px; border-radius: 0 0 3px 3px; background: repeating-linear-gradient(90deg, #FBF3E2 0 2px, #DCCBAA 2px 3px); }
.half-a { position: absolute; left: 0; top: 0; width: 100%; height: 50%; }
.half-b { position: absolute; left: 0; top: 50%; width: 100%; height: 50%; }
.base { overflow: hidden; background: var(--obj); color: var(--obj-ink); }
.half-a.base { border-radius: 8px 8px 0 0; }
.half-b.base { border-radius: 0 0 8px 8px; }
.leaf { transform-origin: 50% 0; transform-style: preserve-3d; transform: rotateX(0deg); transition: transform 1s cubic-bezier(.4, .1, .2, 1), z-index 0s linear .5s; }
.leaf.turned { transform: rotateX(180deg); }
.face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--obj); color: var(--obj-ink); }
.face.front { border-radius: 0 0 8px 8px; }
.face.back { transform: rotateX(180deg); border-radius: 8px 8px 0 0; }
.face::before, .base::before { content: ""; position: absolute; left: 0; right: 0; height: 24px; pointer-events: none; z-index: 6; }
.face.front::before, .base-right::before { top: 0; background: linear-gradient(180deg, rgba(29, 40, 71, .18), transparent); }
.face.back::before, .base-left::before { bottom: 0; background: linear-gradient(0deg, rgba(29, 40, 71, .18), transparent); }
.face.front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 24, 52, .05), rgba(15, 24, 52, .35)); opacity: 0; transition: opacity .55s ease; pointer-events: none; z-index: 7; }
.leaf.turned .face.front::after { opacity: 1; }
.lid { position: absolute; inset: 0; z-index: 500; cursor: pointer; transform-origin: 50% 0; transform-style: preserve-3d; transform: rotateX(0deg); transition: transform 1.1s cubic-bezier(.4, .1, .2, 1), visibility 0s linear 0s; }
.lid.turned { transform: rotateX(180deg); visibility: hidden; transition: transform 1.1s cubic-bezier(.4, .1, .2, 1), visibility 0s linear 1.1s; }
.lid-face { position: absolute; inset: 0; overflow: hidden; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--royal); color: var(--champagne); }
.lid-face.back { transform: rotateX(180deg); }
.book.no-anim .leaf, .book.no-anim .lid { transition: none !important; }

@media (min-width: 48rem) {
  .book { width: min(92vw, 54rem); aspect-ratio: 6 / 4.3; }
  .board { inset: -10px -16px -10px -10px; }
  .board::after { left: auto; right: 5px; top: 12px; bottom: 12px; width: 7px; height: auto; border-radius: 0 3px 3px 0; background: repeating-linear-gradient(180deg, #FBF3E2 0 2px, #DCCBAA 2px 3px); }
  .half-a { width: 50%; height: 100%; }
  .half-b { left: 50%; top: 0; width: 50%; height: 100%; }
  .half-a.base, .face.back { border-radius: 10px 0 0 10px; }
  .half-b.base, .face.front { border-radius: 0 10px 10px 0; }
  .leaf { transform-origin: 0 50%; transform: rotateY(0deg); }
  .leaf.turned { transform: rotateY(-180deg); }
  .face.back { transform: rotateY(180deg); }
  .face::before, .base::before { top: 0; bottom: 0; left: auto; right: auto; width: 28px; height: auto; }
  .face.front::before, .base-right::before { left: 0; background: linear-gradient(90deg, rgba(29, 40, 71, .18), transparent); }
  .face.back::before, .base-left::before { right: 0; background: linear-gradient(270deg, rgba(29, 40, 71, .18), transparent); }
  .face.front::after { background: linear-gradient(90deg, rgba(15, 24, 52, .05), rgba(15, 24, 52, .35)); }
  .lid { transform-origin: 0 50%; transform: rotateY(0deg); }
  .lid.turned { transform: rotateY(-180deg); }
  .lid-face { border-radius: 10px; }
  .lid-face.back { transform: rotateY(180deg); }
}

.page-in { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.4rem 1.5rem; }
.page-in > .frame-line { position: absolute; inset: 10px; border: 1px solid var(--obj-line); box-shadow: inset 0 0 0 3px var(--obj), inset 0 0 0 4px rgba(169, 130, 63, .28); border-radius: 4px; pointer-events: none; }
.page-in .corner { width: 28px; height: 28px; }
.page-in .corner.tl { top: 14px; left: 14px; }
.page-in .corner.tr { top: 14px; right: 14px; }
.page-in .corner.bl { bottom: 14px; left: 14px; }
.page-in .corner.br { bottom: 14px; right: 14px; }

.lid-face.front .velvet { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 40% 30%, rgba(255, 255, 255, .09), transparent 70%), radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .35), transparent 60%); }
.lid-face .page-in > .frame-line { border-color: rgba(232, 210, 158, .7); box-shadow: inset 0 0 0 4px var(--royal), inset 0 0 0 5px rgba(232, 210, 158, .4); }
.lid-face .corner { color: var(--champagne); width: 40px; height: 40px; }
.lid-inner { position: relative; width: 100%; max-width: 21rem; display: flex; flex-direction: column; align-items: center; }
.cover-arch { width: 70%; height: auto; margin: 0 auto; fill: none; stroke: url(#goldBright); stroke-width: 1.3; }
.lid .ganesha { width: 52px; height: 52px; margin-top: -4.2rem; margin-bottom: 1rem; }
.bc-title { margin: 0; font-size: clamp(2.5rem, 10vw, 3rem); line-height: 1.2; }
html:not([lang="en"]) .bc-title { font-family: var(--f-text); font-weight: 700; font-size: 1.85rem; }
.bc-sub { margin: .2rem auto 0; max-width: 24ch; color: var(--royal-muted); font-size: 1.05rem; line-height: 1.4; }
.contents { list-style: none; width: 100%; max-width: 17rem; margin: 1.25rem auto 0; padding: 0; }
.contents li { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-bottom: 1px dotted rgba(232, 210, 158, .45); font-family: var(--f-ui); font-size: .85rem; color: var(--royal-ink); }
html:not([lang="en"]) .contents li { font-size: .98rem; }
.contents li span:last-child { color: var(--champagne); }
.bc-open { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.15rem; border: 1px solid rgba(232, 210, 158, .6); border-radius: 999px; font-family: var(--f-ui); font-size: .78rem; letter-spacing: .12em; color: var(--champagne); animation: glowpulse 2.6s ease-in-out infinite; }
html:not([lang="en"]) .bc-open { letter-spacing: 0; font-size: .95rem; }
@keyframes glowpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 210, 158, .35); } 50% { box-shadow: 0 0 0 6px rgba(232, 210, 158, 0); } }
.lid-face.back .jaali-bg { opacity: .9; }

.pp-art { position: absolute; inset: 14px; border-radius: 6px; box-shadow: 0 0 0 1px var(--obj-line), 0 0 0 5px var(--obj), 0 0 0 6px var(--obj-line); }
.pp-art.ph::after { top: 40%; }
.pp-tag { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; padding: .35rem .95rem; border-radius: 999px; background: rgba(255, 251, 243, .94); box-shadow: 0 0 0 1px var(--obj-line), 0 4px 10px rgba(29, 40, 71, .12); font-family: var(--f-ui); font-size: .7rem; letter-spacing: .18em; color: #8A6424; white-space: nowrap; }
html:not([lang="en"]) .pp-tag { letter-spacing: 0; font-size: .92rem; font-weight: 600; }

.ev-title { margin: 0; font-size: 2.8rem; line-height: 1.15; }
html:not([lang="en"]) .ev-title { font-size: 1.75rem; }
.page-in .flourish { width: 140px; height: 18px; margin-top: .3rem; }
.ev-desc { margin: .45rem auto 0; max-width: 26ch; color: var(--obj-muted); font-size: 1.05rem; line-height: 1.4; }
.ev-when { margin: .7rem 0 0; font-family: var(--f-ui); font-size: .9rem; line-height: 1.6; color: var(--obj-ink); }
html:not([lang="en"]) .ev-when { font-size: 1rem; }
.ev-when strong { font-weight: 500; color: var(--ruby); }
.ev-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 1rem; }
.ev-links .btn { min-height: 44px; padding: 0 1rem; font-size: .86rem; }
html:not([lang="en"]) .ev-links .btn { font-size: .95rem; }
.end-page { background: linear-gradient(180deg, var(--obj-2), var(--obj)); }
.end-page .ganesha { width: 58px; height: 58px; }
.end-line { margin: .9rem auto 0; max-width: 16ch; font-size: 1.7rem; line-height: 1.35; font-style: italic; color: var(--obj-ink); }
html:not([lang="en"]) .end-line { font-style: normal; font-size: 1.4rem; }
.colo-names { margin: 0; font-size: 2.4rem; line-height: 1.15; }
.colo-names > span { display: block; }
.colo-names .amp { font-size: .55em; }
html:not([lang="en"]) .colo-names { font-size: 1.7rem; line-height: 1.35; }
.colo-date { margin: .7rem 0 0; font-family: var(--f-ui); font-size: .9rem; letter-spacing: .04em; color: var(--obj-muted); }

/* ---------- 8. Venue ---------- */
.venue-wrap { position: relative; z-index: 2; width: min(100%, 26rem); margin: 2.25rem auto 0; }
.venue-photo { aspect-ratio: 4 / 3.5; border-radius: 13rem 13rem 12px 12px; box-shadow: 0 0 0 1px #C9A04F, 0 0 0 6px var(--royal), 0 0 0 7px rgba(232, 210, 158, .6), 0 24px 50px rgba(0, 0, 0, .4); }
.venue-card { position: relative; margin: -2.75rem 1rem 0; padding: 1.5rem 1.25rem 1.35rem; border-radius: 16px; background: var(--obj); color: var(--obj-ink); box-shadow: 0 0 0 1px var(--obj-line), 0 20px 40px rgba(0, 0, 0, .3); text-align: center; }
.v-name { margin: 0; font-size: 1.75rem; line-height: 1.2; font-weight: 600; color: var(--obj-ink); }
.v-addr { margin: .35rem auto 0; max-width: 30ch; color: var(--obj-muted); font-size: 1.02rem; line-height: 1.45; }
.v-when { margin: .6rem 0 0; font-family: var(--f-ui); font-size: .9rem; color: var(--ruby); }
.v-actions { display: grid; gap: .5rem; margin-top: 1.15rem; }

/* ---------- 9. Closing ---------- */
.closing { text-align: center; padding-bottom: 3.5rem; }
.closing .quote { margin-top: 1.25rem; }
.wax-mono { position: relative; display: grid; place-items: center; width: 8.75rem; height: 8.75rem; margin: 2.25rem auto 1.25rem; border-radius: 47% 53% 45% 55% / 52% 45% 55% 48%; background: radial-gradient(circle at 34% 28%, var(--ruby-hi), var(--ruby) 42%, var(--ruby-lo)); box-shadow: 0 12px 24px rgba(29, 40, 71, .3), inset 0 -5px 9px rgba(0, 0, 0, .3), inset 0 4px 8px rgba(255, 255, 255, .22); }
.wax-mono::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 1.5px solid rgba(232, 210, 158, .7); }
.wax-mono span { font-family: var(--f-script); font-size: 2.8rem; line-height: 1; padding: 0 .12em .12em; }
.c-names { margin: 0; font-size: clamp(2.5rem, 10.5vw, 3.2rem); line-height: 1.25; white-space: nowrap; }
html:not([lang="en"]) .c-names { font-size: 2rem; }
.c-thanks { margin: .75rem auto 0; max-width: 26ch; color: var(--muted); font-style: italic; }
html:not([lang="en"]) .c-thanks { font-style: normal; }
.c-meta { margin: .75rem 0 0; font-family: var(--f-ui); font-size: .9rem; line-height: 1.6; color: var(--muted); white-space: pre-line; }
.signoff { margin: 1.6rem 0 0; color: var(--muted); font-style: italic; }
html:not([lang="en"]) .signoff { font-style: normal; }
.families { margin: .1rem 0 0; color: var(--ink); font-weight: 600; }
.strip { display: block; width: 100%; height: 26px; background: var(--royal); }
.strip .dot { fill: #F6EEDC; }
.strip .eye { fill: #C9A04F; }

@media (min-width: 48rem) { .couple-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 360px) {
  .cd { width: 58px; height: 58px; }
  .float-lang button { padding: 0 .45rem; min-width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .flap, .letter, .seal, .cover, .cover-top, .envelope, .paper, .leaf, .polaroid, .sleeve.snap, .sleeve.gone, [data-rv] { transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js [data-rv] { transform: none; }
  .petals, .confetti { display: none; }
  .g-pin { height: auto; }
  .g-sticky { position: relative; height: auto; padding-top: 4.5rem; padding-bottom: 4.5rem; }
  [data-scrub] { transform: none; opacity: 1; }
}
