/* Golden Palace — wedding invitation (invite-golden-palace.php)
   From the MARK BY ILARA THEAM 7 artwork: crimson cards (#a93132 → #c15e59) and gold over
   Rajasthani palace gardens. Morgena in a gold gradient for names, Times italic for titles, Syne
   for body copy, Inter for the RSVP form, Maitree for the map link (fonts served from
   assets/fonts/sage-olive and assets/fonts/crimson-nikah), Tiro Devanagari Sanskrit ampersand.
   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 {
  --gp-red: #a93132;
  --gp-red-2: #c15e59;
  --gp-ribbon: #b54745;
  --gp-cream: #fff4e6;
  --gp-gold: #b8924a;
  --gp-gold-2: #d8a43d;
  --gp-goldtext: linear-gradient(100deg, #fff2cc 0%, #f1d38b 30%, #d9aa52 55%, #f6dc95 80%, #e2b86a 100%);
  --gp-display: Morgena, "Cormorant Garamond", Georgia, serif;
  --gp-amp: "Tiro Devanagari Sanskrit", Georgia, serif;
  --gp-serif: "Times New Roman", Times, Tinos, serif;
  --gp-sans: Syne, "Segoe UI", sans-serif;
  --gp-ui: Inter, "Segoe UI", sans-serif;
  --gp-w: 540px;
  --u: calc(min(100vw, var(--gp-w)) / 1080);
  /* a gold heart for the mouse pointer */
  --gp-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='%23d8a43d' 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.gp { margin: 0; background: #5e1616 url("../images/invites/golden-palace/end.jpg") center / cover fixed; color: #fff; font: 400 15px/1.55 var(--gp-sans); -webkit-font-smoothing: antialiased; cursor: var(--gp-cursor), auto; overflow-wrap: break-word; word-wrap: break-word; }
body.gp a, body.gp button, body.gp label, body.gp select { cursor: var(--gp-cursor), pointer; }
body.gp.is-locked { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* the invitation is a phone-width column; wide screens see the palace around it */
.gp-main { max-width: var(--gp-w); margin: 0 auto; background: var(--gp-red); box-shadow: 0 0 60px rgba(40,5,5,.55); overflow: hidden; }
.gp-sec { position: relative; }
.gp-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 */
.gp-art { min-height: calc(1920 * var(--u)); background: var(--gp-red) center top / 100% auto no-repeat; text-align: center; }
/* a scene behind a card: the background covers however tall the card grows */
.gp-scene { min-height: calc(1920 * var(--u)); background: var(--gp-red) center / cover no-repeat; text-align: center; }

/* ---------- shared bits ---------- */
.gp-gold { background: var(--gp-goldtext); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gp-gold i { background: inherit; -webkit-background-clip: text; background-clip: text; }
/* the couple's names: Morgena around the Tiro ampersand */
.gp-names { margin: 0; font: 400 calc(118 * var(--u))/1.15 var(--gp-display); text-wrap: balance; }
.gp-names i { font: italic 400 1em/1 var(--gp-amp); }
.gp-names--stack span { display: block; line-height: .9; }
.gp-names--stack span + span { margin-top: calc(14 * var(--u)); }
.gp-names--sm { font-size: calc(73 * var(--u)); }
/* the gold is painted inside the text's box; tall capitals (the tip of an "A") reach above the tight
   line box, so give the gold room above and below without moving anything */
.gp-names.gp-gold, .gp-fam h3.gp-gold { padding-top: .2em; padding-bottom: .08em; margin-top: -.2em; }
.gp-names--stack.gp-gold span { padding-top: .12em; margin-top: -.12em; }
.gp-names--stack.gp-gold span + span { margin-top: calc(14 * var(--u) - .12em); }
.gp-lead { max-width: calc(600 * var(--u)); margin: calc(40 * var(--u)) auto calc(45 * var(--u)); font: 400 max(12.5px, calc(28 * var(--u)))/1.2 var(--gp-sans); color: #fff; }
.gp-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-width: calc(300 * var(--u)); min-height: calc(55 * var(--u)); padding: 6px 26px; border: 0; border-radius: 40px; background: var(--gp-cream); color: var(--gp-red); font: 400 max(13px, calc(28 * var(--u)))/1.2 var(--gp-sans); text-decoration: none; box-shadow: 0 6px 16px rgba(60,5,5,.25); transition: transform .2s, box-shadow .2s, background .2s; }
.gp-btn:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 10px 22px rgba(60,5,5,.32); }
.gp-btn:disabled { opacity: .6; cursor: default; transform: none; }
.gp-btn--wide { min-width: 230px; min-height: 46px; font-size: 15px; background: linear-gradient(90deg, var(--gp-red), var(--gp-red-2)); color: #fff; }
.gp-btn--wide:hover { background: linear-gradient(90deg, #9b2a2b, #b65450); }
.gp-btn--cream { min-width: 230px; min-height: 46px; font-size: 15px; }
.gp-title { margin: 0; font: italic 400 calc(73 * var(--u))/1.05 var(--gp-serif); color: var(--gp-cream); }
.gp-title--ink { color: #000; font-size: clamp(30px, 8.6vw, 40px); }
.gp-kicker { margin: 0 0 calc(6 * var(--u)); font: 400 max(11px, calc(28 * var(--u)))/1.15 var(--gp-sans); text-transform: uppercase; color: var(--gp-cream); }
.gp-spaced { margin: 0 0 12px; font: 500 11px/1 var(--gp-ui); letter-spacing: .5em; text-transform: uppercase; color: var(--gp-gold); }
.gp-spaced--light { color: #f1d38b; }
.gp-divider { display: flex; align-items: center; justify-content: center; margin: 14px auto 12px; width: 200px; }
.gp-divider::before, .gp-divider::after { content: ""; flex: 1; height: 1px; background: rgba(184,146,74,.55); }
.gp-divider i { width: 8px; height: 8px; margin: 0 12px; background: var(--gp-gold); transform: rotate(45deg); }
.gp-divider--cream { width: calc(310 * var(--u)); min-width: 150px; margin: calc(14 * var(--u)) auto; }
.gp-divider--cream::before, .gp-divider--cream::after { height: 2px; background: var(--gp-cream); }
.gp-divider--cream i { background: var(--gp-cream); width: calc(11 * var(--u)); height: calc(11 * var(--u)); min-width: 6px; min-height: 6px; }
/* the crimson card from artboards 3 & 4 */
.gp-card { position: relative; z-index: 2; width: calc(804 * var(--u)); margin: 0 auto; background: linear-gradient(105deg, var(--gp-red) 0%, #b54745 50%, var(--gp-red-2) 100%); box-shadow: 0 calc(20 * var(--u)) calc(50 * var(--u)) rgba(50,5,5,.35); color: #fff; }
/* washi tape across a corner */
.gp-tape { position: absolute; z-index: 3; top: calc(-40 * var(--u)); right: calc(-98 * var(--u)); width: calc(266 * var(--u)); pointer-events: none; }
.gp-tape--bl { top: auto; right: auto; bottom: calc(-40 * var(--u)); left: calc(-84 * var(--u)); }

/* scroll-in reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease var(--gp-d, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--gp-d, 0ms), filter .9s ease var(--gp-d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
/* motion styles added by invite-golden-palace.js (each still ends at .reveal.in) */
.js .reveal.gp-a-up { transform: translateY(36px); }
.js .reveal.gp-a-left { transform: translateX(-60px) rotate(-2deg); }
.js .reveal.gp-a-right { transform: translateX(60px) rotate(2deg); }
.js .reveal.gp-a-zoom { transform: scale(.82); }
.js .reveal.gp-a-pop { transform: scale(.4) rotate(-8deg); transition-timing-function: ease, cubic-bezier(.34,1.56,.64,1), ease; }
.js .reveal.gp-a-tilt { transform: perspective(900px) rotateX(22deg) translateY(50px); transform-origin: 50% 100%; }
.js .reveal.gp-a-blur { filter: blur(10px); transform: scale(1.04); }
.js .reveal.in.gp-a-up, .js .reveal.in.gp-a-left, .js .reveal.in.gp-a-right, .js .reveal.in.gp-a-zoom,
.js .reveal.in.gp-a-pop, .js .reveal.in.gp-a-tilt, .js .reveal.in.gp-a-blur { transform: none; filter: none; }
/* gold names catch the light once they arrive: a bright band sweeps across the gold itself
   (no filter — filters on gradient-clipped text break on phones, iPhones especially) */
.gp-gold { background-image: linear-gradient(100deg, transparent 40%, rgba(255,255,240,.85) 50%, transparent 60%), var(--gp-goldtext); background-size: 250% 100%, 100% 100%; background-position: 150% 0, 0 0; background-repeat: no-repeat; }
.gp-gold.reveal.in { animation: gp-goldsweep 1.8s ease var(--gp-d, 0ms) 1 both; }
@keyframes gp-goldsweep { from { background-position: 150% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
/* never blur gold text either */
.js .reveal.gp-a-blur.gp-gold, .js .gp-gold .reveal.gp-a-blur { filter: none; }
/* the heart monogram keeps a slow, gentle glow after it blooms in */
.gp-hrt.reveal.in { animation: gp-hrtglow 4s ease-in-out 1.2s infinite; }
@keyframes gp-hrtglow { 50% { filter: drop-shadow(0 0 18px rgba(255,214,130,.55)); } }

/* ---------- intro: the gold heart under the rose arch ---------- */
.gp-intro { position: fixed; top: 0; bottom: 0; left: 0; right: 0; width: 100%; max-width: var(--gp-w); margin: 0 auto; z-index: 50; overflow: hidden; background: var(--gp-red) url("../images/invites/golden-palace/hero.jpg") center / cover no-repeat; box-shadow: 0 0 60px rgba(40,5,5,.55); text-align: center; -webkit-tap-highlight-color: transparent;
  /* hero.jpg covers the screen, so one artwork pixel is whichever of width or height it is scaled by */
  --u: max(calc(min(100vw, var(--gp-w)) / 1080), calc(100vh / 1920)); transition: opacity .9s ease, visibility 0s .9s; }
.gp-intro.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.gp-intro:focus-visible { outline: none; }
/* the heart in hero.jpg sits at 258-822 x 449-930; the cover background is centred, so it is
   laid out from the screen's centre (the artwork's 540, 960) */
.gp-intro__heart { position: absolute; left: 50%; top: calc(50% - 511 * var(--u)); width: calc(564 * var(--u)); height: calc(482 * var(--u)); margin-left: calc(-282 * var(--u)); transition: transform 1s cubic-bezier(.3,1.4,.5,1), filter 1s; }
.gp-intro.is-playing .gp-intro__heart { transform: scale(1.12); filter: drop-shadow(0 0 30px rgba(255,220,140,.9)); }
.gp-intro__text { position: absolute; left: 0; right: 0; top: calc(50% + 30 * var(--u)); padding: 0 20px; }
.gp-intro__kicker { margin: 0 0 calc(20 * var(--u)); font: 400 max(12px, calc(28 * var(--u)))/1.3 var(--gp-sans); color: #fff; }
.gp-intro .gp-names { font-size: calc(96 * var(--u)); }
.gp-intro__date { margin: calc(24 * var(--u)) 0 0; font: italic 400 max(15px, calc(35 * var(--u)))/1.2 var(--gp-serif); color: #fff; }
/* the "A A" initials centred in the heart's rounded upper part (the tip is the bottom fifth),
   the second letter a step lower as on the artwork */
.gp-intro__heart .gp-mono { top: 6%; bottom: 20%; height: auto; align-items: center; }
.gp-intro__heart .gp-mono b { transform: translateY(-.22em); }
.gp-intro__heart .gp-mono b + b { margin: 0 0 0 -.12em; transform: translateY(.3em); }
.gp-intro__hint { position: absolute; left: 0; right: 0; bottom: max(40px, env(safe-area-inset-bottom)); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 12px/1 var(--gp-ui); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(60,5,5,.6); transition: opacity .4s ease; }
.gp-intro__hint span { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid #f1d38b; background: rgba(169,49,50,.55); backdrop-filter: blur(3px); }
.gp-intro__hint span::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(241,211,139,.8); animation: gp-ring 2s ease-out infinite; }
.gp-intro__hint svg { width: 20px; fill: #f1d38b; animation: gp-beat 1.8s ease-in-out infinite; }
.gp-intro.is-playing .gp-intro__hint { opacity: 0; }
@keyframes gp-beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 28% { transform: scale(1.04); } }
@keyframes gp-ring { 0% { transform: scale(.95); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

.gp-draft { position: sticky; top: 0; z-index: 30; max-width: var(--gp-w); margin: 0 auto; padding: 9px 14px; background: rgba(60,5,5,.88); color: var(--gp-cream); font: 500 12px/1.3 var(--gp-ui); text-align: center; backdrop-filter: blur(6px); }

/* ---------- 1 · heart monogram (artboard 1) ---------- */
.gp-hero { background-image: url("../images/invites/golden-palace/hero.jpg"); }
/* the gold heart is in the artwork (hero.jpg, 258-822 x 449-930); the initials sit inside it, offset like the artwork's "A A" */
.gp-hrt { position: absolute; left: calc(258 * var(--u)); top: calc(449 * var(--u)); width: calc(564 * var(--u)); height: calc(482 * var(--u)); }
.gp-mono { position: absolute; left: 0; right: 0; top: 24%; height: 50%; display: flex; justify-content: center; color: #fff; font: 400 calc(154 * var(--u))/1 var(--gp-display); }
.gp-mono b { font-weight: 400; }
.gp-mono b + b { margin: .55em 0 0 -.12em; }
.gp-hero__body { position: relative; z-index: 2; padding: calc(975 * var(--u)) 16px calc(220 * var(--u)); }
.gp-date { margin: calc(26 * var(--u)) 0 0; font: italic 400 max(16px, calc(35 * var(--u)))/1.2 var(--gp-serif); color: #fff; }
.gp-couple { margin: 0 auto 22px; max-width: 240px; padding: 7px; background: var(--gp-cream); border-radius: 120px 120px 14px 14px; box-shadow: 0 10px 30px rgba(60,5,5,.3); }
.gp-couple img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 114px 114px 9px 9px; }

/* ---------- 2 · octagon countdown (artboard 2) ---------- */
.gp-count { background-image: url("../images/invites/golden-palace/count.jpg"); }
.gp-octs { position: absolute; inset: 0; }
/* the gold octagons are in count.jpg (256px, at x 67/297/527/757, y 528) */
.gp-oct { position: absolute; top: calc(528 * var(--u)); width: calc(256 * var(--u)); height: calc(256 * var(--u)); padding-top: calc(66 * var(--u)); display: flex; flex-direction: column; align-items: center; color: #fff; text-shadow: 0 1px 4px rgba(60,20,5,.35); }
.gp-oct b { font: 400 calc(73 * var(--u))/1.1 var(--gp-serif); }
.gp-oct span { margin-top: calc(8 * var(--u)); font: 400 max(7px, calc(19 * var(--u)))/1 Helvetica, Arial, sans-serif; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; }
.gp-oct--1 { left: calc(67 * var(--u)); }
.gp-oct--2 { left: calc(297 * var(--u)); }
.gp-oct--3 { left: calc(527 * var(--u)); }
.gp-oct--4 { left: calc(757 * var(--u)); }
.gp-count__done { position: absolute; left: 0; right: 0; top: calc(800 * var(--u)); margin: 0; font: italic max(15px, calc(36 * var(--u))) var(--gp-serif); color: var(--gp-cream); }
/* the crimson bar in count.jpg (153-927 x 853-1068): tap it to reveal the date */
.gp-bar { position: absolute; z-index: 3; left: calc(153 * var(--u)); top: calc(853 * var(--u)); width: calc(774 * var(--u)); height: calc(215 * var(--u)); padding: 0 calc(40 * var(--u)); border: 0; background: none; color: #fff; -webkit-tap-highlight-color: transparent; clip-path: polygon(6% 0, 94% 0, 100% 22%, 100% 78%, 94% 100%, 6% 100%, 0 78%, 0 22%); }
.gp-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,240,200,.35) 50%, transparent 70%) -200% 0 / 200% 100% no-repeat; animation: gp-shine 3.2s ease-in-out infinite; pointer-events: none; }
.gp-bar__tap, .gp-bar__date { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--u)); transition: opacity .5s ease, transform .6s cubic-bezier(.2,1.3,.4,1); }
.gp-bar__tap { font: 500 max(9px, calc(22 * var(--u)))/1 var(--gp-ui); letter-spacing: .28em; text-transform: uppercase; }
.gp-bar__tap svg { width: calc(34 * var(--u)); min-width: 14px; fill: #f1d38b; animation: gp-beat 1.8s ease-in-out infinite; }
.gp-bar__date { opacity: 0; transform: scale(.7); font-family: var(--gp-serif); font-style: italic; }
.gp-bar__date i { font-size: calc(45 * var(--u)); }
.gp-bar__date b { font-weight: 400; font-size: calc(80 * var(--u)); line-height: 1; }
.gp-bar.is-on .gp-bar__tap { opacity: 0; transform: scale(1.3); }
.gp-bar.is-on .gp-bar__date { opacity: 1; transform: none; transition-delay: .2s; }
.gp-bar.is-on::after { animation: none; }
.gp-bar:focus-visible { outline: 2px dashed var(--gp-cream); outline-offset: -8px; }
@keyframes gp-shine { 0%, 40% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.gp-count__body { position: relative; z-index: 2; padding: calc(1140 * var(--u)) 16px calc(500 * var(--u)); }

/* ---------- 3 · the event card (artboard 3) ---------- */
.gp-event { padding: calc(194 * var(--u)) 0 calc(285 * var(--u)); background-image: url("../images/invites/golden-palace/event.jpg"); }
.gp-event__card { min-height: calc(1441 * var(--u)); padding: calc(160 * var(--u)) calc(60 * var(--u)) calc(130 * var(--u)); }
.gp-event__card .gp-names { margin-bottom: calc(60 * var(--u)); }
.gp-event__title { margin: 0; font: italic 400 calc(73 * var(--u))/1.1 var(--gp-serif); color: #fff; }
.gp-fdate { display: inline-block; margin: 0 0 calc(18 * var(--u)); color: #fff; font-family: var(--gp-serif); font-style: italic; }
.gp-fdate i { font-size: calc(45 * var(--u)); }
.gp-fdate b { font-weight: 400; font-size: calc(73 * var(--u)); line-height: 1; }
.gp-pill { display: inline-block; margin: 0 0 calc(24 * var(--u)); padding: calc(10 * var(--u)) calc(34 * var(--u)); border-radius: 30px; background: var(--gp-cream); color: #000; font: 500 max(11px, calc(28 * var(--u)))/1.2 var(--gp-sans); }
.gp-venue { max-width: calc(620 * var(--u)); margin: 0 auto calc(30 * var(--u)); font: 500 max(11.5px, calc(28 * var(--u)))/1.5 var(--gp-sans); color: #fff; }
.gp-map { display: inline-block; padding: calc(8 * var(--u)) calc(14 * var(--u)); border: 2px solid var(--gp-gold-2); font: 400 max(10.5px, calc(24 * var(--u)))/1.2 Maitree, Georgia, serif; color: #fff; text-decoration: none; transition: background .2s; }
.gp-map:hover { background: rgba(216,164,61,.18); }
.gp-venue-photo { width: 100%; margin: calc(50 * var(--u)) auto 0; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid var(--gp-cream); }
/* the raised crimson tile with the gold heart coin */
.gp-greet { position: relative; display: block; width: calc(222 * var(--u)); min-width: 104px; aspect-ratio: 222 / 263; margin: calc(64 * var(--u)) auto 0; padding: calc(150 * var(--u)) 0 0; border: 0; border-radius: calc(34 * var(--u)); background: linear-gradient(160deg, #c15e59, #a93132); color: #fff; font: 400 max(11px, calc(28 * var(--u)))/1.05 var(--gp-sans); box-shadow: calc(-6 * var(--u)) calc(14 * var(--u)) calc(30 * var(--u)) rgba(40,5,5,.45), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .25s; }
.gp-greet:hover { transform: translateY(-3px) scale(1.03); }
.gp-greet:active { transform: scale(.95); }
.gp-greet__coin { position: absolute; left: 50%; top: calc(42 * var(--u)); width: calc(112 * var(--u)); height: calc(112 * var(--u)); margin-left: calc(-56 * var(--u)); border-radius: 50%; border: 3px solid #9b3719; display: grid; place-items: center; background: radial-gradient(circle, #f6dc8a 0 30%, #d8a43d 31% 46%, transparent 47%); animation: gp-glow 2.4s ease-in-out infinite; }
.gp-greet__coin svg { width: 26%; fill: #be0222; }
@keyframes gp-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(246,220,138,0); } 50% { box-shadow: 0 0 calc(24 * var(--u)) calc(4 * var(--u)) rgba(246,220,138,.55); } }

/* ---------- 4 · photo board (artboard 4) ---------- */
.gp-gallery { padding: calc(218 * var(--u)) 0 calc(218 * var(--u)); background-image: url("../images/invites/golden-palace/gallery.jpg"); }
.gp-board { padding: calc(37 * var(--u)) calc(31 * var(--u)) calc(110 * var(--u)); }
.gp-story { width: 100%; margin: 0 0 calc(30 * var(--u)); background: #000; }
.gp-photos { display: grid; grid-template-columns: 1fr 1fr; gap: calc(35 * var(--u)) calc(26 * var(--u)); margin-bottom: calc(60 * var(--u)); }
.gp-photo { display: block; padding: 0; border: 0; background: #fff; overflow: hidden; }
.gp-photo img { width: 100%; aspect-ratio: 358 / 544; object-fit: cover; transition: transform .6s ease; }
.gp-photo:hover img { transform: scale(1.06); }
.gp-photos .gp-photo:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 13 * var(--u)); }
.gp-board .gp-lead { margin-top: calc(24 * var(--u)); margin-bottom: 0; }

/* ---------- 5 · families (artboard 5) ---------- */
.gp-families { padding: calc(268 * var(--u)) 0 calc(268 * var(--u)); background-image: url("../images/invites/golden-palace/family.jpg"); }
.gp-fams { position: relative; z-index: 2; display: grid; gap: calc(57 * var(--u)); }
.gp-fam { position: relative; width: calc(584 * var(--u)); min-height: calc(664 * var(--u)); margin: 0 auto; padding: calc(105 * var(--u)) calc(60 * var(--u)) calc(90 * var(--u)) calc(106 * var(--u)); text-align: left; color: #fff; background: linear-gradient(105deg, var(--gp-red) 0%, #b54745 55%, var(--gp-red-2) 100%); border: 2px solid #e2b86a; box-shadow: 0 calc(20 * var(--u)) calc(50 * var(--u)) rgba(50,5,5,.35); }
.gp-fam h3 { margin: 0 0 calc(24 * var(--u)); font: 400 calc(118 * var(--u))/1 var(--gp-display); overflow-wrap: anywhere; }
.gp-fam p { margin: 0; font: 400 max(11px, calc(26.7 * var(--u)))/1.05 var(--gp-sans); }
.gp-fam .gp-fam__rel { margin-bottom: calc(10 * var(--u)); font-weight: 500; font-size: max(11.5px, calc(28.4 * var(--u))); }
.gp-fam__sib { margin: 0 0 calc(6 * var(--u)) !important; font: italic 400 max(8px, calc(18 * var(--u)))/1 var(--gp-serif) !important; text-transform: uppercase; }
.gp-fam hr { width: calc(362 * var(--u)); margin: calc(30 * var(--u)) 0; border: 0; height: 1px; background: rgba(255,244,230,.6); }
.gp-families > .gp-tape { top: calc(209 * var(--u)); right: calc(168 * var(--u)); width: calc(194 * var(--u)); }
.gp-families > .gp-tape--bl { top: auto; bottom: calc(203 * var(--u)); left: calc(166 * var(--u)); right: auto; }

/* ---------- 6 · RSVP under the ribbon (artboard 6) ---------- */
.gp-rsvp { padding: calc(240 * var(--u)) 22px calc(380 * var(--u)); background-image: url("../images/invites/golden-palace/rsvp.jpg"); background-position: center top; }
.gp-rsvp .gp-ribbon { margin: 0 -22px calc(165 * var(--u)); }
/* the scalloped crimson ribbon with the couple's names running along it */
.gp-ribbon { position: relative; z-index: 2; overflow: hidden; height: calc(81 * var(--u)); min-height: 34px; display: flex; align-items: center; background: var(--gp-ribbon);
  --sc: calc(14 * var(--u));
  -webkit-mask: radial-gradient(circle at 50% 0, transparent calc(var(--sc) * .7), #000 calc(var(--sc) * .7 + .5px)) 0 0 / calc(var(--sc) * 2.4) 51% repeat-x, radial-gradient(circle at 50% 100%, transparent calc(var(--sc) * .7), #000 calc(var(--sc) * .7 + .5px)) 0 100% / calc(var(--sc) * 2.4) 51% repeat-x;
          mask: radial-gradient(circle at 50% 0, transparent calc(var(--sc) * .7), #000 calc(var(--sc) * .7 + .5px)) 0 0 / calc(var(--sc) * 2.4) 51% repeat-x, radial-gradient(circle at 50% 100%, transparent calc(var(--sc) * .7), #000 calc(var(--sc) * .7 + .5px)) 0 100% / calc(var(--sc) * 2.4) 51% repeat-x; }
.gp-ribbon__track { display: flex; width: max-content; animation: gp-ribbon 24s linear infinite; }
.gp-ribbon__track span { display: flex; }
.gp-ribbon b { display: inline-flex; align-items: center; gap: .35em; width: calc(244 * var(--u)); min-width: 120px; justify-content: center; font: italic 400 max(11px, calc(26.7 * var(--u)))/1 var(--gp-serif); color: #fff; white-space: nowrap; }
.gp-ribbon b i { display: inline-flex; }
.gp-ribbon svg { width: max(8px, calc(20 * var(--u))); fill: #e2b86a; }
@keyframes gp-ribbon { to { transform: translateX(-50%); } }
.gp-panel { position: relative; z-index: 2; max-width: calc(808 * var(--u)); min-width: min(100%, 320px); margin: 0 auto; padding: 40px 26px 36px; border-radius: calc(80 * var(--u)); background: #fff; text-align: center; box-shadow: 0 20px 50px rgba(60,5,5,.25); color: #111; }
.gp-sub { margin: 0 0 18px; font: 400 17px/1.4 var(--gp-serif); color: #4a5a54; }
.gp-sub small { font: 400 13px var(--gp-ui); color: var(--gp-gold); }
.gp-form { text-align: left; }
.gp-label { display: block; margin: 18px 0 8px 4px; font: 400 10px/1 var(--gp-ui); letter-spacing: .4em; text-transform: uppercase; color: var(--gp-gold); }
.gp-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(--gp-ui); color: #111; outline: none; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
textarea.gp-input { border-radius: 22px; resize: vertical; min-height: 110px; }
select.gp-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; }
.gp-input::placeholder { color: #8a968f; }
.gp-input:focus { border-color: var(--gp-red); box-shadow: 0 0 0 3px rgba(169,49,50,.12); }
.gp-input.is-invalid, .gp-choices.is-invalid .gp-choice { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.gp-choices { display: grid; gap: 14px; }
.gp-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: #fbf7ee; font: 300 16px/1.2 var(--gp-ui); color: #000; cursor: pointer; transition: background .2s, border-color .2s; overflow: hidden; }
.gp-choice input { position: absolute; opacity: 0; pointer-events: none; }
.gp-choice i { width: 22px; height: 22px; border: 1px solid var(--gp-gold); border-radius: 50%; transition: box-shadow .2s, background .2s; }
.gp-choice:has(input:checked) { background: #fbeeee; border-color: var(--gp-red); }
.gp-choice input:checked ~ i { background: var(--gp-red); border-color: var(--gp-red); box-shadow: inset 0 0 0 4px #fff; }
.gp-choice input:focus-visible ~ i { outline: 2px solid var(--gp-red); outline-offset: 2px; }
.gp-form__msg { min-height: 20px; margin: 16px 0 8px; font: 400 13px/1.4 var(--gp-ui); text-align: center; color: #b3261e; }
.gp-form__msg.ok { color: #2f7a4a; }
.gp-form .gp-btn { display: flex; width: 100%; }
.gp-thanks { padding: 10px 0; }
.gp-coin { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle, #f6dc8a 0 20px, #d8a43d 21px 26px, transparent 27px), rgba(169,49,50,.1); }
.gp-coin svg { width: 17px; fill: #be0222; }
.gp-thanks h3 { margin: 0 0 8px; font: italic 400 30px/1.2 var(--gp-serif); color: var(--gp-red); }
.gp-thanks p { margin: 0 0 16px; color: #4a5a54; }
.gp-textlink { border: 0; background: none; padding: 6px; font: 500 13px var(--gp-ui); color: var(--gp-red); text-decoration: underline; text-underline-offset: 3px; }
.gp-textlink--light { color: var(--gp-cream); }

/* ---------- 7 · wishes ---------- */
.gp-wishes { padding: 60px 0 70px; background: linear-gradient(105deg, var(--gp-red), #b54745 55%, var(--gp-red-2)); }
.gp-wishes .gp-title { font-size: clamp(32px, 9vw, 44px); }
.gp-wishes .gp-btn { margin: 4px 0 30px; }
.gp-wall__count { margin: 0 0 14px; font: 500 11px/1 var(--gp-ui); letter-spacing: .3em; text-transform: uppercase; color: #f1d38b; }
.gp-cards { display: grid; gap: 12px; text-align: left; }
.gp-card-w { position: relative; padding: 18px 20px 16px; border-radius: 22px; background: rgba(255,255,255,.95); border: 1px solid rgba(216,164,61,.5); color: #111; }
.gp-card-w__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.gp-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #c15e59, #a93132); color: #f6dc95; font: 400 22px var(--gp-display); flex: none; }
.gp-card-w__name { margin: 0; font: 500 15px/1.2 var(--gp-ui); }
.gp-card-w__when { font: 400 11px var(--gp-ui); color: #8a968f; }
.gp-card-w__msg { margin: 0; padding-right: 50px; font: italic 18px/1.4 var(--gp-serif); color: #3a2929; }
.gp-heart { position: absolute; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid rgba(169,49,50,.3); border-radius: 20px; background: #fff; font: 500 12px var(--gp-ui); color: var(--gp-red); }
.gp-heart svg { width: 13px; fill: none; stroke: var(--gp-red); stroke-width: 2; }
.gp-heart.is-on svg { fill: var(--gp-red); }
.gp-heart.pop svg { animation: gp-beat .6s; }
.gp-empty { padding: 22px; border: 1px dashed rgba(255,244,230,.55); border-radius: 22px; font: italic 18px var(--gp-serif); text-align: center; color: var(--gp-cream); background: rgba(255,255,255,.06); }

/* ---------- 8 · thank you (artboard 7) ---------- */
.gp-end { display: flex; flex-direction: column; background-image: url("../images/invites/golden-palace/end.jpg"); background-size: cover; }
.gp-end__top { padding: calc(320 * var(--u)) 16px 0; }
.gp-end__top .gp-lead { margin: calc(26 * var(--u)) auto calc(80 * var(--u)); }
.gp-end__foot { margin-top: auto; padding: calc(820 * var(--u)) 16px calc(70 * var(--u)); text-shadow: 0 2px 12px rgba(60,10,10,.45); }
.gp-thank { margin: 0; font: italic 400 calc(73 * var(--u))/1.1 var(--gp-serif); color: #fff; }
.gp-thank__sub { margin: calc(20 * var(--u)) 0 calc(50 * var(--u)); font: 500 max(16px, calc(40 * var(--u)))/1.2 var(--gp-sans); }
.gp-own { display: block; font: 500 max(11.5px, calc(25 * var(--u))) var(--gp-sans); color: #fff; text-decoration: none; }
.gp-own:hover { text-decoration: underline; }

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

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

/* ---------- touch effects ---------- */
.gp-touchfx { position: fixed; inset: 0; z-index: 90; width: 100vw; height: 100vh; pointer-events: none; }
.gp-ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,240,210,.6) 0, rgba(255,240,210,.25) 40%, transparent 70%); transform: scale(0); pointer-events: none; animation: gp-ripple .65s ease-out forwards; }
.gp-choice .gp-ripple, .gp-sheet__panel .gp-ripple { background: radial-gradient(circle, rgba(169,49,50,.16) 0, rgba(169,49,50,.07) 40%, transparent 70%); }
@keyframes gp-ripple { to { transform: scale(1); opacity: 0; } }
.gp-btn:active, .gp-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, and a
   background that does not repaint on every scroll */
@media (max-width: 600px), (hover: none) {
  body.gp { background-attachment: scroll; }
  .js .reveal { transition-duration: .7s, .75s, .75s; }
  .js .reveal.gp-a-left { transform: translateX(-24px); }
  .js .reveal.gp-a-right { transform: translateX(24px); }
  .js .reveal.gp-a-up { transform: translateY(26px); }
  .js .reveal.gp-a-pop { transform: scale(.6); }
  .js .reveal.gp-a-zoom { transform: scale(.9); }
  .js .reveal.gp-a-tilt { transform: translateY(36px) scale(.97); }
  .js .reveal.gp-a-blur { filter: none; transform: scale(.96); }
  .gp-hrt.reveal.in { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gp-ribbon__track, .gp-bar::after, .gp-greet__coin { animation: none; }
  .js .reveal, .js .reveal[class*="gp-a-"] { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
}
