/* INV-19 After Dark · Luxe (A2695, D-400; plan docs/plans/plan_inv19_after_dark.md): the lights go down, and each screen rises out of the dark like a
   room as the candles are lit. A black page; warm candlelit photos melt into it on one side only; tall Bodoni capitals with one small script word in
   the candle colour across them; big numbers. One candle pool of light behind each block of words. No paper, no seal, no film. Shared parts are k-ad-*. */
@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-ad-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: #0A0908; --k-raised: #15120F;
  --k-paper: var(--k-night); --k-card: var(--k-raised); --k-paper-deep: #1E1A16; --k-photo-white: #F2EBDD;
  --k-ink: #F2EBDD; --k-ink-soft: #B9AF9F; --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, #D8B47A);
  --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-ad-accent: color-mix(in oklab, var(--c-primary) 50%, #F2EBDD);
  --k-hair: color-mix(in srgb, var(--k-ad-accent) 42%, transparent);
  --k-ad-line: color-mix(in srgb, var(--k-ad-accent) 62%, transparent);
  --k-ad-fill: var(--k-ad-accent); --k-ad-fill-down: color-mix(in srgb, var(--k-ad-accent) 80%, #000); --k-ad-on-fill: #0A0908;
  --k-line: var(--k-hair);
  --k-dark: #0A0908; --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-ad-narrow: 1; --k-ad-narrow-n: 1; /* Bodoni is not narrowed: kept so the forks' transforms stay neutral */
  --k-ad-sk-gown: url("/skins/after_dark_luxe/assets/art/sketch-gown.webp");
  --k-ad-sk-suit: url("/skins/after_dark_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-ad-frame-h: max(100svh, 600px);
  --k-ad-photo-h: 64svh;
  --k-ad-melt: clamp(150px, 26svh, 280px); /* how far a photo melts into the night; the rest stays whole and sharp (D-129) */
  --k-ad-melt-w: 30%;
  --k-ad-pool: radial-gradient(ellipse 72% 34% at 50% 60%, rgb(216 180 122 / .14), rgb(216 180 122 / .05) 45%, transparent 72%);
}
@media (min-width: 700px) { :root { --k-ad-z: 1.04; } }
@media (min-width: 700px) and (orientation: portrait) { :root { --k-ad-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-ad-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-ad-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-ad-paper { background: var(--k-night); }
.k-ad-black { background: var(--k-raised); color: var(--k-ink); }
.k-ad-on-black { --k-ad-fill: var(--k-ad-accent); --k-ad-on-fill: #0A0908; }
.k-ad-card { background: var(--k-raised); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9), inset 0 0 0 1px rgb(216 180 122 / .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-ad-glow { position: absolute; inset: -12% -24%; z-index: -1; background: var(--k-ad-pool); pointer-events: none; }
.k-ad-lit { position: relative; isolation: isolate; }

/* type */
.k-ad-kick { font: 500 calc(13.5px * (var(--k-ad-z) + .08))/1.6 var(--k-font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--k-ink-soft); }
.k-ad-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-ad-tall { font-family: var(--k-font-display); font-weight: 400; }
.k-ad-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-ad-ttl"><span class="k-ad-ttl__s">the</span><span class="k-ad-ttl__c">Countdown</span></h2>; a third span is a second capital line. */
.k-ad-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-ad-z))/1 var(--k-font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--k-ink); text-wrap: balance; }
.k-ad-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-ad-ttl__c { display: block; padding-left: .08em; }
.k-ad-ttl__c + .k-ad-ttl__s { margin: -.06em 0 -.04em .2em; }
@media (min-width: 1000px) { .k-ad-ttl { font-size: calc(50px * var(--k-ad-z)); } }

/* The names: EMMA, then "and" led in by a hairline, then JAMES. */
.k-ad-names { display: flex; flex-direction: column; align-items: center; font: 400 calc(clamp(40px, 12.6vw, 58px) * var(--k-ad-z))/.96 var(--k-font-display); letter-spacing: .07em; text-transform: uppercase; color: var(--k-ink); }
.k-ad-names > span { display: block; max-width: 100%; overflow-wrap: anywhere; padding-left: .07em; }
.k-ad-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-ad-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-ad-gap { padding-block: clamp(64px, 10vh, 104px); }
.k-ad-rule { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--k-ad-accent); }
.k-ad-rule::before, .k-ad-rule::after { content: ""; flex: 0 1 clamp(48px, 15vw, 96px); height: 1px; background: var(--k-hair); }
.k-ad-rule__ini { font: 400 calc(19px * var(--k-ad-z))/1 var(--k-font-display); letter-spacing: .16em; }
.k-ad-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-ad-stack { font: 400 calc(30px * var(--k-ad-z))/1.1 var(--k-font-display); letter-spacing: .08em; color: var(--k-ink); }
.k-ad-stack b { font-weight: 400; }
.k-ad-stack b + b::before { content: " · "; color: var(--k-champ); }

/* the fine line icons: colour-free masks, so the couple's colour reaches them */
.k-ad-ic { display: block; width: var(--k-ad-s, 48px); height: var(--k-ad-s, 48px); }
html.kjy-opened .k-ad-ic { background: var(--k-ad-accent); -webkit-mask: var(--k-ad-i) center / contain no-repeat; mask: var(--k-ad-i) center / contain no-repeat; }
.k-ad-ic--ceremony { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-ceremony.webp"); }
.k-ad-ic--rings { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-rings.webp"); }
.k-ad-ic--drinks { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-drinks.webp"); }
.k-ad-ic--meal { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-meal.webp"); }
.k-ad-ic--cake { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-cake.webp"); }
.k-ad-ic--departure { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-departure.webp"); }
.k-ad-ic--music { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-music.webp"); }
.k-ad-ic--dhol { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-dhol.webp"); }
.k-ad-ic--mehndi { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-mehndi.webp"); }
.k-ad-ic--haldi { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-haldi.webp"); }
.k-ad-ic--other { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-other.webp"); }
.k-ad-ic--doves { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-doves.webp"); }
.k-ad-ic--candle { --k-ad-i: url("/skins/after_dark_luxe/assets/art/ic-candle.webp"); }
.k-ad-ic--envelope { --k-ad-i: url("/skins/after_dark_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-ad-ph { position: relative; display: block; overflow: hidden; }
.k-ad-ph > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.k-ad-ph--foot { -webkit-mask: linear-gradient(#000 calc(100% - var(--k-ad-melt)), rgb(0 0 0 / .55) calc(100% - var(--k-ad-melt) * .5), transparent 99%); mask: linear-gradient(#000 calc(100% - var(--k-ad-melt)), rgb(0 0 0 / .55) calc(100% - var(--k-ad-melt) * .5), transparent 99%); }
.k-ad-ph--top { -webkit-mask: linear-gradient(transparent 1%, rgb(0 0 0 / .55) calc(var(--k-ad-melt) * .5), #000 var(--k-ad-melt)); mask: linear-gradient(transparent 1%, rgb(0 0 0 / .55) calc(var(--k-ad-melt) * .5), #000 var(--k-ad-melt)); }
@media (min-width: 1000px) and (orientation: landscape) {
  .k-ad-ph--wide-side { -webkit-mask: linear-gradient(to right, #000 calc(100% - var(--k-ad-melt-w)), transparent 99%); mask: linear-gradient(to right, #000 calc(100% - var(--k-ad-melt-w)), transparent 99%); }
  .k-ad-ph--wide-left { -webkit-mask: linear-gradient(to left, #000 calc(100% - var(--k-ad-melt-w)), transparent 99%); mask: linear-gradient(to left, #000 calc(100% - var(--k-ad-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-ad-mood { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.k-ad-mood > img { width: 100%; height: 100%; object-fit: cover; }
.k-ad-mood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--k-night), rgb(10 9 8 / .62) 18%, rgb(10 9 8 / .72) 55%, rgb(10 9 8 / .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-ad-frame { position: relative; }
.k-ad-print { position: absolute; left: 0; right: 0; top: 0; height: var(--k-ad-photo-h); overflow: hidden; -webkit-mask: linear-gradient(#000 calc(100% - var(--k-ad-melt) * 1.25), rgb(0 0 0 / .42) calc(100% - var(--k-ad-melt) * .62), rgb(0 0 0 / .12) calc(100% - var(--k-ad-melt) * .3), transparent 99%); mask: linear-gradient(#000 calc(100% - var(--k-ad-melt) * 1.25), rgb(0 0 0 / .42) calc(100% - var(--k-ad-melt) * .62), rgb(0 0 0 / .12) calc(100% - var(--k-ad-melt) * .3), transparent 99%); }
.k-ad-print__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) and (orientation: landscape) {
  .k-ad-print { left: auto; right: 0; bottom: 0; width: 60vw; height: auto; -webkit-mask: linear-gradient(to left, #000 calc(100% - var(--k-ad-melt-w)), transparent 99%); mask: linear-gradient(to left, #000 calc(100% - var(--k-ad-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-ad-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-ad-fill); color: var(--k-ad-on-fill); border: 1px solid var(--k-ad-fill); }
.k-btn--solid:active { background: var(--k-ad-fill-down); border-color: var(--k-ad-fill-down); }
.k-btn--line, .kjy-cal__toggle { background: transparent; color: var(--k-ad-accent); border: 1px solid var(--k-ad-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: 14px; padding: 14px 8px; font: 500 .75rem/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: 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-hair);
  background: var(--k-raised); color: var(--k-ad-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-ad-m, then k-ad-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-ad-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-ad-now, html.ad-moments .k-ad-now *, html.ad-moments .k-ad-now::before, html.ad-moments .k-ad-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-ad-veil, .k-ad-dusk { position: absolute; inset: 0; background: var(--k-night); opacity: 0; pointer-events: none; }
html.ad-moments:not(.kjy-lite) .k-ad-m:not(.k-ad-in) > .k-ad-veil { opacity: .9; }
html.ad-moments:not(.kjy-lite) .k-ad-in > .k-ad-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-ad-glow.k-ad-m:not(.k-ad-in) { opacity: 0; transform: scale(.7); }
html.ad-moments:not(.kjy-lite) .k-ad-glow.k-ad-in { transition: opacity 1.6s ease-out, transform 1.6s ease-out; animation: k-ad-breath var(--ad-br, 7s) ease-in-out 1.6s infinite; }
html.ad-moments .k-ad-glow.is-off { animation-play-state: paused; }
@keyframes k-ad-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-ad-m:not(.k-ad-in) :is(.k-ad-ttl__c, .k-ad-up), html.ad-moments:not(.kjy-lite) .k-ad-up.k-ad-m:not(.k-ad-in) { opacity: 0; transform: translateY(14px); }
html.ad-moments:not(.kjy-lite) .k-ad-num.k-ad-m:not(.k-ad-in) { transform: translateY(18px); }
html.ad-moments:not(.kjy-lite) .k-ad-in :is(.k-ad-ttl__c, .k-ad-up), html.ad-moments:not(.kjy-lite) .k-ad-up.k-ad-in { transition: opacity 1s ease-out var(--ad-d, 0s), transform 1s cubic-bezier(.2,.7,.2,1) var(--ad-d, 0s); }
.k-ad-ttl__c ~ .k-ad-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-ad-m:not(.k-ad-in) .k-ad-ttl__s, html.ad-moments:not(.kjy-lite) .k-ad-wr.k-ad-m:not(.k-ad-in) { clip-path: inset(-.6em 100% -.6em -.6em); }
html.ad-moments:not(.kjy-lite) .k-ad-in:not(.k-ad-done) .k-ad-ttl__s, html.ad-moments:not(.kjy-lite) .k-ad-wr.k-ad-in:not(.k-ad-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-ad-rule.k-ad-m::before { transform-origin: 100% 50%; }
html.ad-moments .k-ad-rule.k-ad-m::after { transform-origin: 0 50%; }
html.ad-moments:not(.kjy-lite) .k-ad-rule.k-ad-m:not(.k-ad-in) .k-ad-rule__ini { opacity: 0; }
html.ad-moments:not(.kjy-lite) .k-ad-rule.k-ad-m:not(.k-ad-in)::before, html.ad-moments:not(.kjy-lite) .k-ad-rule.k-ad-m:not(.k-ad-in)::after { transform: scaleX(0); }
html.ad-moments:not(.kjy-lite) .k-ad-rule.k-ad-in .k-ad-rule__ini { transition: opacity .3s ease; }
html.ad-moments:not(.kjy-lite) .k-ad-rule.k-ad-in::before, html.ad-moments:not(.kjy-lite) .k-ad-rule.k-ad-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-ad-late .k-ad-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-ad-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-ad-embers.is-on { opacity: var(--ad-embers, 1); }
html.kjy-lite .k-ad-embers, html.motion-reduce .k-ad-embers { display: none; }
.k-ad-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-ad-rise var(--rt) linear var(--rd) infinite, k-ad-sway var(--st) ease-in-out var(--sd) infinite alternate; }
.k-ad-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-ad-glim var(--gt) ease-in-out var(--gd) infinite alternate; }
@keyframes k-ad-rise { 0% { translate: 0 0; opacity: 0; } 14% { opacity: 1; } 84% { opacity: 1; } 100% { translate: 0 var(--ry); opacity: 0; } }
@keyframes k-ad-sway { from { transform: translateX(calc(var(--sx) * -1)); } to { transform: translateX(var(--sx)); } }
@keyframes k-ad-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-ad-col: min(640px, 44vw); }
.k-ad-wall { display: none; }
@media (min-width: 1000px) and (orientation: landscape) {
  .k-ad-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-ad-col) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: 2px; }
  html.kjy-locked .k-ad-wall { display: none; }
  .k-ad-wall__t picture { display: contents; }
  .k-ad-wall__t img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .k-ad-wall__t--l { grid-column: 1; grid-row: 1 / -1; }
  .k-ad-wall__t--r { grid-column: 3; }
  .k-ad-wall__t--r:nth-child(2):last-child { grid-row: 1 / -1; }
  .k-ad-wall__t::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
  .k-ad-wall__t--l::after { background: linear-gradient(90deg, rgb(10 9 8 / .35), rgb(10 9 8 / .92)); }
  .k-ad-wall__t--r::after { background: linear-gradient(270deg, rgb(10 9 8 / .35), rgb(10 9 8 / .92)); }
}
