/* INV-29 Midnight Serenade · Luxe (A3046, W1.1 A3053; D-514, D-517, D-519, D-520; plan docs/plans/plan_inv29_w1_build.md, the approved W0.3 page
   docs/plans/evidence_inv29_w0/index.html). The whole invitation is one evening inside one framed card of smoked glass: blue hour at the top
   (a red rose on old sheet music), full night at the bottom (the Milky Way). The page is the card (.kjy-main): black glass (W1.1; was navy, D-520) in a polished
   rose-gold rim with an inner hairline and filigree corners. Every section sits on still tiles of clear polished glass lying in the page, lit from
   above; their edges and reflections are a neutral cool white, never gold (D-520). Gold is champagne, on the rim, the corners and the gilt words only.
   Red only from the rose. Stage 1 (W1): everything still. Shared parts are k-ms-*. The forks (block 290) came from INV-19's block 180, so the
   engine pieces (buttons, calendar menu, footer, sound) keep INV-19's wiring with this look. */
@font-face { font-family: "Noto Serif Display"; src: url("assets/fonts/noto-serif-display-300-latin.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif Display"; src: url("assets/fonts/noto-serif-display-300-latin-ext.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-400-500-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-400-500-latin-ext.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-300-latin-opsz-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  /* the night (W1.1, A3053: black, replaces D-520's navy) */
  --k-ms-night-0: #000000; --k-ms-night-1: #030303; --k-ms-night-2: #060606; --k-ms-night-3: #0B0B0C;
  --k-ms-panel-a: rgba(64, 64, 70, .20); --k-ms-panel-b: rgba(0, 0, 0, .60);
  --k-ms-glass-hi: rgba(255, 255, 255, .32); --k-ms-edge: rgba(236, 236, 240, .48); --k-ms-edge-lo: rgba(236, 236, 240, .08);
  --k-ms-sheen: rgba(240, 240, 245, .09); --k-ms-cut: #0A0A0B;
  --k-ms-hair: rgba(214, 180, 152, .26); --k-ms-hair-2: rgba(214, 180, 152, .58);
  --k-ms-champ-1: #FBF2E6; --k-ms-champ-2: #E5C7AB; --k-ms-champ-3: #B98D70;
  --k-ms-ivory: #EEE6DA; --k-ms-prose-ink: rgba(238, 230, 218, .88); --k-ms-mist: #ABABB2; --k-ms-mist-2: #7A7A82;
  --k-ms-rose: #B3152F; --k-ms-rose-hi: #DA3550;
  --k-ms-on-champ: #070707;
  --k-ms-gilt: linear-gradient(180deg, var(--k-ms-champ-1) 0%, var(--k-ms-champ-2) 52%, var(--k-ms-champ-3) 100%);
  /* W1.1 (A3053) improvement D: the names and the big date numeral catch the light (a second, soft highlight stop) */
  --k-ms-gilt-hi: linear-gradient(180deg, #FFF8EE 0%, #F2DCC4 30%, #E5C7AB 52%, #C9A084 74%, #B98D70 100%);
  --k-ms-grain: url("/skins/midnight_serenade_luxe/assets/art/grain-128.webp"); /* W1.1 improvement B: a fine grain in the black glass */
  --k-ms-paint: linear-gradient(180deg, var(--k-ms-champ-1), var(--k-ms-champ-3)); /* line drawings painted champagne through a mask */
  --k-ms-sk-gown: url("/skins/midnight_serenade_luxe/assets/art/sketch-gown.webp");
  --k-ms-sk-suit: url("/skins/midnight_serenade_luxe/assets/art/sketch-suit.webp");
  --k-ms-sky: url("/skins/midnight_serenade_luxe/assets/art/night-sky-2000.webp");
  /* type */
  --k-font-display: "Noto Serif Display", "Bodoni Moda", Georgia, serif;
  --k-font-num: "Bodoni Moda", "Noto Serif Display", Georgia, serif;
  --k-font-caps: "Jost", "Helvetica Neue", Arial, sans-serif;
  --k-font-prose: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --k-font-body: var(--k-font-caps);
  --k-font-script: var(--k-font-prose);
  /* engine slots the forks and the shared pieces read */
  --k-night: var(--k-ms-night-0); --k-raised: #111113;
  --k-paper: var(--k-ms-night-2); --k-card: var(--k-raised); --k-paper-deep: #17171A; --k-photo-white: var(--k-ms-ivory);
  --k-ink: var(--k-ms-ivory); --k-ink-soft: var(--k-ms-mist); --k-ghost: var(--k-ms-mist-2); --k-field: transparent; --k-field-line: var(--k-ms-hair-2);
  --k-champ: var(--k-ms-champ-2); --k-script-ink: var(--k-ms-champ-2); --k-script-deep: var(--k-ms-champ-3);
  --k-hair: var(--k-ms-hair); --k-line: var(--k-ms-hair);
  --k-dark: var(--k-ms-night-0); --k-on-dark: var(--k-ms-ivory); --k-on-dark-soft: rgba(238, 230, 218, .84);
  --k-light-ground: transparent;
  --k-gate-plaster: var(--k-card); --k-gate-metal: var(--k-ink);
  --k-s-1: 4px; --k-s-2: 8px; --k-s-3: 12px; --k-s-4: 16px; --k-s-5: 24px; --k-s-6: 32px; --k-s-7: 48px; --k-s-8: 64px; --k-s-9: 96px;
  --k-gutter: 22px; --k-section-pad: 64px; --k-day-gap: 56px; --k-measure: 520px;
  --k-ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 760px) { :root { --k-gutter: 48px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--k-ms-night-0); color-scheme: dark; scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; color: var(--k-ms-ivory); background: var(--k-ms-night-0);
  font: 400 15px/1.5 var(--k-font-caps); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, dl, dd, ol, ul { margin: 0; font-weight: 400; }
:where(.kjy-main) :where(p, h1, h2, h3) { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--k-ms-champ-2); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.k-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- The card: the page is one slab of black glass in a polished rose-gold rim (W0.3 .card; black since W1.1) ---------- */
.kjy-main, .k-ms-card {
  position: relative; border-radius: 30px; overflow: hidden; overflow: clip;
  border: 2px solid transparent; text-align: center; color: var(--k-ms-ivory); font-family: var(--k-font-caps);
  background:
    linear-gradient(180deg, var(--k-ms-night-3) 0%, var(--k-ms-night-2) 22%, var(--k-ms-night-1) 60%, var(--k-ms-night-0) 100%) padding-box,
    linear-gradient(155deg, #FFF1DE 0%, #C99A7C 4%, #6E4E3E 9%, #D8B193 16%, #8A6450 30%, #E9CBAE 50%, #7A5747 70%, #D9B497 86%, #F3D9BE 100%) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 2px rgba(255, 236, 214, .35), 0 0 40px rgba(229, 199, 171, .14), 0 50px 90px -40px rgba(0, 0, 0, .9);
}
.kjy-main { width: min(100% - 32px, 1680px); margin: 16px auto 48px; }
/* W1.1 (A3053) improvement B: a fine monochrome grain (128 px tile, alpha 9 %) as the card's first background layer, on the padding box, so the
   black gradients never band and the card reads as glass. It is a background: every photo sits above it, never under a grain overlay. */
.kjy-main {
  background:
    var(--k-ms-grain) 0 0 / 128px 128px repeat padding-box,
    linear-gradient(180deg, var(--k-ms-night-3) 0%, var(--k-ms-night-2) 22%, var(--k-ms-night-1) 60%, var(--k-ms-night-0) 100%) padding-box,
    linear-gradient(155deg, #FFF1DE 0%, #C99A7C 4%, #6E4E3E 9%, #D8B193 16%, #8A6450 30%, #E9CBAE 50%, #7A5747 70%, #D9B497 86%, #F3D9BE 100%) border-box;
}
/* a small card of the same glass (the opener's): the radius a little tighter */
.k-ms-card { border-radius: 24px; }
/* the top reflection across the glass */
.kjy-main::before, .k-ms-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: min(1100px, 150vw); z-index: 4; pointer-events: none;
  background:
    linear-gradient(122deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .045) 14%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(122deg, rgba(255, 255, 255, 0) 50%, rgba(240, 240, 245, .05) 56%, rgba(255, 255, 255, 0) 62%);
}
.k-ms-card::before { height: 100%; }
/* the inner hairline, a gradient ring by mask */
.kjy-main::after, .k-ms-card::after {
  content: ""; position: absolute; inset: 7px; border-radius: 24px; padding: 1px; pointer-events: none; z-index: 5;
  background: linear-gradient(180deg, rgba(229, 199, 171, .7), rgba(229, 199, 171, .18) 6%, rgba(229, 199, 171, .18) 94%, rgba(229, 199, 171, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.k-ms-card::after { border-radius: 18px; }
/* every section lies above the stars (layer/particles/290 sits at z-index 0) */
.kjy-main > [data-kjy-section]:not([data-kjy-section="particles"]) { position: relative; z-index: 1; }

/* filigree corners (top pair in the hero, bottom pair in the closing): drawn by mask so a section needs no sprite id */
.k-ms-corner {
  position: absolute; width: 74px; height: 74px; z-index: 6; pointer-events: none; opacity: .9; background: var(--k-ms-champ-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 74' fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M8 70V30C8 17.85 17.85 8 30 8h40'/%3E%3Cpath d='M14 46V31c0-9.4 7.6-17 17-17h15' opacity='.55'/%3E%3Cpath d='M22 34c0-6.6 5.4-12 12-12 4.4 0 8 3.6 8 8 0 3.3-2.7 6-6 6-2.2 0-4-1.8-4-4 0-1.7 1.3-3 3-3'/%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 74' fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M8 70V30C8 17.85 17.85 8 30 8h40'/%3E%3Cpath d='M14 46V31c0-9.4 7.6-17 17-17h15' opacity='.55'/%3E%3Cpath d='M22 34c0-6.6 5.4-12 12-12 4.4 0 8 3.6 8 8 0 3.3-2.7 6-6 6-2.2 0-4-1.8-4-4 0-1.7 1.3-3 3-3'/%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.k-ms-corner--bl, .k-ms-corner--br {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 74' fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M8 70V30C8 17.85 17.85 8 30 8h40'/%3E%3Cpath d='M14 46V31c0-9.4 7.6-17 17-17h15' opacity='.55'/%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23000' stroke='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 74' fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M8 70V30C8 17.85 17.85 8 30 8h40'/%3E%3Cpath d='M14 46V31c0-9.4 7.6-17 17-17h15' opacity='.55'/%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23000' stroke='none'/%3E%3C/svg%3E");
}
.k-ms-corner--tl { top: 3px; left: 3px; }
.k-ms-corner--tr { top: 3px; right: 3px; transform: scaleX(-1); }
.k-ms-corner--bl { bottom: 3px; left: 3px; transform: scaleY(-1); }
.k-ms-corner--br { bottom: 3px; right: 3px; transform: scale(-1, -1); }

/* ---------- Type ---------- */
.k-ms-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding-inline: var(--k-gutter); }
.k-ms-kick { margin: 0; padding-left: .44em; font: 400 11px/1.4 var(--k-font-caps); letter-spacing: .44em; text-transform: uppercase; color: var(--k-ms-champ-2); }
/* a heading: a spaced-caps kicker between two hairlines over a serif title */
.k-ms-head { display: grid; justify-items: center; gap: 12px; margin-bottom: 30px; text-align: center; }
.k-ms-head .k-ms-kick { display: flex; align-items: center; gap: 14px; }
.k-ms-head .k-ms-kick::before, .k-ms-head .k-ms-kick::after { content: ""; flex: none; width: 38px; height: 1px; background: var(--k-ms-hair-2); }
.k-ms-title { margin: 0; font: 300 clamp(30px, 8vw, 46px)/1.1 var(--k-font-display); color: var(--k-ms-ivory); text-wrap: balance; }
.k-ms-prose { margin: 0; font: italic 300 clamp(18px, 4.7vw, 21px)/1.55 var(--k-font-prose); color: var(--k-ms-prose-ink); text-wrap: pretty; }
.k-ms-small { margin: 0; font: 400 13px/1.5 var(--k-font-caps); color: var(--k-ms-mist); }
.k-ms-label { font: 400 10px/1.2 var(--k-font-caps); letter-spacing: .3em; text-transform: uppercase; color: var(--k-ms-mist); }
/* gilt: champagne words through background-clip (never a text-shadow on these: iPhone) */
.k-ms-gilt { background: var(--k-ms-gilt); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
/* W1.1 (A3053) improvement D: the names (the opener, the hero, the closing) catch the light; still only background-clip, no text-shadow */
.k-ms-names.k-ms-gilt { background-image: var(--k-ms-gilt-hi); }
.k-ms-names { font: 300 clamp(40px, 11.6vw, 118px)/1 var(--k-font-display); letter-spacing: -.005em; white-space: nowrap; }
.k-ms-amp { font: italic 300 .78em/1 var(--k-font-prose); padding-inline: .06em; }
.k-ms-dateline { margin: 0; padding-left: .38em; font: 400 13px/1.4 var(--k-font-caps); letter-spacing: .38em; text-transform: uppercase; color: var(--k-ms-ivory); font-variant-numeric: lining-nums; }

/* the join: hairline, heart, hairline (at every join between two sections) */
.k-ms-join { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 16px; padding-block: 8px; }
.k-ms-join::before, .k-ms-join::after { content: ""; width: min(26vw, 150px); height: 1px; background: linear-gradient(90deg, transparent, var(--k-ms-hair-2)); }
.k-ms-join::after { background: linear-gradient(90deg, var(--k-ms-hair-2), transparent); }
.k-ms-join__h {
  display: block; flex: none; width: 18px; height: 16px; background: var(--k-ms-champ-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M9 14.5S1.5 10 1.5 5.2A3.7 3.7 0 0 1 9 3.6a3.7 3.7 0 0 1 7.5 1.6C16.5 10 9 14.5 9 14.5Z' fill='none' stroke='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M9 14.5S1.5 10 1.5 5.2A3.7 3.7 0 0 1 9 3.6a3.7 3.7 0 0 1 7.5 1.6C16.5 10 9 14.5 9 14.5Z' fill='none' stroke='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- Glass ---------- */
/* a tile: still, polished black glass lying in the page (a top gloss, one reflection streak, a bright top edge, a dark under-edge) */
.k-ms-glass {
  position: relative; border-radius: 18px;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 46%),
    linear-gradient(112deg, rgba(255, 255, 255, 0) 28%, var(--k-ms-sheen) 38%, rgba(240, 240, 245, .03) 47%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(112deg, rgba(255, 255, 255, 0) 60%, rgba(240, 240, 245, .05) 64%, rgba(255, 255, 255, 0) 69%),
    linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .02) 22%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, var(--k-ms-panel-a), var(--k-ms-panel-b));
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--k-ms-glass-hi), inset 0 3px 8px -2px rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(200, 200, 208, .15),
    inset 0 -14px 24px -14px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .04), 0 34px 60px -34px rgba(0, 0, 0, .95);
}
.k-ms-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(170deg, var(--k-ms-edge), var(--k-ms-edge-lo) 36%, rgba(236, 236, 240, .06) 68%, rgba(236, 236, 240, .26));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* a photo behind glass, in a glass mount */
.k-ms-mount {
  position: relative; display: block; border-radius: 16px; padding: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 40%, rgba(0, 0, 0, .22)), rgba(8, 8, 9, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 0 0 1px rgba(236, 236, 240, .10), inset 0 -1px 0 rgba(200, 200, 208, .15), 0 30px 50px -30px rgba(0, 0, 0, .95);
}
.k-ms-mount::after {
  content: ""; position: absolute; inset: 6px; border-radius: 11px; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .06) 20%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(125deg, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .07) 64%, rgba(255, 255, 255, 0) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.k-ms-mount img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.k-ms-mount--flush { padding: 0; background: none; box-shadow: none; }
.k-ms-mount--flush::after { inset: 0; border-radius: 12px; }
.k-ms-mount--flush img { border-radius: 12px; }
.k-ms-mount--thin { padding: 4px; }
.k-ms-mount--thin::after { inset: 4px; }

/* a glass pill (links: Open in Maps, Tap to open) */
.k-ms-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--k-ms-hair-2); color: var(--k-ms-champ-1); text-decoration: none; font: 400 11px/1 var(--k-font-caps); letter-spacing: .3em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)), rgba(14, 14, 16, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 20px -12px rgba(0, 0, 0, .9);
}
.k-ms-pill svg { width: 14px; height: 14px; flex: none; }
/* a reply choice as a glass pill; chosen = champagne edge */
.k-ms-choice {
  display: block; text-align: center; padding: 14px 8px; border-radius: 999px; border: 1px solid var(--k-ms-hair); cursor: pointer;
  font: 400 13px/1.25 var(--k-font-caps); color: var(--k-ms-mist);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.k-ms-choice:has(input:checked) {
  border-color: var(--k-ms-champ-2); color: var(--k-ms-champ-1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(229, 199, 171, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 0 16px rgba(229, 199, 171, .12);
}
.k-ms-choice:has(input:focus-visible) { outline: 2px solid var(--k-ms-champ-2); outline-offset: 3px; }
/* Send: polished champagne */
.k-ms-send, .k-btn--solid {
  border: 0; border-radius: 999px; cursor: pointer; color: var(--k-ms-on-champ);
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, var(--k-ms-champ-1), var(--k-ms-champ-2) 60%, var(--k-ms-champ-3));
  font: 500 13px/1 var(--k-font-caps); letter-spacing: .34em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 5px rgba(120, 80, 60, .35), 0 14px 30px -14px rgba(229, 199, 171, .6);
}

/* the event icons and the sketches: RGBA line drawings painted champagne by mask, after the tap (art far below the cover) */
.k-ms-ic { display: block; width: 40px; height: 40px; }
/* A3069 (A7, as INV-25's dc230): the same art with no script too (html:not(.js): the engine marks html.js when it runs) */
html.kjy-opened .k-ms-ic, html:not(.js) .k-ms-ic { background: var(--k-ms-paint); -webkit-mask: var(--k-ms-i) center / contain no-repeat; mask: var(--k-ms-i) center / contain no-repeat; }
.k-ms-ic--ceremony { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-ceremony.webp"); }
.k-ms-ic--rings { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-rings.webp"); }
.k-ms-ic--drinks { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-drinks.webp"); }
.k-ms-ic--meal { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-meal.webp"); }
.k-ms-ic--cake { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-cake.webp"); }
.k-ms-ic--departure { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-departure.webp"); }
.k-ms-ic--music { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-music.webp"); }
.k-ms-ic--dhol { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-dhol.webp"); }
.k-ms-ic--mehndi { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-mehndi.webp"); }
.k-ms-ic--haldi { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-haldi.webp"); }
.k-ms-ic--other { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-other.webp"); }
.k-ms-ic--doves { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-doves.webp"); }
.k-ms-ic--candle { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-candle.webp"); }
.k-ms-ic--envelope { --k-ms-i: url("/skins/midnight_serenade_luxe/assets/art/ic-envelope.webp"); }

/* ---------- Engine pieces (buttons, calendar menu, footer, sound) ---------- */
.k-btn, .kjy-cal__toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--k-s-2);
  min-height: 46px; padding: 0 30px; border-radius: 999px;
  font: 500 12px/1 var(--k-font-caps); letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.k-btn--solid:active { filter: brightness(.94); }
.k-btn--line, .kjy-cal__toggle {
  color: var(--k-ms-champ-1); border: 1px solid var(--k-ms-hair-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)), rgba(14, 14, 16, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 20px -12px rgba(0, 0, 0, .9);
}
.k-ico { width: 18px; height: 18px; flex: none; }
.kjy-cal { display: inline-block; position: relative; text-align: left; }
.kjy-cal__toggle { list-style: none; }
.kjy-cal__toggle::-webkit-details-marker { display: none; }
.kjy-cal__menu { position: absolute; z-index: 5; left: 50%; translate: -50% 0; top: calc(100% + 6px); min-width: 200px; padding: 6px; border-radius: 14px; background: #111113; border: 1px solid rgba(236, 236, 240, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 16px 30px -12px rgba(0, 0, 0, .9); }
.kjy-cal__opt { display: block; padding: 10px 12px; font: 400 13px/1.3 var(--k-font-caps); letter-spacing: .04em; text-decoration: none; color: var(--k-ms-ivory); }

/* the small print at the end of the page */
.kjy-footer { position: relative; z-index: 1; padding: 0 var(--k-gutter) calc(var(--k-s-7) + env(safe-area-inset-bottom)); font: 400 12px/1.4 var(--k-font-caps); text-align: center; }
.kjy-footer a { display: inline-flex; align-items: center; gap: 14px; padding: 14px 8px; font: 400 10px/1 var(--k-font-caps); letter-spacing: .3em; text-transform: uppercase; color: var(--k-ms-mist-2); text-decoration: none; }
.kjy-footer__logo { display: block; width: 72px; height: 36px; }
.kjy-footer__logo--wine { display: none; } /* a dark footer: porcelain */

/* music is off everywhere until a licence (D-044); kept so the switch needs no skin change */
.kjy-sound { position: fixed; z-index: 90; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right));
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center; cursor: pointer; border-radius: 50%; border: 1px solid var(--k-ms-hair-2);
  background: #111113; color: var(--k-ms-champ-2); }
.kjy-preview ~ .kjy-sound { top: calc(64px + env(safe-area-inset-top)); }
.kjy-sound[aria-pressed="true"] .kjy-sound__off,
.kjy-sound[aria-pressed="false"] .kjy-sound__on { display: none; }

/* ---------- Laptop: the card's hairline and corners a little larger; the wrap a little wider (W1.1 improvement C: the paired rows fill the card) ---------- */
@media (min-width: 1100px) and (min-aspect-ratio: 1 / 1) {
  .kjy-main::after { inset: 9px; }
  .k-ms-corner { width: 96px; height: 96px; }
  .k-ms-wrap { max-width: 1180px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }

/* ---------- Stage 2 moments (W2.2, A3066): "a serenade on one evening" ----------
   layer/particles/290 (pa290) marks each target ms-m now and ms-in once when it arrives (ms-now too for one already passed) and adds html.ms-moments
   last; every "before" state lives under html.ms-moments:not(.kjy-lite), so lite, Reduce motion and no script show the still page. Timers carry
   opacity and short rises only (AG-T333). The hero's two moments key on the tap itself (kjy-enter), in CSS, so they are never a frame late. */
html.ms-moments .ms-now, html.ms-moments .ms-now * { transition-duration: 0s !important; transition-delay: 0s !important; }
/* the glass tiles, the photos and the headings rise out of the night, once, siblings one after another */
html.ms-moments:not(.kjy-lite) .ms-rise.ms-m:not(.ms-in) { opacity: 0; translate: 0 16px; }
html.ms-moments:not(.kjy-lite) .ms-rise.ms-in { transition: opacity 1.1s ease-out var(--ms-d, 0s), translate 1.2s cubic-bezier(.2, .7, .2, 1) var(--ms-d, 0s); }
/* the Milky Way comes out as the countdown and the closing arrive, once */
html.ms-moments:not(.kjy-lite) .ms-sky.ms-m:not(.ms-in) { opacity: .2; }
html.ms-moments:not(.kjy-lite) .ms-sky.ms-in { transition: opacity 3.2s ease-in-out; }
/* the names catch the light once (a narrow band through the gilt, AG-T668): the hero's after the tap, the closing's as it arrives */
@keyframes ms-shine { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
html.kjy-enter:not(.motion-reduce):not(.kjy-lite):not(.kjy-instant) .he290-names,
html.ms-moments:not(.kjy-lite) .cl290-names.ms-in:not(.ms-now) {
  background: linear-gradient(104deg, rgb(255 249 235 / 0) 44%, rgb(255 249 235 / .92) 50%, rgb(255 249 235 / 0) 56%) 100% 0 / 300% 100% no-repeat, var(--k-ms-gilt-hi) 0 0 / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  animation: ms-shine 2.4s cubic-bezier(.45, 0, .25, 1) 1.4s both;
}
html.ms-moments:not(.kjy-lite) .cl290-names.ms-in:not(.ms-now) { animation-delay: .6s; }
/* the couple's photo settles after the tap: from 3.5 % larger to its place over about 5 s (under 12 px at the edges, AG-T333). Before the tap it
   waits larger under the opener; a returning guest (kjy-enter at load) sees it in place. */
html:not(.kjy-enter):not(.motion-reduce) .he290__img--photo { scale: 1.035; }
html.kjy-enter:not(.motion-reduce) .he290__img--photo { transition: scale 5.2s cubic-bezier(.2, .6, .2, 1); }

/* "Directions" (A3091, owner, D-545: "the word directions ... instead of saying map ... slightly more prominent ... underlined or ... a shine"): the word
   over a fine champagne rule (a bare link; inside a pill or a line button the frame is the emphasis, so no rule); as the link arrives (pa290 marks it
   ms-in) one light crosses the word and its rule, left to right, once, and ends on the plain look. Not lite, not Reduce motion, not a return visit
   (ms-now), not a capture (pa290 marks nothing then). */
.k-ms-dir { --k-ms-dir-rule: rgba(229, 199, 171, .72); position: relative; padding-bottom: 3px; }
.k-ms-dir::after { content: ""; position: absolute; left: 0; right: .24em; bottom: 0; height: 1px; background: var(--k-ms-dir-rule); }
:is(.k-ms-pill, .k-btn) > .k-ms-dir { padding-bottom: 0; }
:is(.k-ms-pill, .k-btn) > .k-ms-dir::after { content: none; }
@keyframes ms-dir-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  html.ms-moments:not(.kjy-lite) .ms-in:not(.ms-now) > .k-ms-dir {
    background: linear-gradient(100deg, var(--k-ms-champ-1) 0 34%, #F7E9CC 43%, #FFFFFF 50%, #F7E9CC 57%, var(--k-ms-champ-1) 66% 100%) 100% 0 / 280% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: ms-dir-shine 1.5s cubic-bezier(.45, 0, .25, 1) .5s 1 both;
  }
  html.ms-moments:not(.kjy-lite) .ms-in:not(.ms-now) > .k-ms-dir::after {
    background: linear-gradient(90deg, var(--k-ms-dir-rule) 0 36%, #FFFFFF 50%, var(--k-ms-dir-rule) 64% 100%) 100% 0 / 280% 100% no-repeat;
    animation: ms-dir-shine 1.5s cubic-bezier(.45, 0, .25, 1) .5s 1 both;
  }
}
