:root {
  --cream: #f7efdc;
  --cream-2: #fffaf0;
  --gold: #e3bf74;
  --ink: #33302a;
  --teal: #3d7a6e;
  --sage: #7d8a4c;
  --lilac: #9883a6;
  --night: #14234a;
  --nave: #ecd9b2;
  --display: 'Aboreto', 'Cormorant Garamond', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  /* painterly textures (generated noise, no images) */
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .06' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='5' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--cream); background: var(--night); overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
a { color: inherit; }
.ico { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 1. Journey hero ---------- */
.journey { --p: 0; position: relative; height: 600vh; height: 600svh; background: var(--nave); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sky { position: absolute; inset: 0; background: linear-gradient(#18346f 0%, #24508f 38%, #4f78b3 62%, #a7a9bf 82%, #e9b984 100%); }
.sky::before, .sky::after { content: ''; position: absolute; inset: 0; background-image: var(--brush); background-size: 600px 600px; mix-blend-mode: soft-light; opacity: .9; }
.sky::after { background-image: var(--grain); background-size: 300px; mix-blend-mode: multiply; opacity: .5; }

.lanterns { position: absolute; inset: 0; pointer-events: none; }
.lanterns.far { transform: translate3d(0, calc(var(--p) * -25vh), 0); }
.lanterns.near { transform: translate3d(0, calc(var(--p) * -70vh), 0); }
.lantern {
  position: absolute; width: var(--w); height: calc(var(--w) * 1.22);
  border-radius: 42% 42% 22% 22% / 30% 30% 14% 14%;
  background:
    linear-gradient(90deg, rgba(150, 50, 0, .35), transparent 30%, transparent 70%, rgba(150, 50, 0, .35)),
    radial-gradient(ellipse at 50% 78%, #fff6c2 0%, #ffd26a 22%, #f7a238 58%, #d8641c 100%);
  box-shadow: 0 0 calc(var(--w) * .5) rgba(255, 170, 70, .55), 0 0 calc(var(--w) * 1.3) rgba(255, 150, 50, .25);
  animation: bob var(--d) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
.lantern::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: -6%; height: 9%; border-radius: 50%; background: #7a2d0c; opacity: .55; }
.lanterns.far .lantern { filter: blur(.6px) saturate(.9); opacity: .85; }
@keyframes bob { from { transform: translate(0, 0) rotate(-3deg); } to { transform: translate(6px, -18px) rotate(3deg); } }

.hero-text { position: absolute; left: 0; right: 0; top: 12vh; top: 12svh; text-align: center; padding: 0 16px; opacity: calc(1 - var(--p) * 3); transform: translateY(calc(var(--p) * -25vh)); z-index: 2; }
.hero-text h1 { display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.hn { font-family: var(--display); font-weight: 700; -webkit-text-stroke: .025em #fbf1d8; font-size: clamp(2.7rem, 13.5vw, 6rem); line-height: 1; letter-spacing: .03em; color: #fbf1d8; text-shadow: 0 2px 18px rgba(20, 30, 70, .45); }
.weds { font-family: var(--display); font-size: clamp(.9rem, 4vw, 1.4rem); letter-spacing: .6em; margin: .25em 0 .2em .6em; color: #fbf1d8; }
.hero-date { font-family: var(--display); font-weight: 700; -webkit-text-stroke: .04em #fbe6b8; letter-spacing: .4em; margin-top: 1rem; font-size: 1.15rem; color: #fbe6b8; text-shadow: 0 0 4px rgba(20, 24, 60, .95), 0 0 10px rgba(20, 24, 60, .8), 0 2px 16px rgba(20, 30, 70, .6); }
.greeting { font-style: italic; font-size: 1.35rem; color: #fff3d4; margin-bottom: .6rem; text-shadow: 0 1px 10px rgba(20, 30, 70, .5); }

.church, .church-front {
  position: absolute; left: 50%; bottom: -2px; z-index: 1;
  height: min(64svh, 140vw); width: auto; aspect-ratio: 400 / 590;
  transform-origin: 50% 80%;
  transform: translateX(-50%) scale(var(--zoom, 1));
}
.church-front { z-index: 3; overflow: visible; } /* board and doors in front of the 3D lanterns */
.church {
  filter: url(#paint); /* hand-painted edges; dropped once the camera zooms (it would scale up into wobbles) */
}
.church.flat { filter: none; }
.door-light {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 70%, #fff3d2 0%, #f6d79a 30%, var(--nave) 75%);
  opacity: min(clamp(0, calc((var(--p) - .5) * 1.2), .3), clamp(0, calc((1 - var(--p)) * 6), 1));
}
.scroll-hint { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; z-index: 4; font-family: var(--display); font-size: .7rem; letter-spacing: .4em; color: #fff3d4; opacity: calc(1 - var(--p) * 8); }
.scroll-hint::after { content: ''; display: block; width: 1px; height: 28px; margin: 6px auto 0; background: linear-gradient(#fff3d4, transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* ---------- Painted panels ---------- */
.panel { position: relative; padding: 4.5rem 22px; text-align: center; overflow: hidden; isolation: isolate; }
.panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--brush), var(--grain); background-size: 600px, 300px; mix-blend-mode: soft-light; opacity: .8; }
.panel > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.teal { background: radial-gradient(ellipse at 50% 0%, #4c9282 0%, var(--teal) 45%, #2f6358 100%); }
.sage { background: radial-gradient(ellipse at 50% 0%, #95a25d 0%, var(--sage) 55%, #66723c 100%); }
.lilac { background: radial-gradient(ellipse at 50% 0%, #ae9bbb 0%, var(--lilac) 50%, #7c6990 100%); }
.night { background: linear-gradient(#0e1a3a, #1a2d5c 70%, #0f1c38); }

.big { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 15vw, 5rem); line-height: 1.05; letter-spacing: .02em; color: #fbf1d8; margin: .3rem auto .5rem; }
.big.sm { font-size: clamp(2.4rem, 12vw, 4rem); }
.lead { font-style: italic; font-size: 1.25rem; line-height: 1.4; max-width: 420px; margin: .4rem auto 1rem; }
.small-caps { font-family: var(--display); font-size: .82rem; letter-spacing: .32em; margin: 1.6rem auto .3rem; }
.blessing { font-style: italic; font-size: 1.3rem; line-height: 1.35; }
.motif { width: 2.6rem; height: 2.6rem; margin: 0 auto 1.2rem; color: var(--gold); stroke-width: 1.4; }
.names { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 15vw, 4.4rem); line-height: 1.05; color: #fff8e6; }
.names.amp { font-style: italic; font-size: 2.4rem; color: var(--gold); margin: .2rem auto; }
.parents { font-family: var(--display); font-size: .68rem; letter-spacing: .18em; line-height: 1.8; margin-top: .3rem; opacity: .9; }
.verse { font-style: italic; font-size: 1.25rem; margin: 2.4rem auto 1.6rem; max-width: 360px; color: #fff3d4; }
.verse cite { display: block; font-style: normal; font-family: var(--display); font-size: .68rem; letter-spacing: .3em; margin-top: .4rem; color: var(--gold); }

/* ---------- Events ---------- */
.events { padding-top: 1rem; }
.event { max-width: 420px; margin: 0 auto 4.2rem; }
.city { display: flex; align-items: center; gap: .8rem; justify-content: center; font-family: var(--display); letter-spacing: .45em; font-size: .85rem; color: var(--gold); }
.city::before, .city::after { content: ''; height: 1px; width: 44px; background: currentColor; opacity: .6; }
.frame { position: relative; width: min(84%, 340px); aspect-ratio: 3 / 4; margin: 1.1rem auto 1.5rem; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50% 50% 14px 14px / 37% 37% 14px 14px; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(227, 191, 116, .9), 0 0 0 7px rgba(255, 248, 230, .12), 0 16px 34px rgba(10, 30, 25, .35); }
.frame::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 50% 50% 14px 14px / 37% 37% 14px 14px; background: radial-gradient(ellipse at 50% 58%, rgba(20, 20, 30, .42), rgba(20, 20, 30, .08) 62%); pointer-events: none; }
.route { position: absolute; left: 0; right: 0; top: 34%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-decoration: none; color: #fff8e6; }
.route-t { font-family: var(--display); font-size: clamp(1.7rem, 8.6vw, 2.3rem); line-height: 1.05; letter-spacing: .04em; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.route-s { font-style: italic; font-size: 1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.ring { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 2px solid #fff8e6; box-shadow: 0 0 0 7px rgba(255, 248, 230, .18); animation: ring 2.2s ease-in-out infinite; }
.ring::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid rgba(255, 248, 230, .7); }
@keyframes ring { 50% { box-shadow: 0 0 0 13px rgba(255, 248, 230, .06); transform: scale(1.05); } }
.route:hover .ring, .route:focus-visible .ring { background: rgba(255, 248, 230, .15); }
.fl { position: absolute; width: 50%; height: auto; aspect-ratio: 1; z-index: 3; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }
.fl.tl { left: -16%; top: -7%; }
.fl.br { right: -16%; bottom: -7%; transform: rotate(180deg); }
.event h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 8vw, 2.2rem); line-height: 1.1; color: #fff8e6; }
.when, .where { font-style: italic; font-size: 1.15rem; margin-top: .45rem; }
.where { opacity: .92; }
.cal { display: flex; justify-content: center; gap: 1.2rem; margin-top: .9rem; font-family: var(--display); font-size: .7rem; letter-spacing: .16em; }
.cal a { text-decoration: none; border-bottom: 1px solid rgba(227, 191, 116, .7); padding: .35rem 0; }

/* ---------- Stay & travel ---------- */
.know .item { margin: 2.6rem auto 0; max-width: 380px; }
.know .ico { width: 2.8rem; height: 2.8rem; margin: 0 auto .5rem; color: #fff3d4; stroke-width: 1.3; }
.know h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: #fff8e6; }
.know p { font-style: italic; font-size: 1.15rem; }
.know a { display: inline-block; margin-top: .4rem; font-family: var(--display); font-size: .7rem; letter-spacing: .16em; text-decoration: none; border-bottom: 1px solid rgba(255, 243, 212, .7); padding: .3rem 0; }

/* ---------- RSVP + share ---------- */
.as-btn { position: static; margin: 1rem auto 0; background: none; border: 0; cursor: pointer; font: inherit; }
.share .route { position: static; margin: .6rem auto 0; }
.text-btn { background: none; border: 0; color: inherit; font: italic 1.05rem var(--serif); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; margin-top: 1rem; padding: .4rem; }
.form { margin-top: 1.6rem; text-align: left; display: grid; gap: 1rem; color: var(--ink); background: rgba(255, 250, 240, .94); border-radius: 14px; padding: 1.4rem 1.1rem; box-shadow: 0 18px 40px rgba(40, 20, 60, .3); }
.field { display: grid; gap: .3rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font-family: var(--display); font-size: .72rem; letter-spacing: .14em; color: #4f5a2c; padding: 0; margin-bottom: .1rem; }
.field > label i { font-family: var(--serif); letter-spacing: 0; color: #6e6853; font-size: 1rem; }
input, select, textarea { font: 1.1rem var(--serif); color: var(--ink); width: 100%; min-height: 46px; padding: .5rem .75rem; background: #fff; border: 1px solid #d9cba8; border-radius: 8px; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, #9a7a3a 50%), linear-gradient(135deg, #9a7a3a 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(152, 131, 166, .3); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.choices { display: grid; gap: .45rem; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.choice span { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .1rem .6rem; min-height: 46px; padding: .5rem .8rem; border: 1px solid #d9cba8; border-radius: 8px; background: #fff; font-size: 1.08rem; transition: background .2s, border-color .2s; }
.choice span em { font-size: .95rem; color: #6e6853; }
.choice input:checked + span { background: #efe8f3; border-color: #7c6990; box-shadow: inset 3px 0 0 #7c6990; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(152, 131, 166, .4); }
.if-yes { display: grid; gap: 1rem; }
.err { color: #9b3b2a; font-size: .95rem; }
.err:empty { display: none; }
.submit { margin-top: .3rem; min-height: 52px; font: 400 .95rem var(--display); letter-spacing: .25em; background: #5d4a70; color: #fff8e6; border: 0; border-radius: 999px; cursor: pointer; }
.submit:disabled { opacity: .6; }
.form-status { text-align: center; font-style: italic; color: #9b3b2a; }
.form-status:empty { display: none; }
.thanks { margin-top: 1.6rem; padding: 2rem 1rem; border-radius: 14px; background: rgba(255, 250, 240, .14); border: 1px solid rgba(255, 248, 230, .5); }
.thanks:focus { outline: none; }
.thanks h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.15; }
.thanks-msg { font-style: italic; font-size: 1.15rem; margin-top: .6rem; }
.share { padding-top: 1rem; }

/* ---------- Countdown + footer ---------- */
.countdown { min-height: 100vh; min-height: 100svh; padding-bottom: 46svh; background: linear-gradient(#0b1026, #1a1f3c 55%, #24304a); }
.countdown > .sealink { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; margin: 0; height: 62svh; z-index: -1; }
.sl-waves path { animation: sl-wave linear infinite; }
@keyframes sl-wave { to { transform: translateX(1600px); } }
.sl-refl { animation: sl-shimmer 2.6s ease-in-out infinite alternate; }
@keyframes sl-shimmer { from { opacity: .25; transform: scaleY(.8); } to { opacity: 1; } }
.countdown .clock { margin-top: 2rem; gap: .6rem; }
.countdown .clock b { font-family: 'Cinzel Decorative', var(--serif); font-weight: 700; font-size: clamp(3rem, 13vw, 5.6rem); background: linear-gradient(180deg, #fff3cf, #e3bf74 55%, #b8873a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(255, 200, 120, .45)); }
.countdown .clock i { font-size: clamp(2.4rem, 9vw, 4rem); color: #e3bf74; }
.countdown .clock div { min-width: clamp(4rem, 17vw, 7.5rem); }
.countdown .clock span { font-size: clamp(.65rem, 2vw, .85rem); }
.countdown { background: linear-gradient(#070d2a, #0f1a44 55%, #16285a); }
.sl-blink { animation: sl-blink 1.4s steps(2) infinite; }
@keyframes sl-blink { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .sl-waves path, .sl-refl { animation: none; } }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: calc(min(560px, 100vw) * .65); z-index: -1; }
.gold-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 13vw, 3.8rem); line-height: 1.05; color: var(--gold); }
.clock { display: flex; justify-content: center; align-items: flex-start; gap: .35rem; margin-top: 1.6rem; color: var(--gold); }
.clock div { display: flex; flex-direction: column; align-items: center; min-width: 3.2rem; }
.clock b { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 11vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.clock i { font-style: normal; font-size: 2rem; line-height: 1.1; opacity: .7; }
.clock span { font-family: var(--display); font-size: .62rem; letter-spacing: .2em; margin-top: .3rem; color: #f3e2b8; }
.cd-done { margin-top: 1rem; font-style: italic; font-size: 1.3rem; color: var(--gold); }
.closing { font-style: italic; font-size: 1.12rem; margin: 1.6rem auto 0; max-width: 380px; color: #e9e2cf; }

.footer { position: relative; background: #0d1833; padding: 2rem 20px 7rem; text-align: center; overflow: hidden; }
.footer .lanterns { transform: none; }
.jesus { display: block; width: min(280px, 66vw); height: auto; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(255, 220, 150, .35)); }
.church.small { position: relative; left: auto; transform: none; height: 220px; margin: 0 auto; filter: brightness(.42) saturate(.8) contrast(1.1); }
.sign { margin-top: 1.4rem; font-style: italic; font-size: 1.5rem; color: var(--gold); }

/* ---------- Music button, toast ---------- */
.music { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: #d4733a; color: #fff; border: 0; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.music .ico { width: 1.6rem; height: 1.6rem; }
.music[aria-pressed='true'] { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(212, 115, 58, .25), 0 6px 16px rgba(0, 0, 0, .3); } }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); z-index: 60; background: #241a33; color: #fff8e6; padding: .55rem 1.1rem; border-radius: 999px; font-size: 1rem; opacity: 0; pointer-events: none; transition: .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (min-width: 760px) {
  body { font-size: 20px; }
  .panel { padding: 6rem 24px; }
  .church, .church-front { height: min(70svh, 760px); }
}

@media (prefers-reduced-motion: reduce) {
  .journey { height: 100vh; height: 100svh; }
  *, *::before, *::after { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Three.js sky ---------- */
.sky3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.webgl .lanterns.far, .webgl .lanterns.near { display: none; }
.hero-text { z-index: 4; } /* names and date sit in front of the steeple */
.door-light { z-index: 4; }
.scroll-hint { z-index: 7; }

/* ---------- D3 route map ---------- */
.route-map { margin: 0 auto 4.2rem; max-width: 420px; }
.route-map figcaption { font-style: italic; font-size: 1.3rem; }
.route-map figcaption .small-caps { display: block; margin: 0 auto .3rem; }
.route-map svg { width: 100%; height: auto; overflow: visible; }
.route-map .grat { fill: none; stroke: rgba(255, 248, 230, .14); stroke-width: .6; }
.route-map .trail { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(227, 191, 116, .6)); }
.route-map .dot { fill: #fff8e6; }
.route-map .place:not(.main) .dot { fill: var(--gold); }
.route-map .pulse { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0; }
.route-map .pname { font-family: var(--display); font-size: 13px; letter-spacing: .2em; fill: #fff8e6; }
.route-map .place:not(.main) .pname { font-size: 9px; }
.route-map .pnote { font-family: var(--serif); font-style: italic; font-size: 13px; fill: #f3e2b8; }
.route-map .place:not(.main) .pnote { font-size: 10px; }
.route-map .km { font-family: var(--serif); font-style: italic; font-size: 13px; fill: rgba(255, 248, 230, .8); }
.route-map .traveller { fill: #ffe7a6; filter: drop-shadow(0 0 6px #ffc26b); }

/* ---------- D3 countdown dials ---------- */
.dials { display: none; }
.d3 .dials { display: flex; justify-content: center; gap: 2px; margin-top: 1.4rem; }
.dials .track { fill: rgba(227, 191, 116, .18); }
.dials .bar { fill: var(--gold); }
.dials .num { fill: var(--gold); font-family: var(--serif); font-weight: 500; font-size: 26px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.dials .lbl { fill: #f3e2b8; font-family: var(--display); font-size: 7.5px; letter-spacing: .2em; text-anchor: middle; }

/* ---------- 2. Inside the church ---------- */
.inside { position: absolute; inset: 0; z-index: 6; overflow: hidden; background: #2a1d10; visibility: hidden; }
.world, .world-text { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.world { will-change: transform; }
.interior-bitmap { position: absolute; display: none; }
.interior-live { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.interior { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.interior .guest { transform-box: fill-box; transform-origin: 50% 100%; }
.interior .bob { animation: sway-head 5s ease-in-out infinite; }
@keyframes sway-head { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-2.5deg); } 65% { transform: rotate(2deg); } }
.interior .flicker { animation: flicker 1.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes flicker { 0% { opacity: .75; transform: scaleY(.92); } 50% { opacity: 1; transform: scaleY(1.06); } 100% { opacity: .85; transform: scaleY(.97); } }
.interior .rays { animation: rays 7s ease-in-out infinite alternate; mix-blend-mode: screen; }
@keyframes rays { from { opacity: .55; } to { opacity: 1; } }

/* The hanging cloth: sized from --cw (its on-screen width at full zoom) so text is crisp at the end */
.cloth {
  position: absolute; left: 42%; top: 17%; width: 16%;
  padding: calc(var(--cw) * .13) calc(var(--cw) * .09) calc(var(--cw) * .18);
  color: #4a4426; text-align: center;
  background:
    linear-gradient(90deg, rgba(120, 95, 50, .14), transparent 9%, rgba(255, 255, 255, .7) 22%, transparent 36%, rgba(120, 95, 50, .07) 50%, transparent 63%, rgba(255, 255, 255, .6) 78%, transparent 90%, rgba(120, 95, 50, .16)),
    #fbf8f1;
  box-shadow: 0 calc(var(--cw) * .04) calc(var(--cw) * .1) rgba(70, 45, 15, .35);
}
@keyframes cloth-sway { from { transform: rotate(-.35deg); } to { transform: rotate(.35deg); } }
.cloth::before { /* gold rod */
  content: ''; position: absolute; left: -9%; right: -9%; top: calc(var(--cw) * -.035); height: calc(var(--cw) * .035);
  border-radius: 99px; background: linear-gradient(#f3d68a, #b98a33 60%, #8a6322); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.cloth::after { /* scalloped hem with gold edge */
  content: ''; position: absolute; left: 0; right: 0; bottom: calc(var(--cw) * -.05); height: calc(var(--cw) * .05);
  background: radial-gradient(circle at 50% 0, #fbf8f1 66%, #d4ad5b 67%, #d4ad5b 72%, transparent 73%) 0 0 / calc(var(--cw) * .1) 100% repeat-x;
}
.cloth::after { animation: hem 5.5s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes hem { from { transform: skewX(-2deg) scaleY(.94); } to { transform: skewX(2deg) scaleY(1.06); } }
/* Breeze: soft light and fold shadows drift across the cloth; the text itself never moves, so it stays sharp */
.c-breeze { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.c-breeze::before, .c-breeze::after { content: ''; position: absolute; top: 0; bottom: 0; }
.c-breeze::before {
  left: -60%; width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55) 45%, rgba(255, 250, 235, .2) 60%, transparent);
  animation: breeze-light 9s ease-in-out infinite;
}
@keyframes breeze-light { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateX(270%); opacity: 0; } }
.c-breeze::after {
  left: -10%; right: -10%;
  background: repeating-linear-gradient(90deg, transparent 0 9%, rgba(120, 90, 40, .07) 13%, transparent 17% 26%);
  transform-origin: 50% 0;
  animation: folds 6s ease-in-out infinite alternate;
}
@keyframes folds { from { transform: translateX(-3%) skewX(-1.5deg); } to { transform: translateX(3%) skewX(1.5deg); } }
.c-event { margin: 0 0 calc(var(--cw) * .07); padding: calc(var(--cw) * .06) 0 0; border-top: 1px solid #e3cf9c; }
.c-ev-title { font-family: var(--display); font-size: calc(var(--cw) * .05); letter-spacing: .3em; margin-left: .3em; color: #b58a35; }
.c-ev-when, .c-ev-where { font-size: calc(var(--cw) * .052); line-height: 1.35; color: #37451b; margin-top: calc(var(--cw) * .03); }
.c-ev-when span, .c-ev-where span { display: block; font-size: .82em; color: #6e6853; }
.c-ev-when span { font-family: var(--display); letter-spacing: .14em; font-size: .7em; margin-top: .3em; color: #56652c; }
.c-cal { display: flex; justify-content: center; flex-wrap: wrap; gap: calc(var(--cw) * .04); margin-top: calc(var(--cw) * .05); position: relative; z-index: 1; }
.c-cal a {
  font-family: var(--display); font-size: calc(var(--cw) * .03); letter-spacing: .12em; text-decoration: none; color: #6a4a12;
  border: 1px solid #c9a65a; border-radius: 3px; padding: calc(var(--cw) * .018) calc(var(--cw) * .03);
}
.c-cal a:hover, .c-cal a:focus-visible { background: #f3e6c4; }
.cords { position: absolute; left: 42%; width: 16%; top: 0; height: 17%; pointer-events: none; }
.cords::before, .cords::after { content: ''; position: absolute; top: 0; bottom: calc(var(--cw) * .035); width: 2px; background: linear-gradient(#8a6322, #c79a45); }
.cords::before { left: 4%; }
.cords::after { right: 4%; }
.cloth .greeting { color: #6b5a2c; text-shadow: none; font-size: calc(var(--cw) * .07); margin-bottom: calc(var(--cw) * .03); }
.c-cross { width: calc(var(--cw) * .1); height: calc(var(--cw) * .1); margin: 0 auto calc(var(--cw) * .05); fill: none; stroke: #b58a35; stroke-width: 2.4; stroke-linecap: round; }
.c-open { font-style: italic; font-size: calc(var(--cw) * .062); line-height: 1.4; }
.c-dia { color: #b58a35; font-size: calc(var(--cw) * .028); margin: calc(var(--cw) * .05) 0; }
.c-eyebrow { font-family: var(--display); font-size: calc(var(--cw) * .042); letter-spacing: .35em; margin-left: .35em; }
.c-names { display: flex; flex-direction: column; align-items: center; font-weight: 400; margin: calc(var(--cw) * .02) 0 0; }
.c-name { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: calc(var(--cw) * .2); line-height: 1.05; color: #37451b; }
.c-parent { font-family: var(--display); font-size: calc(var(--cw) * .032); letter-spacing: .14em; color: #6e6853; margin-top: calc(var(--cw) * .025); }
.c-amp { font-style: italic; font-size: calc(var(--cw) * .12); color: #b58a35; line-height: 1.1; margin-top: calc(var(--cw) * .04); }
.c-verse { font-style: italic; font-size: calc(var(--cw) * .058); color: #37451b; margin: calc(var(--cw) * .1) 0 calc(var(--cw) * .07); line-height: 1.35; }
.c-verse cite { display: block; font-style: normal; font-family: var(--display); font-size: calc(var(--cw) * .03); letter-spacing: .3em; color: #b58a35; margin-top: calc(var(--cw) * .02); }
/* Mumbai to Guntur, pinned while you scroll */
.voyage { position: relative; height: 760vh; height: 760svh; background: #f8cfa2; }
.voyage-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.voyage-stage svg { display: block; width: 100%; height: 100%; }
.v-cap { position: absolute; left: 0; right: 0; top: 8%; text-align: center; color: #4a1f2a; pointer-events: none; opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); text-shadow: 0 1px 12px rgba(255, 240, 220, .8); }
.v-cap.on { opacity: 1; transform: none; }
.v-cap-s { font-family: var(--display); letter-spacing: .4em; margin-left: .4em; font-size: clamp(.8rem, 2.6vw, 1rem); color: #8a3a40; }
.v-cap-t { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: clamp(2.2rem, 8vw, 4rem); line-height: 1.1; margin-top: .3rem; }
@media (prefers-reduced-motion: reduce) { .voyage { height: 100vh; height: 100svh; } }

/* ---------- Reception party ---------- */
.party { position: relative; z-index: 6; margin-top: -100vh; margin-top: -100svh; background: #1d1520; color: #fbeedd; text-align: center; overflow: hidden; }
.party-head { padding: 0 22px 1.6rem; max-width: 560px; margin: 0 auto; }
.party-city { font-family: var(--display); letter-spacing: .5em; margin-left: .5em; font-size: clamp(1rem, 3.2vw, 1.25rem); color: #e3bf74; }
.party-head h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 11vw, 4.4rem); line-height: 1.05; margin: .4rem 0 .8rem; color: #fff3e2;
  text-shadow: 0 0 6px rgba(255, 122, 184, .8), 0 0 22px rgba(255, 122, 184, .45);
}
.party-when, .party-where { font-style: italic; font-size: clamp(1.35rem, 4vw, 1.7rem); line-height: 1.4; margin-top: .4rem; }
.party-when span, .party-where span { display: block; font-size: .9em; color: #e8d3b8; }
.party-when span { font-style: normal; font-family: var(--display); letter-spacing: .2em; font-size: 1rem; margin-top: .25rem; color: #e3bf74; }
.party-cal { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; margin-top: 1.2rem; font-family: var(--display); font-size: .7rem; letter-spacing: .16em; }
.party-cal a { text-decoration: none; color: #fff3e2; border-bottom: 1px solid rgba(227, 191, 116, .7); padding: .35rem 0; }
.party-cal a:hover, .party-cal a:focus-visible { color: #e3bf74; }
.party-scene { display: block; width: 100%; height: min(100svh, max(440px, 62vw)); }
.party-stage { position: relative; display: none; }
.party.is-3d .party-stage { display: block; }
.party.is-3d .party-scene { display: none; }
.party-3d { display: block; width: 100%; height: min(100svh, max(520px, 62vw)); cursor: grab; touch-action: pan-y; outline: none; }
.party-3d.grabbing { cursor: grabbing; }
.party-3d:focus-visible { box-shadow: inset 0 0 0 2px #e3bf74; }
.party-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; pointer-events: none;
  font-family: var(--display); font-size: .7rem; letter-spacing: .2em; color: #fff3e2; background: rgba(20, 10, 16, .55);
  padding: .5rem .9rem; border-radius: 3px; transition: opacity .6s; width: max-content; max-width: calc(100% - 32px); text-align: center; line-height: 1.5;
}
.party-hint.gone { opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.visually-hidden:focus-within { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; display: flex; gap: .5rem; justify-content: center; padding: .6rem; }

/* ---------- Church to reception: pinned evening transition ---------- */
.transit { --night: 0; --text: 0; --rise: 45%; --zoom: 1; --flash: 0; --fade: 0; position: relative; height: 380vh; height: 380svh; background: #1d1520; }
.transit-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.t-sky, .t-sky::after { position: absolute; inset: 0; }
.t-sky { background: linear-gradient(#f4c48c, #d9806e 40%, #8a3a55 75%, #4a2038); }
.t-sky::after { content: ''; background: linear-gradient(#0f0a1a, #241330 55%, #3a1d32); opacity: var(--night); }
.t-sun { position: absolute; left: 68%; top: 52%; width: 90px; height: 90px; margin: -45px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle, #fff3cf 0 35%, #ffc27a 55%, rgba(255, 170, 110, 0) 72%);
  transform: translateY(calc(var(--night) * 38vh)); opacity: calc(1 - var(--night) * 1.2); }
.t-moon { position: absolute; left: 22%; top: 15%; width: 46px; height: 46px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 38% 38%, #fffaf0, #e9dfc8 60%, #cfc3a8); box-shadow: 0 0 40px 10px rgba(255, 246, 220, .25);
  opacity: var(--night); transform: translateY(calc((1 - var(--night)) * 12vh)); }
.t-stars { position: absolute; inset: 0 0 40% 0; z-index: 1; opacity: var(--night);
  background-image: radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 33% 12%, #fff, transparent), radial-gradient(1.6px 1.6px at 58% 30%, #fff, transparent), radial-gradient(1px 1px at 76% 16%, #fff, transparent), radial-gradient(1.2px 1.2px at 88% 40%, #fff, transparent), radial-gradient(1px 1px at 45% 48%, #fff, transparent), radial-gradient(1.3px 1.3px at 6% 55%, #fff, transparent), radial-gradient(1px 1px at 66% 58%, #fff, transparent);
  animation: stars 4s ease-in-out infinite alternate; }
@keyframes stars { from { filter: brightness(.7); } to { filter: brightness(1.2); } }
.t-city { position: absolute; left: 0; bottom: 0; width: 100%; height: 46svh; z-index: 2; filter: hue-rotate(75deg) saturate(.65) brightness(calc(.95 - var(--night) * .45)); }
.t-text { position: absolute; left: 0; right: 0; top: 7%; z-index: 4; max-width: 560px; margin: 0 auto; text-align: center; color: #fff3e2; opacity: var(--text); padding: 0 22px;
  transform: translateY(calc((1 - var(--text)) * 14px)); text-shadow: 0 2px 16px rgba(30, 10, 30, .6); }
.t-eyebrow { font-family: var(--display); letter-spacing: .45em; margin-left: .45em; font-size: clamp(.95rem, 3vw, 1.15rem); color: #ffd9a0; }
.t-text .party-city { margin-top: .5rem; }
.t-hall { position: absolute; left: 50%; bottom: -2px; z-index: 3; height: min(62svh, 75vw); width: auto; aspect-ratio: 400 / 300; overflow: visible;
  transform-origin: 50% 75.7%; transform: translateX(-50%) translateY(calc(var(--rise) - var(--lift, 0px))) scale(var(--zoom)); }
.t-bulbs circle { animation: chase 1.1s steps(2) infinite; }
@keyframes chase { 50% { fill: #6a4a2a; } }
.t-hall .twinkle { animation: twinkle 1.6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.t-car { animation: tcar 9s linear infinite; }
@keyframes tcar { from { transform: translateX(-160px); } to { transform: translateX(620px); } }
.t-fireworks { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .t-fireworks { display: none; } }
.t-flash, .t-flash::after { position: absolute; inset: 0; pointer-events: none; }
.t-flash { z-index: 5; opacity: var(--flash); background: radial-gradient(circle at 50% 70%, #fff4d6, #ffc98a 45%, #e0607e 85%); }
.t-flash::after { content: ''; background: #1d1520; opacity: var(--fade); }
@media (prefers-reduced-motion: reduce) { .transit { height: 100vh; height: 100svh; } }
.credit { position: relative; font-size: .7rem; opacity: .55; margin-top: 1rem; }
.credit a { color: inherit; }

/* ---------- Floating invitation card and the formal invitation ---------- */
.inv-card { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: grid; justify-items: center; gap: 6px; padding: 0; background: none; border: 0; cursor: pointer; color: #fff8e6; animation: inv-float 3.4s ease-in-out infinite; }
.inv-glow { position: absolute; left: 50%; top: 26px; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 140, .55), rgba(255, 214, 140, 0) 65%); animation: inv-breathe 2.6s ease-in-out infinite; pointer-events: none; }
.inv-env { position: relative; width: 78px; height: 54px; border-radius: 5px; overflow: hidden;
  background: repeating-linear-gradient(45deg, rgba(185, 138, 78, .08) 0 4px, transparent 4px 8px), linear-gradient(160deg, #fffaf0, #f0dfbd 70%, #e3cb9c);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 0 0 1.5px #c9a65a, inset 0 0 0 4px #fbf3e2, inset 0 0 0 5px rgba(201, 166, 90, .6); }
.inv-peek { position: absolute; left: 10px; right: 10px; top: 8px; height: 40px; background: linear-gradient(#fffdf6, #f6ecd6); border: 1px solid #d8c39a; transform: translateY(14px); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.inv-flap { position: absolute; left: 0; right: 0; top: 0; height: 32px; z-index: 1; background: linear-gradient(170deg, #ecd8ad, #d9bd85); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .5s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 1px 0 #c9a65a); }
.inv-ribbon { position: absolute; left: 0; right: 0; top: 24px; height: 6px; z-index: 2; background: linear-gradient(#b8485a, #8a2433); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.inv-seal { position: absolute; left: 50%; top: 15px; z-index: 3; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #d0566a, #8a2433 70%, #6a1828); color: #f3d58c; font: 600 9px var(--serif); box-shadow: 0 2px 4px rgba(0, 0, 0, .35), inset 0 -2px 3px rgba(0, 0, 0, .3), 0 0 0 2px rgba(138, 36, 51, .35); }
.inv-card:hover .inv-flap, .inv-card:focus-visible .inv-flap { transform: rotateX(180deg); }
.inv-card:hover .inv-peek, .inv-card:focus-visible .inv-peek { transform: translateY(-6px); }
.inv-card:hover .inv-seal, .inv-card:hover .inv-ribbon { opacity: 0; transition: opacity .2s; }
.inv-spark { position: absolute; width: 10px; height: 10px; background: radial-gradient(circle, #fff6d6 0 20%, transparent 22%), linear-gradient(transparent 45%, #ffe39a 45% 55%, transparent 55%), linear-gradient(90deg, transparent 45%, #ffe39a 45% 55%, transparent 55%); animation: inv-twinkle 2.2s ease-in-out infinite; pointer-events: none; }
.inv-spark.s1 { left: -8px; top: -4px; }
.inv-spark.s2 { right: -10px; top: 14px; animation-delay: -.8s; transform: scale(.7); }
.inv-spark.s3 { left: 6px; top: 50px; animation-delay: -1.5s; transform: scale(.6); }
.inv-label { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: .95rem; letter-spacing: .02em; padding: 2px 12px 3px; border-radius: 20px; color: #3a1d27;
  background: linear-gradient(100deg, #e3bf74, #fff0c4 50%, #e3bf74); background-size: 200% 100%; animation: inv-shimmer 3s linear infinite; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
@keyframes inv-float { 50% { transform: translateY(-7px) rotate(-2deg); } }
@keyframes inv-breathe { 50% { transform: scale(1.18); opacity: .6; } }
@keyframes inv-twinkle { 0%, 100% { opacity: 0; scale: .4; } 50% { opacity: 1; scale: 1.1; } }
@keyframes inv-shimmer { to { background-position: -200% 0; } }
.inv-x { position: fixed; right: 12px; top: 10px; z-index: 5; color: #f3d58c !important; width: 40px; height: 40px; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: #8a2433; cursor: pointer; }
.inv-cross { display: block; margin: 0 auto; width: 30px; height: 30px; fill: none; stroke: #b98a4e; stroke-width: 2.5; }
.inv-open, .inv-req { font-style: italic; font-size: 1.05rem; color: #6a5440; }
.inv-names { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.1; color: #8a2433; margin: .4rem 0; }
.inv-names span { display: block; font-size: .6em; color: #b98a4e; }
.inv-parents { font-family: var(--display); font-size: .62rem; letter-spacing: .14em; line-height: 1.9; color: #7a6450; margin: .4rem 0 1rem; }
.inv-dia { color: #b98a4e; margin: 1rem 0; }
.inv-ev { padding: 1rem 0; border-top: 1px solid #e3d3b2; }
.inv-ev-t { font-family: var(--display); letter-spacing: .25em; font-size: .8rem; color: #8a2433; }
.inv-ev-when, .inv-ev-where { font-size: 1.1rem; line-height: 1.35; margin-top: .3rem; }
.inv-ev-when span, .inv-ev-where span { display: block; font-style: italic; color: #6a5440; font-size: .95em; }
.inv-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; margin-top: .5rem; font-family: var(--display); font-size: .6rem; letter-spacing: .14em; }
.inv-links a { color: #8a2433; text-decoration: none; border-bottom: 1px solid #d8a446; padding: .3rem 0; }
.inv-verse { font-style: italic; color: #6a5440; margin-top: 1rem; border-top: 1px solid #e3d3b2; padding-top: 1rem; }
.inv-verse cite { display: block; font-style: normal; font-family: var(--display); font-size: .6rem; letter-spacing: .2em; margin-top: .3rem; }
.inv-rsvp { display: inline-block; margin-top: 1.2rem; padding: .6rem 1.6rem; border-radius: 3px; background: #8a2433; color: #fff8e6; text-decoration: none; font-family: var(--display); font-size: .7rem; letter-spacing: .2em; }

/* The invitation unfolds like a card: a cover with the names opens on its left hinge to show two pages,
   Mumbai on the left and Guntur with stay details on the right. On phones it opens upward instead. */
.inv { width: min(1000px, calc(100vw - 24px)); height: min(680px, calc(100svh - 24px)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; color: #3a2a20; }
.inv::backdrop { background: radial-gradient(circle at 50% 40%, rgba(60, 20, 30, .7), rgba(10, 5, 10, .88)); backdrop-filter: blur(4px); }
.inv-book { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; perspective: 2600px; }
.inv-page, .inv-face { background: radial-gradient(ellipse at 30% 20%, #fffdf6, #f6ecd6 60%, #eedfbf); box-shadow: inset 0 0 0 1px #d8c39a, inset 0 0 0 9px #fbf5e8, inset 0 0 0 10px #c9a65a, inset 0 0 0 13px #fbf5e8, inset 0 0 0 14px #e3cf9f; }
.inv-right { grid-column: 2; grid-row: 1; position: relative; border-radius: 0 6px 6px 0; overflow: hidden; }
.inv-right::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(60, 30, 10, .35), transparent 40%); opacity: 0; }
.inv-cover { grid-column: 2; grid-row: 1; position: relative; z-index: 2; transform-origin: 0 50%; transform-style: preserve-3d; }
.inv-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.inv-front { border-radius: 0 6px 6px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; background: radial-gradient(ellipse at 50% 30%, #fffaf0, #f3e3c2 70%, #e6d1a6); }
.inv-front::before, .inv-front::after { content: ''; position: absolute; width: 70px; height: 70px; border: 2px solid #c9a65a; border-radius: 0 0 70px 0; border-top: 0; border-left: 0; top: 22px; left: 22px; transform: rotate(180deg); opacity: .7; }
.inv-front::after { top: auto; left: auto; bottom: 22px; right: 22px; transform: none; }
.inv-back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; }
.inv-in { height: 100%; overflow-y: auto; padding: 2.2rem 2rem 2rem; text-align: center; scrollbar-width: thin; }
.inv-city { font-family: var(--display); letter-spacing: .5em; margin-left: .5em; font-size: .9rem; color: #8a2433; }
.inv-orn { display: block; width: 120px; margin: .5rem auto 0; color: #c9a65a; }
.inv-names { background: linear-gradient(100deg, #8a2433 20%, #c9a65a 45%, #f3d58c 50%, #c9a65a 55%, #8a2433 80%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: inv-foil 5s linear infinite; }
@keyframes inv-foil { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.inv-wax { margin-top: 1.4rem; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #d0566a, #8a2433 70%, #6a1828); color: #f3d58c; font: 600 1rem var(--serif); box-shadow: 0 3px 8px rgba(60, 10, 20, .45), inset 0 -3px 6px rgba(0, 0, 0, .3); }
.inv-in > * { opacity: 1; }

/* Opening sequence: arrive closed from the corner, then unfold while sliding to centre. */
.inv[open] .inv-book { animation: inv-book 2.2s cubic-bezier(.3, .7, .2, 1) both; }
.inv[open] .inv-cover { animation: inv-unfold 2.2s cubic-bezier(.45, .1, .2, 1) both; }
.inv[open] .inv-right::after { animation: inv-shade 2.2s ease both; }
.inv[open] .inv-in > * { animation: inv-up .7s ease both; animation-delay: 1.7s; }
.inv[open] .inv-in > :nth-child(n+3) { animation-delay: 1.85s; }
.inv[open] .inv-in > :nth-child(n+4) { animation-delay: 2s; }
@keyframes inv-book { 0% { opacity: 0; transform: translate(30vw, 30vh) translateX(-25%) scale(.12) rotate(-14deg); } 28% { opacity: 1; transform: translateX(-25%) scale(1) rotate(0); } 42% { transform: translateX(-25%); } 100% { transform: none; } }
@keyframes inv-unfold { 0%, 42% { transform: rotateY(0); } 100% { transform: rotateY(-180deg); } }
@keyframes inv-shade { 0%, 42% { opacity: 1; } 100% { opacity: 0; } }
@keyframes inv-up { from { opacity: 0; transform: translateY(12px); } }
.inv-book { transform: none; }
.inv-cover { transform: rotateY(-180deg); }
@media (max-width: 680px) {
  .inv { height: calc(100svh - 24px); }
  .inv-book { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .inv-right, .inv-cover { grid-column: 1; grid-row: 2; }
  .inv-right { border-radius: 0 0 6px 6px; }
  .inv-right::after { background: linear-gradient(180deg, rgba(60, 30, 10, .35), transparent 40%); }
  .inv-cover { transform-origin: 50% 0; transform: rotateX(180deg); }
  .inv-front { border-radius: 0 0 6px 6px; padding: 1.2rem; }
  .inv-back { transform: rotateX(180deg); border-radius: 6px 6px 0 0; }
  .inv-in { padding: 1.4rem 1.2rem; }
  .inv-front .inv-names { font-size: 2rem; }
  .inv[open] .inv-cover { animation-name: inv-unfold-up; }
  .inv[open] .inv-book { animation-name: inv-book-up; }
  @keyframes inv-unfold-up { 0%, 42% { transform: rotateX(0); } 100% { transform: rotateX(180deg); } }
  @keyframes inv-book-up { 0% { opacity: 0; transform: translate(30vw, 30vh) translateY(-25%) scale(.12) rotate(-14deg); } 28% { opacity: 1; transform: translateY(-25%) scale(1) rotate(0); } 42% { transform: translateY(-25%); } 100% { transform: none; } }
}
/* Closing: the cover folds shut, then the card shrinks back into the corner. */
.inv.closing .inv-book { animation: inv-book-out 1.1s cubic-bezier(.5, 0, .7, .4) both; }
.inv.closing .inv-cover { animation: inv-fold 1.1s cubic-bezier(.45, .1, .2, 1) both; }
.inv.closing .inv-right::after { animation: inv-shade-in 1.1s ease both; }
.inv.closing .inv-in > * { animation: none; }
.inv.closing::backdrop { animation: inv-fade 1.1s ease both; }
@keyframes inv-fold { 0% { transform: rotateY(-180deg); } 50%, 100% { transform: rotateY(0); } }
@keyframes inv-shade-in { 0% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes inv-book-out { 0% { transform: none; } 50% { opacity: 1; transform: translateX(-25%); } 100% { opacity: 0; transform: translate(30vw, 30vh) translateX(-25%) scale(.12) rotate(-14deg); } }
@keyframes inv-fade { to { opacity: 0; } }
@media (max-width: 680px) {
  .inv.closing .inv-cover { animation-name: inv-fold-up; }
  .inv.closing .inv-book { animation-name: inv-book-out-up; }
  @keyframes inv-fold-up { 0% { transform: rotateX(180deg); } 50%, 100% { transform: rotateX(0); } }
  @keyframes inv-book-out-up { 0% { transform: none; } 50% { opacity: 1; transform: translateY(-25%); } 100% { opacity: 0; transform: translate(30vw, 30vh) translateY(-25%) scale(.12) rotate(-14deg); } }
}
@media (prefers-reduced-motion: reduce) { .inv-card, .inv-glow, .inv-spark, .inv-label, .inv[open] .inv-book, .inv[open] .inv-cover, .inv[open] .inv-right::after, .inv[open] .inv-in > *, .inv-names { animation: none; } }
.countdown .closing { text-shadow: 0 1px 3px #050f2a, 0 0 14px #050f2a, 0 0 24px #050f2a; color: #fff3e2; }

.hero-fw { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------- Royal finish for the invitation ---------- */
.inv-face, .inv-page { background-color: #fbf3e0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a65a' stroke-width='1.6'%3E%3Cpath d='M4 76V20Q4 4 20 4h56'/%3E%3Cpath d='M10 76V24Q10 10 24 10h52' stroke-width='.8'/%3E%3Cpath d='M16 40q14-2 16-18q2 14 18 16q-16 2-18 18q-2-14-16-16z' fill='%23d8b56a' fill-opacity='.35'/%3E%3Ccircle cx='32' cy='32' r='3' fill='%23c9a65a'/%3E%3Cpath d='M20 4q6 10 0 20M4 20q10 6 20 0'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg transform='rotate(90 40 40)' fill='none' stroke='%23c9a65a' stroke-width='1.6'%3E%3Cpath d='M4 76V20Q4 4 20 4h56'/%3E%3Cpath d='M10 76V24Q10 10 24 10h52' stroke-width='.8'/%3E%3Cpath d='M16 40q14-2 16-18q2 14 18 16q-16 2-18 18q-2-14-16-16z' fill='%23d8b56a' fill-opacity='.35'/%3E%3Ccircle cx='32' cy='32' r='3' fill='%23c9a65a'/%3E%3Cpath d='M20 4q6 10 0 20M4 20q10 6 20 0'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg transform='rotate(270 40 40)' fill='none' stroke='%23c9a65a' stroke-width='1.6'%3E%3Cpath d='M4 76V20Q4 4 20 4h56'/%3E%3Cpath d='M10 76V24Q10 10 24 10h52' stroke-width='.8'/%3E%3Cpath d='M16 40q14-2 16-18q2 14 18 16q-16 2-18 18q-2-14-16-16z' fill='%23d8b56a' fill-opacity='.35'/%3E%3Ccircle cx='32' cy='32' r='3' fill='%23c9a65a'/%3E%3Cpath d='M20 4q6 10 0 20M4 20q10 6 20 0'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg transform='rotate(180 40 40)' fill='none' stroke='%23c9a65a' stroke-width='1.6'%3E%3Cpath d='M4 76V20Q4 4 20 4h56'/%3E%3Cpath d='M10 76V24Q10 10 24 10h52' stroke-width='.8'/%3E%3Cpath d='M16 40q14-2 16-18q2 14 18 16q-16 2-18 18q-2-14-16-16z' fill='%23d8b56a' fill-opacity='.35'/%3E%3Ccircle cx='32' cy='32' r='3' fill='%23c9a65a'/%3E%3Cpath d='M20 4q6 10 0 20M4 20q10 6 20 0'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 50%, rgba(201, 166, 90, .09) 0 2px, transparent 3px), radial-gradient(ellipse at 30% 15%, #fffaf0, #f6e9cc 60%, #ecd9b0);
  background-size: 70px 70px, 70px 70px, 70px 70px, 70px 70px, 22px 22px, 100% 100%;
  background-position: 12px 12px, calc(100% - 12px) 12px, 12px calc(100% - 12px), calc(100% - 12px) calc(100% - 12px), 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  box-shadow: inset 0 0 0 1px #b98a4e, inset 0 0 0 7px #fbf3e0, inset 0 0 0 9px #c9a65a, inset 0 0 0 11px #fbf3e0, inset 0 0 0 12px #e3cf9f, inset 0 0 60px rgba(185, 138, 78, .18); }
/* Cover: burgundy velvet with gold. */
.inv-front { background-color: #6e1a2a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23e3bf74' stroke-width='1.6'%3E%3Cpath d='M4 76V20Q4 4 20 4h56'/%3E%3Cpath d='M10 76V24Q10 10 24 10h52' stroke-width='.8'/%3E%3Cpath d='M16 40q14-2 16-18q2 14 18 16q-16 2-18 18q-2-14-16-16z' fill='%23f3d58c' fill-opacity='.35'/%3E%3Ccircle cx='32' cy='32' r='3' fill='%23e3bf74'/%3E%3Cpath d='M20 4q6 10 0 20M4 20q10 6 20 0'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg transform='rotate(90 40 40)' fill='none' stroke='%23e3bf74' stroke-width='1.6'%3E%3Cpath d='M4 76V20Q4 4 20 4h56'/%3E%3Cpath d='M10 76V24Q10 10 24 10h52' stroke-width='.8'/%3E%3Cpath d='M16 40q14-2 16-18q2 14 18 16q-16 2-18 18q-2-14-16-16z' fill='%23f3d58c' fill-opacity='.35'/%3E%3Ccircle cx='32' cy='32' r='3' fill='%23e3bf74'/%3E%3Cpath d='M20 4q6 10 0 20M4 20q10 6 20 0'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg transform='rotate(270 40 40)' fill='none' stroke='%23e3bf74' stroke-width='1.6'%3E%3Cpath d='M4 76V20Q4 4 20 4h56'/%3E%3Cpath d='M10 76V24Q10 10 24 10h52' stroke-width='.8'/%3E%3Cpath d='M16 40q14-2 16-18q2 14 18 16q-16 2-18 18q-2-14-16-16z' fill='%23f3d58c' fill-opacity='.35'/%3E%3Ccircle cx='32' cy='32' r='3' fill='%23e3bf74'/%3E%3Cpath d='M20 4q6 10 0 20M4 20q10 6 20 0'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg transform='rotate(180 40 40)' fill='none' stroke='%23e3bf74' stroke-width='1.6'%3E%3Cpath d='M4 76V20Q4 4 20 4h56'/%3E%3Cpath d='M10 76V24Q10 10 24 10h52' stroke-width='.8'/%3E%3Cpath d='M16 40q14-2 16-18q2 14 18 16q-16 2-18 18q-2-14-16-16z' fill='%23f3d58c' fill-opacity='.35'/%3E%3Ccircle cx='32' cy='32' r='3' fill='%23e3bf74'/%3E%3Cpath d='M20 4q6 10 0 20M4 20q10 6 20 0'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 6px), radial-gradient(ellipse at 50% 35%, #9a2f45, #6e1a2a 60%, #4a0f1c);
  box-shadow: inset 0 0 0 1px #e3bf74, inset 0 0 0 7px #6e1a2a, inset 0 0 0 9px #e3bf74, inset 0 0 0 11px #6e1a2a, inset 0 0 0 12px rgba(227, 191, 116, .5), inset 0 0 80px rgba(0, 0, 0, .35); color: #f3e2b8; }
.inv-front::before, .inv-front::after { display: none; }
.inv-front .inv-open, .inv-front .inv-req { color: #f3e2b8; }
.inv-front .inv-parents { color: #e3cf9f; }
.inv-front .inv-names { background: linear-gradient(100deg, #c9a65a 20%, #fff0c4 45%, #ffffff 50%, #fff0c4 55%, #c9a65a 80%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-family: 'Cinzel Decorative', var(--serif); font-size: clamp(1.9rem, 5vw, 2.8rem); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.inv-front .inv-names span { font-family: var(--serif); font-style: italic; }
.inv-medal { display: block; width: 104px; height: 104px; margin: 0 auto .6rem; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff6dc, #f3d58c 70%, #c9a65a);
  box-shadow: 0 0 0 3px #e3bf74, 0 0 0 6px rgba(110, 26, 42, .9), 0 0 0 8px #c9a65a, 0 6px 18px rgba(0, 0, 0, .35); }
.inv-medal img { width: 100%; height: auto; margin-top: 4px; }
.inv-medal.sm { width: 74px; height: 74px; box-shadow: 0 0 0 2px #c9a65a, 0 0 0 5px #fbf3e0, 0 0 0 6px #c9a65a; }
.inv-crest { display: grid; place-items: center; grid-auto-flow: column; gap: 2px; width: 74px; height: 74px; margin: 0 auto .4rem; border-radius: 50%; font-family: 'Cinzel Decorative', var(--serif); font-size: 1.3rem; color: #fff0c4;
  background: radial-gradient(circle at 35% 30%, #a8384e, #6e1a2a 75%); box-shadow: 0 0 0 2px #c9a65a, 0 0 0 5px #fbf3e0, 0 0 0 6px #c9a65a; }
.inv-crest i { font-style: normal; font-size: .8rem; color: #e3bf74; }
.inv-in .inv-city { font-family: 'Cinzel Decorative', var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: .25em; background: linear-gradient(180deg, #b8873a, #e3bf74 50%, #8a5a20); -webkit-background-clip: text; background-clip: text; color: transparent; }
.inv-in .inv-ev { border-top: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cg stroke='%23c9a65a' fill='none'%3E%3Cpath d='M0 6H80M120 6H200'/%3E%3Cpath d='M80 6q10-8 20 0q10 8 20 0'/%3E%3C/g%3E%3Ccircle cx='100' cy='6' r='2.5' fill='%23c9a65a'/%3E%3C/svg%3E") no-repeat top center / 180px 12px; padding-top: 1.4rem; }
.inv-in .inv-ev-t { font-family: 'Cinzel Decorative', var(--serif); font-weight: 700; letter-spacing: .14em; font-size: .95rem; color: #6e1a2a; }
.inv-in .inv-ev-when { font-weight: 600; color: #3a1d27; }
.inv-in .inv-links a { border: 1px solid #c9a65a; border-radius: 20px; padding: .3rem .7rem; background: linear-gradient(#fffaf0, #f3e3c2); color: #6e1a2a; }
.inv-in .inv-links a:hover { background: #6e1a2a; color: #f3d58c; }
.inv-in .inv-verse { border-top: 0; font-size: 1.1rem; color: #6e1a2a; }

/* End of the reception scroll: stars and fireworks over the dark screen, matching the lawn's sky below. */
.t-nightsky { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: var(--fade); }
.t-nightsky i { position: absolute; inset: 0; }
.t-nightsky .tw { animation: stars 2.4s ease-in-out infinite alternate; }
.transit .t-fireworks { z-index: 7; }
.transit { z-index: 0; } /* keep its layers under the lawn that slides over it */

/* ---------- Loading screen ---------- */
body.is-loading { overflow: hidden; }
.loader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 24px; text-align: center;
  background: radial-gradient(ellipse at 50% 42%, #3a1a2a, #1d1520 60%, #0f0a14); color: #f3e2b8; transition: opacity 1s ease, transform 1.2s cubic-bezier(.6, 0, .3, 1); }
.loader.leaving { opacity: 0; transform: scale(1.15); pointer-events: none; }
.ld-mono { width: min(320px, 74vw); height: auto; overflow: visible; filter: drop-shadow(0 0 18px rgba(227, 191, 116, .25)); }
.ld-ring { fill: none; stroke: url(#ldGold); stroke-width: 2.5; stroke-dasharray: 610; stroke-dashoffset: 610; animation: ld-draw 1.8s cubic-bezier(.6, 0, .3, 1) forwards; }
.ld-ring.thin { stroke-width: 1; stroke-dasharray: 545; stroke-dashoffset: 545; animation-delay: .3s; opacity: .7; }
.ld-cross { fill: none; stroke: #e3bf74; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: ld-draw 1s .9s ease forwards; }
.ld-l, .ld-amp { text-anchor: middle; fill: transparent; stroke: url(#ldGold); stroke-width: 1.4; stroke-dasharray: 400; stroke-dashoffset: 400; animation: ld-draw 1.8s .4s ease forwards, ld-fill .8s 1.6s ease forwards; }
.ld-l { font: 700 104px 'Cinzel Decorative', 'Cormorant Garamond', serif; }
.ld-amp { font: italic 500 46px 'Cormorant Garamond', serif; animation-delay: .9s, 1.9s; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-fill { to { fill: url(#ldGold); } }
.loader.ready .ld-mono { animation: ld-glow 2.4s ease-in-out infinite; }
@keyframes ld-glow { 50% { filter: drop-shadow(0 0 30px rgba(255, 220, 150, .55)); } }
.ld-title { font-family: var(--display); letter-spacing: .4em; margin-left: .4em; font-size: clamp(.75rem, 2.6vw, .95rem); color: #e3cf9f; opacity: 0; animation: ld-in 1s 1.2s ease forwards; }
.ld-bar { width: min(260px, 66vw); height: 2px; margin-top: .6rem; background: rgba(227, 191, 116, .2); border-radius: 2px; overflow: hidden; transition: opacity .6s; }
.ld-bar span { display: block; height: 100%; background: linear-gradient(90deg, #b8873a, #fff0c4, #e3bf74); transform-origin: left; transform: scaleX(0); }
.ld-pct { font-style: italic; font-size: .95rem; color: #cdb98e; transition: opacity .6s; }
.loader.ready .ld-bar, .loader.ready .ld-pct { opacity: 0; height: 0; margin: 0; }
.ld-enter { display: grid; justify-items: center; gap: .15rem; margin-top: .4rem; padding: .85rem 2rem .7rem; border: 1px solid #e3bf74; border-radius: 40px; cursor: pointer;
  background: linear-gradient(100deg, #6e1a2a, #9a2f45 50%, #6e1a2a); background-size: 200% 100%; color: #fff0c4; font: italic 600 1.25rem var(--serif);
  box-shadow: 0 0 0 4px rgba(227, 191, 116, .15), 0 10px 30px rgba(0, 0, 0, .4); animation: ld-in .8s ease both, inv-shimmer 4s linear infinite, ld-pulse 2.2s ease-in-out infinite; }
.ld-enter small { font: 400 .62rem var(--display); letter-spacing: .25em; color: #e3cf9f; font-style: normal; }
.ld-enter:hover, .ld-enter:focus-visible { outline: none; box-shadow: 0 0 0 6px rgba(227, 191, 116, .3), 0 10px 30px rgba(0, 0, 0, .4); }
@keyframes ld-pulse { 50% { box-shadow: 0 0 0 10px rgba(227, 191, 116, 0), 0 10px 30px rgba(0, 0, 0, .4); } }
@keyframes ld-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ld-sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ld-sparks i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffe39a; box-shadow: 0 0 8px #ffd27a; transform: scale(var(--s)); animation: ld-rise linear infinite; opacity: 0; }
@keyframes ld-rise { 0% { transform: translateY(0) scale(var(--s)); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-105vh) scale(var(--s)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ld-ring, .ld-cross, .ld-l, .ld-amp { animation: none; stroke-dashoffset: 0; fill: url(#ldGold); } .ld-sparks, .ld-enter, .loader.ready .ld-mono { animation: none; } }

/* Countdown moon: drawn in CSS so it always sits in the visible sky, whatever the screen shape. */
.countdown > .cd-moon { position: absolute; z-index: -1; left: 14%; top: 13%; width: clamp(70px, 9vw, 120px); max-width: none; aspect-ratio: 1; margin: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(185, 164, 122, .28) 0 8%, transparent 15%), radial-gradient(ellipse at 62% 24%, rgba(185, 164, 122, .22) 0 6%, transparent 13%), radial-gradient(ellipse at 48% 66%, rgba(185, 164, 122, .26) 0 11%, transparent 20%), radial-gradient(circle at 72% 62%, rgba(185, 164, 122, .2) 0 5%, transparent 11%),
    radial-gradient(circle at 38% 35%, #fffdf5, #f6ecd2 55%, #e2d2a8 85%, #c9b582);
  box-shadow: 0 0 0 1.5px rgba(255, 250, 240, .45), 0 0 40px 10px rgba(255, 240, 205, .35), 0 0 140px 50px rgba(255, 236, 190, .12); animation: cd-moon 6s ease-in-out infinite; }
@keyframes cd-moon { 50% { box-shadow: 0 0 0 1.5px rgba(255, 250, 240, .45), 0 0 54px 16px rgba(255, 240, 205, .45), 0 0 170px 64px rgba(255, 236, 190, .16); } }
@media (max-width: 700px) { .countdown > .cd-moon { left: 8%; top: 9%; } }
@media (prefers-reduced-motion: reduce) { .countdown > .cd-moon { animation: none; } }
