/* ==========================================================================
   Recif - a children's party at the bottom of the sea, painted in watercolour: rays of sunlight swaying down through
   the water, bubbles rising all down the page, a sea turtle swimming slowly across, and the photo inside a big
   wobbling bubble over the anemone with its clownfish, a seahorse swaying beside it (a touch of the bubble lets out a
   cloud of bubbles). A string of bubbles rises above every title, the seal pup says hello among the corals, the
   birthday star sits in a bubble beside an open shell with its pearls, the theme is a message found in a bottle,
   every moment has a creature of the reef, the days left float in bubbles, and at the end the diver explores the sea
   floor while seaweed sways over the sand.
   Palette: --inv-primary (the ink), --inv-accent (the water colour), --inv-bg, --inv-text.
   The creatures (assets/art, Pixabay, see LICENSES.md) come with their own transparency; on the dark palette
   (.rf-dark, set by script.js) they get a soft halo of light. script.js draws the bubbles (canvas.rf-bubbles)
   ========================================================================== */

.recif {
    --rf-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --rf-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --rf-water: color-mix(in srgb, var(--inv-accent) 50%, var(--inv-bg));
    --rf-deep: color-mix(in srgb, var(--inv-primary) 14%, var(--inv-bg));
    --rf-sand: color-mix(in srgb, #ecd9b0 86%, var(--inv-accent));
    --rf-weed: color-mix(in srgb, #4f8a5a 70%, var(--inv-primary));
    --rf-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: 18px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--rf-line);
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.03rem;
    line-height: 1.72;
    background: linear-gradient(180deg, var(--rf-water) 0, var(--inv-bg) 900px, var(--inv-bg) calc(100% - 900px), var(--rf-deep) 100%);
    background-color: var(--inv-bg);
    overflow-x: clip;
}
.recif h1, .recif h2, .recif h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.16; }
:where(.recif) :is(h1, h2, h3) { margin: 0; }
:where(.recif) p { margin: 0 0 .9em; }
.recif strong { font-weight: 500; }
.recif a { color: var(--inv-primary); }
.rf-kicker { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.rf-role { font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--rf-soft); margin: 0 0 4px; }
.rf-names { font-family: var(--inv-font-heading); font-size: 1.2rem; margin: 0; }
.rf-hero, .rf-main, .rf-footer { position: relative; z-index: 1; }
.rf-card { position: relative; background: var(--inv-surface); border-radius: 24px; box-shadow: var(--rf-shadow), 0 0 0 1px var(--rf-line); }
.rf-bubbles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- The watercolours ---------- */
.rf-art { position: relative; display: block; }
.rf-art img { display: block; width: 100%; height: auto; }
.rf-dark .rf-art img { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--inv-accent) 35%, transparent)); }

/* ---------- Navigation ---------- */
.rf-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 18px; }
.rf-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.rf-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; }
.rf-nav .kit-nav-links a:hover, .rf-nav .kit-nav-links a.is-current { border-color: var(--inv-primary); color: var(--inv-primary); }
.rf-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-size: 1.5rem; line-height: 1.1; color: var(--inv-primary); text-decoration: none; }
.rf-nav.is-stuck { justify-content: space-between; align-items: center; padding: 6px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--inv-bg) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--rf-line); }
.recif .kit-to-top { background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--rf-line); }
@media (max-width: 899px) {
    .rf-nav { justify-content: flex-end; padding: 12px; }
    .rf-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--rf-line); font-size: 1.2rem; }
    .rf-nav .kit-nav-links { display: none; }
    .rf-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(--rf-shadow);
    }
    .rf-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero: sunlight through the water ---------- */
.rf-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 16px 60px; overflow: hidden; overflow: clip; }
.rf-rays { position: absolute; inset: 0; pointer-events: none; }
.rf-rays i { position: absolute; top: -10%; left: 20%; width: 9%; height: 110%; transform-origin: 50% 0; rotate: 14deg;
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 80%); filter: blur(10px); animation: rf-ray 8s ease-in-out infinite; }
.rf-rays i:nth-child(2) { left: 38%; width: 5%; rotate: 8deg; animation-delay: -2s; }
.rf-rays i:nth-child(3) { left: 55%; width: 12%; rotate: 2deg; animation-delay: -4s; }
.rf-rays i:nth-child(4) { left: 74%; width: 6%; rotate: -6deg; animation-delay: -6s; }
@keyframes rf-ray { 0%, 100% { opacity: .35; translate: 0 0; } 50% { opacity: .75; translate: 20px 0; } }
.rf-dark .rf-rays i { background: linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 30%, transparent), transparent 80%); }

/* the turtle swimming across, facing the way it goes */
.rf-swim { position: absolute; left: 0; top: 18%; width: clamp(110px, 16vw, 180px); z-index: 0; pointer-events: none; opacity: .9; animation: rf-swim 34s linear infinite; }
.rf-turtle { animation: rf-paddle 3.2s ease-in-out infinite; }
@keyframes rf-swim { from { translate: -30vw 0; } to { translate: 130vw 0; } }
@keyframes rf-paddle { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -14px; rotate: 3deg; } }

.rf-hero-inner { position: relative; z-index: 1; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; text-align: center; }
.rf-reef { position: relative; width: min(460px, 94vw); padding-bottom: 8%; }
.rf-bubble--hero { width: 72%; margin: 0 auto; z-index: 1; }
.rf-clown { position: absolute; left: -5%; bottom: -2%; width: 44%; z-index: 2; }
.rf-seahorse { position: absolute; right: -4%; bottom: 4%; width: 32%; z-index: 2; transform-origin: 50% 90%; animation: rf-sway 5s ease-in-out infinite; }
@keyframes rf-sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
.kit-js .rf-clown img { animation: rf-in 1.2s cubic-bezier(.3, 1.2, .5, 1) .4s both; }
.kit-js .rf-seahorse img { animation: rf-in 1.2s cubic-bezier(.3, 1.2, .5, 1) .6s both; }
@keyframes rf-in { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }

/* the photo in a bubble */
.rf-bubble { position: relative; margin: 0; aspect-ratio: 1; animation: rf-bob 6s ease-in-out infinite; }
.rf-bubble-in { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; animation: rf-wobble 7s ease-in-out infinite; background: var(--rf-water);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .55), 0 0 0 6px color-mix(in srgb, var(--inv-primary) 16%, transparent), 0 20px 40px -20px color-mix(in srgb, var(--inv-primary) 60%, transparent); }
.rf-bubble-in img, .rf-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.rf-initial { display: grid; place-items: center; font-family: var(--inv-font-heading); font-size: 5rem; color: var(--inv-primary); }
.rf-shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background:
        radial-gradient(ellipse 22% 14% at 30% 20%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
        radial-gradient(circle at 72% 80%, rgba(255, 255, 255, .35) 0 4%, transparent 5%),
        radial-gradient(circle, transparent 62%, rgba(255, 255, 255, .12) 70%, rgba(190, 240, 255, .35) 92%, rgba(255, 210, 250, .4) 100%);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .45), inset -8px -10px 24px rgba(120, 200, 255, .25); }
@keyframes rf-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes rf-wobble { 0%, 100% { border-radius: 50%; } 25% { border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%; } 50% { border-radius: 49% 51% 48% 52% / 51% 49% 52% 48%; } 75% { border-radius: 51% 49% 52% 48% / 50% 50% 49% 51%; } }
.rf-bubble--hero { cursor: pointer; }
.rf-bubble.is-popping .rf-bubble-in { animation: rf-pop .7s cubic-bezier(.3, 1.6, .5, 1) 1; }
@keyframes rf-pop { 0% { scale: 1; } 30% { scale: 1.06 .94; } 60% { scale: .97 1.03; } 100% { scale: 1; } }

.rf-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.recif .rf-name { font-family: var(--inv-font-heading); font-size: clamp(2.8rem, 11vw, 4.8rem); line-height: 1.08; color: var(--inv-primary); overflow-wrap: anywhere; margin: 0 0 12px; text-shadow: 0 4px 0 color-mix(in srgb, var(--inv-accent) 60%, transparent); }
.rf-hero-date { font-family: var(--inv-font-heading); font-size: 1.3rem; margin: 0 0 4px; }
.rf-hero-place { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--rf-soft); margin: 0; }
.recif .rf-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--rf-soft); }
@keyframes rf-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.kit-js .rf-hero-text > * { animation: rf-up 1s ease .8s both; }
.kit-js .rf-hero-text > :nth-child(n+3) { animation-delay: 1.1s; }
@media (min-width: 900px) {
    .rf-hero { padding-top: 140px; }
    .rf-hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; text-align: left; align-items: center; }
    .rf-hero-text { justify-items: start; order: -1; }
    .recif .rf-subtitle { margin-left: 0; }
    .rf-reef { width: min(520px, 44vw); }
}

/* ---------- Sections ---------- */
.rf-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.rf-section { padding-top: clamp(84px, 11vw, 128px); }
.rf-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.rf-title h2 { font-size: clamp(1.9rem, 5.4vw, 2.6rem); color: var(--inv-primary); text-wrap: balance; }
.rf-fizz { position: relative; display: block; width: 40px; height: 44px; margin: 0 auto 8px; }
.rf-fizz i { position: absolute; left: 50%; bottom: 0; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--inv-primary) 45%, transparent);
    background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .9) 0 18%, transparent 24%); opacity: 0; }
.rf-fizz i:nth-child(2) { width: 7px; height: 7px; }
.rf-fizz i:nth-child(3) { width: 12px; height: 12px; }
.rf-fizz i:nth-child(4) { width: 6px; height: 6px; }
.kit-js .rf-title.is-visible .rf-fizz i { animation: rf-fizz 2.8s ease-in infinite; }
.kit-js .rf-title.is-visible .rf-fizz i:nth-child(2) { animation-delay: .55s; }
.kit-js .rf-title.is-visible .rf-fizz i:nth-child(3) { animation-delay: 1.1s; }
.kit-js .rf-title.is-visible .rf-fizz i:nth-child(4) { animation-delay: 1.65s; }
.kit-js .rf-title.is-visible .rf-fizz i:nth-child(5) { animation-delay: 2.2s; }
@keyframes rf-fizz { 0% { opacity: 0; translate: -50% 0; } 15% { opacity: 1; } 50% { translate: calc(-50% + 6px) -22px; } 100% { opacity: 0; translate: calc(-50% - 4px) -44px; } }

/* Welcome, with the seal pup */
.rf-welcome { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.rf-welcome p { font-size: 1.05rem; }
.rf-seal { width: min(210px, 52vw); }
.kit-js .rf-welcome .rf-seal img { opacity: 0; translate: 0 22px; transition: opacity .9s ease, translate 1s cubic-bezier(.3, 1.4, .5, 1); }
.kit-js .rf-welcome.is-visible .rf-seal img { opacity: 1; translate: 0 0; }
.recif .rf-welcome-title { font-size: clamp(2.2rem, 7vw, 3rem); color: var(--inv-primary); margin-bottom: 12px; }
.rf-quote-author { font-family: var(--inv-font-heading); color: var(--inv-primary); }
@media (min-width: 760px) {
    .rf-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 50px; text-align: left; align-items: center; }
    .rf-seal { width: 240px; }
}

/* The birthday star in a bubble, beside the open shell */
.rf-host-grid { display: grid; gap: 56px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.rf-portrait { position: relative; width: min(240px, 58vw); }
.rf-bubble--portrait { animation-delay: -2s; }
.rf-shell { position: absolute; right: -34%; bottom: -22%; width: 60%; z-index: 2; }
.kit-js .rf-host-grid .rf-shell img { opacity: 0; translate: 20px 10px; transition: opacity .8s ease .5s, translate 1s cubic-bezier(.3, 1.3, .5, 1) .5s; }
.kit-js .rf-host-grid.is-visible .rf-shell img { opacity: 1; translate: 0 0; }
.rf-host-name { font-family: var(--inv-font-heading); font-size: 1.8rem; color: var(--inv-primary); margin-bottom: 4px; }
.rf-host-age { display: inline-grid; place-items: center; min-width: 74px; padding: 6px 16px; margin-bottom: 14px; border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--inv-primary); background: color-mix(in srgb, var(--inv-accent) 45%, transparent); }
.rf-host-message { font-size: 1.06rem; max-width: 38ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .rf-host-grid { grid-template-columns: auto minmax(0, 1fr); gap: 130px; text-align: left; align-items: center; }
    .rf-portrait { width: 250px; }
    .rf-host-message { margin-left: 0; }
}
@media (max-width: 759px) { .rf-shell { right: -22%; width: 52%; } }

/* The theme: a message in a bottle, its paper curling at the ends */
.rf-message { position: relative; max-width: 600px; margin: 0 auto; padding: 46px clamp(30px, 7vw, 60px) 40px; text-align: center; color: #3c3226;
    background: linear-gradient(90deg, rgba(120, 90, 50, .22), transparent 7%, transparent 93%, rgba(120, 90, 50, .22)), linear-gradient(#fbf3df, #f1e2bf);
    border-radius: 6px; box-shadow: var(--rf-shadow); }
.rf-message::before, .rf-message::after { content: ""; position: absolute; left: -8px; right: -8px; height: 22px; border-radius: 11px; background: linear-gradient(180deg, #e7d3a6, #fbf1d8 45%, #d9c08b); box-shadow: 0 3px 6px rgba(80, 60, 30, .25); }
.rf-message::before { top: -10px; }
.rf-message::after { bottom: -10px; }
.rf-message h3 { font-family: var(--inv-font-heading); font-size: clamp(1.5rem, 5vw, 2rem); color: color-mix(in srgb, var(--inv-primary) 70%, #3c3226); margin-bottom: 10px; }
.kit-js .rf-theme .rf-message { scale: 1 .2; opacity: 0; transition: scale 1s cubic-bezier(.3, 1.3, .5, 1), opacity .4s ease; }
.kit-js .rf-theme.is-visible .rf-message { scale: 1 1; opacity: 1; }

/* Programme: a creature of the reef for every moment */
.rf-tides { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 30px; }
.rf-wave-card { display: grid; gap: 4px 26px; justify-items: center; text-align: center; padding: 26px clamp(20px, 5vw, 36px) 24px; overflow: hidden; }
.rf-wave-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: radial-gradient(circle at 10px -4px, transparent 10px, color-mix(in srgb, var(--inv-accent) 55%, transparent) 10.5px) 0 0 / 20px 10px repeat-x; }
.rf-wave-art { width: min(150px, 42vw); }
.rf-wave:nth-child(5n+1) .rf-wave-art { animation: rf-bob 4.6s ease-in-out infinite; }
.kit-js .rf-wave .rf-wave-card { opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .9s cubic-bezier(.3, 1.2, .5, 1); }
.kit-js .rf-wave.is-visible .rf-wave-card { opacity: 1; translate: 0 0; }
.rf-wave-time { font-family: var(--inv-font-heading); font-size: 1.6rem; line-height: 1.1; color: var(--inv-primary); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.rf-wave-text h3 { font-size: clamp(1.24rem, 4vw, 1.44rem); margin-bottom: 4px; }
.rf-wave-place { font-weight: 500; margin: 0; }
.rf-wave-address, .rf-wave-notes { color: var(--rf-soft); margin: 0; }
.rf-wave-notes { font-style: italic; margin-top: 6px; }
.rf-wave .kit-event-actions { margin-top: 14px; justify-content: center; }
@media (min-width: 760px) {
    .rf-wave-card { grid-template-columns: 160px minmax(0, 1fr); text-align: left; align-items: center; justify-items: start; padding: 30px 36px 26px; }
    .rf-wave:nth-child(even) .rf-wave-card { grid-template-columns: minmax(0, 1fr) 160px; }
    .rf-wave:nth-child(even) .rf-wave-art { order: 2; }
    .rf-wave-art { width: 160px; }
    .rf-wave .kit-event-actions { justify-content: flex-start; }
}
.recif .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; }
.recif .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: bubbles bobbing on the current */
.rf-countdown { text-align: center; }
.rf-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px clamp(8px, 2.6vw, 24px); margin-top: 30px; }
.rf-countdown .kit-countdown-unit { position: relative; width: clamp(76px, 20vw, 112px); min-width: 0; aspect-ratio: 1; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%;
    background: radial-gradient(ellipse 30% 20% at 32% 24%, rgba(255, 255, 255, .9), transparent 70%), radial-gradient(circle, color-mix(in srgb, var(--inv-surface) 60%, transparent) 55%, color-mix(in srgb, var(--inv-accent) 55%, transparent) 88%, rgba(255, 220, 250, .5) 100%);
    box-shadow: inset 0 0 16px rgba(255, 255, 255, .5), 0 12px 20px -14px color-mix(in srgb, var(--inv-primary) 60%, transparent);
    animation: rf-bob 4s ease-in-out infinite; }
.rf-countdown .kit-countdown-unit:nth-child(2) { animation-delay: -1s; }
.rf-countdown .kit-countdown-unit:nth-child(3) { animation-delay: -2s; }
.rf-countdown .kit-countdown-unit:nth-child(4) { animation-delay: -3s; }
.rf-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-size: clamp(1.3rem, 5vw, 2rem); line-height: 1; color: var(--inv-primary); font-variant-numeric: tabular-nums; }
.rf-countdown .kit-countdown-label { opacity: 1; color: var(--rf-soft); font-size: .52rem; font-weight: 500; letter-spacing: .1em; margin-top: 2px; }

/* Gallery: photos like little aquariums */
.rf-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 26px); }
.rf-gallery-grid.kit-gallery a { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: var(--rf-shadow), 0 0 0 5px color-mix(in srgb, var(--inv-surface) 80%, transparent); }
.rf-gallery-grid.kit-gallery a:nth-child(3n+2) { border-radius: 50% 50% 28px 28px / 36% 36% 28px 28px; }
.rf-gallery-grid.kit-gallery a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse 30% 14% at 28% 14%, rgba(255, 255, 255, .5), transparent 70%), linear-gradient(transparent 70%, color-mix(in srgb, var(--inv-accent) 30%, transparent)); }
.rf-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s ease; }
.rf-gallery-grid.kit-gallery a:hover img { scale: 1.04; }
@media (min-width: 760px) { .rf-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP, info, contact */
.rf-reply { max-width: 700px; margin: 0 auto; padding: clamp(40px, 6vw, 56px) clamp(24px, 6vw, 56px) clamp(32px, 5vw, 48px); }
.recif .inv-rsvp__intro { font-size: 1.06rem; }
.recif .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
.rf-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.rf-info-item { padding: 30px 24px 20px; text-align: center; }
.rf-info-item h3 { font-size: 1.3rem; color: var(--inv-primary); margin-bottom: 8px; }
.rf-faq { max-width: 720px; margin: 46px auto 0; text-align: center; display: grid; gap: 12px; }
.rf-faq details { text-align: left; }
.rf-faq summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 22px; position: relative; font-weight: 500; font-size: 1.02rem; }
.rf-faq summary::-webkit-details-marker { display: none; }
.rf-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--inv-primary) 50%, transparent); background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .9) 0 18%, transparent 24%); transition: scale .4s cubic-bezier(.3, 1.8, .5, 1); }
.rf-faq details[open] summary::after { scale: 1.3; }
.rf-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; border-radius: 24px; }
.rf-faq details p { padding: 0 22px; color: var(--rf-soft); }
.rf-faq details p:last-child { padding-bottom: 16px; }
.rf-contact { text-align: center; }
.rf-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.rf-contact-person a { text-decoration: none; }

/* ---------- Footer: the sea floor ---------- */
.rf-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 0 0; overflow: hidden; overflow: clip; }
.rf-footer-message { font-size: 1.14rem; color: var(--rf-soft); max-width: 36ch; margin: 0 auto 6px; padding: 0 16px; }
.recif .rf-footer-name { font-family: var(--inv-font-heading); font-size: clamp(2.6rem, 10vw, 4rem); line-height: 1.12; color: var(--inv-primary); margin: 4px 0 10px; padding: 0 16px; }
.rf-hashtag { letter-spacing: .12em; color: var(--inv-primary); }
.rf-seabed { position: relative; height: clamp(250px, 38vw, 340px); margin-top: 26px; }
.rf-sand { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: 1;
    background: radial-gradient(circle at 20% 40%, rgba(255, 255, 255, .35) 0 2px, transparent 3px) 0 0 / 46px 30px, radial-gradient(circle at 70% 70%, rgba(120, 90, 50, .2) 0 1.5px, transparent 2.5px) 0 0 / 34px 26px, var(--rf-sand);
    -webkit-mask: radial-gradient(ellipse 60% 26px at 50% 26px, #000 98%, transparent) 0 0 / 220px 52px repeat-x, linear-gradient(#000, #000) 0 26px / 100% 100% no-repeat;
    mask: radial-gradient(ellipse 60% 26px at 50% 26px, #000 98%, transparent) 0 0 / 220px 52px repeat-x, linear-gradient(#000, #000) 0 26px / 100% 100% no-repeat; }
.rf-diver { position: absolute; left: 50%; bottom: 46px; width: clamp(130px, 22vw, 190px); translate: -50% 0; z-index: 2; }
.kit-js .rf-footer .rf-diver img { opacity: 0; translate: 0 30px; }
.kit-js .rf-footer.is-visible .rf-diver img { animation: rf-in 1.6s ease .2s both; }
.rf-weed { position: absolute; bottom: 40px; left: calc(3% + var(--i) * 11.4%); width: 34px; height: calc(110px + (var(--i) * 7px)); opacity: .8; transform-origin: 50% 100%; z-index: 1; background: var(--rf-weed);
    clip-path: polygon(44% 100%, 58% 100%, 66% 90%, 82% 80%, 64% 72%, 60% 62%, 80% 50%, 60% 44%, 58% 34%, 74% 22%, 56% 16%, 52% 0, 44% 10%, 30% 18%, 44% 26%, 42% 38%, 22% 46%, 40% 54%, 42% 64%, 20% 74%, 40% 82%);
    animation: rf-weed 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
.rf-weed:nth-child(3n) { height: calc(60px + var(--i) * 5px); background: color-mix(in srgb, var(--rf-weed) 70%, #c86a7a); }
@keyframes rf-weed { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }

@media (prefers-reduced-motion: reduce) {
    .rf-rays i, .rf-swim, .rf-turtle, .rf-seahorse, .rf-bubble, .rf-bubble-in, .kit-js .rf-clown img, .kit-js .rf-seahorse img, .kit-js .rf-hero-text > *, .rf-wave-art, .rf-countdown .kit-countdown-unit, .rf-weed { animation: none; }
    .rf-swim { display: none; }
    .kit-js .rf-welcome .rf-seal img, .kit-js .rf-host-grid .rf-shell img, .kit-js .rf-theme .rf-message, .kit-js .rf-wave .rf-wave-card { opacity: 1; translate: 0 0; scale: 1; transition: none; }
    .kit-js .rf-footer .rf-diver img { opacity: 1; translate: 0 0; animation: none; }
}
