/* ==========================================================================
   Porumbei - two white doves fly in and hover above your photo, set in an arched window open to the sky, holding a
   silk ribbon in their beaks with two linked wedding rings hanging from it; they beat their wings harder as the page
   is scrolled. White feathers rock down the page and a distant flock crosses it now and then. A small dove with an
   olive twig above every title, a dove perched on each portrait, the family on tags hanging from a ribbon, the
   moments as airmail letters with stamp and postmark, the time left on clouds, and the doves drawing a heart at the end
   Palette: --inv-primary (the ink: slate blue, terracotta, sage or moonlight), --inv-accent (the gilt), --inv-bg, --inv-text
   script.js draws the doves and the ribbon on canvas.pb-sky, the feathers and the flock on canvas.pb-air
   ========================================================================== */

.porumbei {
    --pb-script: 'Beau Rivage', 'Segoe Script', cursive;
    --pb-ink-soft: color-mix(in srgb, var(--inv-text) 66%, var(--inv-bg));
    --pb-line: color-mix(in srgb, var(--inv-primary) 20%, transparent);
    --pb-gilt: color-mix(in srgb, var(--inv-accent) 82%, var(--inv-text));
    --pb-sky: color-mix(in srgb, var(--inv-primary) 16%, var(--inv-bg));
    --pb-cloud: color-mix(in srgb, var(--inv-surface) 62%, #fff);
    --pb-dove: #fff;
    --pb-dove-shade: color-mix(in srgb, var(--inv-primary) 12%, #fff);
    --pb-dove-edge: color-mix(in srgb, var(--inv-primary) 72%, transparent);
    --pb-shadow: 0 1px 2px color-mix(in srgb, var(--inv-text) 8%, transparent), 0 26px 50px -34px color-mix(in srgb, var(--inv-primary) 60%, transparent);
    --kit-radius: 14px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--pb-line);
    font-family: var(--inv-font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    background: linear-gradient(to bottom, var(--pb-sky), var(--inv-bg) 900px) no-repeat, var(--inv-bg);
    overflow-x: clip;
}
.pb-air { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.porumbei h1, .porumbei h2, .porumbei h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.2; }
:where(.porumbei) :is(h1, h2, h3) { margin: 0; }
:where(.porumbei) p { margin: 0 0 .9em; }
.porumbei strong, .porumbei b { font-weight: 600; }
.porumbei a { color: var(--inv-primary); }
.pb-kicker { font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--pb-gilt); margin: 0 0 10px; }
.pb-role { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--pb-ink-soft); margin: 0 0 4px; }
.pb-names-line { font-family: var(--inv-font-heading); font-size: 1.3rem; margin: 0; }
.pb-hero, .pb-main, .pb-footer { position: relative; z-index: 1; }
.pb-hero { z-index: 2; }
.pb-card { background: var(--inv-surface); border-radius: 22px; box-shadow: var(--pb-shadow), 0 0 0 1px var(--pb-line); }

/* the dove: shared by the title ornament, the perched doves, the stamps and the finale */
.pb-dove-body, .pb-dove-tail, .pb-dove-wing { fill: var(--pb-dove); stroke: var(--pb-dove-edge); stroke-width: 1.5; stroke-linejoin: round; }
.pb-dove-wing.is-far { fill: var(--pb-dove-shade); }
.pb-dove-quill { fill: none; stroke: var(--pb-dove-edge); stroke-width: .8; stroke-linecap: round; }
.pb-dove-beak { fill: color-mix(in srgb, #e39a7a 70%, var(--inv-accent)); }
.pb-dove-eye { fill: var(--inv-text); }

/* ---------- Navigation ---------- */
.pb-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 18px; }
.pb-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.pb-nav .kit-nav-links a { font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--inv-text); padding: 6px 0; border-bottom: 1px solid transparent; }
.pb-nav .kit-nav-links a:hover, .pb-nav .kit-nav-links a.is-current { border-color: var(--inv-accent); color: var(--inv-primary); }
.pb-nav .kit-nav-brand { font-family: var(--pb-script); font-size: 1.8rem; color: var(--inv-primary); }
.pb-nav.is-stuck { justify-content: space-between; align-items: center; padding: 6px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--inv-bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--pb-line); }
.porumbei .kit-to-top { background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--pb-line); }
@media (max-width: 899px) {
    .pb-nav { justify-content: flex-end; padding: 12px; }
    .pb-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--pb-line); font-size: 1.2rem; }
    .pb-nav .kit-nav-links { display: none; }
    .pb-nav.is-open .kit-nav-links {
        display: flex; flex-direction: column; gap: 12px; position: absolute; top: 66px; left: 12px; right: 12px;
        padding: 24px; border-radius: 18px; background: var(--inv-surface); box-shadow: var(--pb-shadow);
    }
    .pb-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero: the window to the sky, the doves above it ---------- */
/* overflow-x: the doves fly in from beyond the edges; the hero clips them on phones */
.pb-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: clamp(176px, 22vw, 230px) 16px 56px; overflow: hidden; overflow: clip; }
.pb-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.pb-clouds { position: absolute; inset: 0; pointer-events: none; }
.pb-clouds i { position: absolute; width: 46vw; max-width: 560px; aspect-ratio: 2.4; border-radius: 50%; background: radial-gradient(closest-side, var(--pb-cloud), transparent); filter: blur(8px); opacity: .85; animation: pb-drift 26s ease-in-out infinite alternate; }
.pb-clouds i:nth-child(1) { left: -10%; top: 12%; }
.pb-clouds i:nth-child(2) { right: -12%; top: 30%; width: 54vw; animation-duration: 32s; animation-delay: -9s; }
.pb-clouds i:nth-child(3) { left: 20%; top: 64%; width: 40vw; opacity: .6; animation-duration: 38s; animation-delay: -18s; }
@keyframes pb-drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
.pb-hero-inner { position: relative; z-index: 2; width: min(980px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.pb-window { position: relative; z-index: 1; width: min(400px, 76vw); aspect-ratio: 4 / 5; margin: 0; padding: 9px; border-radius: 999px 999px 18px 18px; background: var(--inv-surface); box-shadow: var(--pb-shadow), 0 0 0 1px var(--pb-line), inset 0 0 0 2px color-mix(in srgb, var(--inv-accent) 45%, transparent); }
.pb-window img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 12px 12px; }
.kit-js .pb-window { animation: pb-rise 1.4s cubic-bezier(.2, .7, .2, 1) .2s both; }
/* a bank of soft cloud at the foot of the window */
.pb-cloudbank { position: relative; z-index: 2; width: min(560px, 104vw); height: 92px; margin-top: -58px; pointer-events: none;
    background:
        radial-gradient(closest-side, var(--pb-cloud) 62%, transparent) 2% 70% / 30% 74% no-repeat,
        radial-gradient(closest-side, var(--pb-cloud) 62%, transparent) 24% 30% / 30% 92% no-repeat,
        radial-gradient(closest-side, var(--pb-cloud) 62%, transparent) 50% 60% / 34% 100% no-repeat,
        radial-gradient(closest-side, var(--pb-cloud) 62%, transparent) 76% 34% / 30% 90% no-repeat,
        radial-gradient(closest-side, var(--pb-cloud) 62%, transparent) 98% 72% / 28% 72% no-repeat;
    filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--inv-primary) 14%, transparent)); }
.pb-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; margin-top: 4px; }
.porumbei .pb-names { font-family: var(--pb-script); font-weight: 400; font-size: clamp(3.4rem, 13vw, 6.4rem); line-height: 1.15; color: var(--inv-primary); display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .22em; overflow-wrap: anywhere; margin: 0 0 8px; }
.pb-and { font-size: .5em; color: var(--pb-gilt); }
.pb-hero-date { font-family: var(--inv-font-heading); font-size: 1.4rem; margin: 0 0 2px; }
.pb-hero-place { font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--pb-ink-soft); margin: 0; }
.porumbei .pb-subtitle { max-width: 44ch; margin: 18px auto 0; color: var(--pb-ink-soft); }
@keyframes pb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.kit-js .pb-hero-text > * { animation: pb-rise 1.1s ease 1.4s both; }
.kit-js .pb-hero-text > :nth-child(n+3) { animation-delay: 2s; }

/* ---------- The small dove above titles ---------- */
.pb-dove { display: block; width: 86px; margin: 0 auto 6px; overflow: visible; }
.pb-dove-twig { fill: none; stroke: color-mix(in srgb, #6b7d4a 80%, var(--inv-text)); stroke-width: 1.2; stroke-linecap: round; }
.pb-dove-leaf { fill: color-mix(in srgb, #8a9a5b 85%, var(--inv-text)); }
.pb-dove-olive { fill: color-mix(in srgb, #4f5a2e 80%, var(--inv-text)); }
.pb-dove-wing-near { transform-box: view-box; transform-origin: 41px 28px; }
.pb-dove .pb-dove-wing.is-far { transform-box: view-box; transform-origin: 50px 28px; }
.kit-js .is-visible .pb-dove, .kit-js .pb-welcome.is-visible .pb-dove { animation: pb-hover 3.6s ease-in-out infinite alternate; }
.kit-js .is-visible .pb-dove .pb-dove-wing-near, .kit-js .pb-welcome.is-visible .pb-dove .pb-dove-wing-near,
.kit-js .is-visible .pb-dove .pb-dove-wing.is-far, .kit-js .pb-welcome.is-visible .pb-dove .pb-dove-wing.is-far { animation: pb-flap .28s ease-in-out .3s 8 alternate; }
@keyframes pb-flap { to { transform: scaleY(-.55); } }
@keyframes pb-hover { from { transform: translateY(2px) rotate(-2deg); } to { transform: translateY(-3px) rotate(2deg); } }

/* ---------- Sections ---------- */
.pb-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.pb-section { padding-top: clamp(84px, 11vw, 130px); }
.pb-title { margin: 0 auto clamp(30px, 4.5vw, 46px); text-align: center; }
.pb-title h2 { font-size: clamp(2rem, 5.6vw, 2.9rem); }
.pb-welcome { text-align: center; max-width: 720px; margin: 0 auto; }
.pb-welcome p { font-size: 1.06rem; }
.porumbei .pb-welcome-title { font-family: var(--pb-script); font-weight: 400; font-size: clamp(3rem, 9vw, 4.2rem); line-height: 1.2; color: var(--inv-primary); margin-bottom: 14px; }
.pb-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }
.pb-lead { text-align: center; font-family: var(--inv-font-heading); font-style: italic; font-size: 1.2rem; color: var(--pb-ink-soft); max-width: 40ch; margin: 0 auto 34px; }

/* Couple: round portraits, a dove perched on each frame */
.pb-couple-grid { display: grid; gap: 64px; justify-items: center; }
.pb-person { text-align: center; max-width: 380px; display: grid; justify-items: center; }
.pb-portrait { position: relative; width: min(240px, 62vw); margin: 34px 0 22px; }
.pb-round { margin: 0; aspect-ratio: 1; padding: 8px; border-radius: 50%; background: var(--inv-surface); box-shadow: var(--pb-shadow), 0 0 0 1px var(--pb-line), inset 0 0 0 2px color-mix(in srgb, var(--inv-accent) 50%, transparent); }
.pb-round img, .pb-round .pb-initial { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pb-initial { display: grid; place-items: center; background: var(--pb-sky); font-family: var(--pb-script); font-size: 5rem; color: var(--inv-primary); }
.pb-perched { position: absolute; top: -6px; right: 4%; width: 68px; overflow: visible; filter: drop-shadow(0 3px 3px color-mix(in srgb, var(--inv-primary) 25%, transparent)); }
.pb-portrait.is-right .pb-perched { right: auto; left: 4%; transform: scaleX(-1); }
.pb-perched-feet { fill: none; stroke: color-mix(in srgb, #e39a7a 70%, var(--inv-accent)); stroke-width: 1.6; stroke-linecap: round; }
.pb-perched-bird { transform-box: view-box; transform-origin: 33px 46px; }
.kit-js .is-visible .pb-perched-bird { animation: pb-peck 5.5s ease-in-out 1s infinite; }
.kit-js .is-visible.pb-person:nth-child(2) .pb-perched-bird { animation-delay: 3.4s; }
@keyframes pb-peck { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(6deg); } 82% { transform: rotate(-3deg) translateY(-1px); } 88% { transform: rotate(4deg); } }
.pb-person h3 { font-size: 1.7rem; margin: 4px 0 8px; }
.pb-person p { color: var(--pb-ink-soft); }
@media (min-width: 760px) { .pb-couple-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Family: tags hanging on threads from a silk ribbon (on phones, one below the other, each from the one above) */
.pb-garland { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; padding-top: 40px; }
.pb-garland::before { content: ""; position: absolute; top: 0; left: 50%; width: min(100%, 320px); height: 6px; transform: translateX(-50%); border-radius: 3px;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--inv-accent) 55%, #fff), var(--inv-accent) 60%, color-mix(in srgb, var(--inv-accent) 70%, #000)); box-shadow: 0 3px 6px color-mix(in srgb, var(--inv-text) 14%, transparent); }
.pb-tag { position: relative; width: min(100%, 300px); padding: 22px 22px 18px; text-align: center; background: var(--inv-surface); border-radius: 14px; box-shadow: var(--pb-shadow), 0 0 0 1px var(--pb-line); transform-origin: 50% -40px; }
.pb-tag::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 40px; background: color-mix(in srgb, var(--inv-accent) 80%, var(--inv-text)); }
.pb-tag::after { content: ""; position: absolute; left: 50%; top: 9px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--inv-accent); }
.pb-garland .pb-tag + .pb-tag::before { height: 30px; }
.kit-js .pb-family.is-visible .pb-tag { animation: pb-swing 4.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); }
@keyframes pb-swing { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
@media (min-width: 760px) {
    .pb-garland { flex-direction: row; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
    .pb-garland::before { width: min(100%, 980px); }
    .pb-tag { width: 270px; }
    .pb-garland .pb-tag + .pb-tag::before { height: 40px; }
    .pb-tag:nth-child(even) { margin-top: 26px; transform-origin: 50% -66px; }
    .pb-tag:nth-child(even)::before { height: 66px !important; }
}

/* Story */
.pb-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 8vw, 88px); }
.pb-chapter { display: grid; gap: 30px; align-items: center; }
.pb-chapter-photo { margin: 0; aspect-ratio: 4 / 3; padding: 8px; border-radius: 26px; background: var(--inv-surface); box-shadow: var(--pb-shadow), 0 0 0 1px var(--pb-line); }
.pb-chapter-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.pb-chapter-text h3 { font-size: 1.85rem; margin-bottom: 8px; }
.pb-chapter-text p:not(.pb-kicker) { color: var(--pb-ink-soft); }
@media (min-width: 900px) {
    .pb-chapter { grid-template-columns: 1fr 1fr; gap: 60px; }
    .pb-chapter:nth-child(even) .pb-chapter-photo { order: 2; }
}

/* Programme: airmail letters, a striped border, the hour postmarked over a stamp with a dove */
.pb-letters { list-style: none; margin: 0 auto; padding: 0; max-width: 700px; display: grid; gap: 30px; }
.pb-letter { padding: 9px; border-radius: 10px; box-shadow: var(--pb-shadow);
    background: repeating-linear-gradient(-45deg, var(--inv-primary) 0 14px, var(--inv-surface) 14px 22px, color-mix(in srgb, #c8504a 70%, var(--inv-accent)) 22px 36px, var(--inv-surface) 36px 44px); }
.pb-letter:nth-child(3n + 2) { transform: rotate(.6deg); }
.pb-letter:nth-child(3n) { transform: rotate(-.5deg); }
.pb-letter-inner { position: relative; padding: 26px clamp(20px, 4vw, 34px) 22px; text-align: left; background: var(--inv-surface); border-radius: 4px; }
.pb-stamp { position: absolute; top: 18px; right: 18px; width: 66px; height: 80px; padding: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--inv-accent) 14%, var(--inv-surface));
    /* perforated edges: a field of holes, covered in the middle by a solid layer (mask layers add up) */
    -webkit-mask: radial-gradient(circle at 3.5px 3.5px, transparent 2.4px, #000 2.8px) -3.5px -3.5px / 7px 7px, linear-gradient(#000 0 0) center / calc(100% - 8px) calc(100% - 8px) no-repeat;
    mask: radial-gradient(circle at 3.5px 3.5px, transparent 2.4px, #000 2.8px) -3.5px -3.5px / 7px 7px, linear-gradient(#000 0 0) center / calc(100% - 8px) calc(100% - 8px) no-repeat;
    box-shadow: inset 0 0 0 5px var(--inv-surface), inset 0 0 0 6px color-mix(in srgb, var(--inv-primary) 40%, transparent); }
.pb-stamp svg { width: 100%; height: auto; transform: rotate(-8deg); }
.pb-stamp-ink { fill: var(--inv-primary); }
.pb-stamp-twig { fill: none; stroke: var(--inv-primary); stroke-width: 2; stroke-linecap: round; }
/* the postmark: a ring with the hour, wavy cancellation lines trailing to its left */
.pb-postmark { position: absolute; top: 34px; right: 76px; width: 70px; height: 70px; margin: 0; display: grid; place-items: center; border-radius: 50%; transform: rotate(-12deg);
    color: color-mix(in srgb, var(--inv-text) 62%, transparent); box-shadow: 0 0 0 2px currentColor, inset 0 0 0 5px transparent, inset 0 0 0 6px currentColor; }
.pb-postmark span { font-family: var(--inv-font-heading); font-size: 1.12rem; color: var(--inv-text); font-variant-numeric: tabular-nums; }
.pb-postmark::after { content: ""; position: absolute; right: 100%; top: 18px; width: 54px; height: 34px; opacity: .8;
    background: radial-gradient(circle at 50% 0, transparent 5.4px, currentColor 5.8px 6.8px, transparent 7.2px) 0 0 / 14px 8px repeat-x,
        radial-gradient(circle at 50% 0, transparent 5.4px, currentColor 5.8px 6.8px, transparent 7.2px) 0 12px / 14px 8px repeat-x,
        radial-gradient(circle at 50% 0, transparent 5.4px, currentColor 5.8px 6.8px, transparent 7.2px) 0 24px / 14px 8px repeat-x;
    background-repeat: repeat-x; background-size: 14px 8px; }
.pb-airmail { font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--pb-gilt); margin: 0 150px 12px 0; }
.pb-letter h3 { font-size: clamp(1.45rem, 4.4vw, 1.8rem); margin: 0 150px 4px 0; }
.pb-letter-date { font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 12px; }
.pb-letter-place { font-weight: 600; margin: 0; }
.pb-letter-address, .pb-letter-notes { color: var(--pb-ink-soft); margin: 0; }
.pb-letter-notes { font-style: italic; margin-top: 6px; }
.pb-letter .kit-event-actions { margin-top: 14px; }
@media (max-width: 559px) {
    .pb-stamp { top: 14px; right: 14px; width: 54px; height: 66px; padding: 7px; }
    .pb-postmark { top: 30px; right: 60px; width: 58px; height: 58px; }
    .pb-postmark span { font-size: 1rem; }
    .pb-postmark::after { display: none; }
    .pb-letter h3 { margin-right: 112px; }
    .pb-airmail { margin-right: 112px; }
}
.porumbei .kit-button { border-radius: 999px; border: 1px solid color-mix(in srgb, var(--inv-primary) 45%, transparent); color: var(--inv-primary); background: transparent; font-size: .78rem; font-weight: 500; padding: 8px 18px; text-decoration: none; }
.porumbei .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: each number on a small cloud, the clouds floating */
.pb-countdown { text-align: center; }
.pb-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px clamp(4px, 2vw, 18px); margin-top: 14px; }
.pb-countdown .kit-countdown-unit { --c: var(--pb-cloud); width: clamp(76px, 21vw, 136px); min-width: 0; aspect-ratio: 1.6; padding: clamp(14px, 4vw, 22px) 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background:
        radial-gradient(closest-side, var(--c) 96%, transparent) 4% 80% / 40% 52% no-repeat,
        radial-gradient(closest-side, var(--c) 96%, transparent) 32% 26% / 46% 66% no-repeat,
        radial-gradient(closest-side, var(--c) 96%, transparent) 70% 34% / 42% 60% no-repeat,
        radial-gradient(closest-side, var(--c) 96%, transparent) 97% 80% / 36% 48% no-repeat,
        radial-gradient(closest-side, var(--c) 96%, transparent) 50% 100% / 88% 52% no-repeat;
    filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--inv-primary) 18%, transparent)); }
.kit-js .pb-countdown.is-visible .kit-countdown-unit { animation: pb-float 4s ease-in-out infinite alternate; }
.kit-js .pb-countdown.is-visible .kit-countdown-unit:nth-child(2) { animation-delay: -1s; }
.kit-js .pb-countdown.is-visible .kit-countdown-unit:nth-child(3) { animation-delay: -2.2s; }
.kit-js .pb-countdown.is-visible .kit-countdown-unit:nth-child(4) { animation-delay: -3.1s; }
@keyframes pb-float { from { transform: translateY(3px); } to { transform: translateY(-5px); } }
.pb-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-size: clamp(1.4rem, 5.6vw, 2.2rem); line-height: 1; color: var(--inv-primary); font-variant-numeric: tabular-nums; }
.pb-countdown .kit-countdown-label { margin-top: 3px; opacity: 1; color: var(--pb-ink-soft); font-size: .56rem; font-weight: 500; letter-spacing: .14em; }

/* Gallery */
.pb-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.pb-gallery-grid.kit-gallery a { aspect-ratio: 4 / 5; padding: 7px; border-radius: 22px; background: var(--inv-surface); box-shadow: var(--pb-shadow), 0 0 0 1px var(--pb-line); }
.pb-gallery-grid.kit-gallery a:nth-child(3n + 2) { border-radius: 999px 999px 22px 22px; }
.pb-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.pb-gallery-grid.kit-gallery a:nth-child(3n + 2) img { border-radius: 999px 999px 16px 16px; }
@media (min-width: 760px) { .pb-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP */
.pb-reply { max-width: 700px; margin: 0 auto; padding: clamp(42px, 6vw, 62px) clamp(26px, 6vw, 58px); }
.porumbei .inv-rsvp__intro { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.14rem; }
.porumbei .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--pb-gilt); }

/* Info, contact */
.pb-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pb-info-item { padding: 32px 26px 20px; text-align: center; }
.pb-info-item h3 { font-size: 1.4rem; color: var(--inv-primary); margin-bottom: 8px; }
.pb-faq { max-width: 720px; margin: 46px auto 0; text-align: center; }
.pb-faq details { text-align: left; border-bottom: 1px solid var(--pb-line); }
.pb-faq details:first-of-type { border-top: 1px solid var(--pb-line); }
.pb-faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 6px; position: relative; font-family: var(--inv-font-heading); font-size: 1.14rem; }
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid var(--inv-primary); border-bottom: 1.5px solid var(--inv-primary); transform: rotate(45deg); transition: transform .35s ease, margin .35s ease; }
.pb-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.pb-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; }
.pb-faq details p { padding: 0 6px; color: var(--pb-ink-soft); }
.pb-faq details p:last-child { padding-bottom: 16px; }
.pb-contact { text-align: center; }
.pb-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.pb-contact-person a { text-decoration: none; }

/* ---------- Footer: the doves draw a heart ---------- */
.pb-footer { text-align: center; padding: clamp(100px, 14vw, 160px) 16px 70px; overflow-x: hidden; overflow-x: clip; }
.pb-heart { position: relative; width: 240px; height: 200px; margin: 0 auto 18px; }
.pb-heart-trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pb-heart-trail path { fill: none; stroke: var(--inv-accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .8; }
.pb-heart-dove { position: absolute; left: 0; top: 0; width: 60px; offset-rotate: 0deg; offset-distance: 100%; }
.pb-heart-dove svg { display: block; width: 100%; height: auto; overflow: visible; }
.pb-heart-dove.is-left { offset-path: path('M120 178C60 140 18 104 22 64C26 30 64 18 92 38C104 47 114 58 120 70'); offset-anchor: 86% 46%; }
.pb-heart-dove.is-right { offset-path: path('M120 178C180 140 222 104 218 64C214 30 176 18 148 38C136 47 126 58 120 70'); offset-anchor: 14% 46%; }
.pb-heart-dove.is-right svg { transform: scaleX(-1); }
.kit-js .pb-heart-trail path { stroke-dashoffset: 1; }
.kit-js .pb-heart-dove { offset-distance: 0%; opacity: 0; }
.kit-js .pb-footer.is-visible .pb-heart-trail path { animation: pb-trace 3.6s cubic-bezier(.45, .05, .35, 1) .5s both; }
.kit-js .pb-footer.is-visible .pb-heart-dove { animation: pb-along 3.6s cubic-bezier(.45, .05, .35, 1) .5s both; }
/* each dove faces the way it flies: out and up round the lobe, then in toward the other at the top */
.kit-js .pb-footer.is-visible .pb-heart-dove.is-left svg { animation: pb-face-left 3.6s linear .5s both; }
.kit-js .pb-footer.is-visible .pb-heart-dove.is-right svg { animation: pb-face-right 3.6s linear .5s both; }
.kit-js .pb-footer.is-visible .pb-heart-dove .pb-dove-wing-near { animation: pb-flap .26s ease-in-out .5s 14 alternate; }
@keyframes pb-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pb-along { from { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } to { offset-distance: 100%; opacity: 1; } }
@keyframes pb-face-left { 0%, 56% { transform: scaleX(-1); } 60%, 100% { transform: none; } }
@keyframes pb-face-right { 0%, 56% { transform: none; } 60%, 100% { transform: scaleX(-1); } }
.pb-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.2rem; color: var(--pb-ink-soft); }
.porumbei .pb-footer-names { font-family: var(--pb-script); font-size: clamp(3.2rem, 10.5vw, 5rem); line-height: 1.2; color: var(--inv-primary); margin: 6px 0 10px; }
.pb-hashtag { letter-spacing: .12em; color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    .pb-clouds i, .kit-js .pb-window, .kit-js .pb-hero-text > *, .kit-js .is-visible .pb-dove, .kit-js .pb-welcome.is-visible .pb-dove,
    .kit-js .is-visible .pb-dove .pb-dove-wing-near, .kit-js .pb-welcome.is-visible .pb-dove .pb-dove-wing-near,
    .kit-js .is-visible .pb-dove .pb-dove-wing.is-far, .kit-js .pb-welcome.is-visible .pb-dove .pb-dove-wing.is-far,
    .kit-js .is-visible .pb-perched-bird, .kit-js .pb-family.is-visible .pb-tag, .kit-js .pb-countdown.is-visible .kit-countdown-unit { animation: none; }
    .kit-js .pb-heart-trail path, .kit-js .pb-footer.is-visible .pb-heart-trail path { animation: none; stroke-dashoffset: 0; }
    .kit-js .pb-heart-dove, .kit-js .pb-footer.is-visible .pb-heart-dove { animation: none; offset-distance: 100%; opacity: 1; }
    .kit-js .pb-footer.is-visible .pb-heart-dove svg, .kit-js .pb-footer.is-visible .pb-heart-dove .pb-dove-wing-near { animation: none; }
}
