/* ==========================================================================
   Cățeluș - a puppy party, painted in watercolour: the photo in a frame of paw prints, a French bulldog peeking over
   its top edge and a curious puppy beside it (a touch sends a ball bouncing across, the puppy follows it with its
   head). Paw prints cross the page step by step, a paw print stamps itself above every title, the westie says
   hello, the birthday child's portrait sits in a collar tag beside the little schnauzer, the theme is on a card
   with a collar and a tag, every moment has its own puppy, the days left are on little bones, every photo has a
   paw in its corner, the sheepdog peeks over the reply form and at the end the puppies fall asleep in their basket.
   Palette: --inv-primary (the ink and the collar), --inv-accent (the soft colour), --inv-bg, --inv-text.
   The watercolours (assets/art, Pixabay, see LICENSES.md) came transparent; on the dark palette (.ca-dark, set by
   script.js) they get back a sheet of watercolour paper. script.js draws the paw prints (canvas.ca-air)
   ========================================================================== */

.catelus {
    --ca-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --ca-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --ca-paper: color-mix(in srgb, #fffaf2 90%, var(--inv-accent));
    --ca-collar: var(--inv-primary);
    --ca-brass: linear-gradient(145deg, #fbe7a4, #d9a63c 45%, #f3d27a 62%, #a87420);
    /* a paw print in the current text colour: the main pad and four toes */
    --ca-paw: radial-gradient(ellipse 29% 24% at 50% 70%, currentColor 96%, transparent 100%), radial-gradient(ellipse 11% 14% at 17% 44%, currentColor 94%, transparent 100%),
        radial-gradient(ellipse 11% 14% at 36% 22%, currentColor 94%, transparent 100%), radial-gradient(ellipse 11% 14% at 64% 22%, currentColor 94%, transparent 100%),
        radial-gradient(ellipse 11% 14% at 83% 44%, currentColor 94%, transparent 100%);
    --ca-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: 16px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--ca-line);
    font-family: var(--inv-font-body);
    font-weight: 400;
    font-size: 1.03rem;
    line-height: 1.7;
    background: var(--inv-bg);
    overflow-x: clip;
}
.catelus.ca-dark { --ca-collar: #c0542f; }
.catelus h1, .catelus h2, .catelus h3 { font-family: var(--inv-font-heading); font-weight: 700; line-height: 1.1; }
:where(.catelus) :is(h1, h2, h3) { margin: 0; }
:where(.catelus) p { margin: 0 0 .9em; }
.catelus strong { font-weight: 700; }
.catelus a { color: var(--inv-primary); }
.ca-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.ca-role { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ca-soft); margin: 0 0 4px; }
.ca-names { font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.3rem; margin: 0; }
.ca-hero, .ca-main, .ca-footer { position: relative; z-index: 1; }
.ca-card { position: relative; background: var(--inv-surface); border-radius: 26px; box-shadow: var(--ca-shadow), 0 0 0 1px var(--ca-line); }
.ca-air { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

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

/* ---------- The frame of paw prints ---------- */
.ca-frame { position: relative; margin: 0; aspect-ratio: 900 / 845; filter: drop-shadow(0 24px 24px color-mix(in srgb, #4a2a10 28%, transparent)); }
.ca-frame-photo { position: absolute; inset: 13.4% 12.6% 14.2%; overflow: hidden; background: var(--ca-paper); }
.ca-frame-photo img, .ca-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.ca-initial { display: grid; place-items: center; font-family: var(--inv-font-heading); font-weight: 700; font-size: 5rem; color: var(--inv-primary); }
.ca-frame-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

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

/* ---------- Hero: the frame, the bulldog peeking over it, the curious puppy and the ball ---------- */
.ca-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 16px 70px; overflow: hidden; overflow: clip; }
.ca-sun { position: absolute; right: -16%; top: -14%; width: min(900px, 150vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 70%, transparent), transparent 72%); }
.ca-dark .ca-sun { background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 72%); }
.ca-hero-inner { position: relative; z-index: 1; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 36px; text-align: center; }
.ca-yard { position: relative; width: min(290px, 60vw); margin: 22% 18% 6% 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kit-js .ca-frame--hero { animation: ca-rise 1.2s cubic-bezier(.3, 1.2, .5, 1) .1s both; }
@keyframes ca-rise { from { opacity: 0; translate: 0 30px; rotate: -3deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.ca-peek { position: absolute; left: 50%; bottom: 84%; width: 58%; margin-left: -29%; z-index: 3; }
.kit-js .ca-peek img { animation: ca-peek 1.1s cubic-bezier(.3, 1.4, .5, 1) .9s both; transform-origin: 50% 100%; }
@keyframes ca-peek { from { opacity: 0; translate: 0 34%; } to { opacity: 1; translate: 0 0; } }
.ca-curious { position: absolute; right: -44%; bottom: -10%; width: 54%; z-index: 4; display: block; }
.ca-curious .ca-art { transform-origin: 50% 90%; }
.kit-js .ca-curious img { animation: ca-pop 1.1s cubic-bezier(.3, 1.4, .5, 1) 1.3s both; }
@keyframes ca-pop { from { opacity: 0; translate: 30px 10px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
.ca-yard.is-playing .ca-curious .ca-art { animation: ca-follow 1.7s ease-in-out 1; }
@keyframes ca-follow { 0% { rotate: 0deg; translate: 0 0; } 20% { rotate: -12deg; } 45% { rotate: 6deg; translate: 0 -12px; } 55% { translate: 0 0; } 75% { rotate: 12deg; } 100% { rotate: 0deg; } }
/* the tennis ball: hidden until a touch, then it bounces from the left of the frame to the puppy and stops */
.ca-ball { position: absolute; left: -30%; bottom: -6%; width: 32px; height: 32px; z-index: 5; opacity: 0; pointer-events: none; }
.ca-ball i { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: inset -4px -5px 8px rgba(90, 100, 0, .35), 0 6px 8px -4px rgba(0, 0, 0, .35);
    background: radial-gradient(circle at 32% 30%, #f5fca0, #d3e33a 55%, #a6b81c); }
.ca-ball i::before, .ca-ball i::after { content: ""; position: absolute; top: -30%; bottom: -30%; width: 80%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); }
.ca-ball i::before { left: -56%; }
.ca-ball i::after { right: -56%; }
.ca-yard.is-playing .ca-ball { animation: ca-bounce 1.6s cubic-bezier(.4, 0, .6, 1) 1 both; }
.ca-yard.is-playing .ca-ball i { animation: ca-roll 1.6s linear 1 both; }
@keyframes ca-bounce {
    0% { opacity: 0; translate: 0 0; }
    6% { opacity: 1; translate: 0 -40px; }
    16% { translate: 60px -150px; }
    30% { translate: 130px 0; }
    42% { translate: 180px -80px; }
    54% { translate: 225px 0; }
    63% { translate: 255px -32px; }
    72% { translate: 280px 0; }
    86% { opacity: 1; translate: 296px 0; }
    100% { opacity: 0; translate: 300px 0; }
}
@keyframes ca-roll { from { rotate: 0deg; } to { rotate: 720deg; } }

.ca-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.catelus .ca-name { font-family: var(--inv-font-heading); font-weight: 800; font-size: clamp(2.9rem, 12vw, 5.2rem); line-height: 1; color: var(--inv-primary); overflow-wrap: anywhere; text-wrap: balance; margin: 0 0 14px; }
.ca-hero-date { font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.45rem; margin: 0 0 2px; }
.ca-hero-place { font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ca-soft); margin: 0; }
.catelus .ca-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--ca-soft); }
@keyframes ca-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.kit-js .ca-hero-text > * { animation: ca-up 1s ease .9s both; }
.kit-js .ca-hero-text > :nth-child(n+3) { animation-delay: 1.2s; }
@media (min-width: 900px) {
    .ca-hero { padding-top: 150px; }
    .ca-hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 100px; text-align: left; align-items: center; }
    .ca-hero-text { justify-items: start; order: -1; }
    .catelus .ca-subtitle { margin-left: 0; }
    .ca-yard { width: min(320px, 28vw); margin: 70px clamp(110px, 12vw, 150px) 30px 0; }
}

/* ---------- Sections ---------- */
.ca-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.ca-section { padding-top: clamp(84px, 11vw, 128px); }
.ca-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.ca-title h2 { font-size: clamp(2rem, 5.8vw, 2.9rem); color: var(--inv-primary); text-wrap: balance; }
/* the paw print: four toes and the pad, stamped one after another */
.ca-stamp { position: relative; display: block; width: 36px; height: 36px; margin: 0 auto 10px; color: var(--inv-primary); rotate: -12deg; }
.ca-stamp i, .ca-stamp b { position: absolute; border-radius: 50%; background: currentColor; }
.ca-stamp i { width: 8px; height: 10px; }
.ca-stamp i:nth-child(1) { left: 1px; top: 11px; rotate: -24deg; }
.ca-stamp i:nth-child(2) { left: 9px; top: 2px; rotate: -8deg; }
.ca-stamp i:nth-child(3) { right: 9px; top: 2px; rotate: 8deg; }
.ca-stamp i:nth-child(4) { right: 1px; top: 11px; rotate: 24deg; }
.ca-stamp b { left: 8px; right: 8px; bottom: 2px; height: 16px; border-radius: 48% 48% 42% 42% / 56% 56% 44% 44%; }
.kit-js .ca-title .ca-stamp > * { opacity: 0; scale: 1.8; }
.kit-js .ca-title.is-visible .ca-stamp > * { animation: ca-press .35s cubic-bezier(.3, 1.5, .5, 1) both; }
.kit-js .ca-title.is-visible .ca-stamp b { animation-delay: .1s; }
.kit-js .ca-title.is-visible .ca-stamp i:nth-child(1) { animation-delay: .35s; }
.kit-js .ca-title.is-visible .ca-stamp i:nth-child(2) { animation-delay: .5s; }
.kit-js .ca-title.is-visible .ca-stamp i:nth-child(3) { animation-delay: .65s; }
.kit-js .ca-title.is-visible .ca-stamp i:nth-child(4) { animation-delay: .8s; }
@keyframes ca-press { from { opacity: 0; scale: 1.8; } to { opacity: 1; scale: 1; } }

/* Welcome, from the westie */
.ca-welcome { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.ca-welcome p { font-size: 1.05rem; }
.ca-hello { width: min(180px, 46vw); }
.kit-js .ca-welcome .ca-hello img { opacity: 0; translate: 0 30px; transition: opacity .9s ease, translate 1.2s cubic-bezier(.3, 1.4, .5, 1); }
.kit-js .ca-welcome.is-visible .ca-hello img { opacity: 1; translate: 0 0; }
.catelus .ca-welcome-title { font-family: var(--inv-font-heading); font-weight: 800; font-size: clamp(2.2rem, 7.4vw, 3.2rem); line-height: 1.05; color: var(--inv-primary); margin-bottom: 12px; }
.ca-quote-author { font-weight: 700; color: var(--inv-primary); }
@media (min-width: 760px) {
    .ca-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 50px; text-align: left; align-items: center; }
    .ca-hello { width: 200px; }
}

/* The birthday child: the portrait in a brass collar tag hanging from its ring (the schnauzer sits past it) */
.ca-star { overflow-x: clip; padding-bottom: 30px; }
.ca-star-grid { display: grid; gap: 60px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.ca-portrait { position: relative; width: min(230px, 58vw); padding-top: 26px; }
.ca-tag { position: relative; margin: 0; aspect-ratio: 1; border-radius: 50%; padding: 11px; background: var(--ca-brass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 26px 40px -24px rgba(60, 30, 0, .6); }
.ca-tag::before { content: ""; position: absolute; left: 50%; top: -30px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; border: 6px solid #c99a3a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.ca-tag-photo { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--ca-paper); box-shadow: 0 0 0 3px rgba(120, 80, 10, .35); }
.ca-tag-photo img, .ca-tag-photo .ca-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.kit-js .ca-star-grid .ca-tag { transform-origin: 50% -22px; rotate: -10deg; transition: rotate 1.6s cubic-bezier(.3, 1.8, .5, 1); }
.kit-js .ca-star-grid.is-visible .ca-tag { rotate: 0deg; }
.ca-buddy { position: absolute; right: -40%; bottom: -14%; width: 62%; z-index: 3; }
.kit-js .ca-star-grid .ca-buddy img { opacity: 0; translate: 20px 0; transition: opacity .8s ease .5s, translate 1.1s cubic-bezier(.3, 1.3, .5, 1) .5s; }
.kit-js .ca-star-grid.is-visible .ca-buddy img { opacity: 1; translate: 0 0; }
.ca-star-name { font-family: var(--inv-font-heading); font-weight: 700; font-size: 1.9rem; color: var(--inv-primary); margin-bottom: 0; }
.ca-age { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 10px; color: var(--ca-soft); }
.ca-age strong { font-family: var(--inv-font-heading); font-weight: 800; font-size: 4.4rem; line-height: 1; color: var(--inv-primary); }
.ca-age small { font-size: 1.1rem; font-weight: 700; }
.ca-star-message { font-size: 1.08rem; max-width: 38ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .ca-star-grid { grid-template-columns: auto minmax(0, 1fr); gap: 120px; text-align: left; align-items: center; }
    .ca-portrait { width: 250px; }
    .ca-age { justify-content: flex-start; }
    .ca-star-message { margin-left: 0; }
}

/* The theme on a card with a collar across its top: stitched leather, brass studs and a tag with a paw */
.ca-collar { max-width: 620px; margin: 0 auto; padding: 96px clamp(24px, 6vw, 48px) 34px; text-align: center; overflow: visible; }
.ca-band { position: absolute; left: -10px; right: -10px; top: 24px; height: 28px; border-radius: 8px; background:
        radial-gradient(circle at 50% 50%, #f6dc8e 0 3px, #b9862c 3.5px 4.5px, transparent 5px) 0 0 / 40px 100% repeat-x,
        linear-gradient(transparent 4px, rgba(255, 255, 255, .5) 4px 5px, transparent 5px calc(100% - 5px), rgba(255, 255, 255, .5) calc(100% - 5px) calc(100% - 4px), transparent calc(100% - 4px)),
        var(--ca-collar);
    box-shadow: inset 0 -4px 6px rgba(0, 0, 0, .2), 0 6px 10px -6px rgba(0, 0, 0, .4); }
.ca-medal { position: absolute; left: 50%; top: 22px; width: 50px; height: 50px; margin-left: -25px; border-radius: 50%; color: #8a5d14; transform-origin: 50% -12px;
    background: var(--ca-paw), var(--ca-brass); background-size: 56% 56%, 100% 100%; background-position: 50% 52%, 0 0; background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 10px 14px -8px rgba(0, 0, 0, .5); }
.ca-medal::before { content: ""; position: absolute; left: 50%; top: -14px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 3px solid #c99a3a; }
.kit-js .ca-theme.is-visible .ca-medal { animation: ca-swing 2.2s cubic-bezier(.3, 1.4, .5, 1) .3s 1; }
@keyframes ca-swing { 0% { rotate: 0deg; } 20% { rotate: 18deg; } 45% { rotate: -12deg; } 70% { rotate: 6deg; } 100% { rotate: 0deg; } }
.ca-collar h3 { font-size: clamp(1.6rem, 5vw, 2rem); color: var(--inv-primary); margin-bottom: 10px; }
.ca-collar p { font-size: 1.07rem; }
.ca-collar p:last-child { margin-bottom: 0; }

/* Programme: a puppy beside every moment */
.ca-trail { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 34px; }
.ca-stop { display: grid; justify-items: center; }
.ca-stop-art { width: min(130px, 36vw); margin-bottom: -16px; z-index: 2; }
.ca-stop-card { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 30px clamp(20px, 5vw, 36px) 22px; text-align: center; }
.kit-js .ca-stop .ca-stop-card { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .9s ease; }
.kit-js .ca-stop .ca-stop-art img { opacity: 0; translate: 0 24px; transition: opacity .6s ease .3s, translate .9s cubic-bezier(.3, 1.6, .5, 1) .3s; }
.kit-js .ca-stop.is-visible .ca-stop-card { opacity: 1; translate: 0 0; }
.kit-js .ca-stop.is-visible .ca-stop-art img { opacity: 1; translate: 0 0; }
.ca-stop-time { font-family: var(--inv-font-heading); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--inv-primary); margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.ca-stop-card h3 { font-size: clamp(1.35rem, 4vw, 1.6rem); margin-bottom: 4px; }
.ca-stop-place { font-weight: 800; margin: 0; }
.ca-stop-address, .ca-stop-notes { color: var(--ca-soft); margin: 0; }
.ca-stop-notes { font-style: italic; margin-top: 6px; }
.ca-stop .kit-event-actions { margin-top: 14px; justify-content: center; }
@media (min-width: 760px) {
    .ca-stop { grid-template-columns: 160px minmax(0, 1fr); align-items: end; gap: 0; }
    .ca-stop-art { width: 160px; margin: 0 -30px 0 0; }
    .ca-stop:nth-child(even) { grid-template-columns: minmax(0, 1fr) 160px; }
    .ca-stop:nth-child(even) .ca-stop-art { order: 2; margin: 0 0 0 -30px; }
    .ca-stop-card { justify-items: start; text-align: left; padding-left: 52px; }
    .ca-stop:nth-child(even) .ca-stop-card { padding-left: 36px; padding-right: 52px; }
    .ca-stop .kit-event-actions { justify-content: flex-start; }
}
.catelus .kit-button { border-radius: 999px; border: 2px solid var(--inv-primary); color: var(--inv-primary); background: transparent; font-size: .8rem; font-weight: 800; padding: 7px 18px; text-decoration: none; }
.catelus .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: each number on a little bone (the bar and four rounded knobs) */
.ca-countdown { text-align: center; }
.ca-countdown .kit-countdown { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 22px clamp(14px, 4vw, 30px); margin-top: 36px; }
.ca-countdown .kit-countdown-unit { --c: #f6ead6; position: relative; width: clamp(118px, 34vw, 150px); min-width: 0; aspect-ratio: 2.3; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: none; isolation: isolate; }
.ca-countdown .kit-countdown-unit::before, .ca-countdown .kit-countdown-unit::after { content: ""; position: absolute; z-index: -1; }
.ca-countdown .kit-countdown-unit::before { inset: 20% 11%; border-radius: 6px; background: var(--c); }
.ca-countdown .kit-countdown-unit::after { inset: 0; background:
        radial-gradient(ellipse 12% 28% at 12% 31%, var(--c) 96%, transparent 100%), radial-gradient(ellipse 12% 28% at 12% 69%, var(--c) 96%, transparent 100%),
        radial-gradient(ellipse 12% 28% at 88% 31%, var(--c) 96%, transparent 100%), radial-gradient(ellipse 12% 28% at 88% 69%, var(--c) 96%, transparent 100%); }
.ca-countdown .kit-countdown-unit { filter: drop-shadow(0 6px 6px rgba(80, 50, 20, .22)) drop-shadow(0 0 1px rgba(120, 80, 40, .5)); }
.ca-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-weight: 800; font-size: clamp(1.3rem, 5vw, 1.7rem); line-height: 1; color: #6b3f1c; font-variant-numeric: tabular-nums; }
.ca-countdown .kit-countdown-label { opacity: 1; color: #8a5a32; font-size: .52rem; font-weight: 800; letter-spacing: .12em; margin-top: 1px; }
.kit-js .ca-countdown .kit-countdown-unit { opacity: 0; translate: 0 -30px; rotate: -16deg; transition: opacity .5s ease, translate 1s cubic-bezier(.3, 1.5, .5, 1), rotate 1s cubic-bezier(.3, 1.5, .5, 1); }
.kit-js .ca-countdown .kit-countdown-unit:nth-child(2) { transition-delay: .12s; }
.kit-js .ca-countdown .kit-countdown-unit:nth-child(3) { transition-delay: .24s; }
.kit-js .ca-countdown .kit-countdown-unit:nth-child(4) { transition-delay: .36s; }
.kit-js .ca-countdown.is-visible .kit-countdown-unit { opacity: 1; translate: 0 0; rotate: 0deg; }
.kit-js .ca-countdown.is-visible .kit-countdown-unit:nth-child(even) { rotate: 4deg; }
.kit-js .ca-countdown.is-visible .kit-countdown-unit:nth-child(odd) { rotate: -3deg; }
@media (min-width: 760px) { .ca-countdown .kit-countdown { grid-template-columns: repeat(4, auto); } }

/* Gallery: rounded photos with a white border, a paw stamped in a corner of each */
.ca-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 30px); }
.ca-gallery-grid.kit-gallery a { position: relative; display: block; aspect-ratio: 1; padding: 7px; border-radius: 26px; background: #fffdf8; box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 18px 30px -18px rgba(0, 0, 0, .4); rotate: -1.6deg; transition: rotate .5s ease, translate .5s ease; }
.ca-gallery-grid.kit-gallery a:nth-child(even) { rotate: 1.8deg; }
.ca-gallery-grid.kit-gallery a:hover { rotate: 0deg; translate: 0 -4px; }
.ca-gallery-grid.kit-gallery a::after { content: ""; position: absolute; right: -8px; bottom: -8px; width: 38px; height: 38px; border-radius: 50%; color: #fff;
    background: var(--ca-paw), var(--inv-primary); background-size: 60% 60%, 100% 100%; background-position: 50% 52%, 0 0; background-repeat: no-repeat; box-shadow: 0 4px 8px -3px rgba(0, 0, 0, .35); rotate: -14deg; }
.ca-dark .ca-gallery-grid.kit-gallery a::after { color: #1b2130; }
.ca-gallery-grid.kit-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
@media (min-width: 760px) { .ca-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP, with the sheepdog resting its chin on top of the card */
.ca-reply-wrap { position: relative; max-width: 700px; margin: 0 auto; padding-top: 96px; }
.ca-watch { position: absolute; top: 0; right: 9%; width: clamp(130px, 30vw, 160px); z-index: 0; }
.kit-js .ca-reply-wrap .ca-watch img { translate: 0 70px; transition: translate 1.1s cubic-bezier(.3, 1.3, .5, 1) .3s; }
.kit-js .ca-reply-wrap.is-visible .ca-watch img { translate: 0 0; }
.ca-reply { z-index: 1; padding: clamp(40px, 6vw, 56px) clamp(24px, 6vw, 56px) clamp(32px, 5vw, 48px); }
.catelus .inv-rsvp__intro { font-size: 1.1rem; font-weight: 600; }
.catelus .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--inv-primary); }
.ca-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ca-info-item { padding: 30px 24px 20px; text-align: center; }
.ca-info-item h3 { font-size: 1.35rem; color: var(--inv-primary); margin-bottom: 8px; }
.ca-faq { max-width: 720px; margin: 46px auto 0; text-align: center; display: grid; gap: 12px; }
.ca-faq details { text-align: left; }
.ca-faq summary { cursor: pointer; list-style: none; padding: 17px 56px 17px 22px; position: relative; font-weight: 800; font-size: 1.02rem; }
.ca-faq summary::-webkit-details-marker { display: none; }
.ca-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--inv-primary); background: var(--ca-paw); transition: rotate .5s ease; }
.ca-faq details[open] summary::after { rotate: 180deg; }
.ca-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; border-radius: 26px; }
.ca-faq details p { padding: 0 22px; color: var(--ca-soft); }
.ca-faq details p:last-child { padding-bottom: 16px; }
.ca-contact { text-align: center; }
.ca-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.ca-contact-person a { text-decoration: none; font-weight: 700; }

/* ---------- Footer: the puppies asleep ---------- */
.ca-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 16px 40px; overflow: hidden; overflow: clip; }
.ca-footer-message { font-size: 1.2rem; font-weight: 600; color: var(--ca-soft); max-width: 36ch; margin: 0 auto 6px; }
.catelus .ca-footer-name { font-family: var(--inv-font-heading); font-weight: 800; font-size: clamp(3rem, 11vw, 4.4rem); line-height: 1.05; color: var(--inv-primary); margin: 4px 0 10px; }
.ca-hashtag { font-weight: 700; letter-spacing: .06em; color: var(--inv-primary); }
.ca-nap { position: relative; width: min(600px, 100%); margin: 30px auto 0; display: grid; grid-template-columns: 1fr 1.5fr 0.8fr; align-items: end; }
.ca-pups { width: 112%; margin-right: -16%; z-index: 2; }
.ca-bed { width: 100%; }
.ca-patch { width: 120%; margin-left: -20%; z-index: 2; }
.kit-js .ca-footer .ca-nap .ca-art img { opacity: 0; translate: 0 30px; transition: opacity .8s ease, translate 1.1s cubic-bezier(.3, 1.3, .5, 1); }
.kit-js .ca-footer .ca-nap .ca-bed img { transition-delay: .1s; }
.kit-js .ca-footer .ca-nap .ca-pups img { transition-delay: .35s; }
.kit-js .ca-footer .ca-nap .ca-patch img { transition-delay: .5s; }
.kit-js .ca-footer.is-visible .ca-nap .ca-art img { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
    .kit-js .ca-frame--hero, .kit-js .ca-peek img, .kit-js .ca-curious img, .kit-js .ca-hero-text > *, .kit-js .ca-title.is-visible .ca-stamp > *, .kit-js .ca-theme.is-visible .ca-medal { animation: none; }
    .kit-js .ca-title .ca-stamp > *, .kit-js .ca-welcome .ca-hello img, .kit-js .ca-star-grid .ca-buddy img, .kit-js .ca-star-grid .ca-tag, .kit-js .ca-stop .ca-stop-card,
    .kit-js .ca-stop .ca-stop-art img, .kit-js .ca-countdown .kit-countdown-unit, .kit-js .ca-reply-wrap .ca-watch img, .kit-js .ca-footer .ca-nap .ca-art img { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; transition: none; }
}
