/* ==========================================================================
   Albinuță - a christening as sweet as honey, painted in watercolour: the photo in a golden honeycomb with a drop of
   honey gathering at its tip, little bees flying round it (a touch sends them into their round dance) and a
   sunflower with a bee beside it. Grains of pollen float down the page, a little bee flies in above every title,
   the bee with the flowers says hello, the child's portrait sits in a honeycomb beside the sleeping queen bee, the
   parents and godparents have their bee couples, the days left fill honeycomb cells with honey, the photos settle
   into a honeycomb and at the end two little bees wave goodbye from a heart of daisies.
   Palette: --inv-primary (the ink), --inv-accent (the soft colour), --inv-bg, --inv-text.
   The watercolours (assets/art, Pixabay, see LICENSES.md) are transparent; on the dark palette (.al-dark, set by
   script.js) they get back a sheet of watercolour paper. script.js draws the pollen (canvas.al-air)
   ========================================================================== */

.albinuta {
    --al-hand: 'Dancing Script', 'Segoe Script', cursive;
    --al-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --al-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --al-paper: color-mix(in srgb, #fffbef 90%, var(--inv-accent));
    --al-honey: linear-gradient(160deg, #fde08a, #f2b632 45%, #d98e19 80%, #b8700f);
    --al-hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    --al-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(--al-line);
    font-family: var(--inv-font-body);
    font-weight: 400;
    font-size: 1.03rem;
    line-height: 1.72;
    background: var(--inv-bg);
    overflow-x: clip;
}
.albinuta h1, .albinuta h2, .albinuta h3 { font-family: var(--inv-font-heading); font-weight: 500; line-height: 1.12; }
:where(.albinuta) :is(h1, h2, h3) { margin: 0; }
:where(.albinuta) p { margin: 0 0 .9em; }
.albinuta strong { font-weight: 700; }
.albinuta a { color: var(--inv-primary); }
.al-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.al-role { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--al-soft); margin: 0 0 4px; }
.al-names { font-family: var(--inv-font-heading); font-size: 1.3rem; margin: 0; }
.al-hero, .al-main, .al-footer { position: relative; z-index: 1; }
.al-card { position: relative; background: var(--inv-surface); border-radius: 22px; box-shadow: var(--al-shadow), 0 0 0 1px var(--al-line); }
.al-air { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

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

/* ---------- The honeycomb frame ---------- */
.al-comb { position: relative; margin: 0; aspect-ratio: .866; filter: drop-shadow(0 22px 26px color-mix(in srgb, #7a4a05 30%, transparent)); }
.al-comb::before { content: ""; position: absolute; inset: 0; clip-path: var(--al-hex);
    background: radial-gradient(circle at 30% 18%, rgba(255, 248, 214, .8), transparent 32%), radial-gradient(circle at 74% 86%, rgba(150, 82, 6, .35), transparent 40%), var(--al-honey); }
.al-comb-photo { position: absolute; inset: 6.5%; clip-path: var(--al-hex); background: var(--al-paper); }
.al-comb-photo img, .al-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.al-initial { display: grid; place-items: center; font-family: var(--al-hand); font-size: 5rem; color: var(--inv-primary); }
/* the drop of honey gathering at the tip of the comb, then falling */
.al-drop { position: absolute; left: 50%; top: 97%; width: 16px; height: 21px; margin-left: -8px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; transform-origin: 50% 0;
    background: radial-gradient(circle at 36% 62%, #fff3c4 0 12%, transparent 28%), linear-gradient(180deg, #f5bd3c, #c97b10); opacity: 0; }
.kit-js .al-drop { animation: al-drip 7s ease-in 2.4s infinite; }
@keyframes al-drip { 0% { opacity: 0; scale: .2 .2; translate: 0 0; } 10% { opacity: 1; } 55% { opacity: 1; scale: 1 1; translate: 0 0; } 62% { scale: .9 1.15; } 80% { opacity: 1; translate: 0 90px; } 86%, 100% { opacity: 0; translate: 0 110px; scale: .9 1.15; } }
.al-garden.is-dancing .al-drop { animation: al-fall .9s ease-in 1; }
@keyframes al-fall { 0% { opacity: 1; scale: 1; translate: 0 0; } 70% { opacity: 1; translate: 0 90px; } 100% { opacity: 0; translate: 0 110px; } }

/* ---------- The little bees (drawn facing right, so offset-rotate turns them along their path) ---------- */
.al-bee { position: absolute; display: block; width: 34px; height: 23px; }
.al-bee b { position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle at 88% 30%, #120b04 0 1.6px, transparent 2px), radial-gradient(circle at 88% 70%, #120b04 0 1.6px, transparent 2px), linear-gradient(90deg, #3a2410 0 10%, #f7c740 10% 27%, #3a2410 27% 40%, #f7c740 40% 56%, #3a2410 56% 68%, #f7c740 68% 78%, #3a2410 78%);
    box-shadow: inset 0 -3px 4px rgba(90, 50, 0, .35), inset 0 2px 3px rgba(255, 245, 200, .6); }
/* seen from above, the wings on both sides of the body, so the bee looks right whichever way it turns */
.al-bee::before, .al-bee::after { content: ""; position: absolute; left: 30%; bottom: 60%; width: 44%; height: 86%; border-radius: 50% 50% 46% 46%; transform-origin: 50% 100%;
    background: rgba(255, 255, 255, .8); border: 1px solid rgba(130, 150, 175, .55); rotate: -14deg; }
.al-bee::after { bottom: auto; top: 60%; transform-origin: 50% 0; rotate: 14deg; }
.kit-js .al-bee::before, .kit-js .al-bee::after { animation: al-flap .11s ease-in-out infinite alternate; }
@keyframes al-flap { from { scale: 1 1; } to { scale: 1 .35; } }

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

/* ---------- Hero: the honeycomb, the sunflower and the bees ---------- */
.al-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 110px 16px 70px; overflow: hidden; overflow: clip; }
.al-sun { position: absolute; left: -20%; top: -16%; width: min(1000px, 160vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, #ffd45e 34%, transparent), transparent 72%); }
.al-dark .al-sun { background: radial-gradient(closest-side, color-mix(in srgb, #f2b632 18%, transparent), transparent 72%); }
.al-hero-inner { position: relative; z-index: 1; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 40px; text-align: center; }
.al-garden { position: relative; width: min(300px, 64vw); margin: 4% 0 10% 18%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kit-js .al-comb--hero { animation: al-rise 1.3s cubic-bezier(.3, 1.2, .5, 1) .1s both; }
@keyframes al-rise { from { opacity: 0; translate: 0 30px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
.al-sunflower { position: absolute; left: -38%; bottom: -16%; width: 66%; z-index: 3; transform-origin: 50% 100%; }
.kit-js .al-sunflower img { animation: al-grow 1.3s cubic-bezier(.3, 1.3, .5, 1) .6s both; }
@keyframes al-grow { from { opacity: 0; translate: 0 40px; scale: .86; } to { opacity: 1; translate: 0 0; scale: 1; } }
.kit-js .al-sunflower { animation: al-sway 6s ease-in-out 2s infinite; }
@keyframes al-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 2.5deg; } }
/* the flight paths are drawn in a 400 x 460 box centred on the comb, scaled down with the comb on a phone */
.al-flight { position: absolute; left: 50%; top: 50%; width: 400px; height: 460px; margin: -230px 0 0 -200px; z-index: 4; pointer-events: none; scale: .74; transform-origin: 50% 50%; }
.al-flight .al-bee { left: 0; top: 0; offset-rotate: auto; opacity: 0; }
.al-bee--1 { offset-path: path('M 200 14 C 360 0, 420 150, 380 250 C 340 360, 260 450, 150 430 C 40 410, -10 300, 30 190 C 60 90, 110 20, 200 14 Z'); }
.al-bee--2 { offset-path: path('M 330 120 C 410 200, 380 330, 290 380 C 210 420, 120 360, 150 280 C 180 200, 290 230, 280 320 C 270 420, 120 460, 60 380 C 0 300, 60 160, 160 110 C 230 74, 290 80, 330 120 Z'); width: 30px; height: 20px; }
.al-bee--3 { offset-path: path('M 60 120 C 20 60, 120 -10, 210 40 C 300 90, 420 40, 390 150 C 360 260, 220 220, 200 300 C 180 380, 320 460, 200 450 C 80 440, 100 340, 60 260 C 30 200, 90 170, 60 120 Z'); width: 27px; height: 18px; }
.kit-js .al-bee--1 { animation: al-fly 11s linear 1.4s infinite, al-show .6s ease 1.4s both; }
.kit-js .al-bee--2 { animation: al-fly 14s linear 2s infinite, al-show .6s ease 2s both; }
.kit-js .al-bee--3 { animation: al-fly 17s linear 2.6s infinite, al-show .6s ease 2.6s both; }
@keyframes al-fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes al-show { from { opacity: 0; } to { opacity: 1; } }
/* the round dance: the whole flight whirls once round the comb */
.al-garden.is-dancing .al-flight { animation: al-dance 1.4s cubic-bezier(.45, 0, .3, 1) 1; }
@keyframes al-dance { from { rotate: 0deg; } to { rotate: 360deg; } }
@media (min-width: 900px) { .al-flight { scale: 1; } }

.al-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.albinuta .al-name { font-family: var(--al-hand); font-weight: 600; font-size: clamp(3.6rem, 15vw, 6.4rem); line-height: 1; color: var(--inv-primary); overflow-wrap: anywhere; text-wrap: balance; margin: 0 0 16px; }
.al-hero-date { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.4rem; margin: 0 0 4px; }
.al-hero-place { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--al-soft); margin: 0; }
.albinuta .al-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--al-soft); }
@keyframes al-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.kit-js .al-hero-text > * { animation: al-up 1s ease .9s both; }
.kit-js .al-hero-text > :nth-child(n+3) { animation-delay: 1.2s; }
@media (min-width: 900px) {
    .al-hero { padding-top: 140px; }
    .al-hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 110px; text-align: left; align-items: center; }
    .al-hero-text { justify-items: start; order: -1; }
    .albinuta .al-subtitle { margin-left: 0; }
    .al-garden { width: min(320px, 28vw); margin: 0 7% 4% 12%; }
}

/* ---------- Sections ---------- */
.al-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.al-section { padding-top: clamp(84px, 11vw, 128px); }
.al-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.al-title h2 { font-size: clamp(2rem, 5.6vw, 2.8rem); color: var(--inv-primary); text-wrap: balance; }
.al-perch { position: relative; display: block; width: 64px; height: 30px; margin: 0 auto 12px; }
.al-cell { position: absolute; right: 8px; top: 2px; width: 22px; height: 25px; clip-path: var(--al-hex); background: var(--al-honey); }
.al-bee--title { left: 0; top: 0; width: 22px; height: 15px; offset-path: path('M -70 -40 C -40 -60, -10 10, -2 6 C 6 2, 8 14, 14 14'); offset-rotate: auto; offset-distance: 100%; }
.kit-js .al-title .al-bee--title { opacity: 0; offset-distance: 0%; }
.kit-js .al-title.is-visible .al-bee--title { animation: al-land 1.6s cubic-bezier(.3, .7, .4, 1) .1s both; }
@keyframes al-land { 0% { opacity: 0; offset-distance: 0%; } 15% { opacity: 1; } 100% { opacity: 1; offset-distance: 100%; } }

/* Welcome, from the little bee with flowers */
.al-welcome { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.al-welcome p { font-size: 1.05rem; }
.al-hello { width: min(220px, 56vw); }
.kit-js .al-welcome .al-hello img { opacity: 0; translate: -30px -10px; rotate: -6deg; transition: opacity .9s ease, translate 1.2s cubic-bezier(.3, 1.2, .5, 1), rotate 1.2s ease; }
.kit-js .al-welcome.is-visible .al-hello img { opacity: 1; translate: 0 0; rotate: 0deg; }
.albinuta .al-welcome-title { font-family: var(--al-hand); font-weight: 600; font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1.05; color: var(--inv-primary); margin-bottom: 12px; }
.al-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }
@media (min-width: 760px) {
    .al-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 50px; text-align: left; align-items: center; }
    .al-hello { width: 250px; }
}

/* The little one (the queen sits past the comb, so the section clips what a phone cannot show) */
.al-child { overflow-x: clip; padding-bottom: 30px; }
.al-child-grid { display: grid; gap: 70px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.al-portrait { position: relative; width: min(230px, 58vw); }
.al-queen { position: absolute; right: -40%; bottom: -22%; width: 72%; z-index: 3; }
.kit-js .al-child-grid .al-queen img { opacity: 0; translate: 20px 10px; transition: opacity .8s ease .5s, translate 1.1s cubic-bezier(.3, 1.3, .5, 1) .5s; }
.kit-js .al-child-grid.is-visible .al-queen img { opacity: 1; translate: 0 0; }
.al-child-name { font-family: var(--inv-font-heading); font-size: 1.8rem; color: var(--inv-primary); margin-bottom: 6px; }
.al-child-born { color: var(--al-soft); }
.al-child-born strong { color: var(--inv-text); font-family: var(--inv-font-heading); font-weight: 500; }
.al-child-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.1rem; max-width: 36ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .al-child-grid { grid-template-columns: auto minmax(0, 1fr); gap: 120px; text-align: left; align-items: center; }
    .al-portrait { width: 250px; }
    .al-child-message { margin-left: 0; }
}

/* Family */
.al-lead { text-align: center; font-family: var(--inv-font-heading); font-style: italic; font-size: 1.2rem; color: var(--al-soft); max-width: 40ch; margin: 0 auto 10px; }
.al-cards { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); max-width: 720px; margin: 0 auto; }
.al-namecard { position: relative; padding: 0 22px 26px; text-align: center; border-radius: 26px; background: var(--inv-surface); box-shadow: var(--al-shadow), 0 0 0 1px var(--al-line); margin-top: 76px; }
.al-namecard-art { width: 150px; margin: -80px auto 10px; }
.kit-js .al-family .al-namecard { opacity: 0; translate: 0 20px; transition: opacity .6s ease, translate .8s ease; }
.kit-js .al-family .al-namecard:nth-child(2) { transition-delay: .15s; }
.kit-js .al-family .al-namecard:nth-child(3) { transition-delay: .3s; }
.kit-js .al-family.is-visible .al-namecard { opacity: 1; translate: 0 0; }

/* Programme */
.al-trail { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 30px; }
.al-stop { display: grid; justify-items: center; }
.al-stop-art { width: min(150px, 40vw); margin-bottom: -14px; z-index: 2; }
.al-stop-card { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 28px clamp(20px, 5vw, 36px) 22px; text-align: center; }
.kit-js .al-stop .al-stop-card { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .9s ease; }
.kit-js .al-stop .al-stop-art img { opacity: 0; scale: .8; transition: opacity .6s ease .3s, scale .9s cubic-bezier(.3, 1.5, .5, 1) .3s; }
.kit-js .al-stop.is-visible .al-stop-card { opacity: 1; translate: 0 0; }
.kit-js .al-stop.is-visible .al-stop-art img { opacity: 1; scale: 1; }
.al-stop-time { font-family: var(--al-hand); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--inv-primary); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.al-stop-card h3 { font-size: clamp(1.4rem, 4vw, 1.65rem); margin-bottom: 4px; }
.al-stop-place { font-weight: 700; margin: 0; }
.al-stop-address, .al-stop-notes { color: var(--al-soft); margin: 0; }
.al-stop-notes { font-style: italic; margin-top: 6px; }
.al-stop .kit-event-actions { margin-top: 14px; justify-content: center; }
@media (min-width: 760px) {
    .al-stop { grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 0; }
    .al-stop-art { width: 170px; margin: 0 -26px 0 0; }
    .al-stop:nth-child(even) { grid-template-columns: minmax(0, 1fr) 170px; }
    .al-stop:nth-child(even) .al-stop-art { order: 2; margin: 0 0 0 -26px; }
    .al-stop-card { justify-items: start; text-align: left; padding-left: 48px; }
    .al-stop:nth-child(even) .al-stop-card { padding-left: 36px; padding-right: 48px; }
    .al-stop .kit-event-actions { justify-content: flex-start; }
}
.albinuta .kit-button { border-radius: 999px; border: 1px solid var(--inv-primary); color: var(--inv-primary); background: transparent; font-size: .78rem; font-weight: 700; padding: 8px 18px; text-decoration: none; }
.albinuta .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: each number in a honeycomb cell that fills with honey */
@property --al-fill { syntax: '<percentage>'; inherits: false; initial-value: 72%; }
.al-countdown { text-align: center; }
.al-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px clamp(10px, 3vw, 22px); margin-top: 36px; }
.al-countdown .kit-countdown-unit { position: relative; width: clamp(68px, 18vw, 96px); min-width: 0; aspect-ratio: .866; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: none; isolation: isolate; }
.al-countdown .kit-countdown-unit::before, .al-countdown .kit-countdown-unit::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--al-hex); }
.al-countdown .kit-countdown-unit::before { background: #c98315; }
.al-countdown .kit-countdown-unit::after { --al-fill: 72%; inset: 5px; background: linear-gradient(0deg, #f2b632 0, #e9a425 var(--al-fill), color-mix(in srgb, #fff6d8 80%, var(--inv-accent)) var(--al-fill)); }
.al-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-weight: 600; font-size: clamp(1.3rem, 5vw, 1.9rem); line-height: 1; color: #4a2c06; font-variant-numeric: tabular-nums; }
.al-countdown .kit-countdown-label { opacity: 1; color: #5c3a0c; font-size: .5rem; font-weight: 700; letter-spacing: .1em; margin-top: 3px; }
.kit-js .al-countdown .kit-countdown-unit::after { --al-fill: 0%; transition: --al-fill 1.8s cubic-bezier(.3, .6, .4, 1) .2s; }
.kit-js .al-countdown .kit-countdown-unit:nth-child(2)::after { transition-delay: .4s; }
.kit-js .al-countdown .kit-countdown-unit:nth-child(3)::after { transition-delay: .6s; }
.kit-js .al-countdown .kit-countdown-unit:nth-child(4)::after { transition-delay: .8s; }
.kit-js .al-countdown.is-visible .kit-countdown-unit::after { --al-fill: 72%; }

/* Gallery: a real honeycomb. Rows of two and three cells, each row offset by half a cell and tucked a quarter of a
   cell into the one above, so seven photos make the classic comb (one cell in the middle, six round it) and more
   photos carry on down the same pattern. The gold rims of neighbouring cells meet as the walls of the comb.
   Sizes come from the grid's own width (container query units): a cell is a third of it. */
.al-gallery-grid.kit-gallery { container-type: inline-size; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; max-width: 720px; margin: 0 auto; padding-bottom: 10cqi; }
.al-gallery-grid.kit-gallery a { position: relative; display: block; grid-column: span 2; width: 100%; aspect-ratio: .866; margin-bottom: -9.62cqi; clip-path: var(--al-hex); border-radius: 0; background: var(--al-honey); transition: filter .4s ease; }
.al-gallery-grid.kit-gallery a:nth-child(5n+1) { grid-column: 2 / span 2; }
.al-gallery-grid.kit-gallery a:nth-child(5n+2) { grid-column: 4 / span 2; }
.al-gallery-grid.kit-gallery a:nth-child(5n+3) { grid-column: 1 / span 2; }
.al-gallery-grid.kit-gallery a:nth-child(5n+4) { grid-column: 3 / span 2; }
.al-gallery-grid.kit-gallery a:nth-child(5n) { grid-column: 5 / span 2; }
.al-gallery-grid.kit-gallery a:hover { filter: brightness(1.06) saturate(1.08); }
.al-gallery-grid.kit-gallery img { position: absolute; inset: 2.4cqi 2.1cqi; width: calc(100% - 4.2cqi); height: calc(100% - 4.8cqi); object-fit: cover; clip-path: var(--al-hex); border-radius: 0; }
.kit-js .al-gallery-grid.kit-gallery a { opacity: 0; scale: .6; transition: opacity .6s ease, scale .8s cubic-bezier(.3, 1.4, .5, 1), filter .4s ease; }
.kit-js .al-gallery.is-visible .al-gallery-grid.kit-gallery a, .kit-js .al-gallery-grid.kit-gallery.is-visible a { opacity: 1; scale: 1; }
.kit-js .al-gallery-grid.kit-gallery a:nth-child(5n+1) { transition-delay: .1s; }
.kit-js .al-gallery-grid.kit-gallery a:nth-child(5n+2) { transition-delay: .2s; }
.kit-js .al-gallery-grid.kit-gallery a:nth-child(5n+3) { transition-delay: .3s; }
.kit-js .al-gallery-grid.kit-gallery a:nth-child(5n+4) { transition-delay: 0s; }
.kit-js .al-gallery-grid.kit-gallery a:nth-child(5n) { transition-delay: .4s; }

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

/* ---------- Footer: the two bees in their heart of daisies ---------- */
.al-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 16px 40px; overflow: hidden; overflow: clip; }
.al-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.2rem; color: var(--al-soft); max-width: 36ch; margin: 0 auto 6px; }
.albinuta .al-footer-name { font-family: var(--al-hand); font-weight: 600; font-size: clamp(3.2rem, 11vw, 4.6rem); line-height: 1.05; color: var(--inv-primary); margin: 4px 0 10px; }
.al-hashtag { letter-spacing: .1em; color: var(--inv-primary); }
.al-goodbye { width: min(320px, 76vw); margin: 26px auto 0; }
.kit-js .al-footer .al-goodbye img { opacity: 0; translate: 0 30px; scale: .9; transition: opacity .8s ease .2s, translate 1.1s cubic-bezier(.3, 1.3, .5, 1) .2s, scale 1.1s cubic-bezier(.3, 1.3, .5, 1) .2s; }
.kit-js .al-footer.is-visible .al-goodbye img { opacity: 1; translate: 0 0; scale: 1; }

@media (prefers-reduced-motion: reduce) {
    .kit-js .al-comb--hero, .kit-js .al-sunflower, .kit-js .al-sunflower img, .kit-js .al-hero-text > *, .kit-js .al-drop, .kit-js .al-bee::before, .kit-js .al-bee::after { animation: none; }
    .kit-js .al-flight .al-bee { animation: none; opacity: 1; offset-distance: 20%; }
    .kit-js .al-bee--2 { offset-distance: 55%; }
    .kit-js .al-bee--3 { offset-distance: 80%; }
    .kit-js .al-title .al-bee--title, .kit-js .al-title.is-visible .al-bee--title { animation: none; opacity: 1; offset-distance: 100%; }
    .kit-js .al-welcome .al-hello img, .kit-js .al-child-grid .al-queen img, .kit-js .al-family .al-namecard, .kit-js .al-stop .al-stop-card,
    .kit-js .al-stop .al-stop-art img, .kit-js .al-footer .al-goodbye img { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; transition: none; }
    .kit-js .al-countdown .kit-countdown-unit::after { --al-fill: 72%; transition: none; }
    .kit-js .al-gallery-grid.kit-gallery a { opacity: 1; scale: 1; transition: none; }
}
