/* =========================================================
   Shubham & Harsha — Wedding e-invitation
   pastel.css — "Pastel Garden" design (used by index.html)
   A standalone stylesheet: soft blush, lavender, mint, peach and
   butter on warm white. Content and behaviour come from script.js,
   shared with index.html, so both designs always say the same thing.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --cream: #FFFBF7;
  --white: #FFFFFF;
  --ink: #4A3D52;
  --ink-soft: #7F7388;
  --rose: #D47A9C;
  --rose-deep: #A8487A;
  --lilac: #A38CCF;
  --lilac-deep: #6E58A0;
  --gold: var(--lilac-deep);   /* script.js colours one icon with --gold */

  --pink: #FCE1EA;
  --lavender: #ECE3FA;
  --mint: #DDF2E8;
  --peach: #FFE7D6;
  --butter: #FFF4D2;
  --sky: #E0EFFA;

  --line: rgba(156, 134, 200, .26);
  --shadow: 0 24px 50px -30px rgba(110, 80, 140, .45);

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;

  --jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23B79AD6' stroke-opacity='.3' stroke-width='1'%3E%3Cpath d='M24 4C30 14 34 18 44 24C34 30 30 34 24 44C18 34 14 30 4 24C14 18 18 14 24 4Z'/%3E%3Ccircle cx='24' cy='24' r='4'/%3E%3C/g%3E%3C/svg%3E");
  --jaali-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.6' stroke-width='1'%3E%3Cpath d='M24 4C30 14 34 18 44 24C34 30 30 34 24 44C18 34 14 30 4 24C14 18 18 14 24 4Z'/%3E%3Ccircle cx='24' cy='24' r='4'/%3E%3C/g%3E%3C/svg%3E");

  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 78px); -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(38rem 30rem at -5% 0%, rgba(252, 225, 234, .9), transparent 62%),
    radial-gradient(34rem 28rem at 105% 16%, rgba(221, 242, 232, .9), transparent 62%),
    radial-gradient(40rem 30rem at 8% 62%, rgba(236, 227, 250, .85), transparent 62%),
    radial-gradient(32rem 26rem at 100% 96%, rgba(255, 231, 214, .9), transparent 62%),
    var(--cream);
  background-attachment: fixed;
}
body { margin: 0; font-family: var(--sans); font-size: 1.04rem; line-height: 1.7; color: var(--ink); overflow-x: hidden; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.noscript { padding: 2rem 1.25rem; text-align: center; }

section { position: relative; padding: 5rem 0; }
.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(680px, 100% - 2.5rem); }

.kicker { display: inline-block; font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--lilac-deep); }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.title { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 8vw, 3.4rem); line-height: 1.1; margin: .4rem 0 0; color: var(--ink); }
.title::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 4px; margin: 1.1rem auto 0; background: linear-gradient(90deg, #F4B3C9, #C3B0E8, #A8DCC4); }
.lede { color: var(--ink-soft); max-width: 40ch; margin: 1.1rem auto 0; }

.divider { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--lilac); margin: 1.4rem auto; }
.divider::before, .divider::after { content: ""; height: 1px; width: min(90px, 22vw); background: linear-gradient(90deg, transparent, #F0A9C2); }
.divider::after { transform: scaleX(-1); }
.divider svg { width: 22px; height: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .75rem 1.4rem; border-radius: 999px; border: 1.5px solid #DCCDF0; background: var(--white);
  color: var(--ink); font-weight: 500; font-size: .98rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 22px -16px rgba(110, 80, 140, .55); transition: background .25s, transform .2s, filter .25s;
}
.btn:hover { background: var(--lavender); }
.btn:active { transform: scale(.97); }
.btn.small { padding: .5rem 1.15rem; font-size: .92rem; min-height: 40px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- 3. Opener: two pastel doors swing open ---------- */
.opener { display: none; }
.js .opener {
  --vh: 1vh;
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1.1rem calc(env(safe-area-inset-bottom, 0px) + 1rem);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  transition: opacity .9s ease, visibility 0s .9s;
}
@supports (height: 1dvh) { .js .opener { --vh: 1dvh; } }
.opener.done { opacity: 0; visibility: hidden; pointer-events: none; }

.door { position: fixed; top: 0; bottom: 0; width: 50.5%; z-index: 0; transition: transform 1.7s cubic-bezier(.6, 0, .2, 1) .35s; }
.door-left { left: 0; transform-origin: left center; background: linear-gradient(160deg, #FCE4EC 0%, #F6D5E3 55%, #ECDDF7 100%); }
.door-right { right: 0; transform-origin: right center; background: linear-gradient(200deg, #ECE3FA 0%, #E6D8F6 50%, #FBE2EB 100%); }
.door::before {
  content: ""; position: absolute; top: 8%; bottom: 6%; left: 13%; right: 13%;
  border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 999px 999px 18px 18px;
  background: var(--jaali-white) center / 40px; opacity: .9;
}
.door::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .35); }
.door-left::after { right: 6%; }
.door-right::after { left: 6%; }
.opener.opening .door-left { transform: perspective(1600px) rotateY(-105deg); }
.opener.opening .door-right { transform: perspective(1600px) rotateY(105deg); }

.opener-card {
  position: relative; z-index: 2; margin: auto; width: min(100%, 400px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(.35rem, calc(1.6 * var(--vh)), .9rem);
  padding: clamp(1.6rem, calc(6 * var(--vh)), 3.2rem) 1.3rem clamp(1.2rem, calc(4 * var(--vh)), 2.2rem);
  text-align: center; background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px 999px 32px 32px; box-shadow: 0 30px 70px -30px rgba(110, 80, 140, .55), inset 0 0 0 1px rgba(255, 255, 255, .95);
  transition: opacity .5s ease, transform .6s ease;
}
.opener.opening .opener-card { opacity: 0; transform: translateY(14px) scale(.94); }
.opener-ganesh {
  width: clamp(60px, calc(12 * var(--vh)), 108px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(195, 176, 232, .35), 0 12px 30px rgba(195, 176, 232, .55);
}
.opener-blessing { margin: .2rem 0 0; font-family: var(--display); font-style: italic; color: var(--lilac-deep); }
.opener-kicker { margin: 0; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.opener-names { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(2.2rem, min(10.5vw, calc(7 * var(--vh))), 3.6rem); line-height: 1.15; color: var(--rose-deep); }
.opener-date { margin: 0; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.btn-open {
  margin-top: .4rem; padding: .9rem 1.9rem; min-height: 48px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #F2A7C2, #C3A2E2); color: #fff; font-weight: 600; font-size: 1.02rem; letter-spacing: .03em;
  box-shadow: 0 14px 28px -14px rgba(168, 72, 122, .7); animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 14px 28px -14px rgba(168, 72, 122, .7), 0 0 0 0 rgba(242, 167, 194, .5); } 50% { box-shadow: 0 14px 28px -14px rgba(168, 72, 122, .7), 0 0 0 12px rgba(242, 167, 194, 0); } }
.opener-hint { margin: 0; font-size: .86rem; font-style: italic; color: var(--ink-soft); }

/* Petals in four pastel shades */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.petal { position: absolute; top: -40px; width: 14px; height: 18px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #FBD3E0, #EE9DBA); animation: fall linear infinite; }
.petal:nth-child(3n) { background: linear-gradient(135deg, #E9DDF8, #B9A0DE); }
.petal:nth-child(5n) { background: linear-gradient(135deg, #DDF3E8, #9FD3BC); }
.petal.gold { width: 10px; height: 12px; background: linear-gradient(135deg, #FFE7CF, #F5B98C); }
@keyframes fall { 0% { transform: translate3d(0, -5vh, 0) rotate(0deg); } 100% { transform: translate3d(var(--drift, 40px), 110vh, 0) rotate(540deg); } }

/* ---------- 4. Floating pill navigation ---------- */
.topnav {
  position: fixed; z-index: 50; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 50%;
  width: max-content; max-width: calc(100% - 24px); transform: translate(-50%, calc(-100% - 40px)); transition: transform .45s ease;
  background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .95); border-radius: 999px; box-shadow: 0 14px 30px -18px rgba(110, 80, 140, .55);
}
.topnav.show { transform: translate(-50%, 0); }
.topnav ul { list-style: none; margin: 0; padding: .3rem; display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: none; }
.topnav ul::-webkit-scrollbar { display: none; }
.topnav a { display: block; padding: .42rem .85rem; border-radius: 999px; text-decoration: none; white-space: nowrap; font-size: .9rem; font-weight: 500; color: var(--ink-soft); transition: background .25s, color .25s; }
.topnav a.active, .topnav a:hover { background: var(--pink); color: var(--rose-deep); }

/* ---------- 5. Hero ---------- */
.hero { min-height: 100svh; display: grid; place-items: center; padding: 4.5rem 0 3.5rem; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; width: min(1080px, 100% - 2.5rem); display: grid; gap: 2.2rem; justify-items: center; text-align: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 380px 1fr; gap: 4.5rem; align-items: center; justify-items: start; text-align: left; }
  .countdown { justify-content: flex-start; }
}
.hero-frame {
  position: relative; width: min(66vw, 300px); aspect-ratio: 3 / 4; margin: 22px; border-radius: 999px 999px 30px 30px;
  background: var(--white); box-shadow: 0 0 0 10px var(--pink), 0 0 0 20px var(--lavender), 0 44px 80px -34px rgba(110, 80, 140, .55);
}
.js .hero-frame { opacity: 0; transform: translateY(30px) scale(.94); transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.js .hero-frame.in, .opener.opening ~ main .hero-frame { opacity: 1; transform: none; }
.opener.opening ~ main .hero-frame { transition-delay: .8s; }
.arch { position: absolute; inset: 0; overflow: hidden; }
.hero-frame .arch { inset: 10px; border-radius: 999px 999px 22px 22px; }
.arch .art-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.arch .art-zoom { height: 100%; border-radius: 0; }
.arch .art-btn img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Ganesha crest, shown until a couple caricature is added */
.crest {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
  padding: 20% 10% 10%; text-align: center; background: linear-gradient(180deg, #FFFFFF 0%, #FDEEF3 45%, #EEE6FA 100%);
}
.crest::before { content: ""; position: absolute; inset: 0; background: var(--jaali); background-size: 40px; opacity: .8; pointer-events: none; }
.crest > * { position: relative; }
.crest-ganesh { width: 40%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid #fff; animation: crestGlow 3.6s ease-in-out infinite; }
@keyframes crestGlow { 0%, 100% { box-shadow: 0 0 0 4px rgba(195, 176, 232, .3), 0 8px 20px rgba(195, 176, 232, .4); } 50% { box-shadow: 0 0 0 9px rgba(242, 167, 194, .18), 0 10px 34px rgba(242, 167, 194, .6); } }
.crest-title { font-family: var(--script); font-size: clamp(2.2rem, 10vw, 2.7rem); line-height: 1; color: var(--rose-deep); margin-top: .3rem; }
.crest-mono { display: block; width: 26%; aspect-ratio: 400 / 387; background: url("assets/images/sh-logo-lilac.png") center / contain no-repeat; }
.crest-date { font-size: .8rem; letter-spacing: .3em; color: var(--ink-soft); padding-top: .5rem; border-top: 1px solid var(--line); }

.hero-blessing { margin: 0; font-family: var(--display); font-style: italic; color: var(--lilac-deep); }
.hero-text .kicker { margin-top: .9rem; }
.hero-names { margin: .4rem 0 0; font-family: var(--script); font-weight: 400; font-size: clamp(3.6rem, 16vw, 6rem); line-height: 1; color: var(--rose-deep); }
.hero-names { display: table; text-align: center; margin-inline: auto; }
@media (min-width: 900px) { .hero-names { margin-inline: 0; } }
.hero-text > .kicker { display: block; }
.hero-names .amp {
  display: flex; align-items: center; justify-content: center; gap: .3em; margin: -.02em 0 .04em;
  font-family: var(--script); font-size: .5em; line-height: 1; color: var(--lilac);
}
.hero-names .amp::before, .hero-names .amp::after { content: ""; width: 1.6em; height: 1px; background: linear-gradient(90deg, transparent, #E9A3BE); }
.hero-names .amp::after { transform: scaleX(-1); }
.hero-date { margin: 1.2rem 0 0; font-size: .95rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.hero-venue { margin: .1rem 0 0; font-family: var(--display); font-style: italic; color: var(--ink-soft); }

.countdown { display: flex; gap: .55rem; justify-content: center; margin-top: 1.5rem; }
.countdown div { min-width: 66px; padding: .65rem .4rem .5rem; border-radius: 18px; text-align: center; box-shadow: 0 12px 24px -18px rgba(110, 80, 140, .6); }
.countdown div:nth-child(1) { background: var(--pink); }
.countdown div:nth-child(2) { background: var(--mint); }
.countdown div:nth-child(3) { background: var(--lavender); }
.countdown div:nth-child(4) { background: var(--peach); }
.countdown b { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 500; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.countdown-done { margin-top: 1.2rem; font-family: var(--display); font-style: italic; }


/* ---------- 6. Formal invitation ---------- */
.invite-card { position: relative; text-align: center; background: var(--white); border-radius: 34px; padding: 3.2rem 1.4rem 2.6rem; box-shadow: var(--shadow); }
.invite-card::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(163, 140, 207, .38); border-radius: 26px; pointer-events: none; }
.invite-card::after { content: ""; position: absolute; top: 0; left: 50%; width: 130px; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: linear-gradient(90deg, #F4B3C9, #C3B0E8, #A8DCC4); }
/* Om symbol at the top of the invitation card */
.om { display: block; width: 92px; aspect-ratio: 539 / 259; margin: 0 auto; background: url("assets/images/om-lilac.png") center / contain no-repeat; }
.invocations { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 1rem 0 1.4rem; }
.invocations span { padding: .25rem .85rem; border-radius: 999px; background: var(--lavender); color: var(--lilac-deep); font-size: .82rem; }
.shloka { max-width: 30ch; margin: 0 auto 1.4rem; font-family: var(--display); font-style: italic; color: var(--ink-soft); }
.invite-card .grace { margin: 0 0 1.3rem; font-family: var(--display); font-size: 1.15rem; }
.lineage { margin: 0; font-size: .97rem; color: var(--ink-soft); }
.lineage b { font-weight: 500; color: var(--ink); }
.invite-name { margin: .5rem 0 .2rem; font-family: var(--script); font-size: clamp(2.6rem, 11vw, 3.4rem); line-height: 1.1; color: var(--rose-deep); }
.invite-with { margin: .6rem 0; font-family: var(--display); font-style: italic; color: var(--lilac-deep); }
.invite-closing { max-width: 36ch; margin: 1.6rem auto 0; }
.invite-closing + .invite-closing { margin-top: .6rem; font-family: var(--display); font-style: italic; color: var(--ink-soft); }
.invite-closing b { font-weight: 700; color: var(--ink); }

/* ---------- 7. Couple (shown once their caricatures are added) ---------- */
.couple-grid { display: grid; gap: 2.6rem; }
@media (min-width: 760px) { .couple-grid { grid-template-columns: 1fr 1fr; } }
.person { text-align: center; }
.arch-frame { position: relative; width: min(64vw, 280px); aspect-ratio: 3 / 4; margin: 0 auto 1.4rem; padding: 10px; border-radius: 999px 999px 28px 28px; background: var(--white); box-shadow: 0 0 0 10px var(--pink), var(--shadow); }
.arch-frame .arch { inset: 10px; border-radius: 999px 999px 20px 20px; }
.arch-outline { display: none; }
.person h3 { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 10vw, 3.2rem); line-height: 1.1; color: var(--rose-deep); }
.person .role { margin: .1rem 0 .5rem; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lilac-deep); }
.person p { max-width: 30ch; margin: 0 auto; color: var(--ink-soft); }

/* ---------- 8. Celebrations: postcard cards ---------- */
.events { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .events { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem; } }
@media (min-width: 1100px) { .events { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.event {
  --tone: var(--rose-deep); --tint: var(--pink);
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  background: var(--white); border-radius: 34px; padding: 12px 12px 1.7rem; box-shadow: var(--shadow); overflow: hidden;
  transition: translate .45s ease, box-shadow .45s ease;
}
.event::before { content: ""; position: absolute; inset: 0 0 auto; height: 62%; z-index: -1; background: linear-gradient(180deg, var(--tint), rgba(255, 255, 255, 0)); }
.event:hover { translate: 0 -6px; box-shadow: 0 34px 60px -32px rgba(110, 80, 140, .55); }
.event[data-tone="saffron"] { --tone: #B05E2C; --tint: var(--peach); }
.event[data-tone="vermilion"] { --tone: #B4475C; --tint: #FCE1E7; }
.event[data-tone="emerald"] { --tone: #2E7A5E; --tint: var(--mint); }
.event[data-tone="marigold"] { --tone: #8C670A; --tint: var(--butter); }
.event[data-tone="rani"] { --tone: #A8447A; --tint: #FBDDEB; }
.event[data-tone="maroon"] { --tone: #6E58A0; --tint: var(--lavender); }

.event-art { position: relative; margin: 0; }
.event-art .art-btn {
  display: block; width: 100%; padding: 0; border: 0; border-radius: 26px; background: none; cursor: zoom-in;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out;
}
.art-zoom { position: relative; display: block; overflow: hidden; border-radius: 26px; isolation: isolate; background: var(--tint, var(--pink)); }
.event-art .art-btn img { width: 100%; height: auto; }
/* In the grid, every card shows its illustration whole on a matching tinted mat */
@media (min-width: 760px) {
  .event .art-zoom { aspect-ratio: 4 / 5; }
  .event .art-zoom img { height: 100%; object-fit: contain; }
}

.event-poster { aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; border-radius: 26px; background: var(--tint); background-image: var(--jaali); text-align: center; }
.poster-icon { width: 72px; height: 72px; color: var(--tone); }
.poster-icon svg { width: 100%; height: 100%; }
.poster-title { padding: 0 1.4rem; font-family: var(--script); font-size: 2.6rem; line-height: 1.1; color: var(--tone); }
.poster-date { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

.event-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 .8rem; text-align: center; }
.event-step {
  align-self: center; position: relative; z-index: 2; margin: -1.15rem 0 .9rem; padding: .35rem 1.05rem; border-radius: 999px;
  background: var(--white); color: var(--tone); font-size: .8rem; font-weight: 600; letter-spacing: .2em; box-shadow: 0 10px 22px -12px rgba(110, 80, 140, .55);
}
.event-step span { color: var(--ink-soft); font-weight: 400; }
.event-date { display: flex; align-items: baseline; justify-content: center; gap: .45rem; font-size: .95rem; color: var(--ink-soft); }
.event-date b { font-family: var(--display); font-size: 2.2rem; font-weight: 500; line-height: 1; color: var(--tone); }
.event h3 { margin: .35rem 0 .15rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.65rem, 6vw, 1.95rem); line-height: 1.2; color: var(--ink); }
.event .gloss { margin: 0 0 1.1rem; font-family: var(--display); font-style: italic; color: var(--ink-soft); }
.event ul { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .45rem; }
.event li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .55rem .95rem; border-radius: 16px; background: var(--cream); text-align: left; font-size: .98rem; }
.event li em { display: block; font-size: .82rem; font-style: normal; color: var(--ink-soft); }
.event li em b { font-weight: 700; color: var(--ink); }
.event li time { flex: none; font-size: .92rem; font-weight: 600; color: var(--tone); white-space: nowrap; }
.event .venue { display: flex; justify-content: center; gap: .5rem; margin: 0 0 1.1rem; text-align: left; font-size: .95rem; color: var(--ink-soft); }
.event .venue svg { width: 18px; height: 18px; flex: none; margin-top: .25rem; color: var(--tone); }
.event .venue b { display: block; font-weight: 600; color: var(--ink); }
.event .dress { margin: -.4rem 0 1rem; font-size: .92rem; color: var(--ink-soft); }
.event-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.event-actions .btn { background: var(--tone); border-color: var(--tone); color: #fff; }
.event-actions .btn:hover { filter: brightness(1.08); background: var(--tone); }

/* ---------- 9. Schedule & venues ---------- */
.schedule { background: rgba(255, 255, 255, .45); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tl-day { --day: #F4B3C9; padding: 1.3rem 1.3rem 1rem; border-radius: 24px; background: var(--white); border-top: 6px solid var(--day); box-shadow: var(--shadow); }
.tl-day:nth-child(5n + 2) { --day: #C3B0E8; }
.tl-day:nth-child(5n + 3) { --day: #A8DCC4; }
.tl-day:nth-child(5n + 4) { --day: #FFC9A3; }
.tl-day:nth-child(5n) { --day: #F2D27A; }
.tl-day h3 { margin: 0 0 .6rem; font-family: var(--display); font-weight: 500; font-size: 1.4rem; }
.tl-day h3 small { display: block; font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.tl-day ul { list-style: none; margin: 0; padding: 0; }
.tl-day li { display: grid; grid-template-columns: 5.4rem 1fr; gap: .6rem; padding: .45rem 0; border-top: 1px dashed var(--line); font-size: .96rem; }
.tl-day li:first-child { border-top: 0; }
.tl-day li time { font-weight: 600; color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.tl-day li span em { font-family: var(--display); color: var(--ink-soft); }

.sub-head { margin: 3.2rem 0 1.4rem; text-align: center; font-family: var(--display); font-weight: 500; font-size: 1.7rem; }
.venues { display: grid; gap: 1rem; }
@media (min-width: 700px) { .venues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .venues { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.venue-card { padding: 1.4rem 1.2rem 1.25rem; border-radius: 24px; background: var(--white); text-align: center; box-shadow: var(--shadow); }
.venue-card .for { margin: 0 0 .35rem; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--lilac-deep); }
.venue-card h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.35rem; }
.venue-card p { margin: .2rem 0 .9rem; color: var(--ink-soft); }
.info-note { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 18px; background: var(--white); border-left: 4px solid #F4B3C9; }
.info-note h4 { margin: 0 0 .2rem; font-family: var(--display); font-weight: 500; }
.info-note p { margin: 0; color: var(--ink-soft); }

/* ---------- 10. Family ---------- */
.family-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.family-group { padding: 1.5rem 1.2rem; border-radius: 26px; background: var(--fam, var(--pink)); text-align: center; }
.family-group:nth-child(6n + 2) { --fam: var(--lavender); }
.family-group:nth-child(6n + 3) { --fam: var(--mint); }
.family-group:nth-child(6n + 4) { --fam: var(--peach); }
.family-group:nth-child(6n + 5) { --fam: var(--butter); }
.family-group:nth-child(6n) { --fam: var(--sky); }
.family-group h3 { margin: 0 0 .5rem; font-family: var(--script); font-weight: 400; font-size: 1.95rem; line-height: 1.2; color: var(--rose-deep); }
.family-group p { margin: .1rem 0; }
.family-group .sub { font-family: var(--display); font-style: italic; color: var(--ink-soft); }
.kids-note {
  position: relative; max-width: 30ch; margin: 2.6rem auto 0; padding: 1.1rem 1.4rem; border-radius: 26px; background: var(--white);
  text-align: center; font-family: var(--display); font-style: italic; font-size: 1.18rem; color: var(--rose-deep); box-shadow: var(--shadow);
}
.kids-note::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 20px; height: 20px; background: var(--white); transform: translateX(-50%) rotate(45deg); border-radius: 0 0 5px 0; }
.business { display: grid; gap: 1rem; margin-top: 2.8rem; }
@media (min-width: 700px) { .business { grid-template-columns: 1fr 1fr; } }
.business > div { padding: 1.3rem 1.2rem; border-radius: 24px; background: rgba(255, 255, 255, .75); text-align: center; }
.business h4 { margin: 0 0 .4rem; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--lilac-deep); }
.business p { margin: .1rem 0; color: var(--ink-soft); }

/* ---------- 11. Closing illustration ---------- */
.closing-section { display: grid; place-items: center; padding: 2.5rem 0 3rem; }
.closing-section::before { content: ""; position: absolute; width: min(94vw, 600px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(252, 225, 234, .95), rgba(236, 227, 250, .8) 55%, transparent 71%); }
.closing-art { position: relative; width: min(100% - 3.5rem, 400px); margin: 0; }
.closing-art .art-btn { padding: 10px; border-radius: 34px; background: var(--white); box-shadow: 0 34px 70px -34px rgba(110, 80, 140, .6); }
.closing-art .art-zoom { border-radius: 26px; }

/* ---------- 12. Share + footer ---------- */
.share-section { padding: 1rem 1.25rem 4.5rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
footer { position: relative; overflow: hidden; padding: 4.5rem 1.25rem 6rem; text-align: center; background: linear-gradient(160deg, #FBE3EC 0%, #ECE3FA 55%, #DDF2E8 100%); }
footer::before { content: ""; position: absolute; inset: 0; background: var(--jaali); background-size: 52px; opacity: .7; pointer-events: none; }
footer > * { position: relative; }
.footer-names { margin: 0; font-family: var(--script); font-size: clamp(2.8rem, 11vw, 4rem); line-height: 1.1; color: var(--rose-deep); }
footer .closing { max-width: 34ch; margin: .6rem auto 1.8rem; font-family: var(--display); font-style: italic; color: var(--lilac-deep); }
footer .sender { font-size: .98rem; line-height: 1.8; }
footer .sender b { font-weight: 600; }
footer a { color: var(--rose-deep); }

/* ---------- 13. Floating controls, viewer, toast ---------- */
.fab-stack { position: fixed; right: 1rem; bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); z-index: 60; display: grid; gap: .6rem; }
.fab {
  width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px -14px rgba(110, 80, 140, .6), inset 0 0 0 1.5px #E6D8F4;
}
.fab svg { width: 20px; height: 20px; }
.fab-top { opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.fab-top.show { opacity: 1; pointer-events: auto; transform: none; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 4px; border-radius: 2px; background: linear-gradient(#F2A7C2, #A38CCF); }
.fab-music.playing .eq i { animation: eq 1s ease-in-out infinite; }
.fab-music.playing .eq i:nth-child(2) { animation-delay: .2s; }
.fab-music.playing .eq i:nth-child(3) { animation-delay: .4s; }
.fab-music.playing .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none; place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 3.5rem) .8rem calc(env(safe-area-inset-bottom, 0px) + 3.5rem);
  background: rgba(58, 40, 68, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox.open { display: grid; animation: lbIn .35s ease; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.lightbox.open img { animation: lbZoom .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes lbZoom { from { opacity: 0; transform: scale(.86) translateY(16px); } }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; }
.lb-close { top: calc(env(safe-area-inset-top, 0px) + .8rem); right: .8rem; }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); text-align: center; font-size: .9rem; color: #F1E6FF; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 1.4rem); z-index: 95; max-width: calc(100% - 2rem);
  padding: .7rem 1.25rem; border-radius: 999px; background: var(--rose-deep); color: #fff; text-align: center;
  opacity: 0; transform: translate(-50%, 20px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 14. Motion ----------
   Text and cards drift up; each postcard settles with a slight tilt;
   the caricatures zoom from soft focus into place, then keep a slow
   breathing zoom, a passing sheen and twinkling stars. */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.fade-in.in { opacity: 1; transform: none; }
.event.fade-in { transform: translateY(40px) rotate(var(--tilt, 0deg)); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1), translate .45s ease, box-shadow .45s ease; }
.event:nth-child(odd) { --tilt: -1.6deg; }
.event:nth-child(even) { --tilt: 1.6deg; }
.event.fade-in.in { transform: none; }

.art-reveal { opacity: 0; transform: translate3d(0, var(--from-y, 40px), 0) scale(.94); transition: opacity 1s ease, transform 1.3s cubic-bezier(.2, .8, .2, 1); }
.event .art-reveal { --from-y: 0px; }
.art-reveal.in { opacity: 1; transform: none; }

.art-reveal .art-zoom img { transform: scale(1.25); filter: blur(8px) saturate(.5); transform-origin: 50% 42%; transition: transform 2.2s cubic-bezier(.2, .7, .2, 1) .3s, filter 1.4s ease .3s; }
.art-reveal.in .art-zoom img { transform: scale(1); filter: none; animation: artBreathe 16s ease-in-out 2.5s infinite alternate; }
@keyframes artBreathe { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.2%, -1.6%, 0); } }

.closing-art.in .art-btn { animation: artFloat 7s ease-in-out 1.5s infinite; }
@keyframes artFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.art-zoom::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, .15) 54%, transparent 68%);
}
.art-reveal.in .art-zoom::after { animation: artSheen 8s ease-in-out 2.8s infinite; }
@keyframes artSheen { 0% { transform: translateX(-130%); } 24%, 100% { transform: translateX(130%); } }

.sparkle {
  position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 20px; height: 20px; margin: -10px; pointer-events: none;
  background: linear-gradient(135deg, #FFFFFF, #F2A7C2 45%, #A38CCF);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0; transform: scale(.3);
}
.event .sparkle { left: calc(var(--x) * .92 + 4%); }
.art-reveal.in .sparkle { animation: twinkle 3.8s ease-in-out calc(1.6s + var(--d)) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.5) rotate(90deg); } }

.art-reveal.in .poster-icon { animation: posterBob 4s ease-in-out infinite; }
@keyframes posterBob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.06); } }

.art-reveal.offscreen, .art-reveal.offscreen *, .art-reveal.offscreen *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .petals { display: none; }
}

/* ---------- 15. Print: a clean invitation ---------- */
@media print {
  html { background: #fff; }
  body { font-size: 11pt; }
  .opener, .topnav, .fab-stack, .hero-frame, .petals, .event-art, .closing-section, .share-section, .lightbox, .toast, .event-actions { display: none !important; }
  .hero { min-height: 0; padding: 1rem 0; }
  section { padding: 1rem 0; break-inside: avoid; }
  .fade-in, .art-reveal { opacity: 1 !important; transform: none !important; }
  .event, .tl-day, .venue-card, .invite-card, .family-group { box-shadow: none; border: 1px solid #ddd; }
  .events { grid-template-columns: 1fr 1fr; gap: .8rem; }
  footer { background: none; padding: 1rem 0; }
  footer::before { display: none; }
}

/* ---------- 16. Phone-first spacing ----------
   Almost every guest opens this on a phone, so sections sit closer
   together there; wider screens get a little more air. */
@media screen {
  section { padding: 2.8rem 0; }
  .hero { padding: 3rem 0 2.2rem; }
  .section-head { margin-bottom: 1.5rem; }
  .kicker { font-size: .72rem; letter-spacing: .2em; }
  .title { font-size: clamp(2rem, 7.6vw, 3rem); margin-top: .25rem; }
  .title::after { width: 60px; height: 3px; margin-top: .75rem; }
  .lede { margin-top: .6rem; }
  .invite-card { padding: 2.4rem 1.1rem 2rem; border-radius: 28px; }
  .invite-closing { margin-top: 1.2rem; }
  .events { gap: 1.6rem; }
  .event { padding: 10px 10px 1.3rem; border-radius: 28px; }
  .event-body { padding: 0 .4rem; }
  .event .gloss { margin-bottom: .8rem; }
  .event ul { margin-bottom: .9rem; gap: .35rem; }
  .event .venue { margin-bottom: .9rem; }
  .sub-head { margin: 2rem 0 1rem; font-size: 1.5rem; }
  .timeline, .venues, .family-grid { gap: .9rem; }
  .kids-note { margin-top: 1.8rem; }
  .business { margin-top: 1.8rem; }
  .closing-section { padding: 1.2rem 0 1.8rem; }
  .share-section { padding: .4rem 1.25rem 3rem; }
  footer { padding: 3rem 1.25rem 5.5rem; }
  @media (min-width: 760px) {
    section { padding: 4rem 0; }
    .section-head { margin-bottom: 2.2rem; }
    .events { gap: 2rem; }
    .closing-section { padding: 2rem 0 2.5rem; }
  }
}
