/* ==========================================================================
   Jazz - a birthday evening in a jazz club. The warm light of a spotlight falls over the hero photo and smoke curls up
   through it (canvas.jz-smoke, script.js), lit only where the beam catches it; a touch swirls it. The age stands tall
   in poster capitals (Big Shoulders Display), the name is written by hand like a lit sign (Damion), titles have a small
   equaliser, the portrait sits under an arch in the spotlight, the theme is a concert bill, the programme a set list.
   Palette (dark): --inv-primary (titles, near white), --inv-accent (the light), --inv-bg, --inv-text.
   ========================================================================== */

.jazz {
    --jz-script: 'Damion', cursive;
    --jz-glow: color-mix(in srgb, var(--inv-accent) 50%, transparent);
    --jz-line: color-mix(in srgb, var(--inv-accent) 28%, transparent);
    --jz-muted: color-mix(in srgb, var(--inv-text) 70%, var(--inv-bg));
    --jz-surface: color-mix(in srgb, var(--inv-accent) 7%, var(--inv-bg));
    --kit-radius: 2px;
    --kit-field-bg: color-mix(in srgb, var(--inv-text) 6%, transparent);
    --kit-field-border: var(--jz-line);
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.04rem;
    line-height: 1.8;
    color: var(--inv-text);
    background: var(--inv-bg);
    overflow-x: clip;
}
.jazz h1, .jazz h2, .jazz h3 { font-family: var(--inv-font-heading); font-weight: 500; line-height: 1.05; }
:where(.jazz) :is(h1, h2, h3) { margin: 0; }
.jazz strong { font-weight: 500; }
.jazz a { color: var(--inv-accent); }
.jz-kicker { font-size: .74rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--jz-muted); margin: 0 0 10px; }

/* ---------- Handwriting, like a lit sign ---------- */
.jz-word { display: inline-block; white-space: nowrap; }
.jz-letter { display: inline-block; white-space: pre; clip-path: inset(-30% 100% -40% -20%); opacity: 0; }
.jz-hero .jz-letter, .is-visible .jz-letter { animation: jz-write .5s calc(var(--i) * .1s + var(--jz-delay, 0s)) cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes jz-write {
    0% { clip-path: inset(-30% 100% -40% -20%); opacity: 0; }
    30% { opacity: 1; }
    92% { clip-path: inset(-30% -40% -40% -20%); opacity: 1; }
    100% { clip-path: inset(-500% -500% -500% -500%); opacity: 1; }
}

/* ---------- Titles: poster capitals over a small equaliser ---------- */
.jz-title { margin-bottom: 38px; text-align: center; }
.jz-title h2 { font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--inv-primary); text-wrap: balance; }
.jz-eq { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 20px; margin-top: 12px; }
.jz-eq i { width: 4px; height: 100%; border-radius: 1px; background: var(--inv-accent); transform-origin: 50% 100%; transform: scaleY(.2); box-shadow: 0 0 8px var(--jz-glow); }
.is-visible .jz-eq i { animation: jz-eq calc(.7s + var(--b) * .07s) calc(var(--b) * -.13s) ease-in-out infinite alternate; }
@keyframes jz-eq { 0% { transform: scaleY(.18); } 45% { transform: scaleY(.85); } 70% { transform: scaleY(.4); } 100% { transform: scaleY(1); } }

/* ---------- Smoke ---------- */
.jz-smoke { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }

/* ---------- Navigation ---------- */
.jz-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 18px clamp(16px, 4vw, 44px); display: flex; align-items: center; justify-content: center; }
.jz-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; }
.jz-nav a { text-decoration: none; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--jz-muted); padding: 4px 0; }
.jz-nav a:hover, .jz-nav a.is-current { color: var(--inv-primary); }
.jz-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-weight: 700; font-size: 1.9rem; letter-spacing: .04em; color: var(--inv-accent); margin-right: auto; }
.jz-nav.is-stuck { padding: 8px clamp(16px, 4vw, 44px); justify-content: flex-end; background: color-mix(in srgb, var(--inv-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--jz-line); }
.jazz .kit-to-top { background: var(--inv-accent); color: var(--inv-bg); }
@media (max-width: 899px) {
    .jz-nav { justify-content: flex-end; padding: 10px 14px; }
    .jz-nav .kit-nav-toggle { margin-left: auto; font-size: 1.5rem; color: var(--inv-primary); }
    .jz-nav .kit-nav-links { display: none; }
    .jz-nav.is-open .kit-nav-links { display: flex; flex-direction: column; gap: 14px; position: absolute; top: 58px; left: 12px; right: 12px; padding: 24px; background: var(--inv-bg); border: 1px solid var(--jz-line); }
}

/* ---------- Hero ---------- */
.jz-hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 110px 20px 80px; text-align: center; overflow: clip; isolation: isolate; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.jz-hero-photo { position: absolute; inset: 0; margin: 0; z-index: -3; }
.jz-hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.9) contrast(1.05); }
.jz-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, color-mix(in srgb, var(--inv-bg) 60%, transparent), transparent 35%, transparent 65%, var(--inv-bg)), radial-gradient(ellipse at 50% 55%, transparent 25%, color-mix(in srgb, var(--inv-bg) 80%, transparent) 95%); }
.jz-hero-content { position: relative; z-index: 1; max-width: 900px; }
.jz-hero-content::before { content: ""; position: absolute; inset: -10% -16%; z-index: -1; background: radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in srgb, var(--inv-bg) 66%, transparent), transparent 100%); pointer-events: none; }
.jz-age { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: .82; opacity: 0; animation: jz-rise 1.6s .3s cubic-bezier(.2, .7, .2, 1) forwards; }
.jz-age-number { font-family: var(--inv-font-heading); font-weight: 700; font-size: clamp(8rem, 30vw, 15rem); letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 2px var(--inv-accent); text-shadow: 0 0 40px var(--jz-glow); }
.jz-age-years { font-family: var(--inv-font-heading); font-weight: 500; font-size: 1rem; letter-spacing: .5em; text-transform: uppercase; color: var(--inv-accent); margin: 8px 0 0 .5em; }
@keyframes jz-rise { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
.jazz .jz-name { font-family: var(--jz-script); font-weight: 400; font-size: clamp(4rem, 13vw, 7.6rem); line-height: 1.1; color: var(--inv-primary); margin-top: 6px; text-shadow: 0 0 6px color-mix(in srgb, var(--inv-primary) 50%, transparent), 0 0 26px var(--jz-glow); }
.jz-hero .jz-letter { --jz-delay: 1.3s; }
.jz-subtitle { max-width: 540px; margin: 14px auto 0; color: color-mix(in srgb, var(--inv-text) 88%, var(--inv-bg)); text-shadow: 0 1px 12px var(--inv-bg); opacity: 0; animation: jz-fade 1.2s 2.6s forwards; }
.jz-hero-date { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; margin: 22px 0 0; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; opacity: 0; animation: jz-fade 1.2s 3s forwards; }
.jz-dot { width: 5px; height: 5px; transform: rotate(45deg); background: var(--inv-accent); }
@media (max-width: 640px) { .jz-hero-date { flex-direction: column; gap: 4px; } .jz-dot { display: none; } }
@keyframes jz-fade { to { opacity: 1; } }

/* ---------- Sections ---------- */
.jz-section { max-width: 1040px; margin: 0 auto; padding: clamp(70px, 10vw, 110px) 22px; }
.jz-welcome, .jz-countdown, .jz-contact { text-align: center; }
.jz-prose { max-width: 620px; margin: 0 auto; font-size: 1.08rem; text-align: center; }
.jz-prose p { margin: 0 0 1.1em; }
.jz-quote-author { font-style: italic; color: var(--jz-muted); }

/* Celebrant: under an arch, in the warm light */
.jz-celebrant-grid { display: grid; gap: 40px; align-items: center; justify-items: center; }
@media (min-width: 760px) { .jz-celebrant-grid { grid-template-columns: auto 1fr; gap: 64px; justify-items: start; } }
.jz-arch { position: relative; margin: 0; width: min(300px, 70vw); aspect-ratio: 3 / 4; padding: 10px; border: 1px solid var(--jz-line); border-radius: 999px 999px 4px 4px; box-shadow: 0 -30px 90px -40px color-mix(in srgb, var(--inv-accent) 55%, transparent); }
.jz-arch-photo { position: relative; display: block; width: 100%; height: 100%; border-radius: 999px 999px 2px 2px; overflow: hidden; background: var(--jz-surface); }
.jz-arch-photo .kit-photo { position: absolute; inset: 0; filter: saturate(.92) contrast(1.04); }
.jz-arch-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 40%, color-mix(in srgb, var(--inv-bg) 55%, transparent)); mix-blend-mode: multiply; pointer-events: none; }
.jz-initial { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--jz-script); font-size: 7rem; color: var(--inv-primary); }
.jz-celebrant-text { max-width: 520px; text-align: center; }
@media (min-width: 760px) { .jz-celebrant-text { text-align: left; } }
.jz-celebrant-name { font-family: var(--jz-script); font-size: clamp(2.8rem, 6vw, 3.8rem); line-height: 1.15; color: var(--inv-primary); margin: 0 0 4px; text-shadow: 0 0 18px var(--jz-glow); }
.jz-celebrant-age { margin: 0 0 16px; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--jz-muted); }
.jz-celebrant-age span { font-family: var(--inv-font-heading); font-weight: 700; font-size: 2.6rem; letter-spacing: 0; color: var(--inv-accent); vertical-align: middle; margin-right: 6px; }
.jz-celebrant-text p:not(.jz-celebrant-name):not(.jz-celebrant-age) { margin: 0 0 .8em; }

/* Theme: a concert bill in a double frame */
.jz-bill-section { display: grid; place-items: center; }
.jz-bill { position: relative; max-width: 620px; padding: clamp(34px, 6vw, 60px) clamp(24px, 5vw, 54px); text-align: center; border: 1px solid var(--inv-accent); outline: 1px solid var(--jz-line); outline-offset: 8px; background: radial-gradient(ellipse 70% 60% at 50% 0%, color-mix(in srgb, var(--inv-accent) 14%, transparent), transparent 70%), var(--jz-surface); }
.jz-bill::before, .jz-bill::after { content: "\2605"; position: absolute; top: 14px; font-size: .7rem; color: var(--inv-accent); }
.jz-bill::before { left: 16px; }
.jz-bill::after { right: 16px; }
.jz-bill h2 { font-size: clamp(2.6rem, 7vw, 3.8rem); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--inv-primary); margin-bottom: 14px; text-wrap: balance; }
.jz-bill p:not(.jz-kicker) { margin: 0 0 .8em; }

/* Events: a set list */
.jz-setlist { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.jz-set { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; padding: 26px 0; border-top: 1px solid var(--jz-line); }
.jz-set:last-child { border-bottom: 1px solid var(--jz-line); }
.jz-set-time { margin: 0; font-family: var(--inv-font-heading); font-weight: 300; font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1; color: var(--inv-accent); font-variant-numeric: tabular-nums; }
.jz-set-body { min-width: 0; }
.jz-set h3 { font-size: 1.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--inv-primary); margin-bottom: 4px; }
.jz-set-place { margin: 8px 0 0; }
.jz-set-address, .jz-set-notes { margin: 2px 0 0; color: var(--jz-muted); font-size: .94rem; }
@media (max-width: 520px) { .jz-set { grid-template-columns: 1fr; text-align: center; } }
.jazz .kit-event-actions { margin-top: 14px; }
@media (max-width: 520px) { .jazz .kit-event-actions { justify-content: center; } }
.jazz .kit-button { border-radius: 0; border: 1px solid var(--jz-line); background: transparent; color: var(--inv-primary); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.jazz .kit-button:hover { border-color: var(--inv-accent); color: var(--inv-accent); }
.kit-js .jz-set { opacity: 0; translate: -16px 0; }
.kit-js .jz-set.is-visible { opacity: 1; translate: 0 0; transition: opacity .9s ease, translate 1.1s ease; }

/* Countdown: thin poster digits */
.jz-countdown .kit-countdown { gap: clamp(12px, 5vw, 50px); margin-top: 8px; }
.jz-countdown .kit-countdown-unit { min-width: 0; background: none; padding: 0; }
.jz-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-weight: 300; font-size: clamp(3rem, 11vw, 5.6rem); line-height: 1; color: var(--inv-primary); font-variant-numeric: tabular-nums; }
.jz-countdown .kit-countdown-label { font-size: .62rem; letter-spacing: .26em; color: var(--inv-accent); opacity: 1; }

/* Gallery: warm, coming to full colour on hover */
.jz-gallery-grid.kit-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .jz-gallery-grid.kit-gallery { grid-template-columns: repeat(3, 1fr); } }
.jz-gallery-grid.kit-gallery a { aspect-ratio: 4 / 5; border-radius: 2px; }
.jz-gallery-grid.kit-gallery img { filter: sepia(.3) saturate(.85) brightness(.85); transition: filter .6s ease, scale 1.2s ease; }
.jz-gallery-grid.kit-gallery a:hover img { filter: none; scale: 1.03; }
.kit-js .jz-gallery .jz-gallery-grid a { opacity: 0; }
.kit-js .jz-gallery.is-visible .jz-gallery-grid a { opacity: 1; transition: opacity 1.1s ease; }
.kit-js .jz-gallery.is-visible .jz-gallery-grid a:nth-child(3n+2) { transition-delay: .15s; }
.kit-js .jz-gallery.is-visible .jz-gallery-grid a:nth-child(3n) { transition-delay: .3s; }

/* RSVP */
.jz-rsvp-card { position: relative; max-width: 660px; margin: 0 auto; padding: clamp(26px, 5vw, 50px); border: 1px solid var(--jz-line); background: color-mix(in srgb, var(--inv-bg) 70%, var(--jz-surface)); text-align: center; }
.jazz .inv-rsvp__field input:not([type=checkbox]):not([type=radio]), .jazz .inv-rsvp__field select, .jazz .inv-rsvp__field textarea { color: var(--inv-text); background: color-mix(in srgb, var(--inv-text) 6%, transparent); border-color: var(--jz-line); }
.jazz .inv-rsvp__field select option { background: var(--inv-bg); }
.jazz .inv-rsvp__submit { border-radius: 0; background: var(--inv-accent); color: var(--inv-bg); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; }
.jazz input[type=radio], .jazz input[type=checkbox] { accent-color: var(--inv-accent); }

/* Info */
.jz-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.jz-info-item { padding: 26px; text-align: center; border: 1px solid var(--jz-line); }
.jz-info-item h3 { font-size: 1.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--inv-primary); margin-bottom: 8px; }
.jz-info-item p { margin: 0 0 .5em; color: var(--jz-muted); }
.jz-faq { max-width: 700px; margin: 50px auto 0; text-align: center; }
.jz-faq details { text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--jz-line); }
.jz-faq summary { cursor: pointer; }
.jz-faq details[open] summary { color: var(--inv-primary); }
.jz-faq details p { margin: 8px 0 0; color: var(--jz-muted); }

/* Contact */
.jz-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 64px; }
.jz-contact-name { font-family: var(--jz-script); font-size: 2.4rem; color: var(--inv-primary); margin: 0; line-height: 1.3; }
.jz-contact-person a { color: var(--inv-text); text-decoration: none; letter-spacing: .08em; }

/* Footer: smoke again behind the name */
.jz-footer { position: relative; padding: clamp(140px, 18vw, 200px) 22px 70px; text-align: center; overflow: hidden; isolation: isolate; }
.jz-footer-message { margin: 0 0 6px; color: var(--jz-muted); }
.jz-footer-name { font-family: var(--jz-script); font-size: clamp(3.6rem, 11vw, 6rem); line-height: 1.2; color: var(--inv-primary); margin: 0 0 12px; text-shadow: 0 0 22px var(--jz-glow); }
.jz-hashtag { margin: 0 0 8px; letter-spacing: .12em; }

@media (prefers-reduced-motion: reduce) {
    .jz-letter, .jz-age, .jz-subtitle, .jz-hero-date { animation: none !important; clip-path: none; opacity: 1; }
    .jz-eq i { animation: none !important; transform: scaleY(.6); }
    .kit-js .jz-set, .kit-js .jz-gallery .jz-gallery-grid a { opacity: 1; translate: 0 0; transition: none; }
}
