/* ==========================================================================
   Baldachin - a tender christening, a baby's room painted in watercolour: the photo in an oval frame on the wall beside
   the crib under its tulle canopy, rays of morning light with golden dust floating in them, a garland of bunting that
   sways (harder with the scroll). The moon lamp on the nightstand lights up, the family in small frames hung from
   ribbons, the programme pegged to a string, the days left on plush stars, the gallery pinned like polaroids, and the
   bunny asleep in its little bed under twinkling stars at the end
   Palette: --inv-primary (the ink), --inv-accent (the soft fabric colour), --inv-bg, --inv-text.
   The room's pieces (assets/room, Pixabay, see LICENSES.md) are watercolours made transparent; on the dark palette
   (.bd-dark, set by script.js) they get back a sheet of paper. script.js draws the dust in the light (canvas.bd-motes)
   ========================================================================== */

.baldachin {
    --bd-script: 'Meow Script', 'Segoe Script', cursive;
    --bd-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --bd-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --bd-paper: color-mix(in srgb, #fffaf2 88%, var(--inv-accent));
    --bd-fabric: color-mix(in srgb, var(--inv-accent) 70%, #fff);
    --bd-wood: color-mix(in srgb, #fbf6ee 92%, var(--inv-primary));
    --bd-light: color-mix(in srgb, #fff3d6 70%, var(--inv-accent));
    /* the bunting: the palette's own colours, softened */
    --bd-f0: color-mix(in srgb, var(--inv-primary) 55%, #fff);
    --bd-f1: color-mix(in srgb, var(--inv-accent) 85%, var(--inv-primary));
    --bd-f2: color-mix(in srgb, #e9d6a8 80%, var(--inv-accent));
    --bd-f3: color-mix(in srgb, #b9cfe0 70%, var(--inv-accent));
    --bd-shadow: 0 1px 2px color-mix(in srgb, var(--inv-text) 8%, transparent), 0 24px 48px -30px color-mix(in srgb, var(--inv-text) 50%, transparent);
    --kit-radius: 14px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--bd-line);
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.04rem;
    line-height: 1.76;
    background: var(--inv-bg);
    overflow-x: clip;
}
.baldachin h1, .baldachin h2, .baldachin h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.18; }
:where(.baldachin) :is(h1, h2, h3) { margin: 0; }
:where(.baldachin) p { margin: 0 0 .9em; }
.baldachin strong { font-weight: 500; }
.baldachin a { color: var(--inv-primary); }
.bd-kicker { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.bd-role { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--bd-soft); margin: 0 0 4px; }
.bd-names { font-family: var(--inv-font-heading); font-size: 1.24rem; margin: 0; }
.bd-hero, .bd-main, .bd-footer { position: relative; }
.bd-card { position: relative; background: var(--inv-surface); border-radius: 16px; box-shadow: var(--bd-shadow), 0 0 0 1px var(--bd-line); }

/* ---------- The watercolours ---------- */
.bd-art { position: relative; display: block; }
.bd-art img { display: block; width: 100%; height: auto; }
.bd-dark .bd-art img { background: radial-gradient(closest-side, var(--bd-paper) 54%, color-mix(in srgb, var(--bd-paper) 40%, transparent) 78%, transparent 100%); }

/* ---------- The garland of bunting ---------- */
.bd-garland { position: relative; display: block; height: 70px; pointer-events: none; }
.bd-garland-string { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.bd-garland-string path { fill: none; stroke: color-mix(in srgb, var(--inv-text) 35%, transparent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.bd-flag { position: absolute; width: 26px; height: 32px; margin-left: -13px; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; rotate: var(--sway, 0deg);
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .45) 0 2px, transparent 2.5px) 0 0 / 7px 7px, var(--bd-f0);
    animation: bd-flag 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
.bd-flag--1 { background-color: var(--bd-f1); background-image: none; }
.bd-flag--2 { background-color: var(--bd-f2); background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .35) 0 3px, transparent 3px 7px); }
.bd-flag--3 { background-color: var(--bd-f3); background-image: none; }
@keyframes bd-flag { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.bd-garland--hero { position: absolute; left: -2%; right: -2%; top: 64px; height: 90px; z-index: 0; }
.bd-garland--hero .bd-flag { width: 34px; height: 42px; margin-left: -17px; }
.bd-garland--mini { width: 140px; height: 34px; margin: 0 auto 12px; }
.bd-garland--mini .bd-flag { width: 18px; height: 22px; margin-left: -9px; }

/* ---------- Navigation ---------- */
.bd-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 18px; }
.bd-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.bd-nav .kit-nav-links a { font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--inv-text); padding: 6px 0; border-bottom: 1px solid transparent; }
.bd-nav .kit-nav-links a:hover, .bd-nav .kit-nav-links a.is-current { border-color: var(--inv-primary); color: var(--inv-primary); }
.bd-nav .kit-nav-brand { font-family: var(--bd-script); font-size: 2.1rem; line-height: 1; color: var(--inv-primary); text-decoration: none; }
.bd-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(--bd-line); }
.baldachin .kit-to-top { background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--bd-line); }
@media (max-width: 899px) {
    .bd-nav { justify-content: flex-end; padding: 12px; }
    .bd-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--bd-line); font-size: 1.2rem; }
    .bd-nav .kit-nav-links { display: none; }
    .bd-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: 16px; background: var(--inv-surface); box-shadow: var(--bd-shadow);
    }
    .bd-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero: the crib, the frame, the light ---------- */
.bd-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 150px 16px 56px; overflow: hidden; }
/* rays of morning light falling from the upper left */
.bd-light { position: absolute; inset: 0; pointer-events: none; }
.bd-light i { position: absolute; top: -20%; left: 8%; width: 18%; height: 150%; rotate: -28deg; transform-origin: 50% 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bd-light) 70%, transparent), transparent 85%); filter: blur(18px); opacity: .5; animation: bd-ray 9s ease-in-out infinite; }
.bd-light i:nth-child(2) { left: 26%; width: 10%; animation-delay: -3s; opacity: .38; }
.bd-light i:nth-child(3) { left: 40%; width: 22%; animation-delay: -6s; opacity: .3; }
@keyframes bd-ray { 0%, 100% { opacity: .22; } 50% { opacity: .55; } }
.bd-dark .bd-light i { background: linear-gradient(180deg, color-mix(in srgb, var(--inv-accent) 40%, transparent), transparent 80%); }
.bd-motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bd-hero-inner { position: relative; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; text-align: center; }
.bd-scene { position: relative; width: min(460px, 94vw); }
.bd-crib img { animation: bd-in 1.4s cubic-bezier(.3, 1.1, .5, 1) .2s both; }
@keyframes bd-in { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
.bd-scene { display: grid; grid-template-columns: 34% minmax(0, 1fr); align-items: start; gap: 0; }
.bd-frame--hero { grid-column: 1; grid-row: 1; margin-top: 8%; z-index: 1; }
.bd-crib { grid-column: 1 / -1; grid-row: 1; margin-left: 22%; }
.bd-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.baldachin .bd-name { font-family: var(--bd-script); font-weight: 400; font-size: clamp(4.4rem, 17vw, 7.4rem); line-height: 1.05; color: var(--inv-primary); overflow-wrap: anywhere; margin: 0 0 8px; }
.bd-hero-date { font-family: var(--inv-font-heading); font-size: 1.34rem; margin: 0 0 2px; }
.bd-hero-place { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--bd-soft); margin: 0; }
.baldachin .bd-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--bd-soft); }
@keyframes bd-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.kit-js .bd-hero-text > * { animation: bd-up 1s ease .8s both; }
.kit-js .bd-hero-text > :nth-child(n+3) { animation-delay: 1.1s; }
@media (min-width: 900px) {
    .bd-hero { padding-top: 170px; }
    .bd-hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 60px; text-align: left; align-items: center; }
    .bd-hero-text { justify-items: start; order: -1; }
    .baldachin .bd-subtitle { margin-left: 0; }
    .bd-scene { width: min(540px, 44vw); }
}
@media (max-width: 899px) { .bd-garland--hero { top: 70px; height: 70px; } .bd-garland--hero .bd-flag { width: 24px; height: 30px; margin-left: -12px; } }

/* the oval frame and its ribbon */
.bd-frame { position: relative; margin: 0; padding-top: 30px; transform-origin: 50% 0; animation: bd-swing 7s ease-in-out infinite; }
.bd-frame.is-swung { animation: bd-swing-big 2.4s cubic-bezier(.3, .6, .4, 1) 1; }
.bd-ribbon { position: absolute; left: 50%; top: 0; width: 34px; height: 34px; margin-left: -17px; pointer-events: none;
    background:
        radial-gradient(ellipse 30% 22% at 50% 30%, var(--inv-primary) 0 90%, transparent 100%),
        radial-gradient(ellipse 28% 20% at 26% 26%, var(--bd-f0) 0 90%, transparent 100%),
        radial-gradient(ellipse 28% 20% at 74% 26%, var(--bd-f0) 0 90%, transparent 100%),
        linear-gradient(var(--bd-f0), var(--bd-f0)) 50% 40% / 3px 60% no-repeat; }
.bd-frame-wood { display: block; padding: 9px; border-radius: 50%; background: linear-gradient(135deg, #fffdf8, var(--bd-wood) 50%, color-mix(in srgb, var(--bd-wood) 85%, #8a7a66)); box-shadow: var(--bd-shadow), inset 0 0 0 2px rgba(255, 255, 255, .7), inset 0 0 0 4px color-mix(in srgb, var(--inv-primary) 14%, transparent); }
.bd-frame img, .bd-initial { display: block; width: 100%; aspect-ratio: .8; object-fit: cover; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.bd-initial { display: grid; place-items: center; background: var(--bd-paper); font-family: var(--bd-script); font-size: 4.6rem; color: var(--inv-primary); }
@keyframes bd-swing { 0%, 100% { rotate: -1.4deg; } 50% { rotate: 1.4deg; } }
@keyframes bd-swing-big { 0% { rotate: 0deg; } 15% { rotate: 7deg; } 35% { rotate: -5deg; } 55% { rotate: 3deg; } 75% { rotate: -1.6deg; } 100% { rotate: 0deg; } }

/* ---------- Sections ---------- */
.bd-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.bd-section { padding-top: clamp(84px, 11vw, 128px); }
/* the cards swing in as they are pegged up; keep the swing from widening a phone page */
.bd-events { overflow-x: clip; }
.bd-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.bd-title h2 { font-size: clamp(2rem, 5.4vw, 2.7rem); color: var(--inv-primary); text-wrap: balance; }
.kit-js .bd-title .bd-flag { opacity: 0; translate: 0 -10px; transition: opacity .5s ease, translate .6s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(.1s + var(--i) * .08s); }
.kit-js .bd-title.is-visible .bd-flag { opacity: 1; translate: 0 0; }
.bd-welcome { text-align: center; max-width: 680px; margin: 0 auto; }
.bd-welcome p { font-size: 1.06rem; }
.baldachin .bd-welcome-title { font-family: var(--bd-script); font-weight: 400; font-size: clamp(3.4rem, 11vw, 5rem); line-height: 1.1; color: var(--inv-primary); margin-bottom: 12px; }
.bd-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }
.bd-lead { text-align: center; font-family: var(--inv-font-heading); font-style: italic; font-size: 1.2rem; color: var(--bd-soft); max-width: 40ch; margin: 0 auto 30px; }

/* the nightstand: its moon lamp lights up */
.bd-moonlamp { position: relative; display: block; width: min(230px, 58vw); margin: 0 auto 8px; }
.bd-moonglow { position: absolute; left: 24%; top: 21%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, #ffe7a3 70%, transparent), color-mix(in srgb, #ffe7a3 25%, transparent) 55%, transparent); mix-blend-mode: screen; opacity: 0; }
.kit-js .bd-welcome.is-visible .bd-moonglow { animation: bd-glow 4s ease-in-out .6s infinite; }
@keyframes bd-glow { 0% { opacity: 0; } 30%, 70% { opacity: 1; } 100% { opacity: .6; } }
.kit-js .bd-welcome .bd-welcome-art img { opacity: 0; translate: 0 20px; transition: opacity .9s ease, translate 1s ease; }
.kit-js .bd-welcome.is-visible .bd-welcome-art img { opacity: 1; translate: 0 0; }

/* Child */
.bd-child-grid { display: grid; gap: 40px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.bd-portrait { position: relative; width: min(250px, 58vw); padding-bottom: 40px; }
.bd-child-mat { position: absolute; right: -40%; bottom: -6px; width: 62%; }
.bd-child-name { font-family: var(--inv-font-heading); font-size: 1.8rem; color: var(--inv-primary); margin-bottom: 6px; }
.bd-child-born { color: var(--bd-soft); }
.bd-child-born strong { color: var(--inv-text); font-family: var(--inv-font-heading); font-weight: 400; }
.bd-child-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.16rem; max-width: 36ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .bd-child-grid { grid-template-columns: auto minmax(0, 1fr); gap: 110px; text-align: left; align-items: center; }
    .bd-portrait { width: 250px; }
    .bd-child-message { margin-left: 0; }
}
@media (max-width: 759px) { .bd-child-mat { right: -26%; width: 52%; } }

/* Family: the dresser and small frames hung from ribbons */
.bd-family-art { width: min(220px, 56vw); margin: -6px auto 18px; }
.bd-frames { display: grid; gap: 30px 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); max-width: 760px; margin: 0 auto; }
.bd-small-frame { position: relative; padding-top: 30px; transform-origin: 50% 0; animation: bd-swing 8s ease-in-out infinite; }
.bd-small-frame:nth-child(even) { animation-delay: -4s; }
.bd-small-frame-in { padding: 24px 20px; text-align: center; border-radius: 10px; background: var(--inv-surface); border: 8px solid var(--bd-wood); box-shadow: var(--bd-shadow), inset 0 0 0 1px var(--bd-line), 0 0 0 1px color-mix(in srgb, var(--inv-primary) 12%, transparent); }

/* Programme: cards pegged to a string */
.bd-events-art { width: min(200px, 52vw); margin: -6px auto 22px; }
.bd-moments { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 700px; display: grid; gap: 40px; }
.bd-moment { position: relative; }
.bd-moment::before { content: ""; position: absolute; left: -16px; right: -16px; top: 6px; height: 1.5px; background: color-mix(in srgb, var(--inv-text) 30%, transparent); }
.bd-moment-card { padding: 30px clamp(20px, 5vw, 36px) 22px; text-align: center; transform-origin: 50% 0; }
.kit-js .bd-moment .bd-moment-card { rotate: -4deg; opacity: 0; transition: rotate 1.2s cubic-bezier(.3, 1.6, .5, 1), opacity .5s ease; }
.kit-js .bd-moment.is-visible .bd-moment-card { rotate: 0deg; opacity: 1; }
.kit-js .bd-moment:nth-child(even) .bd-moment-card { rotate: 4deg; }
.kit-js .bd-moment:nth-child(even).is-visible .bd-moment-card { rotate: 0deg; }
.bd-pegs i { position: absolute; top: -12px; width: 10px; height: 30px; border-radius: 3px; background: linear-gradient(90deg, #d8c3a5, #f3e6d1 50%, #c8b090); box-shadow: 0 2px 3px rgba(0, 0, 0, .18); }
.bd-pegs i:first-child { left: 18%; }
.bd-pegs i:last-child { right: 18%; }
.bd-moment-time { font-family: var(--inv-font-heading); font-size: 1.5rem; color: var(--inv-primary); margin: 0 0 2px; font-variant-numeric: tabular-nums; }
.bd-moment-card h3 { font-size: clamp(1.34rem, 4.2vw, 1.6rem); margin-bottom: 4px; }
.bd-moment-place { font-weight: 500; margin: 0; }
.bd-moment-address, .bd-moment-notes { color: var(--bd-soft); margin: 0; }
.bd-moment-notes { font-style: italic; margin-top: 6px; }
.bd-moment .kit-event-actions { margin-top: 14px; justify-content: center; }
.baldachin .kit-button { border-radius: 999px; border: 1px solid var(--inv-primary); color: var(--inv-primary); background: transparent; font-size: .78rem; font-weight: 500; padding: 8px 18px; text-decoration: none; }
.baldachin .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: plush stars swaying on their threads */
.bd-countdown { text-align: center; }
.bd-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px clamp(6px, 2.4vw, 22px); margin-top: 40px; }
.bd-countdown .kit-countdown-unit { --c: var(--bd-f0); position: relative; width: clamp(80px, 21vw, 118px); min-width: 0; aspect-ratio: 1; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate; transform-origin: 50% -36px; animation: bd-swing 5s ease-in-out infinite; }
.bd-countdown .kit-countdown-unit::before { content: ""; position: absolute; inset: 0; z-index: -1;
    clip-path: polygon(50% 2%, 63% 34%, 98% 37%, 71% 59%, 80% 94%, 50% 75%, 20% 94%, 29% 59%, 2% 37%, 37% 34%);
    background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .55), transparent 55%), var(--c); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .15)); }
.bd-countdown .kit-countdown-unit::after { content: ""; position: absolute; left: 50%; bottom: 96%; width: 1.5px; height: 36px; background: color-mix(in srgb, var(--inv-text) 30%, transparent); }
.bd-countdown .kit-countdown-unit:nth-child(2) { --c: var(--bd-f1); animation-delay: -1.2s; }
.bd-countdown .kit-countdown-unit:nth-child(3) { --c: var(--bd-f2); animation-delay: -2.4s; }
.bd-countdown .kit-countdown-unit:nth-child(4) { --c: var(--bd-f3); animation-delay: -3.6s; }
.bd-countdown .kit-countdown-value { margin-top: 10%; font-family: var(--inv-font-heading); font-size: clamp(1.1rem, 4.4vw, 1.7rem); line-height: 1; color: color-mix(in srgb, var(--inv-primary) 40%, #2b2226); font-variant-numeric: tabular-nums; }
.bd-countdown .kit-countdown-label { opacity: 1; color: color-mix(in srgb, var(--inv-primary) 30%, #3a3036); font-size: .46rem; font-weight: 600; letter-spacing: .1em; }

/* Gallery: polaroids pinned up */
.bd-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 3vw, 36px) clamp(14px, 2vw, 24px); }
.bd-gallery-grid.kit-gallery a { position: relative; aspect-ratio: 4 / 5; padding: 8px 8px 26px; background: #fffdf9; border-radius: 3px; box-shadow: var(--bd-shadow); rotate: -1.8deg; transition: rotate .6s ease, translate .6s ease; }
.bd-gallery-grid.kit-gallery a:nth-child(even) { rotate: 1.6deg; }
.bd-gallery-grid.kit-gallery a:nth-child(3n) { rotate: -.6deg; }
.bd-gallery-grid.kit-gallery a::before { content: ""; position: absolute; left: 50%; top: -14px; z-index: 1; width: 10px; height: 28px; margin-left: -5px; border-radius: 3px; background: linear-gradient(90deg, #d8c3a5, #f3e6d1 50%, #c8b090); box-shadow: 0 2px 3px rgba(0, 0, 0, .18); }
.bd-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; }
.bd-gallery-grid.kit-gallery a:hover { rotate: 0deg; translate: 0 -4px; }
@media (min-width: 760px) { .bd-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP, info, contact */
.bd-reply { max-width: 700px; margin: 0 auto; padding: clamp(40px, 6vw, 58px) clamp(24px, 6vw, 56px) clamp(32px, 5vw, 48px); }
.baldachin .inv-rsvp__intro { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.14rem; }
.baldachin .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
.bd-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.bd-info-item { padding: 30px 24px 20px; text-align: center; }
.bd-info-item h3 { font-size: 1.32rem; color: var(--inv-primary); margin-bottom: 8px; }
.bd-faq { max-width: 720px; margin: 46px auto 0; text-align: center; display: grid; gap: 12px; }
.bd-faq details { text-align: left; }
.bd-faq summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 22px; position: relative; font-family: var(--inv-font-heading); font-size: 1.1rem; }
.bd-faq summary::-webkit-details-marker { display: none; }
.bd-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; clip-path: polygon(50% 2%, 63% 34%, 98% 37%, 71% 59%, 80% 94%, 50% 75%, 20% 94%, 29% 59%, 2% 37%, 37% 34%); background: var(--bd-f1); transition: rotate .5s ease; }
.bd-faq details[open] summary::after { rotate: 72deg; background: var(--bd-f0); }
.bd-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; border-radius: 16px; }
.bd-faq details p { padding: 0 22px; color: var(--bd-soft); }
.bd-faq details p:last-child { padding-bottom: 16px; }
.bd-contact { text-align: center; }
.bd-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.bd-contact-person a { text-decoration: none; }

/* ---------- Footer: the bunny asleep under the stars ---------- */
.bd-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 16px 70px; overflow-x: hidden; overflow-x: clip; }
.bd-finale { position: relative; width: min(300px, 74vw); margin: 0 auto 16px; padding-top: 30px; }
.kit-js .bd-footer .bd-bed img { opacity: 0; translate: 0 20px; }
.kit-js .bd-footer.is-visible .bd-bed img { animation: bd-in 1.4s ease .1s both; }
.bd-twinkle { position: absolute; top: calc(4% + var(--i) * 3%); left: calc(6% + var(--i) * 13%); width: 12px; height: 12px; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); background: var(--bd-f2); opacity: 0; }
.bd-twinkle:nth-child(odd) { top: calc(14% - var(--i) * 1%); width: 9px; height: 9px; background: var(--bd-f1); }
.kit-js .bd-footer.is-visible .bd-twinkle { animation: bd-twinkle 2.8s ease-in-out infinite; animation-delay: calc(.8s + var(--i) * .37s); }
@keyframes bd-twinkle { 0%, 100% { opacity: .15; scale: .7; } 50% { opacity: 1; scale: 1.15; } }
.bd-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.22rem; color: var(--bd-soft); max-width: 36ch; margin: 0 auto 6px; }
.baldachin .bd-footer-name { font-family: var(--bd-script); font-size: clamp(3.6rem, 13vw, 5.6rem); line-height: 1.1; color: var(--inv-primary); margin: 4px 0 10px; }
.bd-hashtag { letter-spacing: .12em; color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    .bd-flag, .bd-light i, .bd-frame, .bd-small-frame, .bd-countdown .kit-countdown-unit, .bd-crib img, .kit-js .bd-hero-text > * { animation: none; }
    .kit-js .bd-title .bd-flag, .kit-js .bd-welcome .bd-welcome-art img, .kit-js .bd-moment .bd-moment-card, .kit-js .bd-footer .bd-bed img { opacity: 1; translate: 0 0; rotate: 0deg; transition: none; animation: none; }
    .kit-js .bd-welcome.is-visible .bd-moonglow { animation: none; opacity: .8; }
    .kit-js .bd-footer.is-visible .bd-twinkle { animation: none; opacity: .8; }
}
