/* ==========================================================================
   Cutiuță - a delicate, precious christening, a music box handed down from great-grandparents: the inlaid lid rises
   and the photo appears in the oval mirror inside, on velvet; a songbird rises, turns and sings; through the glass at
   the front the brass cylinder plucks the comb to a real lullaby, and sparks of gold rise from the box. A small key
   turns above every title, the portrait sits in a gilded mirror, the family on inlaid panels, the hours on brass
   plaques, the days left on little pinned cylinders; at the end the bird sinks back and the lid closes
   Palette: --inv-primary (the lacquer of the wood), --inv-accent (the gold), --inv-bg, --inv-text.
   script.js draws the mechanism (canvas.ct-mech) and the sparks (canvas.ct-sparks), turns the side key with the
   scroll (--ct-turn) and sets an ebony wood on dark palettes (--ct-wood)
   ========================================================================== */

.cutiuta {
    --ct-script: 'Babylonica', 'Segoe Script', cursive;
    --ct-soft: color-mix(in srgb, var(--inv-text) 66%, var(--inv-bg));
    --ct-line: color-mix(in srgb, var(--inv-accent) 45%, transparent);
    --ct-gilt: var(--inv-accent);
    --ct-gilt-hi: color-mix(in srgb, var(--inv-accent) 45%, #fff6d8);
    --ct-gilt-lo: color-mix(in srgb, var(--inv-accent) 62%, #3a2608);
    --ct-gilt-text: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-text));
    --ct-gold: linear-gradient(135deg, var(--ct-gilt-hi), var(--ct-gilt) 30%, var(--ct-gilt-lo) 55%, var(--ct-gilt) 78%, var(--ct-gilt-hi));
    --ct-wood: color-mix(in srgb, var(--inv-primary) 80%, #2a160c);
    --ct-wood-hi: color-mix(in srgb, var(--ct-wood) 78%, #fff);
    --ct-wood-lo: color-mix(in srgb, var(--ct-wood) 70%, #000);
    --ct-grain: repeating-linear-gradient(94deg, transparent 0 7px, rgba(0, 0, 0, .07) 7px 8px, transparent 8px 19px, rgba(255, 255, 255, .05) 19px 20px);
    --ct-velvet: color-mix(in srgb, var(--inv-primary) 45%, #5c1426);
    --ct-shadow: 0 1px 2px color-mix(in srgb, var(--inv-text) 10%, transparent), 0 28px 56px -34px color-mix(in srgb, var(--inv-text) 60%, transparent);
    --kit-radius: 8px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--ct-line);
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.02rem;
    line-height: 1.8;
    background: var(--inv-bg);
    overflow-x: clip;
}
.cutiuta h1, .cutiuta h2, .cutiuta h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.2; }
:where(.cutiuta) :is(h1, h2, h3) { margin: 0; }
:where(.cutiuta) p { margin: 0 0 .9em; }
.cutiuta strong { font-weight: 400; }
.cutiuta a { color: var(--inv-primary); }
.ct-kicker { font-size: .72rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--ct-gilt-text); margin: 0 0 10px; }
.ct-role { font-size: .68rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--ct-soft); margin: 0 0 6px; }
.ct-names { font-family: var(--inv-font-heading); font-size: 1.3rem; margin: 0; }
.ct-main, .ct-footer { position: relative; z-index: 1; }
/* a panel inlaid with two gold lines and rosettes in the corners */
.ct-card { position: relative; background: var(--inv-surface); border-radius: 8px; box-shadow: var(--ct-shadow), 0 0 0 1px var(--ct-line); }
.ct-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--ct-line); box-shadow: inset 0 0 0 3px var(--inv-surface), inset 0 0 0 4px color-mix(in srgb, var(--inv-accent) 28%, transparent); border-radius: 4px; pointer-events: none; }
.ct-card::after { content: ""; position: absolute; inset: 4px; pointer-events: none;
    background:
        radial-gradient(circle, var(--ct-gilt) 0 2.4px, transparent 3px) 0 0 / 12px 12px no-repeat,
        radial-gradient(circle, var(--ct-gilt) 0 2.4px, transparent 3px) 100% 0 / 12px 12px no-repeat,
        radial-gradient(circle, var(--ct-gilt) 0 2.4px, transparent 3px) 0 100% / 12px 12px no-repeat,
        radial-gradient(circle, var(--ct-gilt) 0 2.4px, transparent 3px) 100% 100% / 12px 12px no-repeat; }
.ct-card > * { position: relative; z-index: 1; }

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

/* ---------- Hero ---------- */
.ct-hero { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 96px 16px 64px; overflow: hidden;
    background: radial-gradient(60% 50% at 50% 46%, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 72%), var(--inv-bg); }
.ct-sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.ct-hero-inner { position: relative; z-index: 2; width: min(1040px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 34px; text-align: center; }
.ct-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.cutiuta .ct-name { font-family: var(--ct-script); font-weight: 400; font-size: clamp(4.4rem, 17vw, 7.8rem); line-height: 1.05; color: var(--inv-primary); overflow-wrap: anywhere; margin: 0 0 10px; }
.ct-hero-date { font-family: var(--inv-font-heading); font-size: 1.36rem; margin: 0 0 2px; }
.ct-hero-place { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ct-soft); margin: 0; }
.cutiuta .ct-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--ct-soft); }
@keyframes ct-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kit-js .ct-hero-text > * { animation: ct-up 1s ease 1.4s both; }
.kit-js .ct-hero-text > :nth-child(n+3) { animation-delay: 1.7s; }
@media (min-width: 900px) {
    .ct-hero { padding-top: 120px; }
    .ct-hero-inner { grid-template-columns: auto minmax(0, 1fr); gap: 80px; text-align: left; align-items: center; }
    .ct-hero-text { justify-items: start; }
    .cutiuta .ct-subtitle { margin-left: 0; }
}

/* ---------- The music box ---------- */
/* --bw: the box's width; every part is sized from it */
.ct-box { --bw: min(380px, 84vw); position: relative; width: var(--bw); display: grid; justify-items: center; perspective: 1200px; perspective-origin: 50% 130%; touch-action: pan-y; cursor: pointer; }
.ct-lid { position: relative; width: 92%; height: calc(var(--bw) * .62); transform-origin: 50% 100%; transform: rotateX(4deg); transform-style: preserve-3d; z-index: 1; }
.ct-lid-in { position: absolute; inset: 0; display: grid; place-items: start center; border-radius: 10px 10px 2px 2px; padding: 10% 6% 6%;
    background: var(--ct-grain), linear-gradient(180deg, var(--ct-wood-hi), var(--ct-wood) 40%, var(--ct-wood-lo)); box-shadow: inset 0 0 0 2px var(--ct-wood-lo), 0 -2px 14px rgba(0, 0, 0, .15); }
.ct-lid-in::before { content: ""; position: absolute; inset: 6%; border-radius: 6px; background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--ct-velvet) 70%, #fff) 0, var(--ct-velvet) 60%, color-mix(in srgb, var(--ct-velvet) 70%, #000) 100%); box-shadow: inset 0 0 18px rgba(0, 0, 0, .45), 0 0 0 1.5px var(--ct-gilt); }
.ct-mirror { position: relative; width: 44%; aspect-ratio: .8; margin: 0; padding: 5px; border-radius: 50%; background: var(--ct-gold); box-shadow: 0 0 0 2px var(--ct-gilt-lo), 0 8px 20px rgba(0, 0, 0, .45); }
.ct-mirror img, .ct-mirror-glass { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ct-mirror-glass { background: linear-gradient(150deg, #e9eef2, #b9c4cc 50%, #dfe6ea); }
.ct-mirror::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; pointer-events: none; background: linear-gradient(130deg, rgba(255, 255, 255, .45) 0 18%, transparent 30% 62%, rgba(255, 255, 255, .16) 70%, transparent 80%); }
.ct-top { position: relative; width: 100%; height: calc(var(--bw) * .1); z-index: 2; clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%); background: var(--ct-grain), linear-gradient(180deg, var(--ct-wood-lo), var(--ct-wood-hi)); }
.ct-trap { position: absolute; left: 50%; top: 50%; width: 30%; height: 56%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, #120a06 60%, var(--ct-gilt-lo) 80%, var(--ct-gilt) 100%); }
/* the bird stands on the top, rising out of its trapdoor */
.ct-box .ct-bird { position: absolute; left: 50%; bottom: 30%; width: 28%; margin-left: -14%; overflow: visible; z-index: 3; }
.ct-top { overflow: visible; }
.ct-box--hero .ct-top, .ct-box--finale .ct-top { clip-path: none; border-radius: 40% 40% 0 0 / 12% 12% 0 0; }
.ct-front { position: relative; width: 100%; height: calc(var(--bw) * .42); z-index: 2; border-radius: 0 0 8px 8px;
    background: var(--ct-grain), linear-gradient(180deg, var(--ct-wood) 0, var(--ct-wood-lo) 100%); box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .55), inset 0 1px 0 var(--ct-wood-hi); }
.ct-front::before { content: ""; position: absolute; inset: 7%; border: 1.5px solid var(--ct-gilt); border-radius: 4px; box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px color-mix(in srgb, var(--inv-accent) 55%, transparent); pointer-events: none; }
.ct-window { position: absolute; left: 50%; top: 24%; width: 62%; height: 52%; translate: -50% 0; border-radius: 6px; overflow: hidden; background: #1b120c; box-shadow: 0 0 0 3px var(--ct-gilt-lo), 0 0 0 5px var(--ct-gilt), inset 0 0 14px rgba(0, 0, 0, .8); }
.ct-window::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .22) 0 14%, transparent 26% 70%, rgba(255, 255, 255, .08) 80%, transparent 90%); }
.ct-mech { display: block; width: 100%; height: 100%; }
.ct-window-pins { position: absolute; inset: 18% 6% 36%; border-radius: 4px; background: radial-gradient(circle, #f6e6b8 0 1px, transparent 1.6px) 0 0 / 9px 7px, linear-gradient(180deg, #6b5320, #e0c172 45%, #7b5f22); }
.ct-feet { position: absolute; left: 6%; right: 6%; bottom: -9px; height: 12px; }
.ct-feet::before, .ct-feet::after { content: ""; position: absolute; top: 0; width: 18px; height: 12px; border-radius: 0 0 50% 50%; background: var(--ct-gold); box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }
.ct-feet::before { left: 0; }
.ct-feet::after { right: 0; }
.ct-side-key { position: absolute; right: -14%; top: calc(var(--bw) * .82); width: 18%; z-index: 0; }
.ct-side-key .ct-key { display: block; width: 100%; transform: scaleY(var(--ct-turn, 1)); }
.ct-key { overflow: visible; }
.ct-key-shaft { fill: none; stroke: var(--ct-gilt-lo); stroke-width: 3; stroke-linecap: round; }
.ct-key-bow { fill: var(--ct-gilt); stroke: var(--ct-gilt-lo); stroke-width: 1; }
.ct-key-boss { fill: var(--ct-gilt-hi); stroke: var(--ct-gilt-lo); stroke-width: 1; }

/* the bird */
.ct-bird-disc { fill: var(--ct-gilt); stroke: var(--ct-gilt-lo); stroke-width: 1; }
.ct-bird-legs { fill: none; stroke: var(--ct-gilt-lo); stroke-width: 2; stroke-linecap: round; }
.ct-bird-tail path { fill: #1d5a63; stroke: #123c42; stroke-width: .8; }
.ct-bird-body { fill: #2a8a7e; }
.ct-bird-breast { fill: #eea13a; }
.ct-bird-sheen { fill: rgba(255, 255, 255, .28); }
.ct-bird-wing path { fill: #1f4f60; stroke: none; }
.ct-bird-wing .ct-bird-wing-edge { fill: none; stroke: var(--ct-gilt-hi); stroke-width: 1.4; stroke-linecap: round; }
.ct-bird-head { fill: #1f6f86; }
.ct-bird-cheek { fill: #f7d36a; }
.ct-bird-eye { fill: #111; }
.ct-bird-glint { fill: #fff; }
.ct-bird-beak { fill: var(--ct-gilt-hi); stroke: var(--ct-gilt-lo); stroke-width: .6; }
.ct-bird-turn { transform-box: fill-box; transform-origin: 50% 100%; }
.ct-bird-wing { transform-box: fill-box; transform-origin: 90% 20%; }
.ct-bird-tail { transform-box: fill-box; transform-origin: 100% 50%; }
.ct-bird-jaw { transform-box: fill-box; transform-origin: 0% 0%; }

/* opening: the lid rises, the bird comes up and starts to sing */
.kit-js .ct-box--hero .ct-lid { animation: ct-open 1.8s cubic-bezier(.3, .7, .3, 1) .3s both; }
@keyframes ct-open { from { transform: rotateX(-86deg); } 70% { transform: rotateX(8deg); } to { transform: rotateX(4deg); } }
.kit-js .ct-box--hero .ct-bird { animation: ct-bird-up 1s cubic-bezier(.3, 1.4, .5, 1) 1.9s both; }
@keyframes ct-bird-up { from { opacity: 0; transform: translateY(40%) scale(.5); } to { opacity: 1; transform: none; } }
.ct-box--hero .ct-bird-turn { animation: ct-turn 9s ease-in-out 3s infinite; }
.ct-box--hero .ct-bird-wing { animation: ct-flutter 3s linear 3s infinite; }
.ct-box--hero .ct-bird-jaw { animation: ct-sing 3s linear 3s infinite; }
.ct-box--hero .ct-bird-tail { animation: ct-wag 1.6s ease-in-out infinite; }
.ct-box.is-burst .ct-bird-wing { animation: ct-flutter 1s linear infinite; }
.ct-box.is-burst .ct-bird-jaw { animation: ct-sing 1s linear infinite; }
@keyframes ct-turn { 0%, 40% { transform: scaleX(1); } 46%, 86% { transform: scaleX(-1); } 92%, 100% { transform: scaleX(1); } }
@keyframes ct-flutter {
    0%, 4%, 8%, 12%, 16%, 20%, 24%, 28%, 32%, 36%, 40%, 100% { transform: rotate(0deg); }
    2%, 6%, 10%, 14%, 18%, 22%, 26%, 30%, 34%, 38% { transform: rotate(-38deg); }
}
@keyframes ct-sing {
    0%, 5%, 10%, 15%, 20%, 25%, 30%, 35%, 40%, 45%, 50%, 100% { transform: rotate(0deg); }
    2.5%, 7.5%, 12.5%, 17.5%, 22.5%, 27.5%, 32.5%, 37.5%, 42.5%, 47.5% { transform: rotate(22deg); }
}
@keyframes ct-wag { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
@media (min-width: 900px) { .ct-box--hero { --bw: min(400px, 34vw); } }

/* the finale: the bird sinks back into the box and the lid closes */
.ct-box--finale { --bw: min(250px, 62vw); margin: 0 auto 30px; cursor: default; }
.ct-box--finale .ct-side-key { right: -15%; }
.ct-box--finale .ct-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--bw) * .16); border-radius: 8px 8px 2px 2px; opacity: 0;
    background: var(--ct-grain), linear-gradient(180deg, var(--ct-wood-hi), var(--ct-wood)); box-shadow: inset 0 0 0 4px var(--ct-wood), inset 0 0 0 5px var(--ct-gilt); }
.kit-js .ct-footer.is-visible .ct-box--finale .ct-bird { animation: ct-bird-down 1.2s ease-in .5s both; }
.kit-js .ct-footer.is-visible .ct-box--finale .ct-lid { animation: ct-close 2.2s cubic-bezier(.5, 0, .5, 1) 1.5s both; }
.kit-js .ct-footer.is-visible .ct-box--finale .ct-top::after { animation: ct-shut .3s ease 3.5s both; }
@keyframes ct-bird-down { to { opacity: 0; transform: translateY(46%) scale(.55); } }
@keyframes ct-close { from { transform: rotateX(4deg); } 92% { transform: rotateX(-84deg); opacity: 1; } to { transform: rotateX(-90deg); opacity: 0; } }
@keyframes ct-shut { to { opacity: 1; } }

/* ---------- The key above titles ---------- */
.ct-title-key { display: block; width: 62px; margin: 0 auto 10px; }
.ct-title-key .ct-key { display: block; width: 100%; }
.kit-js .ct-title-key .ct-key { transform: rotate(-360deg); opacity: 0; transition: transform 1.8s cubic-bezier(.3, .8, .3, 1) .15s, opacity .6s ease .15s; }
.kit-js .is-visible .ct-title-key .ct-key, .kit-js .ct-welcome.is-visible .ct-title-key .ct-key { transform: none; opacity: 1; }

/* ---------- Sections ---------- */
.ct-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.ct-section { padding-top: clamp(84px, 11vw, 128px); }
.ct-title { margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.ct-title h2 { font-size: clamp(2rem, 5.6vw, 2.8rem); color: var(--inv-primary); text-wrap: balance; }
.ct-welcome { text-align: center; max-width: 690px; margin: 0 auto; }
.ct-welcome p { font-size: 1.06rem; }
.cutiuta .ct-welcome-title { font-family: var(--ct-script); font-weight: 400; font-size: clamp(3.4rem, 11vw, 5rem); line-height: 1.15; color: var(--inv-primary); margin-bottom: 12px; }
.ct-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }
.ct-lead { text-align: center; font-family: var(--inv-font-heading); font-size: 1.18rem; color: var(--ct-soft); max-width: 40ch; margin: 0 auto 30px; }

/* Child: the portrait in a gilded oval mirror on velvet, hung from a bow */
.ct-child-grid { display: grid; gap: 44px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.ct-portrait { --pw: min(270px, 60vw); position: relative; width: var(--pw); aspect-ratio: .8; margin: 30px 0 0; padding: 8px; border-radius: 50%; background: var(--ct-gold); box-shadow: var(--ct-shadow), 0 0 0 2px var(--ct-gilt-lo), 0 0 0 10px var(--ct-velvet), 0 0 0 11px var(--ct-gilt); }
.ct-portrait-photo { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--ct-gilt-lo); }
.ct-portrait-photo img, .ct-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-initial { display: grid; place-items: center; background: var(--inv-surface); font-family: var(--ct-script); font-size: 6rem; color: var(--inv-primary); }
.ct-portrait::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; pointer-events: none; background: linear-gradient(130deg, rgba(255, 255, 255, .32) 0 14%, transparent 26% 100%); }
.ct-bow { position: absolute; left: 50%; top: -34px; z-index: 1; width: 64px; height: 34px; margin-left: -32px;
    background:
        radial-gradient(ellipse 30% 46% at 50% 60%, var(--ct-velvet) 0 92%, transparent 100%),
        radial-gradient(ellipse 34% 50% at 24% 50%, color-mix(in srgb, var(--ct-velvet) 80%, #fff) 0 90%, transparent 100%),
        radial-gradient(ellipse 34% 50% at 76% 50%, color-mix(in srgb, var(--ct-velvet) 80%, #fff) 0 90%, transparent 100%); }
.ct-child-name { font-family: var(--inv-font-heading); font-size: 1.8rem; color: var(--inv-primary); margin-bottom: 6px; }
.ct-child-born { color: var(--ct-soft); }
.ct-child-born strong { color: var(--inv-text); font-family: var(--inv-font-heading); }
.ct-child-message { font-size: 1.08rem; max-width: 36ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .ct-child-grid { grid-template-columns: auto minmax(0, 1fr); gap: 76px; text-align: left; align-items: center; }
    .ct-portrait { --pw: 280px; }
    .ct-child-message { margin-left: 0; }
}

/* Family */
.ct-family-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); max-width: 820px; margin: 0 auto; }
.ct-person { padding: 30px 24px; text-align: center; }

/* Programme: engraved brass plaques */
.ct-moments { list-style: none; margin: 0 auto; padding: 0; max-width: 740px; display: grid; gap: 34px; }
.ct-moment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(14px, 4vw, 30px); align-items: start; }
.ct-plaque { position: relative; width: clamp(84px, 22vw, 108px); padding: 16px 6px; margin: 8px 0 0; border-radius: 6px; text-align: center; background:
        radial-gradient(circle at 8px 8px, var(--ct-gilt-lo) 0 2px, var(--ct-gilt-hi) 2.6px, transparent 3.4px),
        radial-gradient(circle at calc(100% - 8px) 8px, var(--ct-gilt-lo) 0 2px, var(--ct-gilt-hi) 2.6px, transparent 3.4px),
        radial-gradient(circle at 8px calc(100% - 8px), var(--ct-gilt-lo) 0 2px, var(--ct-gilt-hi) 2.6px, transparent 3.4px),
        radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), var(--ct-gilt-lo) 0 2px, var(--ct-gilt-hi) 2.6px, transparent 3.4px),
        var(--ct-gold);
    box-shadow: 0 0 0 1px var(--ct-gilt-lo), 0 10px 18px -8px rgba(0, 0, 0, .45), inset 0 0 0 4px rgba(255, 255, 255, .12); }
.ct-plaque span { font-family: var(--inv-font-heading); font-size: clamp(1.1rem, 4vw, 1.36rem); font-weight: 500; color: color-mix(in srgb, var(--ct-gilt-lo) 70%, #000); text-shadow: 0 1px 0 rgba(255, 255, 255, .45); font-variant-numeric: tabular-nums; }
.kit-js .ct-moment .ct-plaque { transform: rotate(-8deg) scale(.7); opacity: 0; transition: transform 1s cubic-bezier(.3, 1.4, .5, 1) .1s, opacity .6s ease .1s; }
.kit-js .ct-moment.is-visible .ct-plaque { transform: none; opacity: 1; }
.ct-moment-card { padding: 26px clamp(22px, 4vw, 34px) 24px; }
.ct-moment-card h3 { font-size: clamp(1.35rem, 4.2vw, 1.66rem); color: var(--inv-primary); margin-bottom: 4px; }
.ct-moment-place { font-weight: 400; margin: 0; }
.ct-moment-address, .ct-moment-notes { color: var(--ct-soft); margin: 0; }
.ct-moment-notes { font-style: italic; margin-top: 6px; }
.ct-moment .kit-event-actions { margin-top: 14px; }
.cutiuta .kit-button { border-radius: 999px; border: 1px solid var(--ct-gilt); color: var(--inv-primary); background: transparent; font-size: .76rem; font-weight: 400; padding: 8px 18px; text-decoration: none; }
.cutiuta .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: little brass cylinders whose pins turn */
.ct-countdown { text-align: center; }
.ct-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px clamp(10px, 3vw, 28px); margin-top: 14px; padding-bottom: 26px; }
.ct-countdown .kit-countdown-unit { position: relative; width: clamp(74px, 20vw, 112px); min-width: 0; height: clamp(70px, 18vw, 96px); padding: 0; margin: 0 9px; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(circle, color-mix(in srgb, var(--ct-gilt-hi) 80%, #fff) 0 1.3px, transparent 1.8px) 0 0 / 11px 9px, linear-gradient(180deg, var(--ct-gilt-lo), var(--ct-gilt-hi) 42%, var(--ct-gilt) 58%, var(--ct-gilt-lo));
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .45); animation: ct-roll 3s linear infinite; }
.ct-countdown .kit-countdown-unit::before, .ct-countdown .kit-countdown-unit::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18px; border-radius: 50%; background: radial-gradient(closest-side, var(--ct-gilt-hi) 0 30%, var(--ct-gilt) 60%, var(--ct-gilt-lo)); }
.ct-countdown .kit-countdown-unit::before { left: -9px; }
.ct-countdown .kit-countdown-unit::after { right: -9px; }
.ct-countdown .kit-countdown-unit:nth-child(2) { animation-duration: 4s; }
.ct-countdown .kit-countdown-unit:nth-child(3) { animation-duration: 2.4s; }
.ct-countdown .kit-countdown-unit:nth-child(4) { animation-duration: 1.4s; }
@keyframes ct-roll { to { background-position: 0 -36px, 0 0; } }
.ct-countdown .kit-countdown-value { position: relative; z-index: 1; padding: 0 8px; border-radius: 4px; background: color-mix(in srgb, var(--ct-gilt-hi) 75%, transparent); font-family: var(--inv-font-heading); font-size: clamp(1.25rem, 4.8vw, 1.9rem); line-height: 1.15; color: color-mix(in srgb, var(--ct-gilt-lo) 60%, #000); font-variant-numeric: tabular-nums; }
.ct-countdown .kit-countdown-label { position: absolute; left: -10px; right: -10px; top: calc(100% + 8px); opacity: 1; color: var(--ct-soft); font-size: .58rem; font-weight: 400; letter-spacing: .16em; }

/* Gallery: frames of inlaid wood */
.ct-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.ct-gallery-grid.kit-gallery a { position: relative; aspect-ratio: 4 / 5; padding: 9px; border-radius: 6px; background: var(--ct-grain), linear-gradient(160deg, var(--ct-wood-hi), var(--ct-wood) 50%, var(--ct-wood-lo)); box-shadow: var(--ct-shadow); }
.ct-gallery-grid.kit-gallery a:nth-child(3n + 2) { border-radius: 999px 999px 6px 6px; }
.ct-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 0 0 2px var(--ct-gilt); transition: filter .8s ease; }
.ct-gallery-grid.kit-gallery a:hover img { filter: brightness(1.06) saturate(1.05); }
@media (min-width: 760px) { .ct-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP */
.ct-reply { max-width: 700px; margin: 0 auto; padding: clamp(46px, 6vw, 64px) clamp(26px, 6vw, 58px) clamp(36px, 5vw, 50px); }
.cutiuta .inv-rsvp__intro { font-family: var(--inv-font-heading); font-size: 1.1rem; }
.cutiuta .inv-rsvp__deadline { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ct-gilt-text); }

/* Info, contact */
.ct-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ct-info-item { padding: 32px 26px 22px; text-align: center; }
.ct-info-item h3 { font-size: 1.3rem; color: var(--inv-primary); margin-bottom: 8px; }
.ct-faq { max-width: 720px; margin: 46px auto 0; text-align: center; display: grid; gap: 12px; }
.ct-faq details { text-align: left; }
.ct-faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 24px; position: relative; font-family: var(--inv-font-heading); font-size: 1.08rem; }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 14px; margin-top: -7px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath d='M2 20H30' stroke='%23a07a3a' stroke-width='4'/%3E%3Cpath fill='%23c9a15a' d='M30 20C33 6 52 3 55 13C57 19 48 21 40 20C48 19 57 21 55 27C52 37 33 34 30 20Z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .6s ease; }
.ct-faq details[open] summary::after { transform: rotate(180deg); }
.ct-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; }
.ct-faq details p { padding: 0 24px; color: var(--ct-soft); }
.ct-faq details p:last-child { padding-bottom: 18px; }
.ct-contact { text-align: center; }
.ct-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.ct-contact-person a { text-decoration: none; }

/* ---------- Footer ---------- */
.ct-footer { text-align: center; padding: clamp(100px, 14vw, 150px) 16px 70px; overflow-x: hidden; overflow-x: clip; }
.ct-footer-message { font-family: var(--inv-font-heading); font-size: 1.2rem; color: var(--ct-soft); max-width: 36ch; margin: 0 auto 6px; }
.cutiuta .ct-footer-name { font-family: var(--ct-script); font-size: clamp(3.8rem, 14vw, 6rem); line-height: 1.1; color: var(--inv-primary); margin: 4px 0 10px; }
.ct-hashtag { letter-spacing: .12em; color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    .kit-js .ct-box--hero .ct-lid, .kit-js .ct-box--hero .ct-bird, .ct-box--hero .ct-bird-turn, .ct-box--hero .ct-bird-wing, .ct-box--hero .ct-bird-jaw, .ct-box--hero .ct-bird-tail,
    .kit-js .ct-hero-text > *, .ct-countdown .kit-countdown-unit { animation: none; }
    .kit-js .ct-footer.is-visible .ct-box--finale .ct-bird, .kit-js .ct-footer.is-visible .ct-box--finale .ct-lid, .kit-js .ct-footer.is-visible .ct-box--finale .ct-top::after { animation: none; }
    .kit-js .ct-title-key .ct-key { transform: none; opacity: 1; transition: none; }
    .kit-js .ct-moment .ct-plaque { transform: none; opacity: 1; transition: none; }
}
