/* =========================================================
   Satish & Teena — "Mahal Gold" style invitation
   Plain CSS so the same file powers the app and the static export.
   ========================================================= */
:root {
  --inv-paper: oklch(0.926 0.037 70);      /* cream-peach #f7e3cd */
  --inv-paper-hi: oklch(0.963 0.018 70.2);
  --inv-gold: oklch(0.618 0.093 66.8);     /* antique gold #ab7a45 */
  --inv-gold-soft: oklch(0.731 0.086 73.5);
  --inv-maroon: oklch(0.329 0.118 19.3);   /* #640e1b */
  --inv-maroon-deep: oklch(0.248 0.102 29.2);
  --inv-rose: oklch(0.607 0.193 1.6);
  --inv-white: oklch(1 0 0);
  --inv-cover-grad: linear-gradient(135deg,
      color-mix(in oklab, var(--inv-maroon) 86%, transparent),
      color-mix(in oklab, oklch(0.44 0.129 24.1) 82%, transparent),
      color-mix(in oklab, var(--inv-gold) 80%, transparent));
  --f-script: "The Nautigal", "Great Vibes", cursive;
  --f-amp: "Alex Brush", cursive;
  --f-lora: "Lora", Georgia, serif;
  --f-garamond: "EB Garamond", Garamond, serif;
  --f-cormorant: "Cormorant Garamond", Garamond, serif;
  --f-bask: "Libre Baskerville", Baskerville, Georgia, serif;
  --f-times: "Times New Roman", Times, serif;
  --f-roboto: "Roboto", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html.inv-locked, html.inv-locked body { overflow: hidden; height: 100%; }
.inv-root { min-height: 100vh; background: var(--inv-white); }
.inv-root img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.inv-root p, .inv-root h1, .inv-root h2, .inv-root h3 { margin: 0; }
.is-gone { display: none !important; }

/* ---------------- Loading screen ---------------- */
.ldr {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: var(--inv-paper); cursor: pointer;
  transition: opacity 0.85s ease, visibility 0.85s;
}
.ldr-paper, .inv-paper {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("../assets/paper.webp");
  background-size: 100% auto; background-repeat: repeat-y;
  opacity: 0.4; mix-blend-mode: darken;
}
.ldr.is-done { opacity: 0; visibility: hidden; }
.ldr-inner { position: relative; display: flex; flex-direction: column; align-items: center; padding: 24px; text-align: center; }
.ldr-halo {
  position: absolute; top: 0; left: 50%; width: 260px; height: 260px; translate: -50% -14%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--inv-gold-soft) 45%, transparent) 0%, transparent 68%);
  opacity: 0; scale: 0.6;
  transition: opacity 1.6s ease, scale 2s var(--ease-out);
}
.ldr-ganesha {
  position: relative; width: 132px; height: auto;
  opacity: 0; scale: 0.86; filter: blur(6px);
  transition: opacity 1.2s ease, scale 1.6s var(--ease-out), filter 1.2s ease;
}
.ldr-mantra { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }
.ldr-mantra p {
  font-family: var(--f-cormorant); font-style: italic; font-weight: 500;
  font-size: 19px; line-height: 1.35; letter-spacing: 0.02em; color: var(--inv-maroon);
  opacity: 0; translate: 0 10px; filter: blur(4px);
  transition: opacity 0.9s ease, translate 0.9s var(--ease-out), filter 0.9s ease;
  transition-delay: calc(0.9s + var(--i) * 0.42s);
}
.ldr-progress { margin-top: 28px; width: 120px; height: 1px; background: color-mix(in oklab, var(--inv-gold) 25%, transparent); overflow: hidden; }
.ldr-progress span { display: block; height: 100%; width: 100%; background: var(--inv-gold); transform-origin: left; scale: 0 1; transition: scale 3.9s linear 0.2s; }
.ldr.is-active .ldr-halo { opacity: 1; scale: 1; }
.ldr.is-active .ldr-ganesha { opacity: 1; scale: 1; filter: blur(0); }
.ldr.is-active .ldr-mantra p { opacity: 1; translate: 0 0; filter: blur(0); }
.ldr.is-active .ldr-progress span { scale: 1 1; }

/* ---------------- Envelope cover ---------------- */
.env {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--inv-cover-grad), url("../assets/paper.webp") center / cover;
  transition: opacity 0.7s ease;
}
.env.is-fading { opacity: 0; }
.env-petals, .inv-ambient { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: 0; display: block; line-height: 0; opacity: 0; will-change: transform; }
.env-card-wrap {
  position: relative; z-index: 10; width: 310px;
  opacity: 0; translate: 0 26px; scale: 0.96;
  transition: opacity 0.9s ease, translate 1s var(--ease-out), scale 1s var(--ease-out);
}
.env.is-ready .env-card-wrap { opacity: 1; translate: 0 0; scale: 1; }
.env.is-opening .env-card-wrap { animation: envelope-away 1.15s cubic-bezier(0.55, 0, 0.35, 1) 0.32s forwards; }
.env-seal-anchor { position: absolute; left: 50%; top: 50px; z-index: 30; width: 0; height: 0; }
.env-seal {
  position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, var(--inv-maroon), var(--inv-maroon-deep));
  box-shadow: 0 4px 12px color-mix(in oklab, var(--inv-maroon-deep) 60%, transparent),
    inset 0 2px 4px color-mix(in oklab, var(--inv-white) 15%, transparent),
    inset 0 -2px 4px color-mix(in oklab, black 30%, transparent);
  animation: seal-pulse 2s ease-in-out infinite;
}
.env-seal::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed color-mix(in oklab, var(--inv-gold-soft) 55%, transparent); }
.env-seal-heart { width: 22px; height: 20px; color: var(--inv-white); }
.env-seal-ring { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--inv-gold-soft); opacity: 0; pointer-events: none; }
.env.is-opening .env-seal { animation: seal-break 0.6s ease-in forwards; }
.env.is-opening .env-seal-ring { animation: seal-ring 0.8s ease-out forwards; }
.burst-petal {
  position: absolute; left: 0; top: 0; line-height: 0; pointer-events: none;
  animation: particle-burst 1.1s var(--ease-out) forwards;
}
.env-card {
  position: relative; border-radius: 8px;
  box-shadow: 0 25px 60px -12px color-mix(in oklab, black 45%, transparent),
    0 8px 24px color-mix(in oklab, black 20%, transparent),
    0 0 40px color-mix(in oklab, var(--inv-gold) 15%, transparent);
}
.env-card-bg {
  position: absolute; inset: 0; overflow: hidden; border-radius: 8px;
  background: color-mix(in oklab, var(--inv-paper) 98%, transparent);
  border: 1px solid color-mix(in oklab, var(--inv-gold) 15%, transparent);
}
.env-card-bg::before { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in oklab, var(--inv-gold) 28%, transparent); border-radius: 4px; }
.env-flower { position: absolute; width: 46%; max-width: 220px; height: auto; pointer-events: none; }
.env-flower--tl { left: 0; top: 0; transform: translate(-22%, -24%) scaleX(-1); }
.env-flower--br { right: 0; bottom: 0; transform: translate(20%, 18%) scaleY(-1); width: 42%; max-width: 200px; }
.env-content { position: relative; z-index: 10; text-align: center; padding: 112px 24px 56px; }
.env-names { display: flex; flex-direction: column; align-items: center; font-family: var(--f-script); font-weight: 400; color: var(--inv-maroon); font-size: 30px; line-height: 36px; }
.env-amp { font-family: var(--f-amp); font-size: 18px; line-height: 1.1; padding: 4px 0; }
.env-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 10px; }
.env-hair { width: 40px; height: 1px; }
.env-hair--l { background: linear-gradient(to right, transparent, color-mix(in oklab, var(--inv-gold) 60%, transparent)); }
.env-hair--r { background: linear-gradient(to left, transparent, color-mix(in oklab, var(--inv-gold) 60%, transparent)); }
.env-fleuron { color: color-mix(in oklab, var(--inv-gold) 70%, transparent); font-size: 14px; }
.env-date { font-family: var(--f-lora); font-size: 18px; color: color-mix(in oklab, var(--inv-maroon) 72%, transparent); margin-bottom: 20px !important; }
.env-invites { font-family: var(--f-lora); font-weight: 300; font-size: 18px; color: var(--inv-maroon); margin-bottom: 24px !important; }
.env-open {
  position: relative; overflow: hidden; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 32px; border-radius: 999px;
  background: var(--inv-maroon); color: var(--inv-white);
  font-family: var(--f-lora); font-weight: 600; font-size: 18px; letter-spacing: 0.02em;
  box-shadow: 0 10px 22px -8px color-mix(in oklab, var(--inv-maroon-deep) 80%, transparent);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.env-open:hover { transform: translateY(-2px) scale(1.03); }
.env-open:active { transform: scale(0.97); }
.env-open-label { position: relative; z-index: 1; }
.env-open-shine {
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(to right, transparent, color-mix(in oklab, var(--inv-white) 22%, transparent), transparent);
  animation: shine 2.6s ease-in-out infinite;
}

/* ---------------- Page container ---------------- */
.inv-outer { display: flex; justify-content: center; background: var(--inv-white); }
.inv {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; max-width: 480px; min-height: 100vh;
  background: var(--inv-paper); color: var(--inv-gold);
  border-left: 1px solid color-mix(in oklab, var(--inv-gold) 20%, transparent);
  border-right: 1px solid color-mix(in oklab, var(--inv-gold) 20%, transparent);
}
.inv-paper { z-index: -20; }
.inv-ambient {
  position: fixed; inset: 0 auto; left: 50%; width: min(100%, 480px); translate: -50% 0; z-index: 40;
  opacity: 0; transition: opacity 2s ease 1.5s;
}
.inv.is-open .inv-ambient { opacity: 0.55; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding-top: 13.2%; padding-bottom: 16.6%; }
.hero-inner { position: relative; margin: 0 auto; width: 100%; max-width: 480px; }
.hero-bells {
  position: absolute; left: 3%; top: 0; margin-top: -21%; z-index: 2; width: 23%; height: auto;
  transform-origin: 50% 0;
  animation: bell-sway 4.5s ease-in-out infinite;
}
.hero-bloom {
  position: absolute; left: 40.6%; top: 0; margin-top: -17.5%; z-index: 3; width: 77%; height: auto;
  transform-origin: 100% 0;
}
.hero-arch { position: relative; margin: 0 auto; width: 96.1%; aspect-ratio: 424 / 529; }
.hero-arch-frame {
  position: absolute; inset: 0; z-index: -10; opacity: 0.6;
  background: url("../assets/arch-frame.svg") center / 100% 100% no-repeat;
}
.hero-ganesha { position: absolute; left: 50%; top: 13.5%; width: 15%; height: auto; translate: -50% 0; z-index: 20; }
.hero-mantra {
  position: absolute; left: 50%; top: 30.5%; width: 74%; translate: -50% 0; z-index: 20;
  text-align: center; display: flex; flex-direction: column; gap: 1px;
}
.hero-mantra p {
  font-family: var(--f-cormorant); font-style: italic; font-weight: 600;
  font-size: clamp(12px, 3.6vw, 17px); line-height: 1.32; letter-spacing: 0.03em; color: var(--inv-gold);
}
.hero-names {
  position: absolute; left: 50%; top: 47%; z-index: 20; width: 70%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-family: var(--f-script); font-weight: 400; color: var(--inv-maroon);
}
.hero-name { display: block; font-size: clamp(34px, 12.5vw, 58px); line-height: 1.05; }
.hero-amp { display: block; font-family: var(--f-amp); font-size: clamp(18px, 6.8vw, 30px); line-height: 1.1; margin: 2px 0; }
.hero-scene { position: relative; z-index: 0; margin-top: -59.6%; width: 100%; aspect-ratio: 441 / 546; }
.hero-chhatri { position: absolute; left: 76%; top: 0; z-index: 2; width: 50%; height: auto; }
.hero-palace-wrap { position: absolute; left: -25.9%; top: 13.4%; z-index: 1; width: 176.6%; }
.hero-palace {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 82%, transparent 100%);
}
.hero-bouquet { position: absolute; top: 61%; z-index: 4; width: 50%; height: auto; }
.hero-bouquet--r { left: 56%; }
.hero-bouquet--l { right: 56%; transform: scaleX(-1); }
.hero-fence { position: absolute; left: 50%; top: 77%; z-index: 3; width: 64%; height: auto; translate: -50% 0; }

/* hero intro (plays after the envelope opens) */
.hero-bells { translate: 0 -40%; opacity: 0; transition: translate 1.6s var(--ease-out) 0.2s, opacity 1s ease 0.2s; }
.hero-bloom { translate: 16% -6%; opacity: 0; transition: translate 1.6s var(--ease-out) 0.35s, opacity 1.2s ease 0.35s; }
.hero-arch-frame { clip-path: inset(0 0 100% 0); transition: clip-path 2s var(--ease-out) 0.1s; }
.hero-ganesha { opacity: 0; scale: 0.8; transition: opacity 1s ease 0.6s, scale 1.2s var(--ease-out) 0.6s; }
.hero-mantra p { opacity: 0; translate: 0 8px; filter: blur(3px); transition: opacity 0.9s ease, translate 0.9s var(--ease-out), filter 0.9s ease; transition-delay: calc(0.9s + var(--i) * 0.2s); }
.hero-names > * { opacity: 0; translate: 0 18px; filter: blur(6px); transition: opacity 1.2s ease, translate 1.2s var(--ease-out), filter 1.2s ease; }
.hero-names > :nth-child(1) { transition-delay: 1.6s; }
.hero-names > :nth-child(2) { transition-delay: 1.9s; }
.hero-names > :nth-child(3) { transition-delay: 2.15s; }
.hero-chhatri { opacity: 0; translate: 14% 0; transition: opacity 1.2s ease 0.4s, translate 1.6s var(--ease-out) 0.4s; }
.hero-palace-wrap { opacity: 0; scale: 1.05; transition: opacity 1.6s ease 0.2s, scale 2.4s var(--ease-out) 0.2s; }
.hero-bouquet { opacity: 0; translate: 0 14%; transition: opacity 1.2s ease 0.7s, translate 1.4s var(--ease-out) 0.7s; }
.hero-fence { opacity: 0; transition: opacity 1.2s ease 0.6s; }
.inv.is-open .hero-bells, .inv.is-open .hero-bloom, .inv.is-open .hero-chhatri, .inv.is-open .hero-bouquet,
.inv.is-open .hero-fence, .inv.is-open .hero-ganesha, .inv.is-open .hero-palace-wrap { opacity: 1; translate: 0 0; scale: 1; }
.inv.is-open .hero-fence { translate: -50% 0; }
.inv.is-open .hero-ganesha { translate: -50% 0; }
.inv.is-open .hero-arch-frame { clip-path: inset(0 0 0 0); }
.inv.is-open .hero-mantra p, .inv.is-open .hero-names > * { opacity: 1; translate: 0 0; filter: blur(0); }
.inv.is-open .hero-bloom { animation: bloom-sway 7s ease-in-out 2s infinite; }
.inv.is-open .hero-bouquet--r { animation: breathe 6s ease-in-out 2.2s infinite; }
.inv.is-open .hero-bouquet--l { animation: breathe-flip 6s ease-in-out 2.6s infinite; }

/* ---------------- Section shells ---------------- */
.sec { position: relative; isolation: isolate; z-index: 10; width: 100%; padding: 5.2% 8.5% 0; }
.sec--reception { padding: 13% 8% 0; }
.sec-castle-host { position: absolute; inset: 0; z-index: -10; pointer-events: none; overflow: visible; }
.sec-castle {
  position: absolute; left: -18.8%; top: 0; margin-top: 12%; width: 244%; height: auto;
  opacity: 0.1; filter: sepia(0.6) saturate(0.6);
  -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 45%, transparent 72%);
}
.sec-castle-host--rc .sec-castle { left: -103.2%; margin-top: 71.7%; }
.sec-pattern { position: absolute; left: 6.1%; top: 0; margin-top: -9.5%; z-index: 1; width: 87.5%; height: auto; opacity: 0.9; }
.sec-pattern--rc { margin-top: -5.9%; }
.sec-deco { position: absolute; top: 0; z-index: 1; pointer-events: none; }
.sec-deco img { width: 100%; height: auto; }
.sec-deco--pillar-l { left: -12%; margin-top: 15.6%; width: 25%; }
.sec-deco--pillar-r { left: 87%; margin-top: -6.1%; width: 25%; }
.sec-deco--hang-r { left: 82%; margin-top: 61%; width: 30%; }
.sec-deco--hang-l { left: -12%; margin-top: 41%; width: 30%; }
.sec-deco--hang-r img, .sec-deco--hang-l img { transform-origin: 50% 0; }
.sec-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.sec-title { font-family: var(--f-times); font-weight: 700; font-size: 20px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; color: var(--inv-maroon); }

/* parents */
.parents { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 12px; width: 100%; max-width: 420px; padding: 0 4%; }
.parents-col { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.parents-mm { font-family: var(--f-amp); font-size: 18px; line-height: 1.1; color: var(--inv-gold); }
.parents-names { font-family: var(--f-bask); font-weight: 700; font-size: 12px; line-height: 1.5; color: var(--inv-maroon); }
.parents-line { width: 1px; height: 50px; background: color-mix(in oklab, var(--inv-gold) 60%, transparent); }
.announce { font-family: var(--f-bask); font-size: 16px; line-height: 1.5; text-transform: uppercase; color: var(--inv-maroon); max-width: 340px; }
.couple-names { display: flex; flex-direction: column; align-items: center; }
.couple-names h3 { font-family: var(--f-garamond); font-weight: 400; font-size: 43px; line-height: 1.25; color: var(--inv-maroon); }
.couple-amp { font-family: var(--f-garamond); font-size: 30px; line-height: 1.1; color: var(--inv-maroon); }
.couple-art { width: 60%; max-width: 290px; height: auto; margin: -6px 0 -4px; filter: drop-shadow(0 10px 14px color-mix(in oklab, var(--inv-maroon) 14%, transparent)); }

/* events */
.events { position: relative; width: 100%; display: flex; flex-direction: column; gap: 34px; }
.ev { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ev-name { font-family: var(--f-bask); font-size: 17px; line-height: 1.3; color: var(--inv-gold); text-transform: uppercase; letter-spacing: 0.06em; }
.ev-time { font-family: var(--f-bask); font-size: 14px; line-height: 1.1; color: var(--inv-gold); text-transform: uppercase; }
.ev-daterow { display: flex; align-items: center; justify-content: center; gap: 22px; }
.ev-weekday, .ev-month { font-family: var(--f-bask); font-size: 12px; line-height: 1; text-transform: uppercase; color: var(--inv-maroon); min-width: 76px; }
.ev-weekday { text-align: right; }
.ev-month { text-align: left; }
.ev-day { font-family: var(--f-bask); font-size: 30px; line-height: 1; color: var(--inv-maroon); }
.ev-bar { width: 1px; height: 24px; background: color-mix(in oklab, var(--inv-gold) 70%, transparent); }
.ev-year { font-family: var(--f-bask); font-size: 18px; line-height: 1; color: var(--inv-maroon); }
.ev-daterow--rc .ev-weekday, .ev-daterow--rc .ev-month, .ev-daterow--rc .ev-day, .ev-year--rc { color: var(--inv-gold); }
.ev-daterow--rc .ev-bar { background: var(--inv-gold); }
.gold-line { width: 64.8%; max-width: 300px; height: auto; margin-top: 24px; }
.gold-line--sm { width: 53.7%; margin-top: 8px; }

/* reception */
.rc { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.rc-lead { font-family: var(--f-bask); font-weight: 700; font-size: 15px; line-height: 1.35; text-transform: uppercase; color: var(--inv-maroon); max-width: 300px; }
.rc-time { font-family: var(--f-bask); font-size: 20px; line-height: 1.2; text-transform: uppercase; color: var(--inv-gold); }
.countdown { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.countdown-title { font-family: var(--f-bask); font-weight: 400; font-size: 15px; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.06em; color: var(--inv-gold); }
.countdown-text { font-family: var(--f-bask); font-size: 14px; line-height: 1.3; color: var(--inv-gold); font-variant-numeric: tabular-nums; }
.cal-frame {
  position: relative; margin-top: 8px; width: 100%; max-width: 330px; aspect-ratio: 359 / 339;
  background: url("../assets/calendar-frame.svg") center / 100% 100% no-repeat;
  display: flex; align-items: center; justify-content: center; padding: 9% 11%;
}
.cal { width: 100%; }
.cal-title { font-family: var(--f-times); font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--inv-maroon); padding-bottom: 8px; border-bottom: 1px solid color-mix(in oklab, var(--inv-maroon) 27%, transparent); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px 4px; border-bottom: 2px solid color-mix(in oklab, var(--inv-maroon) 80%, transparent); }
.cal-week span { font-family: var(--f-times); font-size: 10px; color: var(--inv-maroon); opacity: 0.6; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; padding: 8px 4px; }
.cal-days > span { height: 30px; display: flex; align-items: center; justify-content: center; }
.cal-day { position: relative; font-family: var(--f-times); font-size: 12px; color: var(--inv-maroon); }
.cal-day--event::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; translate: -50% 0; border-radius: 50%; background: var(--inv-gold); }
.cal-day--heart { position: relative; }
.cal-heart { position: absolute; width: 27px; height: 25px; color: var(--inv-maroon); animation: heart-beat 1.8s ease-in-out infinite; }
.cal-day--heart b { position: relative; font-family: var(--f-times); font-size: 12px; color: var(--inv-white); }
.cal-add { font-family: var(--f-times); font-size: 13px; color: var(--inv-gold); text-decoration: underline; text-underline-offset: 3px; margin-top: -8px; }
.cal-add:hover { color: var(--inv-maroon); }

/* venue */
.venue { position: relative; z-index: 10; padding-top: 9%; }
.venue-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 10% 24px; text-align: center; }
.venue-title { font-family: var(--f-times); font-weight: 700; font-size: 18px; line-height: 1.3; text-transform: uppercase; color: var(--inv-maroon); }
.venue-address { font-family: var(--f-bask); font-size: 12px; line-height: 1.6; color: var(--inv-gold); max-width: 260px; }
.venue-map { width: 100%; height: 250px; margin-top: 12px; border: 0; border-radius: 15px; box-shadow: 0 6px 18px -8px color-mix(in oklab, var(--inv-maroon) 35%, transparent); background: var(--inv-paper-hi); }
.venue-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 20px; border-radius: 999px;
  font-family: var(--f-bask); font-weight: 700; font-size: 14px; color: var(--inv-gold); text-decoration: none;
  border: 1px solid color-mix(in oklab, var(--inv-gold) 55%, transparent);
  background: color-mix(in oklab, var(--inv-paper-hi) 60%, transparent);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.venue-btn:hover { background: var(--inv-maroon); color: var(--inv-white); transform: translateY(-1px); }

/* footer */
.foot { position: relative; z-index: 20; display: flex; flex-direction: column; align-items: center; padding: 6px 9% 0; text-align: center; }
.foot-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.foot-text p { font-family: var(--f-roboto); font-weight: 500; font-size: 11px; line-height: 1.4; color: var(--inv-maroon); }
.foot-text .foot-sign { font-family: var(--f-cormorant); font-style: italic; font-size: 15px; font-weight: 500; color: var(--inv-gold); }
.foot-castle-host { position: relative; z-index: 0; flex: none; width: 176.6%; margin-top: -4%; pointer-events: none; }
.foot-castle {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
}

/* ---------------- Scroll reveal ---------------- */
[data-reveal] { opacity: 0; translate: 0 26px; transition: opacity 1s ease var(--d, 0ms), translate 1.1s var(--ease-out) var(--d, 0ms); }
[data-reveal].is-visible { opacity: 1; translate: 0 0; }
.sec-deco--hang-r img, .sec-deco--hang-l img { animation: vine-sway 7s ease-in-out infinite; }

/* ---------------- Desktop ---------------- */
@media (min-width: 640px) {
  .env-card-wrap { width: 340px; }
}
@media (min-width: 768px) {
  .inv { max-width: 900px; }
  .inv-ambient { width: min(100%, 900px); }
  .hero-inner { max-width: 680px; }
  .hero-bloom { width: 90%; }
  .sec { padding: 4% 12% 0; }
  .sec--reception { padding: 9% 12% 0; }
  .sec-content { gap: 32px; }
  .sec-castle { width: 170%; }
  .sec-castle-host--rc .sec-castle { left: -60%; }
  .sec-deco--pillar-l { left: -6%; width: 22%; }
  .sec-deco--pillar-r { left: 84%; width: 22%; }
  .sec-deco--hang-r { left: 84%; width: 22%; }
  .sec-deco--hang-l { left: -6%; width: 22%; }
  .sec-title { font-size: 26px; }
  .parents { column-gap: 28px; max-width: 560px; }
  .parents-names { font-size: 15px; }
  .parents-mm { font-size: 22px; }
  .parents-line { height: 70px; }
  .announce { font-size: 20px; max-width: 460px; }
  .couple-names h3 { font-size: 56px; }
  .couple-amp { font-size: 38px; }
  .couple-art { max-width: 340px; }
  .events { gap: 44px; }
  .ev { gap: 20px; }
  .ev-name { font-size: 20px; }
  .ev-time { font-size: 15px; }
  .ev-weekday, .ev-month { font-size: 16px; min-width: 110px; }
  .ev-day { font-size: 40px; }
  .ev-bar { height: 32px; }
  .ev-year { font-size: 24px; }
  .rc-lead { font-size: 20px; max-width: 440px; }
  .rc-time { font-size: 30px; }
  .countdown-title { font-size: 17px; }
  .countdown-text { font-size: 18px; }
  .cal-frame { max-width: 470px; }
  .cal-title { font-size: 18px; }
  .cal-week span { font-size: 11px; }
  .cal-days > span { height: 34px; }
  .cal-day, .cal-day--heart b { font-size: 13px; }
  .cal-add { font-size: 15px; }
  .venue { padding-top: 5%; }
  .venue-title { font-size: 24px; }
  .venue-address { font-size: 14px; max-width: 400px; }
  .venue-map { height: 330px; }
  .gold-line { margin-top: 32px; }
  .gold-line--sm { margin-top: 16px; }
  .foot-text p { font-size: 14px; }
  .foot-text .foot-sign { font-size: 19px; }
  .foot-castle-host { width: 118%; margin-top: -2%; }
  .env-card-wrap { width: 520px; }
  .env-names { font-size: 40px; line-height: 48px; }
  .env-amp { font-size: 22px; }
  .env-flower { width: 38%; }
  .env-flower--br { width: 34%; }
  .env-content { padding: 96px 24px 36px; }
  .ldr-ganesha { width: 160px; }
  .ldr-mantra p { font-size: 22px; }
}
@media (min-width: 1024px) {
  .env-card-wrap { width: 600px; }
}

/* ---------------- Keyframes ---------------- */
@keyframes envelope-away {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  15% { transform: translateY(10px) rotate(0.5deg); opacity: 1; }
  100% { transform: translateY(-120vh) rotate(-2deg); opacity: 0; }
}
@keyframes seal-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes seal-break {
  0% { transform: scale(1) rotate(0); opacity: 1; filter: brightness(1); }
  30% { transform: scale(1.15) rotate(5deg); opacity: 1; filter: brightness(1.3); }
  60% { transform: scale(1.05) rotate(-3deg); opacity: 0.8; filter: brightness(1.6); }
  100% { transform: scale(0) rotate(15deg); opacity: 0; filter: brightness(2); }
}
@keyframes seal-ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes particle-burst {
  0% { transform: translate(-50%, -50%) rotate(var(--rot-start)) scale(0.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot-end)) scale(1); opacity: 0; }
}
@keyframes shine { 0% { left: -100%; } 50%, 100% { left: 100%; } }
@keyframes ambient-fall {
  0% { transform: translateY(-8vh) translateX(0) rotate(0); opacity: 0; }
  10% { opacity: 0.5; }
  50% { transform: translateY(50vh) translateX(var(--sway)) rotate(180deg); opacity: 0.6; }
  90% { opacity: 0.45; }
  100% { transform: translateY(105vh) translateX(0) rotate(360deg); opacity: 0; }
}
@keyframes bell-sway { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
@keyframes bloom-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: -1.6deg; } }
@keyframes vine-sway { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes breathe-flip { 0%, 100% { transform: scaleX(-1) scale(1); } 50% { transform: scaleX(-1) scale(1.025); } }
@keyframes heart-beat { 0%, 100% { scale: 1; } 15% { scale: 1.12; } 30% { scale: 1; } 45% { scale: 1.08; } }

@media (prefers-reduced-motion: reduce) {
  .inv-root *, .inv-root *::before, .inv-root *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
