/* INV-27 Midnight Rose · Luxe (A3018, A3019; D-500, D-502; plan docs/plans/plan_inv27_midnight_rose.md): ivory roses rise out of black velvet
   darkness, lit from the left like an Old Master flower painting. Built exactly like the board mock the owner picked (docs/plans/evidence_inv27_w0,
   the .dF screens): a code envelope with the burgundy seal, a full-bleed photo hero melting into black with roses in front of its lower corners,
   Bodoni Moda + Mrs Saint Delafield + Cormorant Garamond, champagne #D9B98A. The skin started as INV-19's (after_dark_luxe) so the 180 forks keep
   their wiring; shared parts are k-mr-*. The INV-27 look is the block at the end of this file. */
@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: 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: "Bodoni Moda"; src: url("assets/fonts/bodoni-moda-400-latin-ext.woff2") format("woff2"); font-weight: 400; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); font-weight: 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: "Bodoni Moda"; src: url("assets/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); font-weight: 400; 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: "Mrs Saint Delafield"; src: url("assets/fonts/mrs-saint-delafield-400-latin.woff2") format("woff2"); font-weight: 400; 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: "Mrs Saint Delafield"; src: url("assets/fonts/mrs-saint-delafield-400-latin-ext.woff2") format("woff2"); font-weight: 400; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
:root {
  --k-mr-z: .87; /* the whole design's scale: starts about 13 % smaller, per "not in the face" */
  --k-font-script: "Mrs Saint Delafield", "Snell Roundhand", "Apple Chancery", cursive;
  --k-font-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --k-font-body: "Cormorant Garamond", Cormorant, Garamond, Georgia, serif;
  --k-font-num: var(--k-font-display);
  --k-night: #070606; --k-raised: #141011;
  --k-paper: var(--k-night); --k-card: var(--k-raised); --k-paper-deep: #1E1A16; --k-photo-white: #F2EBDD;
  --k-ink: #F2EBDD; --k-ink-soft: #BFB4A6; --k-ghost: #6E665B; --k-field: transparent; --k-field-line: rgb(242 235 221 / .42);
  /* the candle colour: script words, the ring on the day, the pool of light. The couple's "gold" can change it (contrast rule: secondary on night). */
  --k-champ: var(--c-secondary, #D9B98A);
  --k-script-ink: var(--k-champ); --k-script-deep: var(--k-champ);
  /* The couple's colour on black: lifted halfway to ivory, so navy, wine or forest still read at 4.5:1 or more on the night (plan Risk 4; 5.4, 6.0, 6.5). */
  --k-mr-accent: color-mix(in oklab, var(--c-primary) 50%, #F2EBDD);
  --k-hair: color-mix(in srgb, var(--k-mr-accent) 42%, transparent);
  --k-mr-line: color-mix(in srgb, var(--k-mr-accent) 62%, transparent);
  --k-mr-fill: var(--k-mr-accent); --k-mr-fill-down: color-mix(in srgb, var(--k-mr-accent) 80%, #000); --k-mr-on-fill: #070606;
  --k-line: var(--k-hair);
  --k-dark: #070606; --k-on-dark: #F2EBDD; --k-on-dark-soft: rgb(242 235 221 / .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: clamp(22px, 6vw, 72px); --k-section-pad: clamp(88px, 13vh, 150px); --k-day-gap: clamp(56px, 8vh, 96px); --k-measure: 520px;
  --k-ease: cubic-bezier(.22, 1, .36, 1);
  --k-mr-narrow: 1; --k-mr-narrow-n: 1; /* Bodoni is not narrowed: kept so the forks' transforms stay neutral */
  --k-mr-sk-gown: url("/skins/midnight_rose_luxe/assets/art/sketch-gown.webp");
  --k-mr-sk-suit: url("/skins/midnight_rose_luxe/assets/art/sketch-suit.webp");
  /* the hero's frame: the opener draws the same photo in the same place, so nothing moves when the lights come up */
  --k-mr-frame-h: max(100svh, 600px);
  --k-mr-photo-h: 64svh;
  --k-mr-melt: clamp(150px, 26svh, 280px); /* how far a photo melts into the night; the rest stays whole and sharp (D-129) */
  --k-mr-melt-w: 30%;
  --k-mr-pool: radial-gradient(ellipse 48% 46% at 46% 48%, rgb(217 185 138 / .045), rgb(217 185 138 / .015) 50%, transparent 74%);   /* INV-27 W2: the candle pools 50 % softer (owner) */
}
@media (min-width: 700px) { :root { --k-mr-z: 1.04; } }
@media (min-width: 700px) and (orientation: portrait) { :root { --k-mr-photo-h: 60svh; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--k-night); 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-ink); background: var(--k-night);
  font: 500 calc(19px * (var(--k-mr-z) + .08))/1.55 var(--k-font-body);
  -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; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--k-mr-accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.k-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.kjy-main { font-family: var(--k-font-body); position: relative; overflow: hidden; overflow: clip; text-align: center; }

/* the whole page is night; these stay so the forks' class names keep working */
.k-mr-paper { background: var(--k-night); }
.k-mr-black { background: var(--k-raised); color: var(--k-ink); }
.k-mr-on-black { --k-mr-fill: var(--k-mr-accent); --k-mr-on-fill: #070606; }
.k-mr-card { background: var(--k-raised); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9), inset 0 0 0 1px rgb(217 185 138 / .14); }

/* One candle pool: a soft warm light behind a block of words. A plain span, so a section's own ::before stays free. Still in stage 1. */
.k-mr-glow { position: absolute; inset: -12% -24%; z-index: -1; background: var(--k-mr-pool); pointer-events: none; }
.k-mr-lit { position: relative; isolation: isolate; }

/* type */
.k-mr-kick { font: 500 calc(13.5px * (var(--k-mr-z) + .08))/1.6 var(--k-font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--k-ink-soft); }
.k-mr-scr { display: block; font: 400 1em/1 var(--k-font-script); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--k-script-ink); padding: .16em .34em; }
.k-mr-tall { font-family: var(--k-font-display); font-weight: 400; }
.k-mr-it { font-family: var(--k-font-body); font-style: italic; }
/* A heading: tall Bodoni capitals, one small script word in the candle colour crossing them (the references' "the COUNTDOWN"). Markup:
   <h2 class="k-mr-ttl"><span class="k-mr-ttl__s">the</span><span class="k-mr-ttl__c">Countdown</span></h2>; a third span is a second capital line. */
.k-mr-ttl { display: flex; flex-direction: column; align-items: center; max-width: 100%; margin-inline: auto; font: 400 calc(clamp(34px, 9.6vw, 46px) * var(--k-mr-z))/1 var(--k-font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--k-ink); text-wrap: balance; }
.k-mr-ttl__s { position: relative; z-index: 1; display: block; font: 400 1.18em/.7 var(--k-font-script); text-transform: none; letter-spacing: 0; color: var(--k-champ); margin: 0 0 -.12em -1.6em; padding: .16em .3em .1em; }
.k-mr-ttl__c { display: block; padding-left: .08em; }
.k-mr-ttl__c + .k-mr-ttl__s { margin: -.06em 0 -.04em .2em; }
@media (min-width: 1000px) { .k-mr-ttl { font-size: calc(50px * var(--k-mr-z)); } }

/* The names: EMMA, then "and" led in by a hairline, then JAMES. */
.k-mr-names { display: flex; flex-direction: column; align-items: center; font: 400 calc(clamp(40px, 12.6vw, 58px) * var(--k-mr-z))/.96 var(--k-font-display); letter-spacing: .07em; text-transform: uppercase; color: var(--k-ink); }
.k-mr-names > span { display: block; max-width: 100%; overflow-wrap: anywhere; padding-left: .07em; }
.k-mr-and { display: flex !important; align-items: center; gap: .1em; font: 400 .92em/.7 var(--k-font-script); letter-spacing: 0; text-transform: none; color: var(--k-champ); margin: -.04em 0 .1em -.9em; padding: .14em .2em !important; }
.k-mr-and::before { content: ""; display: block; width: 1.05em; height: 1px; background: var(--k-champ); opacity: .7; }

/* The join, where two word sections share the night: a fine line broken by the couple's initials, the same space above and below. */
.k-mr-gap { padding-block: clamp(64px, 10vh, 104px); }
.k-mr-rule { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--k-mr-accent); }
.k-mr-rule::before, .k-mr-rule::after { content: ""; flex: 0 1 clamp(48px, 15vw, 96px); height: 1px; background: var(--k-hair); }
.k-mr-rule__ini { font: 400 calc(19px * var(--k-mr-z))/1 var(--k-font-display); letter-spacing: .16em; }
.k-mr-rule__ini i { margin-inline: .35em; font-style: normal; opacity: .6; }

/* The day's date as one line of capitals (used by the timeline). */
.k-mr-stack { font: 400 calc(30px * var(--k-mr-z))/1.1 var(--k-font-display); letter-spacing: .08em; color: var(--k-ink); }
.k-mr-stack b { font-weight: 400; }
.k-mr-stack b + b::before { content: " · "; color: var(--k-champ); }

/* the fine line icons: colour-free masks, so the couple's colour reaches them */
.k-mr-ic { display: block; width: var(--k-mr-s, 48px); height: var(--k-mr-s, 48px); }
html.kjy-opened .k-mr-ic { background: var(--k-mr-accent); -webkit-mask: var(--k-mr-i) center / contain no-repeat; mask: var(--k-mr-i) center / contain no-repeat; }
.k-mr-ic--ceremony { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-ceremony.webp"); }
.k-mr-ic--rings { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-rings.webp"); }
.k-mr-ic--drinks { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-drinks.webp"); }
.k-mr-ic--meal { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-meal.webp"); }
.k-mr-ic--cake { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-cake.webp"); }
.k-mr-ic--departure { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-departure.webp"); }
.k-mr-ic--music { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-music.webp"); }
.k-mr-ic--dhol { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-dhol.webp"); }
.k-mr-ic--mehndi { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-mehndi.webp"); }
.k-mr-ic--haldi { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-haldi.webp"); }
.k-mr-ic--other { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-other.webp"); }
.k-mr-ic--doves { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-doves.webp"); }
.k-mr-ic--candle { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-candle.webp"); }
.k-mr-ic--envelope { --k-mr-i: url("/skins/midnight_rose_luxe/assets/art/ic-envelope.webp"); }

/* A photo out of the dark: whole, sharp and in colour, its one edge melting into the night by a long smooth fall-off (the references' look). */
.k-mr-ph { position: relative; display: block; overflow: hidden; }
.k-mr-ph > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.k-mr-ph--foot { -webkit-mask: linear-gradient(#000 calc(100% - var(--k-mr-melt)), rgb(0 0 0 / .55) calc(100% - var(--k-mr-melt) * .5), transparent 99%); mask: linear-gradient(#000 calc(100% - var(--k-mr-melt)), rgb(0 0 0 / .55) calc(100% - var(--k-mr-melt) * .5), transparent 99%); }
.k-mr-ph--top { -webkit-mask: linear-gradient(transparent 1%, rgb(0 0 0 / .55) calc(var(--k-mr-melt) * .5), #000 var(--k-mr-melt)); mask: linear-gradient(transparent 1%, rgb(0 0 0 / .55) calc(var(--k-mr-melt) * .5), #000 var(--k-mr-melt)); }
@media (min-width: 1000px) and (orientation: landscape) {
  .k-mr-ph--wide-side { -webkit-mask: linear-gradient(to right, #000 calc(100% - var(--k-mr-melt-w)), transparent 99%); mask: linear-gradient(to right, #000 calc(100% - var(--k-mr-melt-w)), transparent 99%); }
  .k-mr-ph--wide-left { -webkit-mask: linear-gradient(to left, #000 calc(100% - var(--k-mr-melt-w)), transparent 99%); mask: linear-gradient(to left, #000 calc(100% - var(--k-mr-melt-w)), transparent 99%); }
}

/* A dimmed mood photo behind a section (countdown, timeline): a black gradient on top, never a filter (iPhone cost, plan Risk 5). */
.k-mr-mood { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.k-mr-mood > img { width: 100%; height: 100%; object-fit: cover; }
.k-mr-mood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--k-night), rgb(7 6 6 / .62) 18%, rgb(7 6 6 / .72) 55%, rgb(7 6 6 / .92) 88%, var(--k-night)); }

/* The hero's photo. The opener draws this same piece, so the only thing that changes on the tap is the light. */
.k-mr-frame { position: relative; }
.k-mr-print { position: absolute; left: 0; right: 0; top: 0; height: var(--k-mr-photo-h); overflow: hidden; -webkit-mask: linear-gradient(#000 calc(100% - var(--k-mr-melt) * 1.25), rgb(0 0 0 / .42) calc(100% - var(--k-mr-melt) * .62), rgb(0 0 0 / .12) calc(100% - var(--k-mr-melt) * .3), transparent 99%); mask: linear-gradient(#000 calc(100% - var(--k-mr-melt) * 1.25), rgb(0 0 0 / .42) calc(100% - var(--k-mr-melt) * .62), rgb(0 0 0 / .12) calc(100% - var(--k-mr-melt) * .3), transparent 99%); }
.k-mr-print__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) and (orientation: landscape) {
  .k-mr-print { left: auto; right: 0; bottom: 0; width: 60vw; height: auto; -webkit-mask: linear-gradient(to left, #000 calc(100% - var(--k-mr-melt-w)), transparent 99%); mask: linear-gradient(to left, #000 calc(100% - var(--k-mr-melt-w)), transparent 99%); }
}

/* buttons: square-cut, quiet */
.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: 0;
  font: 500 calc(14px * (var(--k-mr-z) + .08))/1 var(--k-font-body); letter-spacing: .22em; 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 { background: var(--k-mr-fill); color: var(--k-mr-on-fill); border: 1px solid var(--k-mr-fill); }
.k-btn--solid:active { background: var(--k-mr-fill-down); border-color: var(--k-mr-fill-down); }
.k-btn--line, .kjy-cal__toggle { background: transparent; color: var(--k-mr-accent); border: 1px solid var(--k-mr-line); }
.k-btn--line:active, .kjy-cal__toggle:active { background: var(--k-paper-deep); }
.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: 190px; padding: 6px; border-radius: 0; background: var(--k-raised); border: 1px solid var(--k-hair); box-shadow: 0 12px 24px -10px rgb(0 0 0 / .8); }
.kjy-cal__opt { display: block; padding: 10px 12px; font: 500 1rem/1.2 var(--k-font-body); text-decoration: none; color: var(--k-ink); }

/* the small print at the end of the page */
.kjy-footer { font: 500 .8rem/1.4 var(--k-font-body); position: relative; z-index: 1; padding: var(--k-s-6) var(--k-gutter) calc(var(--k-s-8) + env(safe-area-inset-bottom)); text-align: center; }
.kjy-footer a { display: inline-flex; align-items: center; gap: 7px; padding: 14px 8px; font: 500 .5625rem/1 var(--k-font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--k-ink-soft); text-decoration: none; }
.kjy-footer__logo { display: block; width: 36px; height: 18px; }   /* owner, W1.3: "reduce our branding size at the bottom by 50%" (72 x 36 -> 36 x 18; the words 12 -> 9 px, the smallest that still reads) */
.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-hair);
  background: var(--k-raised); color: var(--k-mr-accent); }
.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; }

/* ---------- W2 motion (A2707, D-403; plan W2): the lights go down; each screen rises out of the dark ----------
   layer/particles/180 marks each target k-mr-m, then k-mr-in once when it arrives, and adds html.ad-moments last. Every "before" state lives here, under
   html.ad-moments:not(.kjy-lite), so lite, Reduce motion and no script show the still page. Timers carry opacity and short rises only (AG-T333); a
   finished wipe drops its clip (k-mr-done, speed SOP P4). The countdown's dashes, the programme's thread and the day's ring live in their sections. */
html.ad-moments .kjy-main { z-index: 1; }
html.ad-moments .k-mr-now, html.ad-moments .k-mr-now *, html.ad-moments .k-mr-now::before, html.ad-moments .k-mr-now::after { transition-duration: 0s !important; transition-delay: 0s !important; }
/* 1, 11. a photo comes up from dark (the gallery's one after another, --ad-d) */
.k-mr-veil, .k-mr-dusk { position: absolute; inset: 0; background: var(--k-night); opacity: 0; pointer-events: none; }
html.ad-moments:not(.kjy-lite) .k-mr-m:not(.k-mr-in) > .k-mr-veil { opacity: .9; }
html.ad-moments:not(.kjy-lite) .k-mr-in > .k-mr-veil { transition: opacity var(--ad-vt, 1.2s) cubic-bezier(.25,.1,.25,1) var(--ad-d, 0s); }
/* 2. the candle pool warms as its words arrive, then breathes, each on its own period */
html.ad-moments:not(.kjy-lite) .k-mr-glow.k-mr-m:not(.k-mr-in) { opacity: 0; transform: scale(.7); }
html.ad-moments:not(.kjy-lite) .k-mr-glow.k-mr-in { transition: opacity 1.6s ease-out, transform 1.6s ease-out; animation: k-mr-breath var(--ad-br, 7s) ease-in-out 1.6s infinite; }
html.ad-moments .k-mr-glow.is-off { animation-play-state: paused; }
@keyframes k-mr-breath { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
/* 6, 8. capitals, names and big numbers rise a little out of the dark */
html.ad-moments:not(.kjy-lite) .k-mr-m:not(.k-mr-in) :is(.k-mr-ttl__c, .k-mr-up), html.ad-moments:not(.kjy-lite) .k-mr-up.k-mr-m:not(.k-mr-in) { opacity: 0; transform: translateY(14px); }
html.ad-moments:not(.kjy-lite) .k-mr-num.k-mr-m:not(.k-mr-in) { transform: translateY(18px); }
html.ad-moments:not(.kjy-lite) .k-mr-in :is(.k-mr-ttl__c, .k-mr-up), html.ad-moments:not(.kjy-lite) .k-mr-up.k-mr-in { transition: opacity 1s ease-out var(--ad-d, 0s), transform 1s cubic-bezier(.2,.7,.2,1) var(--ad-d, 0s); }
.k-mr-ttl__c ~ .k-mr-ttl__c { --ad-d: .09s; }
/* 5. the script word across a heading writes on after its capitals; the clip reaches past the box so the swashes are never cut */
html.ad-moments:not(.kjy-lite) .k-mr-m:not(.k-mr-in) .k-mr-ttl__s, html.ad-moments:not(.kjy-lite) .k-mr-wr.k-mr-m:not(.k-mr-in) { clip-path: inset(-.6em 100% -.6em -.6em); }
html.ad-moments:not(.kjy-lite) .k-mr-in:not(.k-mr-done) .k-mr-ttl__s, html.ad-moments:not(.kjy-lite) .k-mr-wr.k-mr-in:not(.k-mr-done) { clip-path: inset(-.6em -.6em -.6em -.6em); transition: clip-path .9s cubic-bezier(.5,0,.2,1) .25s; }
/* 7. a join's initials come in, then its hairlines draw outwards from them */
html.ad-moments .k-mr-rule.k-mr-m::before { transform-origin: 100% 50%; }
html.ad-moments .k-mr-rule.k-mr-m::after { transform-origin: 0 50%; }
html.ad-moments:not(.kjy-lite) .k-mr-rule.k-mr-m:not(.k-mr-in) .k-mr-rule__ini { opacity: 0; }
html.ad-moments:not(.kjy-lite) .k-mr-rule.k-mr-m:not(.k-mr-in)::before, html.ad-moments:not(.kjy-lite) .k-mr-rule.k-mr-m:not(.k-mr-in)::after { transform: scaleX(0); }
html.ad-moments:not(.kjy-lite) .k-mr-rule.k-mr-in .k-mr-rule__ini { transition: opacity .3s ease; }
html.ad-moments:not(.kjy-lite) .k-mr-rule.k-mr-in::before, html.ad-moments:not(.kjy-lite) .k-mr-rule.k-mr-in::after { transition: transform .9s cubic-bezier(.3,.6,.2,1) .25s; }
/* 4. last light: the closing photo dims to night once the footer is in view; its words keep their light */
html.ad-moments:not(.kjy-lite) .k-mr-late .k-mr-dusk { opacity: .5; transition: opacity 5s ease-in-out; }
/* 3. floating candle lights: one fixed field behind every section (in front of the page ground), 100lvh from the top (AG-T348); each light rises,
   sways and glimmers on its own paths and periods (AG-T350); --ad-embers is the strength the owner can tune */
.k-mr-embers { position: fixed; left: 0; top: 0; width: 100%; height: 100lvh; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 2s ease 1.5s; }
.k-mr-embers.is-on { opacity: var(--ad-embers, 1); }
html.kjy-lite .k-mr-embers, html.motion-reduce .k-mr-embers { display: none; }
.k-mr-embers i { position: absolute; left: var(--x); top: var(--y); width: var(--z); height: var(--z); margin: calc(var(--z) / -2) 0 0 calc(var(--z) / -2);
  animation: k-mr-rise var(--rt) linear var(--rd) infinite, k-mr-sway var(--st) ease-in-out var(--sd) infinite alternate; }
.k-mr-embers i::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 214 150 / var(--a)) 0, rgb(255 214 150 / calc(var(--a) * .4)) 38%, transparent 70%);
  animation: k-mr-glim var(--gt) ease-in-out var(--gd) infinite alternate; }
@keyframes k-mr-rise { 0% { translate: 0 0; opacity: 0; } 14% { opacity: 1; } 84% { opacity: 1; } 100% { translate: 0 var(--ry); opacity: 0; } }
@keyframes k-mr-sway { from { transform: translateX(calc(var(--sx) * -1)); } to { transform: translateX(var(--sx)); } }
@keyframes k-mr-glim { from { opacity: .3; } to { opacity: 1; } }

/* ---------- W1.2 laptop photo walls (A2708, D-405; the owner's pick L1 from the board) ----------
   On a laptop the pale word sections (invitation, date, dress code, reply) keep their words in a centred column and fill both sides with the couple's own
   gallery photos: one tall on the left, two stacked on the right, each dimmed toward the words by a gradient (never a filter). A section prints its wall
   only when the couple has four or more photos. The wall is never shown on a phone or tablet, and never before the tap (html.kjy-locked), so its
   lazy photos load after the tap. The layer brings each tile up from dark and gives it the gentle depth. */
:root { --k-mr-col: min(640px, 44vw); }
.k-mr-wall { display: none; }
@media (min-width: 1000px) and (orientation: landscape) {
  .k-mr-wall { position: absolute; z-index: -1; top: 1px; bottom: 1px; left: 50%; width: 100vw; margin-left: -50vw; display: grid; pointer-events: none;
    grid-template-columns: minmax(0, 1fr) var(--k-mr-col) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: 2px; }
  html.kjy-locked .k-mr-wall { display: none; }
  .k-mr-wall__t picture { display: contents; }
  .k-mr-wall__t img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .k-mr-wall__t--l { grid-column: 1; grid-row: 1 / -1; }
  .k-mr-wall__t--r { grid-column: 3; }
  .k-mr-wall__t--r:nth-child(2):last-child { grid-row: 1 / -1; }
  .k-mr-wall__t::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
  .k-mr-wall__t--l::after { background: linear-gradient(90deg, rgb(7 6 6 / .35), rgb(7 6 6 / .92)); }
  .k-mr-wall__t--r::after { background: linear-gradient(270deg, rgb(7 6 6 / .35), rgb(7 6 6 / .92)); }
}


/* ================= INV-27 Midnight Rose: the look (A3019, D-502). Overrides the INV-19 parts above where they meet. ================= */
/* One screen's geometry, shared by the opener (op260) and the hero (he260), so the print lands exactly on the hero's photo (W1.1, A3024: a
   layout of its own for each kind of screen, nothing cut off; owner: "PROPER RESPONSIVE FOR ALL DEVICES. ALONG WITH THE ENVELOP").
   Phone: the board mock's 300 x 630 phone in units of --k-mr-u. Tablet (upright, wider than 62:100): the photo full width, a larger envelope.
   Landscape (wider than 6:5): the photo full height on the left, the words on the right; the envelope composed round the centre. */
:root {
  --k-mr-u: min(calc(100vw / 300), calc(100svh / 630));
  --k-mr-oy: calc((100svh - 630 * var(--k-mr-u)) / 2);
  --k-mr-pw: 100vw;                                              /* the hero photo: width, height (from the top), left */
  --k-mr-ph: calc(410 * var(--k-mr-u) + var(--k-mr-oy));
  --k-mr-pl: 0px;
  --k-mr-er: min(calc(307 * var(--k-mr-u)), 90vw);              /* the envelope at rest: the mock's size x1.2 (owner, W1.3), but never past 90 % of a phone */
  --k-mr-ew: calc(var(--k-mr-er) * 1.066667);                    /* and after the tap: about 90 % of the screen (owner, W1.1); a phone's rest is 90 % now, so it pops to 96 % (A3060: the rest size x a fixed factor, see --k-mr-rest) */
  --k-mr-ecy: calc(346 * var(--k-mr-u) + var(--k-mr-oy));        /* its centre (W1.3: 319 -> 346u, so the bigger envelope clears the names) */
  --k-mr-rest: .9375;   /* rest / full = 1 / the factor above. A3060: was tan(atan2(er, ew)), which WebKit mis-resolves with viewport units (the owner's iPhone drew
     the envelope tiny; Playwright WebKit gave -1.09 and flipped the rose); every layout now sets the full size as rest x a factor, so the rest scale is a plain number */
  --k-mr-wt: calc(96 * var(--k-mr-u) + var(--k-mr-oy));          /* the opener's words: top, names size, caption size */
  --k-mr-wn: calc(28 * var(--k-mr-u));
  --k-mr-wc: max(11px, calc(8.5 * var(--k-mr-u)));
  --k-mr-eh: calc(var(--k-mr-ew) * .6797);
  --k-mr-prw: min(calc(var(--k-mr-ew) * .95), calc(var(--k-mr-pw) * .97));   /* the print that comes out of the envelope */
  --k-mr-prh: calc(var(--k-mr-eh) * .86);
  --k-mr-prl: calc(var(--k-mr-pl) + (var(--k-mr-pw) - var(--k-mr-prw)) / 2);
  --k-mr-prt: max(3svh, calc((var(--k-mr-ph) * .52 - var(--k-mr-prh)) / 2));
  --k-mr-ground: radial-gradient(ellipse 90% 60% at 18% 22%, #151110, #070606 62%);   /* the glow 30 % softer (owner, W1.3): #1B1512 -> #151110 */
  --k-mr-ground-clear: radial-gradient(ellipse 90% 60% at 18% 22%, #151110, rgb(7 6 6 / 0) 62%);   /* the same glow fading to clear, not to black: over the night it looks the same, and the white petals behind the hero are never cut by its edge (W2) */
  --k-mr-cardline: rgb(201 160 99 / .55);
  --k-mr-shadow: drop-shadow(3px 8px 10px rgb(0 0 0 / .7));
}
@media (min-aspect-ratio: 62/100) and (max-aspect-ratio: 119/100) {
  :root { --k-mr-ph: 64svh; --k-mr-er: min(78.1vw, 57svh); --k-mr-ew: calc(var(--k-mr-er) * 1.152369); --k-mr-rest: .867778; --k-mr-ecy: 54svh;
    --k-mr-wt: 8svh; --k-mr-wn: min(7vw, 5.2svh); --k-mr-wc: max(12px, 1.5vw); }
}
@media (min-aspect-ratio: 6/5) {
  :root { --k-mr-pw: 56vw; --k-mr-ph: 100svh; --k-mr-er: min(51.1vw, 82.7svh); --k-mr-ew: calc(var(--k-mr-er) * 1.523579); --k-mr-rest: .656349; --k-mr-ecy: 58svh;
    --k-mr-wt: 4svh; --k-mr-wn: min(3.4vw, 5.4svh); --k-mr-wc: max(12px, .9vw); --k-mr-prt: calc((100svh - var(--k-mr-prh)) / 2); }
}
/* a phone on its side (W1.3): the bigger envelope is held to 64 % of the height, so the names and the cue keep their room */
@media (min-aspect-ratio: 6/5) and (max-height: 520px) { :root { --k-mr-er: min(51.1vw, 64svh); --k-mr-ew: calc(var(--k-mr-er) * 1.96875); --k-mr-rest: .507937; } }

/* Roses out of the dark: the four arrangements rendered for INV-27 (W0, A3010: one Old Master sheet on black, lit from the upper left),
   kept small (owner: "the big ones looks odd"). Size with width; place them whole on the screen. */
.k-mr-rose { position: absolute; display: block; aspect-ratio: var(--k-mr-rar); background: var(--k-mr-rimg) center / contain no-repeat;
  filter: var(--k-mr-shadow); pointer-events: none; }
.k-mr-rose--cascade { --k-mr-rar: 800 / 651; }
html.kjy-opened .k-mr-rose--cascade { --k-mr-rimg: url("/skins/midnight_rose_luxe/assets/art/mr-cascade-800.webp"); }   /* A3060 weight: only below the hero, so it loads at the tap */
.k-mr-rose--stem { --k-mr-rar: 800 / 534; --k-mr-rimg: url("/skins/midnight_rose_luxe/assets/art/mr-stem-800.webp"); }
.k-mr-rose--low { --k-mr-rar: 800 / 447; }
html.kjy-opened .k-mr-rose--low { --k-mr-rimg: url("/skins/midnight_rose_luxe/assets/art/mr-low-800.webp"); }   /* A3060 weight: only below the hero */
.k-mr-rose--bloom { --k-mr-rar: 800 / 722; --k-mr-rimg: url("/skins/midnight_rose_luxe/assets/art/mr-bloom-800.webp"); }

/* Headings: a Bodoni italic word in sentence case, a script word in champagne under it ("Dress Code" / "Black tie"). Same markup as before:
   <h2 class="k-mr-ttl"><span class="k-mr-ttl__s">script</span><span class="k-mr-ttl__c">Word</span></h2>; the script word always shows second. */
.k-mr-ttl { font: italic 400 calc(clamp(28px, 8.2vw, 38px) * var(--k-mr-z))/1.05 var(--k-font-display); text-transform: none; letter-spacing: .02em; }
.k-mr-ttl__c { order: 1; padding-left: 0; }
.k-mr-ttl__s, .k-mr-ttl__c + .k-mr-ttl__s { order: 2; margin: .02em 0 0; font-size: 1.8em; line-height: .86; padding: .12em .3em .18em; color: var(--k-champ); }
@media (min-width: 1000px) { .k-mr-ttl { font-size: calc(44px * var(--k-mr-z)); } }

/* The names: EMMA, a script "and" in champagne, JAMES (the mock). */
.k-mr-names { letter-spacing: .08em; line-height: 1; }
.k-mr-names > span { padding-left: .08em; }
.k-mr-and { display: block !important; font-size: 1.09em; line-height: .7; margin: .06em 0 .24em; padding: .1em .2em .06em !important; }
.k-mr-and::before { display: none; }

/* Small capitals as the mock's captions */
.k-mr-kick { letter-spacing: .26em; }

/* A join: one small rose lying in the dark between two hairlines (the couple's initials stay in the markup for screen readers only). */
.k-mr-rule { gap: 12px; }
.k-mr-rule::before, .k-mr-rule::after { flex-basis: clamp(44px, 14vw, 88px); background: var(--k-mr-cardline); }
.k-mr-rule__ini { display: block; width: calc(54px * var(--k-mr-z)); aspect-ratio: 800 / 722; font-size: 0; color: transparent;
  background: center / contain no-repeat; filter: drop-shadow(2px 5px 6px rgb(0 0 0 / .7)); }
html.kjy-opened .k-mr-rule__ini { background-image: url("/skins/midnight_rose_luxe/assets/art/mr-bloom-400.webp"); }   /* A3060 weight: the joins sit below the hero */

/* A card on the black (dress code, reply, venues): the mock's champagne hairline */
.k-mr-dcard { border: .7px solid var(--k-mr-cardline); background: rgb(14 12 12 / .8); }
.k-mr-card { background: var(--k-raised); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9), inset 0 0 0 .7px var(--k-mr-cardline); }

/* Every section's own roses out of the dark (A3019, W1.1 A3024): behind the words, in the margins, always whole on the screen: at least 3vw
   from the edge, and on a wide screen just outside the centre column (430 px from the middle), so a laptop fills without stretching (D-495).
   Markup: <div class="k-mr-roses"><i class="k-mr-rose k-mr-rose--bloom" style="width:W;top:..;rotate:..deg;left:max(3vw, calc(50% - 430px - W))"></i></div> */
.k-mr-sec { position: relative; isolation: isolate; }
.k-mr-roses { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; overflow: hidden; pointer-events: none; }
/* INV-19's laptop photo walls and dimmed mood photos are its own grammar: not in INV-27 */
.k-mr-wall, .k-mr-mood { display: none !important; }

/* Gold words in a subtle metal (W1.2, A3031; owner: "make the Current gold text slightly like metal gold, but very subtle. currently it
   looks a bit cheap kinda"). One metal for every gold word: the candle colour lit from the upper left, a touch brighter at the top, a warm
   red-gold shade just under the middle (never a yellow alloy, feedback-gold-warm-red-not-yellow), back to the candle colour at the foot.
   Built from --k-champ, so a couple's own "gold" still reaches it. The gradient is clipped to the letters (background-clip: text), and a
   clipped background stops at the box, so each script word gets extra room for its swashes (AG-T285), taken back by an equal negative
   margin: nothing moves. Small capitals need no room. The highest lift and the deepest shade both stay above 7:1 on the night. */
:root {
  --k-mr-g-hi: color-mix(in oklab, var(--k-champ) 62%, #FFF3D9);
  --k-mr-g-lo: color-mix(in oklab, var(--k-champ) 72%, #7A4424);
  --k-mr-metal: linear-gradient(170deg, var(--k-mr-g-hi) 6%, var(--k-champ) 36%, var(--k-mr-g-lo) 56%, var(--k-champ) 74%, color-mix(in oklab, var(--k-champ) 84%, #FFF3D9) 96%);
}
html .k-mr-ttl .k-mr-ttl__s, html .k-mr-names .k-mr-and, html .k-mr-scr, html .he260__date, html .op260__go, html .ev260-ev__time em {
  background: var(--k-mr-metal) 0 0 / 100% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html .k-mr-ttl .k-mr-ttl__s { padding: .34em .6em .4em; margin: -.2em -.3em -.22em; }
html .k-mr-names .k-mr-and { padding: .32em .5em .28em !important; margin: -.16em -.3em .02em; }
html .iv260-names .iv260-name { padding: .38em .64em; margin: -.32em -.3em; }
html .cd260 .cd260__cele { padding: .38em .64em; margin: calc(10px - .22em) -.3em calc(6px - .22em); }
html .rs260 .rs260-dear { padding: .32em .3em; margin: -.22em -.3em calc(14px - .22em); }
html .cl260 .cl260__line { padding: .38em .64em; margin: -.22em -.3em; }
html .ev260-ev__time em { padding: .25em .5em .3em .35em; margin: -.25em -.3em -.3em -.3em; }

/* Black glass (W1.2, A3031; owner: dress code "Glass ... subtle shiny surface", then "shiny but darkish, currently its giving a look of
   brownish", then "the Reply RSVP should be Blackish as well"): one pane recipe for the dress-code cards and the reply card. A neutral
   near-black body (no warm tint), its shine in white: the light's corner at the upper left, a whisper of milk; a lit lip on the top and
   left edges, a dim one on the far edges; a soft shadow under it. The etch (INV-03's polishing hairlines and frost, at low strength,
   strongest toward the light) is the pane's ::after. No backdrop-filter: nothing lies under a pane.
   W2.1 (A3051; owner: "from Dresscode cards and the Reply card, remove that diagonal light wave thing. keep the Corner glows etc as it
   is"): the long diagonal glint band across the pane is gone, and so is W2's one-off glint sweep; the corner light, milk, lips and etch stay. */
:root {
  --k-mr-glass:
    linear-gradient(124deg, rgb(255 255 255 / .11) 0%, rgb(255 255 255 / .04) 13%, rgb(255 255 255 / 0) 30%),
    linear-gradient(180deg, rgb(255 255 255 / .018), rgb(255 255 255 / 0) 45%, rgb(255 255 255 / .012)),
    linear-gradient(160deg, rgb(13 13 15 / .92), rgb(5 5 6 / .96));
  --k-mr-glass-edge: inset 1px 1px 0 rgb(255 255 255 / .26), inset -1px -1px 0 rgb(255 255 255 / .06), inset 0 0 0 1px rgb(255 255 255 / .04),
    inset 0 22px 36px -24px rgb(255 255 255 / .05), 0 36px 64px -30px rgb(0 0 0 / .95), 0 12px 24px -14px rgb(0 0 0 / .85);
  --k-mr-glass-etch: none;   /* A3060 weight: the etch and frost load at the tap (html.kjy-opened below); the panes sit below the hero */
  --k-mr-glass-etch-mask: linear-gradient(124deg, #000, rgb(0 0 0 / .45) 45%, rgb(0 0 0 / .2));
}
html.kjy-opened { --k-mr-glass-etch: url("/skins/midnight_rose_luxe/assets/art/glass-etch-1024.webp") 0 0 / 512px repeat, url("/skins/midnight_rose_luxe/assets/art/glass-frost-256.webp") 0 0 / 128px repeat; }

/* Roses placed evenly (W1.3, A3042; owner: "some of the flowers are put unevenly ... fix them" and "Get rid of the downward facing rose on
   right side of the divider"). The joins keep only the divider's own rose. A section with a heading may carry one arrangement, level with
   that heading (its vertical middle), on alternating sides down the page (date right, dress code left, venues right, moments left, closing
   right, beside the names), all the same size and the same distance from the middle: at the screen margin on a phone, 270 px out from the
   middle on a wide screen. The spray (cascade) is mirrored on the left so it always falls toward the words. Markup, first child of the
   heading: <i class="k-mr-rose k-mr-rose--cascade k-mr-flank k-mr-flank--r" aria-hidden="true"></i>. */
:root { --k-mr-fw: clamp(72px, 16vw, 132px); --k-mr-fd: 270px; }
.k-mr-ttl, .cl260-names { position: relative; }
.k-mr-flank { top: 50%; width: var(--k-mr-fw); translate: 0 -50%; }
.k-mr-flank--l { left: max(calc(4vw - var(--k-gutter)), calc(50% - var(--k-mr-fd) - var(--k-mr-fw))); }
.k-mr-flank--r { right: max(calc(4vw - var(--k-gutter)), calc(50% - var(--k-mr-fd) - var(--k-mr-fw))); }
.k-mr-flank--l.k-mr-rose--cascade { scale: -1 1; }

/* ================= INV-27 W2 motion (A3048; owner: "take it to the next level ... that LUXE feel"): roses out of the dark, lit by candlelight =================
   layer/particles/260 marks each target k-mr-m, then k-mr-in once when it arrives, and adds html.ad-moments last; every "before" state is under
   html.ad-moments:not(.kjy-lite), so lite, Reduce motion and no script show the still page. Timers carry opacity, turns and short rises only (AG-T333). */
/* a heading's roses rise out of the dark beside it, after its capitals */
html.ad-moments:not(.kjy-lite) .k-mr-m:not(.k-mr-in) .k-mr-flank { opacity: 0; translate: 0 calc(-50% + 18px); }
html.ad-moments:not(.kjy-lite) .k-mr-in .k-mr-flank { transition: opacity 1.4s ease-out .3s, translate 1.6s cubic-bezier(.2,.7,.2,1) .3s; }
/* a join's rose opens: it turns up out of the dark, then its hairlines draw out from it */
html.ad-moments:not(.kjy-lite) .k-mr-rule.k-mr-m:not(.k-mr-in) .k-mr-rule__ini { opacity: 0; translate: 0 10px; rotate: -50deg; }
html.ad-moments:not(.kjy-lite) .k-mr-rule.k-mr-in .k-mr-rule__ini { transition: opacity 1.1s ease-out, translate 1.4s cubic-bezier(.2,.7,.2,1), rotate 1.8s cubic-bezier(.2,.7,.2,1); }
html.ad-moments:not(.kjy-lite) .k-mr-rule.k-mr-in::before, html.ad-moments:not(.kjy-lite) .k-mr-rule.k-mr-in::after { transition: transform 1.2s cubic-bezier(.3,.6,.2,1) .5s; }
/* candlelight runs once across the gold script as it finishes writing on (a narrow light band in the same clipped background, ahead of the metal) */
:root { --k-mr-sheen: linear-gradient(104deg, transparent 44%, rgb(255 249 235 / .9) 50%, transparent 56%); }
html.ad-moments:not(.kjy-lite) .k-mr-ttl.k-mr-m .k-mr-ttl__s, html.ad-moments:not(.kjy-lite) .k-mr-wr.k-mr-m, html.ad-moments:not(.kjy-lite) .iv260-names.k-mr-m .iv260-name {
  background: var(--k-mr-sheen) 100% 0 / 300% 100% no-repeat, var(--k-mr-metal) 0 0 / 100% 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
html.ad-moments:not(.kjy-lite) .k-mr-ttl.k-mr-in .k-mr-ttl__s, html.ad-moments:not(.kjy-lite) .k-mr-wr.k-mr-in, html.ad-moments:not(.kjy-lite) .iv260-names.k-mr-in .iv260-name {
  animation: k-mr-sheen 1.9s cubic-bezier(.45,0,.3,1) var(--ad-sh, 1.25s) both; }
.iv260-name ~ .iv260-name { --ad-sh: 1.6s; }
@keyframes k-mr-sheen { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
/* the glass panes rise out of the dark (W2.1: no glint sweep across them any more, owner) */
html.ad-moments:not(.kjy-lite) .k-mr-pane.k-mr-m:not(.k-mr-in) { opacity: 0; transform: translateY(16px); }
html.ad-moments:not(.kjy-lite) .k-mr-pane.k-mr-in { transition: opacity 1.1s ease-out var(--ad-d, 0s), transform 1.2s cubic-bezier(.2,.7,.2,1) var(--ad-d, 0s); }
/* the day: the 12 waits in gold, a white petal drifts down onto it, turning, and the number turns to ink on the petal */
html.ad-moments:not(.kjy-lite) .dt260__cal.k-mr-m:not(.k-mr-in) .dt260__c--main::before { opacity: 0; translate: -10% -190%; rotate: -95deg; }
html.ad-moments:not(.kjy-lite) .dt260__cal.k-mr-in .dt260__c--main::before { transition: opacity .9s ease-out .2s, translate 2.4s cubic-bezier(.25,.6,.3,1) .2s, rotate 2.6s cubic-bezier(.25,.6,.3,1) .2s; }
html.ad-moments:not(.kjy-lite) .dt260__cal.k-mr-m:not(.k-mr-in) .dt260__c--main .dt260__n { color: var(--k-champ); text-shadow: none; }
html.ad-moments:not(.kjy-lite) .dt260__cal.k-mr-in .dt260__c--main .dt260__n { transition: color .9s ease 1.9s, text-shadow .9s ease 1.9s; }
/* a return visit mid-page: what the guest has passed shows at once, no sweeps */
html.ad-moments .k-mr-now :is(.k-mr-ttl__s, .iv260-name), html.ad-moments .k-mr-now.k-mr-wr { animation: none !important; }
/* white petals: a few fall behind the words while the guest scrolls, each on its own path, turning, and tumbling (a flat petal seen edge-on);
   the far ones smaller, fainter and a touch soft. One fixed field, 100lvh from the top (AG-T348). */
.k-mr-petals { position: fixed; left: 0; top: 0; width: 100%; height: 100lvh; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; }
html.kjy-lite .k-mr-petals, html.motion-reduce .k-mr-petals { display: none; }
.k-mr-petals i { position: absolute; left: 0; top: 0; width: var(--w); aspect-ratio: 175 / 186; animation: k-mr-fall var(--dur) cubic-bezier(.3,.1,.5,1) both; }
.k-mr-petals b { position: absolute; inset: 0; background: url("/skins/midnight_rose_luxe/assets/art/mr-petal-240.webp") center / contain no-repeat;
  animation: k-mr-tumble var(--tb) ease-in-out infinite alternate; }
.k-mr-petals .is-far b { filter: blur(.7px); }
@keyframes k-mr-fall {
  0% { opacity: 0; translate: var(--x) -30px; rotate: var(--r0); }
  10% { opacity: var(--o); }
  40% { translate: calc(var(--x) + var(--s1)) calc(var(--dy) * .4); }
  75% { opacity: var(--o); translate: calc(var(--x) + var(--s2)) calc(var(--dy) * .75); }
  100% { opacity: 0; translate: calc(var(--x) + var(--s3)) var(--dy); rotate: calc(var(--r0) + var(--rt)); } }
@keyframes k-mr-tumble { from { scale: 1 1; } to { scale: .32 1; } }

/* ================= INV-27 W2.1 night stars (A3051; owner: "a very subtle gliter or stars like thing effect in the bg along with petals so it
   give like a look of night and it might look a little bit more fancy") =================
   layer/particles/260 builds one fixed field after the tap, 100lvh from the top (AG-T348), under the petals and behind every section: small
   warm-white stars that twinkle, each on its own clock, and drift a few pixels on a long one (AG-T350: no two move alike), plus every sixth one
   a champagne glint that wakes for a moment now and then (the glitter). The softness is the gradient itself, never a CSS filter on moving
   stars (feedback-stars-more-alive); the colour sits halfway from gold to white. Fewer stars, never dimmer ones (feedback-glitter-a-little).
   --k-mr-stars is the strength the owner can tune. Lite, Reduce motion and no script: no stars; a capture mode holds them still.
   W2.1b (owner: "I dont see any gliter etc in the BG"): at 30 % size the soft falloff left 1-2 px specks peaking at 30-110 of 255, and the
   twinkle dimmed some to 13 %. Same few, small stars, now each with a crisp bright centre (solid to 42 %) and a twinkle that never drops below 60 %. */
:root { --k-mr-stars: 1; }
.k-mr-stars { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden; pointer-events: none;
  contain: strict; opacity: 0; transition: opacity 2.4s ease-out .4s; }
.k-mr-stars.is-on { opacity: var(--k-mr-stars); }
html.kjy-lite .k-mr-stars, html.motion-reduce .k-mr-stars { display: none; }
@media (prefers-reduced-motion: reduce) { .k-mr-stars { display: none; } }
.k-mr-stars i { position: absolute; left: var(--x); top: var(--y); width: var(--z); height: var(--z); margin: calc(var(--z) / -2) 0 0 calc(var(--z) / -2);
  border-radius: 50%; opacity: var(--a);
  background: radial-gradient(closest-side, rgb(255 250 240) 0, rgb(255 248 236) 42%, rgb(255 236 206 / .45) 68%, rgb(255 230 196 / 0));
  animation: k-mr-st-drift var(--dt) ease-in-out var(--dd) infinite alternate, k-mr-st-tw var(--tt) ease-in-out var(--td) infinite alternate; }
.k-mr-stars i.is-glint { background: radial-gradient(closest-side, rgb(255 248 236) 0, rgb(252 232 196) 34%, rgb(236 202 150 / .4) 62%, rgb(232 196 140 / 0));
  animation: k-mr-st-drift var(--dt) ease-in-out var(--dd) infinite alternate, k-mr-st-wake var(--tt) ease-in-out var(--td) infinite; }
.k-mr-stars.is-still i { animation-play-state: paused; }
@keyframes k-mr-st-drift { from { translate: calc(var(--dx) * -1) calc(var(--dy) * -1); } to { translate: var(--dx) var(--dy); } }
@keyframes k-mr-st-tw { from { opacity: calc(var(--a) * .6); scale: .85; } to { opacity: var(--a); scale: 1; } }
@keyframes k-mr-st-wake { 0%, 58%, 100% { opacity: calc(var(--a) * .5); scale: .7; } 78% { opacity: var(--a); scale: 1.08; } }
