/* Azure Bloom — Hindu wedding invitation (invite-azure-bloom.php)
   From the MARK BY ILARA THEAM 9 artwork: sky blue and white, the couple's photos, a frosted-glass
   card, blue roses, polaroids, an envelope and a butterfly. Blue (#466289) for names, titles and
   buttons; the artwork's script is set in Great Vibes, names in Morgena, titles in Times italic, body
   copy in Syne, the RSVP form in Inter (fonts from assets/fonts/sage-olive & crimson-nikah).
   Sizes and positions use the artwork's 1080 x 1920 grid: --u is one artwork pixel, so
   "calc(118 * var(--u))" is the artwork's 118px at whatever width the phone column has. */
@font-face { font-family: "Morgena"; src: url("../fonts/sage-olive/morgena-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/sage-olive/syne-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/sage-olive/syne-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/sage-olive/inter-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/sage-olive/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/sage-olive/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Maitree"; src: url("../fonts/crimson-nikah/maitree-regular.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --ab-blue: #466289;
  --ab-blue-2: #344c70;
  --ab-navy: #22355a;
  --ab-sky: #c0d5f2;
  --ab-ink: #353535;
  --ab-gold: #b8924a;
  --ab-red: #d42a2a;
  --ab-cream: #fbf7ee;
  --ab-display: Morgena, "Cormorant Garamond", Georgia, serif;
  --ab-serif: "Times New Roman", Times, Tinos, serif;
  --ab-script: "Great Vibes", "Times New Roman", cursive;
  --ab-amp: "Tiro Devanagari Sanskrit", Georgia, serif;
  --ab-sans: Syne, "Segoe UI", sans-serif;
  --ab-ui: Inter, "Segoe UI", sans-serif;
  --ab-w: 540px;
  --u: calc(min(100vw, var(--ab-w)) / 1080);
  /* a blue heart for the mouse pointer */
  --ab-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='26' viewBox='0 0 28 26'%3E%3Cpath fill='%23466289' stroke='%23fff' stroke-width='1.6' d='M14 24.2 12.2 22.6C5.6 16.6 1 12.6 1 7.7 1 3.8 4 1 7.9 1c2.2 0 4.3 1 5.6 2.6l.5.6.5-.6C15.8 2 17.9 1 20.1 1 24 1 27 3.8 27 7.7c0 4.9-4.6 8.9-11.2 14.9z'/%3E%3C/svg%3E") 14 12;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.ab { margin: 0; background: #b9cbe3 url("../images/invites/azure-bloom/flowers.jpg") center / cover fixed; color: var(--ab-ink); font: 400 15px/1.55 var(--ab-sans); -webkit-font-smoothing: antialiased; cursor: var(--ab-cursor), auto; overflow-wrap: break-word; word-wrap: break-word; }
body.ab a, body.ab button, body.ab label, body.ab select { cursor: var(--ab-cursor), pointer; }
body.ab.is-locked { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.ab-main { max-width: var(--ab-w); margin: 0 auto; background: #dfe8f4; box-shadow: 0 0 60px rgba(30,45,70,.3); overflow: hidden; container-type: inline-size; }
/* one artwork pixel from the column's real width: 100vw counts a desktop scrollbar (and the editor's
   preview frame has one), which made the copy drift off the artwork drawn at the column's width */
@supports (width: 1cqw) { .ab-main > * { --u: calc(100cqw / 1080); } }
.ab-sec { position: relative; }
.ab-wrap { position: relative; z-index: 2; padding: 0 28px; text-align: center; }
/* a screen of the artwork: its background keeps the artwork's shape, the copy sits on its grid */
.ab-art { min-height: calc(1920 * var(--u)); background: #dfe8f4 center top / 100% auto no-repeat; text-align: center; overflow: hidden; }
.ab-art > * { position: absolute; }
/* buttons placed on the artwork (the button style itself is position: relative) */
.ab-art > .ab-btn { position: absolute; }

/* ---------- shared bits ---------- */
.ab-script { margin: 0; font: 400 calc(var(--fs, 118) * var(--u))/1.25 var(--ab-script); color: #fff; white-space: nowrap; text-shadow: 0 2px 14px rgba(20,35,60,.25); }
.ab-names { margin: 0; font: 400 calc(var(--fs, 118) * var(--u))/1.1 var(--ab-display); color: var(--ab-blue); white-space: nowrap; }
.ab-names i { font: italic 400 1em/1 var(--ab-amp); }
.ab-names--stack span { display: block; line-height: .9; }
.ab-label { margin: 0; font: 400 max(8px, calc(17.9 * var(--u)))/1.2 var(--ab-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ab-sky); }
.ab-lead { margin: 0; font: 400 max(11px, calc(28 * var(--u)))/1.22 var(--ab-sans); color: #000; }
.ab-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: 0 20px; border: 0; border-radius: 60px; background: var(--ab-blue); color: #fff; font: 400 max(12px, calc(26 * var(--u)))/1.2 var(--ab-ui); text-decoration: none; transition: background .2s, box-shadow .2s; }
.ab-btn:hover { background: var(--ab-blue-2); box-shadow: 0 8px 20px rgba(30,45,70,.3); color: #fff; }
.ab-btn--wide { min-width: 230px; min-height: 46px; font-size: 15px; }
.ab-title { margin: 0; font: italic 400 calc(73 * var(--u))/1.2 var(--ab-serif); color: var(--ab-blue); }
.ab-title--ink { color: #000; }
.ab-spaced { margin: 0 0 12px; font: 500 11px/1 var(--ab-ui); letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--ab-gold); }
.ab-divider { display: flex; align-items: center; justify-content: center; margin: 12px auto; width: 200px; }
.ab-divider::before, .ab-divider::after { content: ""; flex: 1; height: 1px; background: rgba(184,146,74,.55); }
.ab-divider i { width: 7px; height: 7px; margin: 0 10px; background: var(--ab-gold); transform: rotate(45deg); }
.ab-fdate { font-family: var(--ab-serif); font-style: italic; white-space: nowrap; }
.ab-fdate i { font-size: calc(45 * var(--u)); }
.ab-fdate b { font-weight: 400; font-size: calc(73 * var(--u)); line-height: 1; }

/* scroll-in reveal (motion styles added by invite-azure-bloom.js; each ends at .reveal.in) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease var(--ab-d, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--ab-d, 0ms), filter .9s ease var(--ab-d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .reveal.ab-a-up { transform: translateY(36px); }
.js .reveal.ab-a-left { transform: translateX(-60px) rotate(-2deg); }
.js .reveal.ab-a-right { transform: translateX(60px) rotate(2deg); }
.js .reveal.ab-a-zoom { transform: scale(.82); }
.js .reveal.ab-a-pop { transform: scale(.4) rotate(-8deg); transition-timing-function: ease, cubic-bezier(.34,1.56,.64,1), ease; }
.js .reveal.ab-a-tilt { transform: perspective(900px) rotateX(22deg) translateY(50px); transform-origin: 50% 100%; }
.js .reveal.ab-a-blur { filter: blur(10px); transform: scale(1.04); }
.js .reveal.ab-a-drop { transform: translateY(-40px) scale(.9); }
.js .reveal.in.ab-a-up, .js .reveal.in.ab-a-left, .js .reveal.in.ab-a-right, .js .reveal.in.ab-a-zoom,
.js .reveal.in.ab-a-pop, .js .reveal.in.ab-a-tilt, .js .reveal.in.ab-a-blur, .js .reveal.in.ab-a-drop { transform: none; filter: none; }
.ab-script.reveal.in, .ab-names.reveal.in { animation: ab-glint 2.6s ease var(--ab-d, 0ms) 1 both; }
@keyframes ab-glint { 0% { text-shadow: 0 2px 14px rgba(20,35,60,.25); } 35% { text-shadow: 0 0 18px rgba(255,255,255,.95), 0 0 2px rgba(70,98,137,.4); } 100% { text-shadow: 0 2px 14px rgba(20,35,60,.25); } }

/* ---------- intro: the frosted-glass card (artboard 1), fitted whole on the screen ---------- */
.ab-intro { position: fixed; top: 0; bottom: 0; left: 0; right: 0; width: 100%; max-width: var(--ab-w); margin: 0 auto; z-index: 50; overflow: hidden; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #bcd3f1 0%, #9db7da 34%, #5f7ca6 56%, #4c6894 78%, #7891b4 100%);
  box-shadow: 0 0 60px rgba(30,45,70,.3);
  /* the whole artboard fits: one artwork pixel is the smaller of width/1080 and height/1920 */
  --u: min(calc(min(100vw, var(--ab-w)) / 1080), calc(100vh / 1920));
  transition: opacity .9s ease, visibility 0s .9s; }
@supports (height: 100dvh) { .ab-intro { --u: min(calc(min(100vw, var(--ab-w)) / 1080), calc(100dvh / 1920)); } }
.ab-intro.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
/* the couple's photo, blurred, fills any space around the fitted card */
.ab-intro__bg { position: absolute; top: -40px; left: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(26px) saturate(1.1); opacity: .55; }
.ab-intro > .ab-hero { position: relative; flex: none; width: calc(1080 * var(--u)); height: calc(1920 * var(--u)); min-height: 0; }
.ab-intro .ab-hero__photo { transition: transform 6s ease; }
.ab-intro.is-playing .ab-hero__photo { transform: scale(1.06); }
.ab-intro.is-playing .ab-hero__btn { box-shadow: 0 0 0 6px rgba(255,255,255,.25); }
@keyframes ab-beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 28% { transform: scale(1.04); } }
@keyframes ab-ring { 0% { transform: scale(.95); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.ab-draft { position: sticky; top: 0; z-index: 30; max-width: var(--ab-w); margin: 0 auto; padding: 9px 14px; background: rgba(34,53,90,.92); color: #fff; font: 500 12px/1.3 var(--ab-ui); text-align: center; backdrop-filter: blur(6px); }

/* ---------- 1 · hero: photo + frosted-glass card (artboard 1) ---------- */
.ab-hero { background: linear-gradient(180deg, #bcd3f1 0%, #9db7da 34%, #5f7ca6 56%, #4c6894 78%, #7891b4 100%); }
/* the couple's photo fills the top and melts into the blue */
.ab-hero__photo { left: 0; top: 0; width: 100%; height: calc(1300 * var(--u)); object-fit: cover; object-position: 50% 20%; -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 98%); mask-image: linear-gradient(180deg, #000 52%, transparent 98%); }
/* no couple photo yet: the artwork's blue roses (flowers.jpg) stand in */
.ab-hero__photo--none { display: block; background: url("../images/invites/azure-bloom/flowers.jpg") center top / cover; }
/* the frosted card (115-965 x 549-1814) */
.ab-glass { left: calc(115 * var(--u)); top: calc(549 * var(--u)); width: calc(850 * var(--u)); height: calc(1265 * var(--u)); border-radius: calc(80 * var(--u)); background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); border: 1.5px solid rgba(255,255,255,.55); -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15); box-shadow: 0 30px 60px rgba(20,35,60,.25), inset 0 1px 0 rgba(255,255,255,.5); }
/* the two portraits in their double white rings (centres 390 / 690, 864) */
.ab-portrait { top: calc(738 * var(--u)); width: calc(252 * var(--u)); height: calc(252 * var(--u)); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); padding: calc(18 * var(--u)); }
.ab-portrait::before { content: ""; position: absolute; inset: calc(18 * var(--u)); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); }
.ab-portrait--1 { left: calc(264 * var(--u)); }
.ab-portrait--2 { left: calc(564 * var(--u)); }
.ab-portrait img, .ab-portrait b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%; padding: calc(6 * var(--u)); background: rgba(255,255,255,.15); background-clip: content-box; }
.ab-portrait b { font: 400 calc(110 * var(--u))/1 var(--ab-display); color: #fff; background: linear-gradient(160deg, #8fa9d0, #466289); background-clip: content-box; }
.ab-hero__names { left: 0; right: 0; top: calc(985 * var(--u)); }
.ab-hero__label { left: 0; right: 0; top: calc(1257 * var(--u)); }
.ab-hero__date { left: 0; right: 0; top: calc(1276 * var(--u)); margin: 0; color: #fff; }
/* the translucent time box (259-821 x 1417-1569) */
.ab-timebox { left: calc(259 * var(--u)); top: calc(1417 * var(--u)); width: calc(562 * var(--u)); height: calc(152 * var(--u)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(6 * var(--u)); border-radius: calc(40 * var(--u)); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); }
.ab-timebox__time { margin: 0; font: 400 max(12px, calc(28.4 * var(--u)))/1.2 var(--ab-ui); letter-spacing: .08em; color: #fff; }
/* the navy "View Invitation" button (259-821 x 1607-1686) */
.ab-hero__btn { left: calc(259 * var(--u)); top: calc(1607 * var(--u)); width: calc(562 * var(--u)); height: calc(79 * var(--u)); background: var(--ab-navy); font-size: max(12px, calc(28.4 * var(--u))); }
.ab-hero__btn i { display: inline-flex; }
.ab-hero__btn svg { width: max(12px, calc(34 * var(--u))); fill: #e8c46a; animation: ab-beat 1.8s ease-in-out infinite; }

/* ---------- 2 · countdown over the photo (artboard 2) ---------- */
.ab-count { background: #5a77a2; }
.ab-count__photo { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.ab-count__overlay { inset: 0; background: url("../images/invites/azure-bloom/count-overlay.png") center top / 100% 100% no-repeat; }
/* up to three of the couple's photos sliding right to left, each easing in a little as it arrives */
.ab-slider { left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; touch-action: pan-y; }
.ab-slider__track { display: flex; height: 100%; transition: transform 1s cubic-bezier(.65,0,.35,1); will-change: transform; }
.ab-slider__track.is-jump { transition: none; }
.ab-slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.ab-slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 25%; transform: scale(1.08); transition: transform 6s ease-out; }
.ab-slide.is-on img { transform: scale(1); }
.ab-dots { left: 0; right: 0; top: calc(1478 * var(--u)); z-index: 2; display: flex; justify-content: center; gap: 8px; }
.ab-dots button { width: 8px; height: 8px; padding: 0; border: 1px solid #fff; border-radius: 8px; background: rgba(255,255,255,.25); transition: width .4s ease, background .4s ease; }
.ab-dots button.is-on { width: 22px; background: #fff; }
/* rose petals drifting down over the photo, as in the artwork */
.ab-petals { inset: 0; pointer-events: none; overflow: hidden; }
/* each petal's spot, speed, start and size come from the page (--l, --dur, --dl, --s) */
.ab-petals i { position: absolute; top: -6%; left: var(--l, 50%); width: calc(26 * var(--s, 1) * var(--u)); height: calc(34 * var(--s, 1) * var(--u)); border-radius: 80% 0 80% 0; background: radial-gradient(circle at 30% 30%, #ff5a5a, #c0101a 70%); opacity: .9; animation: ab-petal var(--dur, 8s) linear var(--dl, 0s) infinite; }
.ab-petals i:nth-child(3n) { background: radial-gradient(circle at 30% 30%, #ff7b7b, #d11a26 70%); }
.ab-petals i:nth-child(5n) { background: radial-gradient(circle at 30% 30%, #ff9a9a, #e0303a 70%); border-radius: 0 80% 0 80%; }
.ab-petals i:nth-child(4n) { opacity: .7; }
@keyframes ab-petal {
  0% { transform: translate(0, 0) rotate(0deg) rotateY(0deg); }
  25% { transform: translate(calc(40 * var(--u)), calc(500 * var(--u))) rotate(90deg) rotateY(70deg); }
  50% { transform: translate(calc(-30 * var(--u)), calc(1000 * var(--u))) rotate(180deg) rotateY(0deg); }
  75% { transform: translate(calc(35 * var(--u)), calc(1500 * var(--u))) rotate(270deg) rotateY(70deg); }
  100% { transform: translate(0, calc(2050 * var(--u))) rotate(360deg) rotateY(0deg); }
}
.ab-count__names { left: 0; right: 0; top: calc(1277 * var(--u)); }
.ab-octs { inset: 0; }
/* the four circles in the overlay (centres x 185 / 421 / 658 / 895, y 1628) */
.ab-oct { position: absolute; top: calc(1556 * var(--u)); width: calc(145 * var(--u)); height: calc(145 * var(--u)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; border-radius: 50%; animation: ab-orbit 3s ease-in-out var(--beat, 0s) infinite; }
.ab-oct b { font: 400 calc(51.5 * var(--u))/1 var(--ab-serif); }
.ab-oct span { margin-top: calc(4 * var(--u)); font: 400 max(6.5px, calc(13.4 * var(--u)))/1 Helvetica, Arial, sans-serif; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; }
.ab-oct--1 { left: calc(112 * var(--u)); --beat: 0s; }
.ab-oct--2 { left: calc(349 * var(--u)); --beat: -.75s; }
.ab-oct--3 { left: calc(586 * var(--u)); --beat: -1.5s; }
.ab-oct--4 { left: calc(823 * var(--u)); --beat: -2.25s; }
/* each circle breathes with a soft glow */
@keyframes ab-orbit { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } 50% { box-shadow: 0 0 calc(30 * var(--u)) calc(6 * var(--u)) rgba(255,255,255,.35); } }
.ab-count__done { left: 0; right: 0; top: calc(1500 * var(--u)); margin: 0; font: italic max(14px, calc(36 * var(--u))) var(--ab-serif); color: #fff; }
.ab-count__date { left: 0; right: 0; top: calc(1756 * var(--u)); margin: 0; font: italic 400 max(14px, calc(45 * var(--u)))/1.5 var(--ab-serif); color: #fff; }

/* ---------- 3 · event card over blue roses (artboard 3) ---------- */
.ab-event { background-image: url("../images/invites/azure-bloom/event.jpg"); }
.ab-event__names { left: 0; right: 0; top: calc(392 * var(--u)); }
.ab-event__muh { left: 0; right: 0; top: calc(712 * var(--u)); margin: 0; font: italic 400 calc(50 * var(--u))/1.6 var(--ab-serif); color: #3a2929; }
.ab-event__muhtime { left: 0; right: 0; top: calc(790 * var(--u)); margin: 0; font: 500 max(12px, calc(34 * var(--u)))/1.2 var(--ab-sans); color: #000; }
.ab-event__title { left: calc(120 * var(--u)); right: calc(120 * var(--u)); top: calc(1007 * var(--u)); margin: 0; font: italic 400 calc(72.9 * var(--u))/1.6 var(--ab-serif); color: var(--ab-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-event__date { left: 0; right: 0; top: calc(1172 * var(--u)); margin: 0; color: var(--ab-blue); }
/* the navy time pill (378-687 x 1264-1319) and the outlined "View Location" pill (368-698 x 1471-1547) */
.ab-pill { left: calc(378 * var(--u)); top: calc(1264 * var(--u)); width: calc(309 * var(--u)); height: calc(55 * var(--u)); margin: 0; display: flex; align-items: center; justify-content: center; border-radius: 40px; background: var(--ab-blue); color: #fff; font: 500 max(9px, calc(26 * var(--u)))/1 var(--ab-sans); white-space: nowrap; overflow: hidden; padding: 0 calc(10 * var(--u)); }
.ab-venue { left: calc(170 * var(--u)); right: calc(170 * var(--u)); top: calc(1350 * var(--u)); margin: 0; font: 500 max(10px, calc(28.4 * var(--u)))/1.45 var(--ab-sans); color: #000; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-map { left: calc(368 * var(--u)); top: calc(1471 * var(--u)); width: calc(330 * var(--u)); height: calc(76 * var(--u)); display: flex; align-items: center; justify-content: center; border-radius: 60px; border: 1.5px solid #8c8c8c; background: #fff; font: 400 max(9px, calc(24.7 * var(--u)))/1 var(--ab-sans); color: #000; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.ab-map:hover { background: var(--ab-blue); border-color: var(--ab-blue); color: #fff; }
.ab-pill--blank, .ab-map--blank { background: #fff; border-color: #fff; }

/* ---------- 4 · "Moments We Cherish" polaroids (artboard 4) ---------- */
.ab-gallery { background-image: url("../images/invites/azure-bloom/gallery.jpg"); }
.ab-gallery__title { left: 0; right: 0; top: calc(129 * var(--u)); }
/* each polaroid: 399 x 532 at its centre (--cx/--cy) and tilt (--rot), photo window with a deeper bottom */
.ab-polaroid { left: calc((var(--cx) - 199.5) * var(--u)); top: calc((var(--cy) - 266) * var(--u)); width: calc(399 * var(--u)); height: calc(532 * var(--u)); padding: calc(18 * var(--u)) calc(17 * var(--u)) calc(72 * var(--u)); border: 0; transform: rotate(var(--rot)); box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(20,35,60,.35); transition: transform .5s cubic-bezier(.3,1.4,.5,1), box-shadow .4s; }
.ab-polaroid--blue { background: var(--ab-blue); }
.ab-polaroid--white { background: #fff; }
.ab-polaroid img { width: 100%; height: 100%; object-fit: cover; }
.ab-polaroid:hover { transform: rotate(0deg) scale(1.06); z-index: 3; box-shadow: 0 calc(26 * var(--u)) calc(60 * var(--u)) rgba(20,35,60,.45); }
/* tossed onto the table one after another, then each sways a little */
.js .reveal.ab-polaroid { opacity: 0; transform: translate(calc(var(--k) * 40 * var(--u) - 60 * var(--u)), calc(-220 * var(--u))) rotate(calc(var(--rot) - 28deg)) scale(1.25); transition: opacity .6s ease var(--ab-d, 0ms), transform 1s cubic-bezier(.25,1.35,.45,1) var(--ab-d, 0ms); }
.js .reveal.in.ab-polaroid { opacity: 1; transform: rotate(var(--rot)); animation: ab-sway 6s ease-in-out calc(1.2s + var(--k) * .7s) infinite; }
.js .reveal.in.ab-polaroid:hover { animation: none; transform: rotate(0deg) scale(1.06); }
@keyframes ab-sway { 0%, 100% { transform: rotate(var(--rot)); } 50% { transform: rotate(calc(var(--rot) + 2deg)) translateY(calc(-6 * var(--u))); } }

/* ---------- 5 · families (artboard 5) ---------- */
.ab-families { background-image: url("../images/invites/azure-bloom/family.jpg"); }
.ab-fam { left: calc(305 * var(--u)); width: calc(470 * var(--u)); height: calc(470 * var(--u)); color: #000; }
.ab-fam--1 { top: calc(274 * var(--u)); }
.ab-fam--2 { top: calc(1161 * var(--u)); }
.ab-fam > * { position: absolute; left: 0; right: 0; margin: 0; }
.ab-fam h3 { top: 0; font: 400 calc(var(--fs, 118) * var(--u))/1.15 var(--ab-display); color: var(--ab-blue); white-space: nowrap; }
.ab-fam p { margin: 0; font: 400 max(12.5px, calc(33 * var(--u)))/1.1 var(--ab-sans); }
.ab-fam__par { top: calc(140 * var(--u)); }
.ab-fam .ab-fam__rel { margin-bottom: calc(6 * var(--u)); font-weight: 600; font-size: max(13.5px, calc(36 * var(--u))); }
.ab-fam__home { top: calc(285 * var(--u)); }
.ab-fam__sibs { top: calc(392 * var(--u)); }
.ab-fam .ab-fam__sib { margin-bottom: calc(6 * var(--u)); font: italic 400 max(10px, calc(24 * var(--u)))/1 var(--ab-serif); text-transform: uppercase; }

/* ---------- names on the scalloped ribbons ---------- */
/* the ribbon's flat middle is painted over in its own blue (hiding the artwork's fixed hearts), and
   "Name ♥ Name" scrolls along it: ten 244-px segments, sliding four along (976) and looping */
.ab-rib { left: 0; right: 0; height: calc(60 * var(--u)); overflow: hidden; background: #456188; box-shadow: 0 calc(-5 * var(--u)) 0 #456188, 0 calc(5 * var(--u)) 0 #456188; }
.ab-rib__track { position: absolute; top: 0; bottom: 0; left: calc((var(--x) - 122 - 244) * var(--u)); display: flex; animation: ab-rib-scroll 16s linear infinite; will-change: transform; }
.ab-rib__seg { flex: 0 0 calc(244 * var(--u)); height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: calc(8 * var(--u)); align-items: center; font: italic 400 max(9px, calc(26.7 * var(--u)))/1 var(--ab-serif); color: #fff; }
.ab-rib__seg b { font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ab-rib__seg b:first-child { text-align: right; }
.ab-rib__seg b:last-child { text-align: left; }
.ab-rib__seg i { display: flex; }
.ab-rib__seg svg { width: max(8px, calc(20 * var(--u))); fill: #f2cf6b; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
@keyframes ab-rib-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-976 * var(--u))); } }
.ab-gallery > .ab-rib { top: calc(1788 * var(--u)); }
.ab-greet > .ab-rib { top: calc(1696 * var(--u)); }
/* the RSVP ribbon follows the card (122 artwork px below it, as drawn), however tall the form grows */
.ab-rsvp > .ab-rib { position: relative; top: auto; margin: 0 0 calc(340 * var(--u)); }
.ab-end > .ab-rib { top: calc(494 * var(--u)); }

/* ---------- the butterfly: flutters its wings and drifts about ---------- */
.ab-butterfly { pointer-events: none; z-index: 3; }
.ab-butterfly img { width: 100%; height: 100%; transform-origin: 68% 30%; animation: ab-flap .32s ease-in-out infinite alternate; }
.ab-butterfly--greet { left: calc(56 * var(--u)); top: calc(302 * var(--u)); width: calc(386 * var(--u)); height: calc(401 * var(--u)); animation: ab-drift 9s ease-in-out infinite; }
.ab-butterfly--rsvp { left: calc(699 * var(--u)); top: calc(193 * var(--u)); width: calc(322 * var(--u)); height: calc(336 * var(--u)); animation: ab-drift-r 8s ease-in-out infinite; }
@keyframes ab-flap { from { transform: scaleX(1); } to { transform: scaleX(.62) skewY(-3deg); } }
@keyframes ab-drift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(calc(60 * var(--u)), calc(-40 * var(--u))) rotate(6deg); } 50% { transform: translate(calc(110 * var(--u)), calc(20 * var(--u))) rotate(-4deg); } 75% { transform: translate(calc(40 * var(--u)), calc(50 * var(--u))) rotate(3deg); } }
@keyframes ab-drift-r { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 30% { transform: translate(calc(-70 * var(--u)), calc(30 * var(--u))) rotate(-6deg); } 60% { transform: translate(calc(-30 * var(--u)), calc(-40 * var(--u))) rotate(4deg); } }

/* ---------- 6 · greetings: the envelope (artboard 6) ---------- */
.ab-greet { background-image: url("../images/invites/azure-bloom/greet.jpg"); }
/* the words on the letter (395-685 x 678-895) */
.ab-greet__words { left: calc(380 * var(--u)); width: calc(320 * var(--u)); top: calc(672 * var(--u)); margin: 0; font: italic 400 calc(45 * var(--u))/1.07 var(--ab-serif); color: var(--ab-blue); }
/* the letter rises a little out of the envelope as the screen arrives */
.js .reveal.ab-a-letter { opacity: 0; transform: translateY(calc(70 * var(--u))); transition: opacity 1s ease var(--ab-d, 0ms), transform 1.4s cubic-bezier(.2,.9,.25,1) var(--ab-d, 0ms); }
.js .reveal.in.ab-a-letter { opacity: 1; transform: none; }
/* over the navy pill (386-694 x 1369-1424) */
.ab-greet__btn { left: calc(386 * var(--u)); top: calc(1369 * var(--u)); width: calc(308 * var(--u)); height: calc(55 * var(--u)); padding: 0; font: 400 max(10px, calc(24.7 * var(--u)))/1 var(--ab-sans); }

/* ---------- 7 · RSVP (artboard 7) ---------- */
.ab-rsvp { display: flow-root; background-image: url("../images/invites/azure-bloom/rsvp.jpg"); }
.ab-art > .ab-panel { position: relative; }
/* the white card in rsvp.jpg starts at 136 x 388; it grows over the silk when the form is longer */
.ab-panel { z-index: 2; width: calc(808 * var(--u)); min-width: min(calc(100% - 24px), 320px); margin: calc(388 * var(--u)) auto calc(122 * var(--u)); padding: 30px 24px 28px; border-radius: calc(70 * var(--u)); background: #fff; text-align: center; color: #111; box-shadow: 0 16px 40px rgba(30,45,70,.14); }
.ab-title--panel { font-size: clamp(28px, 7.6vw, 36px); }
.ab-sub { margin: 0 0 14px; font: 400 16px/1.4 var(--ab-serif); color: #4a5a54; }
.ab-sub small { font: 400 13px var(--ab-ui); color: var(--ab-gold); }
.ab-form { text-align: left; }
.ab-label--form { display: block; margin: 18px 0 8px 4px; font: 400 10px/1 var(--ab-ui); letter-spacing: .4em; color: var(--ab-gold); }
.ab-input { width: 100%; padding: 12px 20px; border: 1px solid rgba(184,146,74,.7); border-radius: 30px; background: #fff; font: 300 16px/1.3 var(--ab-ui); color: #111; outline: none; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
textarea.ab-input { border-radius: 22px; resize: vertical; min-height: 110px; }
select.ab-input { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b8924a' stroke-width='1.4'/%3E%3C/svg%3E") right 20px center / 12px no-repeat; }
.ab-input::placeholder { color: #8a968f; }
.ab-input:focus { border-color: var(--ab-blue); box-shadow: 0 0 0 3px rgba(70,98,137,.14); }
.ab-input.is-invalid, .ab-choices.is-invalid .ab-choice { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.ab-choices { display: grid; gap: 14px; }
.ab-choice { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 16px 24px; border: 1px solid rgba(184,146,74,.7); border-radius: 40px; background: var(--ab-cream); font: 300 16px/1.2 var(--ab-ui); color: #000; cursor: pointer; transition: background .2s, border-color .2s; overflow: hidden; }
.ab-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ab-choice i { width: 22px; height: 22px; border: 1px solid #8a968f; border-radius: 50%; transition: box-shadow .2s, background .2s; }
.ab-choice:has(input:checked) { background: #e6eef9; border-color: var(--ab-blue); }
.ab-choice input:checked ~ i { background: var(--ab-blue); border-color: var(--ab-blue); box-shadow: inset 0 0 0 4px #fff; }
.ab-choice input:focus-visible ~ i { outline: 2px solid var(--ab-blue); outline-offset: 2px; }
.ab-form__msg { min-height: 20px; margin: 16px 0 8px; font: 400 13px/1.4 var(--ab-ui); text-align: center; color: #b3261e; }
.ab-form__msg.ok { color: #2f7a4a; }
.ab-form .ab-btn { display: flex; width: 100%; }
.ab-thanks { padding: 10px 0; }
.ab-coin { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle, #eef3fb 0 20px, var(--ab-blue) 21px 25px, transparent 26px), rgba(70,98,137,.08); }
.ab-coin svg { width: 17px; fill: var(--ab-red); }
.ab-thanks h3 { margin: 0 0 8px; font: italic 400 30px/1.2 var(--ab-serif); color: var(--ab-blue); }
.ab-thanks p { margin: 0 0 16px; color: #4a5a54; }
.ab-textlink { border: 0; background: none; padding: 6px; font: 500 13px var(--ab-ui); color: var(--ab-blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- blessings ---------- */
.ab-wishes { padding: 60px 0 70px; background: linear-gradient(180deg, #eef3fa, #c9d8ec); }
.ab-wishes .ab-title { font-size: clamp(32px, 9vw, 44px); }
.ab-wishes .ab-btn { margin: 4px 0 26px; }
.ab-wall__count { margin: 0 0 14px; font: 500 11px/1 var(--ab-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--ab-gold); }
.ab-cards { display: grid; gap: 12px; text-align: left; }
.ab-card-w { position: relative; padding: 18px 20px 16px; border-radius: 22px; background: rgba(255,255,255,.96); border: 1px solid rgba(70,98,137,.25); color: #111; box-shadow: 0 8px 22px rgba(30,45,70,.08); }
.ab-card-w__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ab-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e6eef9; border: 1px solid rgba(70,98,137,.35); color: var(--ab-blue); font: 400 22px var(--ab-display); flex: none; }
.ab-card-w__name { margin: 0; font: 500 15px/1.2 var(--ab-ui); }
.ab-card-w__when { font: 400 11px var(--ab-ui); color: #8a968f; }
.ab-card-w__msg { margin: 0; padding-right: 50px; font: italic 18px/1.4 var(--ab-serif); color: #2f3a4a; }
.ab-heart { position: absolute; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid rgba(212,42,42,.3); border-radius: 20px; background: #fff; font: 500 12px var(--ab-ui); color: var(--ab-red); }
.ab-heart svg { width: 13px; fill: none; stroke: var(--ab-red); stroke-width: 2; }
.ab-heart.is-on svg { fill: var(--ab-red); }
.ab-heart.pop svg { animation: ab-beat .6s; }
.ab-empty { padding: 22px; border: 1px dashed rgba(70,98,137,.4); border-radius: 22px; font: italic 18px var(--ab-serif); text-align: center; color: var(--ab-blue); background: rgba(255,255,255,.6); }

/* ---------- 8 · thank you (artboard 8, 1080 x 932) ---------- */
.ab-end { min-height: calc(932 * var(--u)); background-image: url("../images/invites/azure-bloom/end.jpg"); }
.ab-end__names { left: 0; right: 0; top: calc(176 * var(--u)); }
.ab-end__lead { left: calc(200 * var(--u)); right: calc(200 * var(--u)); top: calc(334 * var(--u)); }
.ab-end__foot { left: 0; right: 0; top: calc(612 * var(--u)); }
.ab-thank { margin: 0; font: italic 400 calc(73 * var(--u))/1.5 var(--ab-serif); color: var(--ab-blue); }
.ab-thank__sub { margin: calc(-12 * var(--u)) 0 calc(30 * var(--u)); font: 500 max(14px, calc(39.6 * var(--u)))/1.2 var(--ab-sans); color: #000; }
.ab-own { display: block; font: 500 max(11px, calc(24.7 * var(--u))) var(--ab-sans); color: #000; text-decoration: none; }
.ab-own:hover { text-decoration: underline; }

/* white sparkles over the page as it opens */
.ab-sparkles { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.ab-spark { position: absolute; top: 0; left: 0; will-change: transform, opacity; }
.ab-spark svg { width: 100%; height: 100%; display: block; }

/* ---------- overlays ---------- */
.ab-modal { position: fixed; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(30,45,70,.45); backdrop-filter: blur(5px); overflow-y: auto; animation: ab-fade .3s ease both; }
.ab-modal[hidden] { display: none; }
.ab-modal__panel { position: relative; width: min(420px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 40px 26px 30px; border-radius: 36px; background: #fff; text-align: center; color: #111; box-shadow: 0 30px 70px rgba(30,45,70,.35); animation: ab-pop-in .45s cubic-bezier(.2,1.2,.4,1) both; }
.ab-modal__panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #c9d8ee, #8fa9d0 50%, var(--ab-blue)); }
.ab-modal__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e6eef9; color: var(--ab-blue); font-size: 24px; line-height: 1; }
.ab-modal__icon { margin: 0 auto 14px; }
.ab-modal .ab-title--ink { font-size: clamp(30px, 8.6vw, 40px); }
.ab-modal .ab-sub { margin: 6px 0 4px; font-style: italic; }
.ab-modal .ab-label:first-of-type { margin-top: 8px; }
@keyframes ab-fade { from { opacity: 0; } }
@keyframes ab-pop-in { from { opacity: 0; transform: translateY(30px) scale(.94); } }
body.has-modal { overflow: hidden; }
.ab-sheet, .ab-lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(30,45,70,.45); backdrop-filter: blur(4px); }
.ab-sheet[hidden], .ab-lightbox[hidden] { display: none; }
.ab-sheet__panel { width: min(440px, 100%); padding: 26px 22px 30px; border-radius: 28px 28px 0 0; background: var(--ab-cream); text-align: center; animation: ab-up .35s ease both; }
.ab-sheet__panel h3 { margin: 0 0 16px; font: italic 28px var(--ab-serif); color: var(--ab-blue); }
.ab-sheet__panel button { position: relative; overflow: hidden; display: block; width: 100%; margin: 0 0 10px; padding: 14px; border: 1px solid rgba(184,146,74,.6); border-radius: 30px; background: #fff; color: #111; font: 400 15px var(--ab-ui); }
.ab-sheet__panel .ab-sheet__close { border: 0; background: none; color: #3a3229; }
@keyframes ab-up { from { transform: translateY(100%); } }
.ab-lightbox { align-items: center; background: rgba(15,25,45,.94); }
.ab-lightbox img { max-width: 92vw; max-height: 86vh; border: 6px solid #fff; border-radius: 18px; }
.ab-lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 42px; line-height: 1; padding: 12px 16px; }
.ab-lightbox__close { top: 10px; right: 10px; }
.ab-lightbox__nav--prev { left: 4px; }
.ab-lightbox__nav--next { right: 4px; }
.ab-toast { position: fixed; left: 50%; bottom: 26px; z-index: 70; padding: 11px 20px; border-radius: 30px; background: var(--ab-blue); color: #fff; font: 500 13px var(--ab-ui); transform: translate(-50%, 30px); opacity: 0; transition: .3s; pointer-events: none; }
.ab-toast.show { transform: translate(-50%, 0); opacity: 1; }
.ab-music { position: fixed; right: max(16px, calc(50vw - var(--ab-w) / 2 + 16px)); bottom: 18px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid #fff; border-radius: 50%; background: var(--ab-blue); box-shadow: 0 8px 20px rgba(30,45,70,.35); }
.ab-music svg { width: 20px; fill: #fff; }
.ab-music[aria-pressed="true"] svg { animation: ab-spin 3s linear infinite; }
.ab-music[aria-pressed="false"]::after { content: ""; position: absolute; width: 26px; height: 2px; background: #fff; transform: rotate(-45deg); }
@keyframes ab-spin { to { transform: rotate(360deg); } }

/* ---------- touch effects ---------- */
.ab-touchfx { position: fixed; inset: 0; z-index: 90; width: 100vw; height: 100vh; pointer-events: none; }
.ab-ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.65) 0, rgba(255,255,255,.25) 40%, transparent 70%); transform: scale(0); pointer-events: none; animation: ab-ripple .65s ease-out forwards; }
.ab-choice .ab-ripple, .ab-sheet__panel .ab-ripple { background: radial-gradient(circle, rgba(70,98,137,.16) 0, rgba(70,98,137,.07) 40%, transparent 70%); }
@keyframes ab-ripple { to { transform: scale(1); opacity: 0; } }
.ab-btn:active, .ab-choice:active { transform: scale(.96); transition: transform .08s; }

/* editor preview frame: no scrollbars */
.is-preview, .is-preview * { scrollbar-width: none; }
.is-preview ::-webkit-scrollbar { display: none; }

/* phones: lighter, smoother motion — short slides without rotation, no blur, no 3-D tilt */

/* phones: lighter, smoother motion — short slides without rotation, no blur, no 3-D tilt */
@media (max-width: 600px), (hover: none) {
  body.ab { background-attachment: scroll; }
  .js .reveal { transition-duration: .7s, .75s, .75s; }
  .js .reveal.ab-a-left { transform: translateX(-24px); }
  .js .reveal.ab-a-right { transform: translateX(24px); }
  .js .reveal.ab-a-up { transform: translateY(26px); }
  .js .reveal.ab-a-pop { transform: scale(.6); }
  .js .reveal.ab-a-zoom { transform: scale(.9); }
  .js .reveal.ab-a-tilt { transform: translateY(36px) scale(.97); }
  .js .reveal.ab-a-blur { filter: none; transform: scale(.96); }
  .ab-glass { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .ab-rib__track, .ab-petals i, .ab-oct, .ab-butterfly, .ab-butterfly img, .ab-hero__btn svg { animation: none; }
  .ab-slider__track, .ab-slide img { transition: none; }
  .ab-petals { display: none; }
  .js .reveal, .js .reveal[class*="ab-a-"], .js .reveal.ab-polaroid { opacity: 1; filter: none; transition: none; animation: none; }
  .js .reveal:not(.ab-polaroid) { transform: none; }
  .js .reveal.ab-polaroid { transform: rotate(var(--rot)); }
}
