/* ==========================================================================
   Rouă - a summer morning at dawn: your photo inside a great dewdrop hanging from a silk thread strung across the
   morning, its small drops mirroring the photo upside down; mist drifting over the meadow lifts as the page is
   scrolled, the sun's rays pass through it, grass sways at the foot. A drop slides down a blade of grass above every
   title, portraits hang like dewdrops, the family is strung along a thread, the moments are great drops on a silk
   thread, the time left sits in glossy drops, and a spider web weaves itself and fills with dew at the end
   Palette: --inv-primary (the ink: mauve, sage, lavender or moonlight), --inv-accent (the light of the sun),
   --inv-bg, --inv-text. script.js draws the thread, the drops, the mist and the grass on canvas.ru-dew
   ========================================================================== */

.roua {
    --ru-script: 'Explora', 'Segoe Script', cursive;
    --ru-soft: color-mix(in srgb, var(--inv-text) 66%, var(--inv-bg));
    --ru-line: color-mix(in srgb, var(--inv-accent) 42%, transparent);
    --ru-sun: color-mix(in srgb, var(--inv-accent) 74%, var(--inv-text));
    --ru-thread: color-mix(in srgb, var(--inv-text) 34%, transparent);
    --ru-leaf: color-mix(in srgb, #7f9b73 72%, var(--inv-primary));
    --ru-water: color-mix(in srgb, var(--inv-bg) 55%, #cfe2ee);
    /* the outline of a hanging drop, a mask for photos */
    --ru-drop-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M50 0C56 0 64 14 74 28C90 50 100 64 100 84C100 107 78 125 50 125C22 125 0 107 0 84C0 64 10 50 26 28C36 14 44 0 50 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    /* a small drop of dew: a bright spark, clear water, a darker rim */
    --ru-bead-bg: radial-gradient(circle at 36% 30%, #fff 0 15%, color-mix(in srgb, #cfe0ec 70%, var(--inv-primary)) 45%, color-mix(in srgb, #4f7189 55%, var(--inv-primary)) 100%);
    /* the colour of the sun's rays (script.js dims them to moonlight on dark palettes) */
    --ru-ray: color-mix(in srgb, #fff 60%, transparent);
    --ru-shadow: 0 1px 2px color-mix(in srgb, var(--inv-text) 8%, transparent), 0 30px 56px -34px color-mix(in srgb, var(--inv-text) 50%, transparent);
    --kit-radius: 14px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--ru-line);
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.04rem;
    line-height: 1.78;
    background: var(--inv-bg);
    overflow-x: clip;
}
.roua h1, .roua h2, .roua h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.22; }
:where(.roua) :is(h1, h2, h3) { margin: 0; }
:where(.roua) p { margin: 0 0 .9em; }
.roua strong, .roua b { font-weight: 500; }
.roua a { color: var(--inv-primary); }
.ru-kicker { font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ru-sun); margin: 0 0 10px; }
.ru-role { font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ru-soft); margin: 0 0 4px; }
.ru-names-line { font-family: var(--inv-font-heading); font-size: 1.28rem; margin: 0; }
.ru-hero, .ru-main, .ru-footer { position: relative; z-index: 1; }
.ru-hero { z-index: 2; }
.ru-card { position: relative; background: color-mix(in srgb, var(--inv-surface) 86%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 26px; box-shadow: var(--ru-shadow), inset 0 0 0 1px color-mix(in srgb, #fff 45%, transparent), 0 0 0 1px var(--ru-line); }
/* glass: the light caught by a drop of water (over a photo or a tinted ground) */
.ru-gloss { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background:
        radial-gradient(ellipse 26% 13% at 33% 16%, color-mix(in srgb, #fff 88%, transparent), transparent 70%),
        radial-gradient(ellipse 7% 4.5% at 71% 25%, color-mix(in srgb, #fff 70%, transparent), transparent 70%),
        radial-gradient(ellipse 56% 20% at 55% 94%, color-mix(in srgb, #fff 42%, transparent), transparent 72%),
        radial-gradient(closest-side, transparent 74%, color-mix(in srgb, var(--inv-text) 24%, transparent) 100%);
    box-shadow: inset 0 -12px 26px color-mix(in srgb, #fff 26%, transparent), inset 0 10px 20px color-mix(in srgb, #000 16%, transparent); }

/* ---------- Navigation ---------- */
.ru-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 18px; }
.ru-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.ru-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; }
.ru-nav .kit-nav-links a:hover, .ru-nav .kit-nav-links a.is-current { border-color: var(--inv-accent); color: var(--inv-primary); }
.ru-nav .kit-nav-brand { font-family: var(--ru-script); font-size: 2rem; color: var(--inv-primary); text-decoration: none; }
.ru-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(--ru-line); }
.roua .kit-to-top { background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--ru-line); }
@media (max-width: 899px) {
    .ru-nav { justify-content: flex-end; padding: 12px; }
    .ru-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--inv-surface) 85%, transparent); color: var(--inv-primary); border: 1px solid var(--ru-line); font-size: 1.2rem; }
    .ru-nav .kit-nav-links { display: none; }
    .ru-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: 20px; background: var(--inv-surface); box-shadow: var(--ru-shadow);
    }
    .ru-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero: the morning ---------- */
.ru-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 104px 16px 96px; overflow-x: hidden; overflow-x: clip;
    background:
        radial-gradient(55% 46% at 82% 0, color-mix(in srgb, var(--inv-accent) 40%, transparent), transparent 72%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-accent) 22%, var(--inv-bg)), var(--inv-bg) 88%); }
/* the sun's rays through the mist */
.ru-rays { position: absolute; inset: 0; pointer-events: none; opacity: .6; transform-origin: 82% 0;
    background: repeating-conic-gradient(from 196deg at 82% -6%, var(--ru-ray) 0deg 1.6deg, transparent 1.6deg 4.2deg, var(--ru-ray) 4.2deg 5deg, transparent 5deg 9.5deg);
    -webkit-mask: radial-gradient(95% 85% at 82% 0, #000, transparent 72%); mask: radial-gradient(95% 85% at 82% 0, #000, transparent 72%);
    filter: blur(6px); animation: ru-rays 16s ease-in-out infinite alternate; }
@keyframes ru-rays { from { transform: rotate(-2.5deg); opacity: .45; } to { transform: rotate(2.5deg); opacity: .7; } }
.ru-hero-inner { position: relative; z-index: 3; width: min(1040px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 34px; text-align: center; pointer-events: none; }
.ru-hero-inner > * { pointer-events: auto; }
.ru-drop-wrap { position: relative; z-index: 1; transform-origin: 50% 0; animation: ru-sway 7s ease-in-out infinite; filter: drop-shadow(0 26px 22px color-mix(in srgb, var(--inv-text) 26%, transparent)); }
@keyframes ru-sway { 0%, 100% { transform: rotate(1.1deg); } 50% { transform: rotate(-1.1deg); } }
/* a hanging drop: a narrow neck at the top where the thread holds it, full and round below */
.ru-drop { --dw: min(300px, 70vw); position: relative; width: var(--dw); aspect-ratio: .8; margin: 0; overflow: hidden; background: var(--ru-water);
    -webkit-mask: var(--ru-drop-mask); mask: var(--ru-drop-mask); }
.ru-drop .ru-gloss { background:
        radial-gradient(ellipse 18% 12% at 38% 40%, color-mix(in srgb, #fff 85%, transparent), transparent 70%),
        radial-gradient(ellipse 6% 4% at 66% 46%, color-mix(in srgb, #fff 70%, transparent), transparent 70%),
        radial-gradient(ellipse 52% 18% at 54% 95%, color-mix(in srgb, #fff 45%, transparent), transparent 72%),
        radial-gradient(60% 52% at 50% 66%, transparent 70%, color-mix(in srgb, var(--inv-text) 30%, transparent) 100%),
        linear-gradient(180deg, color-mix(in srgb, #fff 30%, transparent), transparent 30%);
    box-shadow: none; }
.ru-drop img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.kit-js .ru-drop { animation: ru-condense 1.7s cubic-bezier(.3, 1.2, .5, 1) .3s both, ru-wobble 1.6s ease-in-out 2s; }
@keyframes ru-condense { from { transform: scale(.2); opacity: 0; filter: blur(10px); } 55% { opacity: 1; filter: blur(0); } to { transform: none; opacity: 1; filter: none; } }
@keyframes ru-wobble { 0%, 100% { transform: none; } 25% { transform: scale(1.025, .975); } 55% { transform: scale(.985, 1.015); } 80% { transform: scale(1.006, .994); } }
.ru-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.roua .ru-names { font-family: var(--ru-script); font-weight: 400; font-size: clamp(3.8rem, 15vw, 7.2rem); line-height: 1.02; color: var(--inv-primary); display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .22em; overflow-wrap: anywhere; margin: 0 0 12px; }
.ru-and { font-size: .5em; color: var(--ru-sun); }
.ru-hero-date { font-family: var(--inv-font-heading); font-size: 1.36rem; margin: 0 0 2px; }
.ru-hero-place { font-size: .72rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ru-soft); margin: 0; }
.roua .ru-subtitle { max-width: 42ch; margin: 18px auto 0; color: var(--ru-soft); }
.ru-dew { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
@keyframes ru-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kit-js .ru-hero-text > * { animation: ru-rise 1.2s ease 1.1s both; }
.kit-js .ru-hero-text > :nth-child(n+3) { animation-delay: 1.6s; }
@media (min-width: 900px) {
    .ru-hero-inner { grid-template-columns: auto minmax(0, 1fr); gap: clamp(48px, 7vw, 96px); text-align: left; align-items: center; }
    .ru-drop { --dw: min(370px, 32vw); }
    /* a little lower than the drop, so the thread passes above the names */
    .ru-hero-text { justify-items: start; margin-top: 90px; }
    .roua .ru-names { justify-content: flex-start; }
    .roua .ru-subtitle { margin-left: 0; }
}

/* ---------- The blade of grass above titles ---------- */
.ru-blade { position: relative; width: 120px; height: 60px; margin: 0 auto 8px; }
.ru-blade svg { display: block; width: 120px; height: 60px; overflow: visible; }
.ru-blade-leaf { fill: var(--ru-leaf); }
.ru-blade-leaf.is-back { fill: color-mix(in srgb, var(--ru-leaf) 70%, var(--inv-bg)); }
.ru-blade-vein { fill: none; stroke: color-mix(in srgb, #fff 40%, transparent); stroke-width: .8; }
.ru-blade-drop { position: absolute; left: 0; top: 0; width: 11px; height: 12px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: var(--ru-bead-bg); box-shadow: 0 1px 2px color-mix(in srgb, #000 25%, transparent), inset 0 0 0 .5px color-mix(in srgb, #000 15%, transparent);
    offset-path: path('M30 60 C34 32 46 14 68 13 C88 12 102 20 109 33'); offset-anchor: 50% 92%; offset-rotate: 0deg; offset-distance: 100%;
    transform-origin: 50% 0; }
.kit-js .ru-blade-drop { offset-distance: 52%; opacity: 0; transition: opacity .5s ease .3s; }
.kit-js .is-visible .ru-blade-drop, .kit-js .ru-welcome.is-visible .ru-blade-drop { opacity: 1; animation: ru-slide 1.8s cubic-bezier(.55, 0, .7, .6) .5s forwards, ru-hang 3.4s ease-in-out 2.3s infinite; }
@keyframes ru-slide { from { offset-distance: 52%; } to { offset-distance: 100%; } }
@keyframes ru-hang { 0%, 100% { transform: translateY(5px) scale(.96, 1.1); } 50% { transform: translateY(7px) scale(.92, 1.18); } }

/* ---------- Sections ---------- */
.ru-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.ru-section { padding-top: clamp(84px, 11vw, 130px); }
.ru-title { margin: 0 auto clamp(30px, 4.5vw, 46px); text-align: center; }
.ru-title h2 { font-size: clamp(2rem, 5.4vw, 2.8rem); color: var(--inv-primary); text-wrap: balance; }
.ru-welcome { text-align: center; max-width: 680px; margin: 0 auto; }
.ru-welcome p { font-size: 1.1rem; }
.roua .ru-welcome-title { font-family: var(--ru-script); font-weight: 400; font-size: clamp(3.4rem, 11vw, 5rem); line-height: 1.1; color: var(--inv-primary); margin-bottom: 16px; }
.ru-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }
.ru-lead { text-align: center; font-family: var(--inv-font-heading); font-style: italic; font-weight: 300; font-size: 1.24rem; color: var(--ru-soft); max-width: 40ch; margin: 0 auto 40px; }

/* Couple: portraits hanging like dewdrops */
.ru-couple-grid { display: grid; gap: 60px; justify-items: center; }
.ru-person { text-align: center; max-width: 380px; display: grid; justify-items: center; }
.ru-pendant { display: grid; justify-items: center; margin: -40px 0 24px; transform-origin: 50% 0; animation: ru-sway 6.4s ease-in-out var(--d) infinite; filter: drop-shadow(0 20px 18px color-mix(in srgb, var(--inv-text) 22%, transparent)); }
.ru-pendant-thread { width: 1px; height: 64px; background: linear-gradient(transparent, var(--ru-thread)); }
.ru-pendant-drop { position: relative; width: min(236px, 60vw); aspect-ratio: .8; margin-top: -2px; overflow: hidden; background: var(--ru-water); -webkit-mask: var(--ru-drop-mask); mask: var(--ru-drop-mask); }
.ru-pendant-drop .ru-gloss { background: radial-gradient(ellipse 18% 12% at 38% 40%, color-mix(in srgb, #fff 85%, transparent), transparent 70%), radial-gradient(ellipse 52% 18% at 54% 95%, color-mix(in srgb, #fff 45%, transparent), transparent 72%), radial-gradient(60% 52% at 50% 66%, transparent 70%, color-mix(in srgb, var(--inv-text) 30%, transparent) 100%); box-shadow: none; }
.ru-pendant-drop img, .ru-pendant-drop .ru-initial { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.ru-initial { display: grid; place-items: center; font-family: var(--ru-script); font-size: 5.4rem; color: var(--inv-primary); }
.ru-person h3 { font-size: 1.7rem; color: var(--inv-primary); margin: 4px 0 8px; }
.ru-person p { color: var(--ru-soft); }
@media (min-width: 760px) { .ru-couple-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Family: names strung along a silk thread, a drop above each */
.ru-strand { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); text-align: center; }
.ru-strand::before { content: ""; position: absolute; left: -4%; right: -4%; top: -24px; height: 44px; border-bottom: 1px solid var(--ru-thread); border-radius: 0 0 50% 50% / 0 0 100% 100%; pointer-events: none; }
.ru-strand li { position: relative; display: grid; justify-items: center; gap: 2px; padding-top: 34px; }
.ru-bead { position: absolute; top: 4px; left: 50%; width: 18px; height: 20px; margin-left: -9px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: var(--ru-bead-bg); box-shadow: 0 2px 4px color-mix(in srgb, #000 22%, transparent), inset 0 0 0 .5px color-mix(in srgb, #000 15%, transparent); }
.kit-js .ru-bead { transform: scale(0); transition: transform .9s cubic-bezier(.3, 1.6, .5, 1) calc(.3s + var(--k) * .2s); }
.kit-js .is-visible .ru-bead { transform: none; }
@media (max-width: 640px) {
    .ru-strand { text-align: left; gap: 26px; padding-left: 40px; }
    .ru-strand::before { left: 13px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; border: 0; border-radius: 0; background: linear-gradient(transparent, var(--ru-thread) 10%, var(--ru-thread) 90%, transparent); }
    .ru-strand li { justify-items: start; padding-top: 0; }
    .ru-bead { left: -36px; top: 6px; margin-left: 0; }
}

/* Story: photos emerging from the mist */
.ru-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 8vw, 90px); }
.ru-chapter { display: grid; gap: 30px; align-items: center; }
.ru-chapter-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; box-shadow: var(--ru-shadow); }
.ru-chapter-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ru-chapter-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, color-mix(in srgb, var(--inv-bg) 85%, #fff), color-mix(in srgb, var(--inv-bg) 60%, transparent) 55%, transparent); opacity: 0; }
.kit-js .ru-chapter-photo img { filter: blur(10px); transform: scale(1.06); transition: filter 2s ease .3s, transform 2.4s ease .3s; }
.kit-js .ru-chapter-photo::after { opacity: 1; transform: translateY(0); transition: opacity 2.2s ease .4s, transform 2.4s ease .4s; }
.kit-js .ru-chapter.is-visible .ru-chapter-photo img { filter: none; transform: none; }
.kit-js .ru-chapter.is-visible .ru-chapter-photo::after { opacity: 0; transform: translateY(-30%); }
.ru-chapter-text h3 { font-size: 1.8rem; color: var(--inv-primary); margin-bottom: 8px; }
.ru-chapter-text p:not(.ru-kicker) { color: var(--ru-soft); }
@media (min-width: 900px) {
    .ru-chapter { grid-template-columns: 1fr 1fr; gap: 60px; }
    .ru-chapter:nth-child(even) .ru-chapter-photo { order: 2; }
}

/* Programme: great drops on a silk thread, the hour inside */
.ru-moments { --dd: clamp(84px, 22vw, 112px); position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; gap: 44px; }
.ru-moments::before { content: ""; position: absolute; top: -30px; bottom: -30px; left: calc(var(--dd) / 2); width: 1px; background: linear-gradient(transparent, var(--ru-thread) 8%, var(--ru-thread) 92%, transparent); }
.ru-moment { display: grid; grid-template-columns: var(--dd) minmax(0, 1fr); gap: clamp(16px, 4vw, 34px); align-items: start; }
.ru-moment-drop { position: relative; width: var(--dd); aspect-ratio: .86; margin: 0; display: grid; place-items: center; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
    background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--inv-primary) 14%, var(--inv-surface)), color-mix(in srgb, var(--inv-primary) 26%, var(--inv-bg)) 88%);
    box-shadow: var(--ru-shadow), 0 0 0 1px color-mix(in srgb, #fff 50%, transparent), inset 0 -10px 18px color-mix(in srgb, #fff 40%, transparent), inset 0 10px 16px color-mix(in srgb, #000 10%, transparent); }
.ru-moment-drop::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse 26% 13% at 34% 18%, color-mix(in srgb, #fff 88%, transparent), transparent 70%), radial-gradient(ellipse 50% 18% at 55% 92%, color-mix(in srgb, #fff 45%, transparent), transparent 72%); }
.ru-moment-drop span { position: relative; font-family: var(--inv-font-heading); font-weight: 500; font-size: clamp(1.1rem, 4vw, 1.4rem); color: var(--inv-primary); font-variant-numeric: tabular-nums; margin-top: 10%; }
.kit-js .ru-moment .ru-moment-drop { transform: scale(.3); opacity: 0; filter: blur(6px); transition: transform 1.1s cubic-bezier(.3, 1.4, .5, 1) .1s, opacity .8s ease .1s, filter .8s ease .1s; }
.kit-js .ru-moment.is-visible .ru-moment-drop { transform: none; opacity: 1; filter: none; }
.ru-moment-text { padding-top: 8px; }
.ru-moment-text h3 { font-size: clamp(1.4rem, 4.4vw, 1.75rem); color: var(--inv-primary); margin: 4px 0 4px; }
.ru-moment-date { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ru-sun); margin: 0 0 10px; }
.ru-moment-place { font-weight: 500; margin: 0; }
.ru-moment-address, .ru-moment-notes { color: var(--ru-soft); margin: 0; }
.ru-moment-notes { font-style: italic; margin-top: 6px; }
.ru-moment .kit-event-actions { margin-top: 14px; }
.roua .kit-button { border-radius: 999px; border: 1px solid var(--ru-line); color: var(--inv-primary); background: color-mix(in srgb, var(--inv-surface) 60%, transparent); font-size: .78rem; font-weight: 500; padding: 8px 18px; text-decoration: none; }
.roua .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: glossy dewdrops */
.ru-countdown { text-align: center; }
.ru-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px clamp(8px, 2.4vw, 22px); margin-top: 14px; }
.ru-countdown .kit-countdown-unit { position: relative; width: clamp(74px, 20vw, 118px); min-width: 0; aspect-ratio: .88; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
    background: radial-gradient(circle at 50% 64%, color-mix(in srgb, var(--inv-primary) 10%, var(--inv-surface)), color-mix(in srgb, var(--inv-primary) 24%, var(--inv-bg)) 90%);
    box-shadow: var(--ru-shadow), 0 0 0 1px color-mix(in srgb, #fff 50%, transparent), inset 0 -10px 18px color-mix(in srgb, #fff 40%, transparent), inset 0 10px 16px color-mix(in srgb, #000 10%, transparent);
    animation: ru-wobble 5s ease-in-out infinite; }
.ru-countdown .kit-countdown-unit:nth-child(2) { animation-delay: -1.2s; }
.ru-countdown .kit-countdown-unit:nth-child(3) { animation-delay: -2.4s; }
.ru-countdown .kit-countdown-unit:nth-child(4) { animation-delay: -3.6s; }
.ru-countdown .kit-countdown-unit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse 26% 13% at 34% 18%, color-mix(in srgb, #fff 88%, transparent), transparent 70%), radial-gradient(ellipse 50% 18% at 55% 92%, color-mix(in srgb, #fff 45%, transparent), transparent 72%); }
.ru-countdown .kit-countdown-value { position: relative; font-family: var(--inv-font-heading); font-weight: 500; font-size: clamp(1.4rem, 5.4vw, 2.3rem); line-height: 1; color: var(--inv-primary); font-variant-numeric: tabular-nums; margin-top: 8%; }
.ru-countdown .kit-countdown-label { position: relative; margin-top: 4px; opacity: 1; color: var(--ru-soft); font-size: .56rem; font-weight: 500; letter-spacing: .14em; }

/* Gallery: soft photos, a drop of light across them */
.ru-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.ru-gallery-grid.kit-gallery a { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: var(--ru-shadow); }
.ru-gallery-grid.kit-gallery a:nth-child(3n + 2) { border-radius: 50% 50% 22px 22px / 34% 34% 22px 22px; }
.ru-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.ru-gallery-grid.kit-gallery a::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, color-mix(in srgb, #fff 32%, transparent) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat; transition: background-position 1.2s ease; }
.ru-gallery-grid.kit-gallery a:hover img { transform: scale(1.04); }
.ru-gallery-grid.kit-gallery a:hover::after { background-position: 150% 0; }
@media (min-width: 760px) { .ru-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP */
.ru-reply { max-width: 700px; margin: 0 auto; padding: clamp(44px, 6vw, 62px) clamp(24px, 6vw, 58px) clamp(36px, 5vw, 52px); }
.roua .inv-rsvp__intro { font-family: var(--inv-font-heading); font-style: italic; font-weight: 300; font-size: 1.14rem; }
.roua .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ru-sun); }

/* Info, contact */
.ru-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ru-info-item { padding: 40px 26px 22px; text-align: center; }
.ru-info-drop { position: absolute; top: -11px; left: 50%; width: 20px; height: 22px; margin-left: -10px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: var(--ru-bead-bg); box-shadow: 0 2px 4px color-mix(in srgb, #000 22%, transparent), inset 0 0 0 .5px color-mix(in srgb, #000 15%, transparent); }
.ru-info-item h3 { font-size: 1.36rem; color: var(--inv-primary); margin-bottom: 8px; }
.ru-faq { max-width: 720px; margin: 46px auto 0; text-align: center; }
.ru-faq details { text-align: left; border-bottom: 1px solid var(--ru-line); }
.ru-faq details:first-of-type { border-top: 1px solid var(--ru-line); }
.ru-faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 6px; position: relative; font-family: var(--inv-font-heading); font-size: 1.12rem; }
.ru-faq summary::-webkit-details-marker { display: none; }
.ru-faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 10px; height: 11px; margin-top: -6px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: var(--ru-bead-bg); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.ru-faq details[open] summary::after { transform: translateY(4px) scale(.9, 1.2); }
.ru-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; }
.ru-faq details p { padding: 0 6px; color: var(--ru-soft); }
.ru-faq details p:last-child { padding-bottom: 16px; }
.ru-contact { text-align: center; }
.ru-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.ru-contact-person a { text-decoration: none; }

/* ---------- Footer: a web weaves itself and fills with dew ---------- */
.ru-footer { text-align: center; padding: clamp(100px, 14vw, 160px) 16px 70px; overflow-x: hidden; overflow-x: clip; }
.ru-web { display: block; width: 210px; height: 210px; margin: 0 auto 20px; overflow: visible; }
.ru-web-spokes, .ru-web-spiral { fill: none; stroke: var(--ru-thread); stroke-width: .7; }
.ru-web-spiral { stroke-width: .55; }
.ru-web-bead { fill: color-mix(in srgb, #cfe0ec 72%, var(--inv-primary)); stroke: color-mix(in srgb, #fff 80%, transparent); stroke-width: .5; filter: drop-shadow(0 .6px .6px color-mix(in srgb, #000 25%, transparent)); }
.kit-js .ru-web-spokes, .kit-js .ru-web-spiral { stroke-dasharray: 1; stroke-dashoffset: 1; }
.kit-js .ru-web-bead { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
.kit-js .ru-footer.is-visible .ru-web-spokes { animation: ru-draw 1.4s ease .2s forwards; }
.kit-js .ru-footer.is-visible .ru-web-spiral { animation: ru-draw 3s ease-in-out 1.3s forwards; }
.kit-js .ru-footer.is-visible .ru-web-bead { animation: ru-bead .8s cubic-bezier(.3, 1.6, .5, 1) calc(2.2s + var(--o) * .025s) forwards, ru-twinkle 4s ease-in-out calc(4s + var(--o) * .13s) infinite; }
@keyframes ru-draw { to { stroke-dashoffset: 0; } }
@keyframes ru-bead { to { opacity: 1; transform: none; } }
@keyframes ru-twinkle { 0%, 86%, 100% { fill: var(--ru-water); } 92% { fill: #fff; } }
.ru-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-weight: 300; font-size: 1.24rem; color: var(--ru-soft); max-width: 36ch; margin: 0 auto 6px; }
.roua .ru-footer-names { font-family: var(--ru-script); font-size: clamp(3.4rem, 12vw, 5.6rem); line-height: 1.1; color: var(--inv-primary); margin: 6px 0 10px; }
.ru-hashtag { letter-spacing: .12em; color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    .ru-rays, .ru-drop-wrap, .ru-pendant, .ru-countdown .kit-countdown-unit, .kit-js .ru-drop, .kit-js .ru-hero-text > * { animation: none; }
    .kit-js .ru-blade-drop, .kit-js .is-visible .ru-blade-drop, .kit-js .ru-welcome.is-visible .ru-blade-drop { animation: none; offset-distance: 100%; opacity: 1; }
    .kit-js .ru-bead, .kit-js .ru-moment .ru-moment-drop { transform: none; opacity: 1; filter: none; transition: none; }
    .kit-js .ru-chapter-photo img { filter: none; transform: none; transition: none; }
    .kit-js .ru-chapter-photo::after { opacity: 0; transition: none; }
    .kit-js .ru-web-spokes, .kit-js .ru-web-spiral { stroke-dashoffset: 0; }
    .kit-js .ru-web-bead { opacity: 1; transform: none; }
    .kit-js .ru-footer.is-visible :is(.ru-web-spokes, .ru-web-spiral, .ru-web-bead) { animation: none; }
}
