/* Burgundy Blossom Luxe skin (INV-12 v2 · Luxe W1, A1693; plan docs/plans/plan_inv12_v2_luxe_master.md L0; owner 2026-10-21:
   "very luxe ... attention to small details"). The v2 skin below byte for byte (test/inv12_v2_luxe.test.mjs enforces it, so a
   v2 fix is copied across), then one Luxe block at the end: gilt edges on the long card, letterpress, double-rule buttons,
   wine selection and caret, and "foil catches the light" (gold lines glint as they pass the middle of the screen). */
/* Burgundy Blossom skin v2 (INV-12 v2 W1, A1614; plan docs/plans/plan_inv12_v2_master.md D1; owner 2026-10-19). A copy
   of the frozen burgundy_blossom skin (Premium-1005, D-081) with four changes: a much wider card on desktop; a gold blossom
   divider at every join of the long card; the full-colour logo at 30 px in the footer; and Cormorant held invisible until
   it loads (font-display: block), so the hero's print never swaps fonts while it develops. The art is NOT copied: every
   --k-art-* / --k-mask-* token and the BBTINT block point at the frozen /skins/burgundy_blossom/assets/art/ files, which
   can never change (scripts/burgundy_blossom_kit.py sync --check --skin-css <this file> --op-css <op034> checks them).
   W1.1 (A1632, D-090; plan docs/plans/plan_inv12_v2_w1_1.md D1; the owner's look): the desktop card fills the screen but
   for a thin linen margin, the desktop sections take their padding from the rhythm tokens --k-dpad-t / --k-dpad-b, and the
   divider sits in the middle of its join's gap; it now shows only where a section has no flourish of its own (the
   countdown): the date, events and venue sections switch it off themselves.
   W2a (A1676; plan docs/plans/plan_inv12_v2_w2.md; the owner's tablet photo 2026-10-20): portrait tablets (the query
   "(max-aspect-ratio: 999/1000) and (min-width: 700px)") get the wide card and the rhythm, not the 600 px phone column. */
/* Burgundy Blossom skin v1 (INV-12 W1, A1483, D-062; plan_inv12_burgundy_blossom_master.md). "A letter by post": a
   burgundy envelope on sunlit linen, one long cream card with photo-real crimson quince, wine ink and gold.
   Great Vibes for the script words, Cinzel for every small cap, Cormorant Garamond for names, numerals and times.
   One colour drives the design: the couple's primary (or accent, through the alias) tints the blossoms, and the wine
   ink, the envelope and the buttons are derived from it with L capped at .33, so text stays dark on the card for any
   hue. The default primary is the photographed crimson, so the default page shows the pure photo. Structure follows
   the Ivory Rose skin (A1346). */
@font-face { font-family: "Great Vibes"; src: url("assets/fonts/great-vibes-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Cinzel"; src: url("assets/fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: block; }
@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: block; }

:root {
  --k-gate-plaster: #FCFCFD; --k-gate-metal: #C08470;
  --k-font-script: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  --k-font-display: "Cormorant Garamond", "Cormorant", Didot, Georgia, serif;
  --k-font-body: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --k-font-caps: "Cinzel", "Trajan Pro", "Optima", Georgia, serif;
  --k-paper: #FCFCFD; --k-card: #FCFCFD; --k-paper-deep: #F1F1F4; --k-ink: #3A2A31; --k-ink-soft: #6B5560;
  --k-line: rgb(192 132 112 / .8); --k-dark: #6E2A40; --k-on-dark: #FDFCFA; --k-on-dark-soft: rgb(253 252 250 / .84);
  --k-light-ground: transparent; --k-linen: #ECEDF0;
  --k-wine: #AD4D6E; --k-wine-soft: rgb(173 77 110 / .86); --k-env: #E0C0C3; --k-env-flap: #D8B3B7;
  --k-gold: var(--c-secondary, #C08470); --k-gold-hi: #F0D2C6;
  --k-gut: clamp(14px, 4vw, 48px);
  --k-panel-h: calc(100svh - var(--k-gut));
  --k-cw: min(calc(100vw - 2 * var(--k-gut)), 600px, calc(var(--k-panel-h) * .62));
  /* W1.1: the desktop rhythm (a section's top and bottom padding); these are the phone values, read only by desktop rules */
  --k-dpad-t: calc(var(--k-cw) * .14); --k-dpad-b: calc(var(--k-cw) * .08);
  /* W1.2: the join ornament (.k-join): its width, the sprig, the gap beside it, the gold line, and the room each joined
     section adds to its top padding (cqw resolves against the card where these are used) */
  --k-join-w: min(64cqw, 380px); --k-join-sw: clamp(38px, 11cqw, 56px); --k-join-gap: clamp(8px, 2.4cqw, 14px); --k-join-line: 1px;
  --k-join-room: clamp(50px, 15cqw, 62px); /* joins.mjs: the sprig stays >= 4 px inside its section's clipped top. W2a (A1676; plan B1,
     the owner's "more space before and after the dividers"): +20 px, about 10 px more paper above and below each ornament */
  --k-ease: cubic-bezier(.22, 1, .36, 1);
  /* W2a (A1676; plan E1): the closing card's width, shared by the closing section (cl015) and the footer, its foot */
  --k-end-w: min(calc(100vw - 32px), 480px); /* eye r1: the reply card's width, so the two read as a set */
  --k-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' x='0' y='0' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23  0 0 0 0 .2  0 0 0 0 .17  .12 0 0 0 -.05'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  /* W1.2 (A1660, plan docs/plans/plan_inv12_v2_w1_2.md D3; owner 2026-10-20 "slight texture to the card would make it look
     really fancy", pick: cotton paper): the card's paper, three code-made tiles, top first: brown flecks, light fibres and the
     tooth (it swings both ways around the paper's own colour, so the paper keeps its tone: paper.mjs). A low-frequency mottle
     tile was tried and dropped: its 520 px tile edges showed as blocks on the desktop card. op034's card face carries a byte copy (--op034-cotton). */
  /* INV-12B W1b (A2552; owner 2026-11-02: "add a good paper texture ... currently we have that grainy texture"): the three
     code-made grain tiles are gone; the card is real cotton paper: INV-17's paper tile as a see-through relief layer
     (scripts/sakura_morning_kit.py paper, 768 px drawn at 300 px, ~70 KB), the same on every screen. The list keeps three
     layers (two empty) so every section's three-value background-size still lines up; phones size the first at 300 px. */
  --k-cotton: image-set(url("/skins/sakura_morning_luxe/assets/art/paper-tooth.webp") 2.56x), linear-gradient(#0000, #0000), linear-gradient(#0000, #0000);
  --k-cotton-fine: image-set(url("/skins/sakura_morning_luxe/assets/art/paper-tooth.webp") 2.56x), linear-gradient(#0000, #0000), linear-gradient(#0000, #0000);
  /* the art kit (scripts/burgundy_blossom_kit.py sync): --k-art-* images, --k-mask-* petal masks, --k-ar-* w / h */
  /*BBART>*/
  --k-art-linen-tall: image-set(url("/skins/sakura_morning_luxe/assets/art/linen-tall-390.webp") 1x, url("/skins/sakura_morning_luxe/assets/art/linen-tall-780.webp") 2x);
  --k-art-linen-wide: image-set(url("/skins/sakura_morning_luxe/assets/art/linen-wide-1440.webp") 1x, url("/skins/sakura_morning_luxe/assets/art/linen-wide-2400.webp") 2x);
  --k-art-branch: image-set(url("/skins/sakura_morning_luxe/assets/art/branch-900.webp") 1x, url("/skins/sakura_morning_luxe/assets/art/branch-1800.webp") 2x);
  --k-art-branch-r: image-set(url("/skins/sakura_morning_luxe/assets/art/branch-r-900.webp") 1x, url("/skins/sakura_morning_luxe/assets/art/branch-r-1800.webp") 2x);
  --k-art-spray-tr: image-set(url("/skins/sakura_morning_luxe/assets/art/spray-tr-260.webp") 1x, url("/skins/sakura_morning_luxe/assets/art/spray-tr-520.webp") 2x);
  --k-art-spray-br: image-set(url("/skins/sakura_morning_luxe/assets/art/spray-br-180.webp") 1x, url("/skins/sakura_morning_luxe/assets/art/spray-br-360.webp") 2x);
  --k-art-head: image-set(url("/skins/sakura_morning_luxe/assets/art/head-160.webp") 1x, url("/skins/sakura_morning_luxe/assets/art/head-320.webp") 2x);
  --k-art-sprig: image-set(url("/skins/sakura_morning_luxe/assets/art/sprig-150.webp") 1x, url("/skins/sakura_morning_luxe/assets/art/sprig-300.webp") 2x);
  --k-art-prop: image-set(url("/skins/sakura_morning_luxe/assets/art/prop-560.webp") 1x, url("/skins/sakura_morning_luxe/assets/art/prop-1120.webp") 2x);
  --k-art-seal: image-set(url("/skins/sakura_morning_luxe/assets/art/seal-160.webp") 1x, url("/skins/sakura_morning_luxe/assets/art/seal-320.webp") 2x);
  --k-art-fall-a: url("/skins/sakura_morning_luxe/assets/art/fall-a-64.webp");
  --k-art-fall-b: url("/skins/sakura_morning_luxe/assets/art/fall-b-64.webp");
  --k-art-fall-c: url("/skins/sakura_morning_luxe/assets/art/fall-c-64.webp");
  --k-mask-branch: url("/skins/sakura_morning_luxe/assets/art/branch-petal.webp");
  --k-mask-branch-r: url("/skins/sakura_morning_luxe/assets/art/branch-r-petal.webp");
  --k-mask-spray-tr: url("/skins/sakura_morning_luxe/assets/art/spray-tr-petal.webp");
  --k-mask-spray-br: url("/skins/sakura_morning_luxe/assets/art/spray-br-petal.webp");
  --k-mask-head: url("/skins/sakura_morning_luxe/assets/art/head-petal.webp");
  --k-mask-sprig: url("/skins/sakura_morning_luxe/assets/art/sprig-petal.webp");
  --k-mask-prop: url("/skins/sakura_morning_luxe/assets/art/prop-petal.webp");
  --k-mask-fall-a: url("/skins/sakura_morning_luxe/assets/art/fall-a-petal.webp");
  --k-mask-fall-b: url("/skins/sakura_morning_luxe/assets/art/fall-b-petal.webp");
  --k-mask-fall-c: url("/skins/sakura_morning_luxe/assets/art/fall-c-petal.webp");
  --k-ar-branch: 0.3011;
  --k-ar-branch-r: 0.2689;
  --k-ar-spray-tr: 0.7222;
  --k-ar-spray-br: 0.5751;
  --k-ar-head: 1.0063;
  --k-ar-sprig: 1.0274;
  --k-ar-prop: 0.5152;
  --k-ar-seal: 1.0000;
  --k-ar-fall-a: 0.7529;
  --k-ar-fall-b: 1.3333;
  --k-ar-fall-c: 1.0323;
  /*<BBART*/
}
/* wine ink and envelopes follow the couple's colour; hex first, so browsers without relative colour keep the defaults
   (a second declaration of a custom property always wins, so the upgrade must sit inside @supports) */
@supports (color: oklch(from red min(l, .33) min(c, .13) h)) {
  :root {
    --k-wine: oklch(from var(--c-primary, #E98EC0) min(l, .552) min(c, .16) h);
    --k-wine-soft: oklch(from var(--c-primary, #E98EC0) min(l, .552) min(c, .16) h / .86);
    --k-env: oklch(from var(--c-primary, #E98EC0) .836 min(c, .04) h);
    --k-env-flap: oklch(from var(--c-primary, #E98EC0) .80 min(c, .045) h);
  }
}

/* v2 (A1614, D1.1): desktop and landscape tablets get a much wider card; the hero and the opener size themselves by the
   panel's height inside it. Every v2 "wide screen" rule uses this same query.
   W1.1 (A1632; plan docs/plans/plan_inv12_v2_w1_1.md D1; owner 2026-10-19 "nearly full screen", "the spacing in the desktop
   doesn't look good"): the card fills the screen but for a 48-72 px linen margin (1310 px at 1440x900, was 835; 1800 at
   most), and the desktop sections take their vertical padding from two rhythm tokens instead of the card's width (which
   would have left 300-380 px of empty paper at each join). W1.2: the join ornament's desktop sizes. */
@media (min-aspect-ratio: 1/1) and (min-width: 1000px), (max-aspect-ratio: 999/1000) and (min-width: 700px) {
  /* eye r1 (in the window): a 5vw margin (up to 80 px), so the linen and its props read as a margin, not a sliver; at most
     1680 px, so 1920 px screens keep a frame */
  :root { --k-cw: min(calc(100vw - 2 * clamp(48px, 5vw, 80px)), 1680px);
    --k-dpad-t: clamp(80px, 10svh, 110px); --k-dpad-b: clamp(40px, 5svh, 64px); /* eye r2: 90 / 45 at 900 px tall (was 99 / 54) */
    --k-join-w: min(44cqw, 600px); --k-join-sw: clamp(66px, 5cqw, 76px); --k-join-gap: 24px; --k-join-line: 1.25px; --k-join-room: 72px; } /* W2a (plan B1): room 48 -> 72 px, 12 px more paper each side */ /* eye r1: the sprig
    15-30 % larger, the room up to the window's 48 px so it keeps 24 px clear */
}
/* W2a (A1676, plan docs/plans/plan_inv12_v2_w2.md A1; owner 2026-10-20 on a Galaxy Tab S8 Ultra: "a lot of spacing ...
   hasn't adjusted to tablets properly"): portrait tablets (700 px and wider, taller than wide) take the wide card above, with
   a tighter rhythm than the laptop's 110 / 64 px on a tall screen */
@media (max-aspect-ratio: 999/1000) and (min-width: 700px) {
  :root { --k-dpad-t: clamp(72px, 7svh, 96px); --k-dpad-b: clamp(36px, 3.5svh, 48px);
    --k-join-room: 66px; } /* Luxe W1 Part 0 (A1693; plan_inv12_v2_luxe_master.md #8): tablet joins a little tighter (72 -> 66 px) */
  .k-card.k-card--bottom { margin-bottom: clamp(40px, 5svh, 72px); } /* (0,2,0): beats the base rule below */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--k-linen); scroll-padding-top: var(--k-gut); 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);
  font: 400 1rem/1.65 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--k-linen);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--k-wine); 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); font-size: 1.0625rem; }
.kjy-main { position: relative; overflow: hidden; overflow: clip; background: none; }

/* ---------- shared type ---------- */
.k-kicker { font: 400 .78rem/1.5 var(--k-font-caps); letter-spacing: .16em; text-transform: uppercase; color: var(--k-wine-soft); }
.k-caps { font-family: var(--k-font-caps); font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--k-wine-soft); }
.k-title { font: 400 clamp(2.4rem, 9vw, 3.4rem)/1.2 var(--k-font-script); color: var(--k-wine); }
.k-amp { font: 400 1.6rem/1 var(--k-font-script); color: var(--k-wine); text-transform: none; letter-spacing: 0; }
.k-rule { display: block; width: 200px; height: auto; margin: 16px auto 0; color: var(--k-gold); }

/* ---------- buttons: square corners, a thin wine line or solid wine (no pills, taste Ruling 4) ---------- */
.k-btn, .kjy-cal__toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: .9em 2.2em .82em; border-radius: 0;
  font: 400 clamp(10px, 3cqw, 13px)/1 var(--k-font-caps); letter-spacing: .24em; 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-wine); color: var(--k-paper); border: 1px solid var(--k-wine); }
.k-btn--line, .kjy-cal__toggle { background: transparent; color: var(--k-wine); border: 1px solid var(--k-wine); }
.k-btn--line:active, .kjy-cal__toggle:active { background: rgb(163 53 94 / .06); }
.k-ico { width: 18px; height: 18px; flex: none; }

/* ---------- the long card: he, dt, ev, cd and vn stack with no margins, so the card reads as one sheet ---------- */
.k-card { position: relative; z-index: 1; width: var(--k-cw); margin-inline: auto; container-type: inline-size;
  overflow: hidden; overflow: clip;
  background-color: var(--k-paper); background-image: var(--k-cotton);
  box-shadow: inset 1px 0 0 rgb(90 70 80 / .07), inset -1px 0 0 rgb(90 70 80 / .07),
    -6px 0 8px 8px rgb(50 40 48 / .11);
  clip-path: inset(0 -30px); } /* rev3 A1 (A1498): each section's shadow is cut at its own top and bottom (no band over the
  section above) and spread 8px past them, so the side shadow runs on unbroken through every join of the stacked card */
.k-card--top { margin-top: var(--k-gut);
  background-image: var(--k-cotton), radial-gradient(130% 60% at 92% 0%, rgb(255 255 255 / .62), rgb(255 255 255 / 0) 62%); }
.k-card--bottom { margin-bottom: clamp(56px, 10svh, 112px);
  box-shadow: inset 1px 0 0 rgb(90 70 80 / .07), inset -1px 0 0 rgb(90 70 80 / .07), inset 0 -1px 0 rgb(90 70 80 / .08),
    -6px 0 8px 8px rgb(50 40 48 / .11), 0 18px 22px -14px rgb(50 40 48 / .32);
  clip-path: inset(0 -30px -40px); }
/* fix round 1 (A1498, eye review: a hairline at most joins): a join falls on a part-pixel, where two clipped edges let the
   linen and the next section's shadow show through. Each following section overlaps the one above by 2px and is clipped
   1px inside its own top, so its clip edge lies on the solid paper above and its shadow has nothing to leak through. */
/* W1.2 eye r1 ("the paper is a little coarse on phone"): on phones the cotton tiles print 30 % smaller, a finer grain
   (flecks 300 -> 210, fibres 340 -> 238, tooth 200 -> 140 px); op034's card face does the same */
@media (max-width: 699px) {
  .k-card { background-image: var(--k-cotton-fine); background-size: 300px, 238px, 140px; }
  .k-card--top { background-image: var(--k-cotton-fine), radial-gradient(130% 60% at 92% 0%, rgb(255 255 255 / .62), rgb(255 255 255 / 0) 62%); background-size: 300px, 238px, 140px, auto; }
}
.k-card + .k-card { margin-top: -2px;
  clip-path: polygon(-30px 2px, 0 2px, 0 1px, 100% 1px, 100% 2px, calc(100% + 30px) 2px, calc(100% + 30px) 100%, -30px 100%); }
.k-card + .k-card.k-card--bottom {
  clip-path: polygon(-30px 2px, 0 2px, 0 1px, 100% 1px, 100% 2px, calc(100% + 30px) 2px, calc(100% + 30px) calc(100% + 40px), -30px calc(100% + 40px)); }
/* (the paper overlaps the section above by 1px; outside the card the clip meets it edge to edge, so the side shadows join
   without doubling) */

/* W1.2 (A1660, plan docs/plans/plan_inv12_v2_w1_2.md D1; owner 2026-10-20: "no separation between sections ... this divider
   is not very prominent"; pick: sprig + gold lines): the join ornament replaces v2's small gold divider (A1614, D1.2), at
   every join. A section that follows another puts <div class="k-join"> first; it sits centred on the card, its centre at
   `top` from the section's top (each section sets `.<prefix> > .k-join { top }` to the middle of its join; the ornament stays inside its own section, whose
   top is clipped by the join polygon), a photo sprig in the couple's colour (the kit's tint layers) laid on its side, the
   stem along the left line, between two fine gold lines. */
.k-join { position: absolute; z-index: 2; left: 50%; top: calc(var(--k-cw) * .07); translate: -50% -50%;
  display: flex; align-items: center; gap: var(--k-join-gap); width: var(--k-join-w); pointer-events: none; }
.k-join::before, .k-join::after { content: ""; flex: 1; height: var(--k-join-line); }
.k-join::before { background: linear-gradient(90deg, rgb(192 132 112 / 0), var(--k-gold) 72%); }
.k-join::after { background: linear-gradient(90deg, var(--k-gold) 28%, rgb(192 132 112 / 0)); }
.k-join > .k-bb-art { position: relative; flex: none; width: var(--k-join-sw); rotate: 90deg; }

/* ---------- the blossom art (k-bb-*): each piece is a CSS background photo with three tint layers, each masked by
   the piece's petal mask (petal material x the photo's alpha; masks are separate files, so the photo never loads
   twice). Constants = OKLab of skin.json primary #E98EC0 (l 0.7559, a 0.1220, b -0.0295): at the default every alpha is 0.
   lift (screen, light colours), petal (color), boost (multiply, deep colours). The same maths: scripts/
   burgundy_blossom_kit.py (css_alphas, tint). Nothing here is gated on page classes: <main>'s content-visibility
   holds the art back until the tap. The opening carries a scoped copy (kit sync). ---------- */
/*BBTINT>*/
.k-bb-art { position: absolute; isolation: isolate; pointer-events: none; background: var(--k-bb-img) center / 100% 100% no-repeat; }
.k-bb-art > i { position: absolute; inset: 0; display: block; background-color: transparent;
  -webkit-mask: var(--k-bb-mask) center / 100% 100% no-repeat; mask: var(--k-bb-mask) center / 100% 100% no-repeat; }
.k-bb-art > .k-bb-lift { mix-blend-mode: screen; }
.k-bb-art > .k-bb-petal { mix-blend-mode: color; }
.k-bb-art > .k-bb-boost { mix-blend-mode: multiply; }
@supports (color: oklab(from red calc(l - .1) a b / clamp(0, l, 1))) {
  .k-bb-art > .k-bb-lift { background-color: oklab(from var(--c-primary, #E98EC0) 1 0 0 / clamp(0, (l - 0.7559) * 1.6, .85)); }
  .k-bb-art > .k-bb-petal { background-color: oklab(from var(--c-primary, #E98EC0) l a b / clamp(0, (max(l - 0.7559, 0.7559 - l) + max(a - 0.1220, 0.1220 - a) + max(b - -0.0295, -0.0295 - b) - .006) * 15, .92)); }
  .k-bb-art > .k-bb-boost { background-color: oklab(from var(--c-primary, #E98EC0) clamp(0, l / .85, 1) 0 0 / clamp(0, (0.7059 - l) * 3, .8)); }
}
.k-bb-branch { --k-bb-img: var(--k-art-branch); --k-bb-mask: var(--k-mask-branch); aspect-ratio: var(--k-ar-branch); }
.k-bb-branch-r { --k-bb-img: var(--k-art-branch-r); --k-bb-mask: var(--k-mask-branch-r); }
.k-bb-spray-tr { --k-bb-img: var(--k-art-spray-tr); --k-bb-mask: var(--k-mask-spray-tr); aspect-ratio: var(--k-ar-spray-tr); }
.k-bb-spray-br { --k-bb-img: var(--k-art-spray-br); --k-bb-mask: var(--k-mask-spray-br); aspect-ratio: var(--k-ar-spray-br); }
.k-bb-head { --k-bb-img: var(--k-art-head); --k-bb-mask: var(--k-mask-head); aspect-ratio: var(--k-ar-head); }
.k-bb-sprig { --k-bb-img: var(--k-art-sprig); --k-bb-mask: var(--k-mask-sprig); aspect-ratio: var(--k-ar-sprig); }
.k-bb-prop { --k-bb-img: var(--k-art-prop); --k-bb-mask: var(--k-mask-prop); aspect-ratio: var(--k-ar-prop); }
.k-bb-fall-a { --k-bb-img: var(--k-art-fall-a); --k-bb-mask: var(--k-mask-fall-a); aspect-ratio: var(--k-ar-fall-a); }
.k-bb-fall-b { --k-bb-img: var(--k-art-fall-b); --k-bb-mask: var(--k-mask-fall-b); aspect-ratio: var(--k-ar-fall-b); }
.k-bb-fall-c { --k-bb-img: var(--k-art-fall-c); --k-bb-mask: var(--k-mask-fall-c); aspect-ratio: var(--k-ar-fall-c); }
.k-bb-seal { background: var(--k-art-seal) center / contain no-repeat; aspect-ratio: var(--k-ar-seal); }
/*<BBTINT*/

/* ---------- "ink" write-on helper (shared class name; a soft mask sweeps left to right, once) ---------- */
.k-ink { display: inline-block; padding: .3em .8em .5em; margin: -.3em -.8em -.5em; }
html.kjy-fx [data-k-write] .k-ink {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
html.kjy-fx [data-k-write].is-in .k-ink {
  -webkit-mask-position: 0 0; mask-position: 0 0;
  transition-property: -webkit-mask-position, mask-position;
  transition-duration: 1.4s; transition-timing-function: cubic-bezier(.5, 0, .2, 1);
}
html.kjy-fx [data-k-write].is-done .k-ink { -webkit-mask: none; mask: none; }

/* ---------- engine footer + sound toggle (the footer sits outside <main>, behind the gate: Cinzel, already preloaded, so no
   Cormorant face loads before the tap) ---------- */
.kjy-footer { font: 400 .6875rem/1.4 var(--k-font-caps); position: relative; z-index: 1; text-align: center; }
/* W2a (A1676; plan docs/plans/plan_inv12_v2_w2.md E1; owner 2026-10-20: "add a BG card as well, everything there is blending
   in"): the footer is the closing card's foot: the same width and paper, a fine gold rule over "Crafted by", the card's bottom
   shadow; it overlaps the card by 2 px, clipped like the long card's joins (below) so the side shadow runs on unbroken */
.kjy-footer { box-sizing: border-box; width: var(--k-end-w); margin: -2px auto calc(40px + env(safe-area-inset-bottom)); padding: 10px 20px 22px;
  background-color: var(--k-paper); background-image: var(--k-cotton);
  box-shadow: inset 1px 0 0 rgb(90 70 80 / .07), inset -1px 0 0 rgb(90 70 80 / .07), inset 0 -1px 0 rgb(90 70 80 / .08),
    -6px 0 8px 8px rgb(50 40 48 / .11), 0 18px 22px -14px rgb(50 40 48 / .32);
  clip-path: polygon(-30px 2px, 0 2px, 0 1px, 100% 1px, 100% 2px, calc(100% + 30px) 2px, calc(100% + 30px) calc(100% + 40px), -30px calc(100% + 40px)); }
.kjy-footer::before { content: ""; display: block; width: min(56%, 240px); height: 1px; margin: 0 auto 4px;
  background: linear-gradient(90deg, rgb(192 132 112 / 0), var(--k-gold) 30%, var(--k-gold) 70%, rgb(192 132 112 / 0)); }
@media (max-width: 699px) { .kjy-footer { background-image: var(--k-cotton-fine); background-size: 300px, 238px, 140px; } }
.kjy-footer a { display: inline-block; padding: 14px 8px; font: 400 .5rem/1 var(--k-font-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--k-ink-soft); text-decoration: none; }
.kjy-footer a { display: inline-flex; align-items: center; gap: 8px; } /* h409 (A1447): "Crafted by" + the main two-line logo */
/* v2 (A1614, D1.3; owner 2026-10-19 picked "full-colour logo, 30 px"): the full-colour logo, 30 px tall (the brand floor),
   drawn from the engine's colour file (a new address, so no phone shows an old saved copy); the engine's one-colour
   images stay in the markup, hidden, and the link keeps its aria-label */
/* W5c (A1777, D-119; owner 2026-10-23): "Crafted by" 8 px and the logo 30 × 15, half (below the brand's 30 px floor by the owner's ruling, INV-12 v2 only) */
.kjy-footer__logo { display: block; width: 30px; height: 15px; }
.kjy-footer__logo--wine, .kjy-footer__logo--porcelain { display: none; }
.kjy-footer a::after { content: ""; display: block; width: 30px; height: 15px; background: url("/engine/brand/kjy-logo-primary-colour.svg") center / contain no-repeat; }
.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-gold);
  background: rgb(253 252 250 / .92); color: var(--k-wine); box-shadow: 0 4px 14px rgb(50 40 48 / .14);
}
.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; }

/* ---------- Luxe (INV-12 v2 · Luxe, A1693 W1; plan docs/plans/plan_inv12_v2_luxe_master.md L0) ---------- */
/* The atelier finish. Gilt: a 1 px highlight + 1 px gold on the cut edge, brighter on the lit (left) side, drawn as its own
   layer above the art (inset shadows paint under children, and the branch, sprays and sprigs cross the card's edge).
   Letterpress: a paper highlight under small caps and titles, a faint shade over them. Buttons: a gold hairline 4 px inside
   the wine line; a 1 px press. Foil catches the light: a soft band crosses each gold line as it passes the middle of the
   screen (a scroll-driven view timeline, both ways; a pseudo-element takes a NAMED timeline from its element). Static gold
   without animation-timeline, under reduced motion and in lite. The footer rule never reaches the middle of the screen,
   so it stays still foil. */
:root {
  --k-gilt-hi: #F3D3C7; --k-gilt-lit: #DDA592; --k-gilt: #C08470; --k-gilt-lo: #8E5A4B; /* eye r1: 1.5 + 1.5 px, the lit side #C9A867 */
  --k-press: 0 1px 0 rgb(255 255 255 / .75), 0 -1px 0 rgb(60 30 40 / .12); /* eye r1 */
  --k-foil: linear-gradient(100deg, #8E5A4B 0%, #C08470 26%, #F3D3C7 44%, #DDA592 56%, #A26A58 78%, #C08470 100%);
  --k-foil-v: linear-gradient(170deg, #8E5A4B 0%, #C08470 26%, #F3D3C7 44%, #DDA592 56%, #A26A58 78%, #C08470 100%);
  /* the band is a reflection on polished metal: deep gold flanks round a bright core, so its travel reads on a pale ground
     (a plain light band only paled the 1 px lines: AG-T039, my look at W1) */
  --k-glint: linear-gradient(100deg, rgb(130 80 64 / 0) 40%, rgb(130 80 64 / .5) 45%, rgb(250 224 212 / .95) 50%, rgb(130 80 64 / .5) 55%, rgb(130 80 64 / 0) 60%);
  --k-glint-v: linear-gradient(170deg, rgb(130 80 64 / 0) 40%, rgb(130 80 64 / .5) 45%, rgb(250 224 212 / .95) 50%, rgb(130 80 64 / .5) 55%, rgb(130 80 64 / 0) 60%); /* eye r2: 20 % band, core .95 */
  /* the join lines also carry a warm glow that spills onto the paper round the passing light */
  --k-glow: radial-gradient(closest-side, rgb(240 196 180 / .3), rgb(240 196 180 / 0)); /* eye r2: quieter still (.3) */
  --k-ease-press: cubic-bezier(.33, 0, .2, 1);
  /* ev015's five-petal bloom (black = shown), and the sprite's gold rule, as masks */
  --k-bloom-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(72)'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(144)'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(216)'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(288)'/%3E%3Ccircle r='2.2'/%3E%3C/svg%3E");
  --k-orn-rule-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 18'%3E%3Cpath d='M2 9.5 C 30 9.5, 55 8.2, 82 9 C 90 9.3, 95 10.4, 100 12.4 C 105 10.4, 110 9.3, 118 9 C 145 8.2, 170 9.5, 198 9.5' fill='none' stroke='black' stroke-width='1' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Ccircle cx='100' cy='5.6' r='1.6'/%3E%3C/svg%3E");
  /* the envelope's printed liner: two small gold blossoms on a 44 px tile */
  --k-liner-print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='%23C08470' fill-opacity='.5'%3E%3Cg transform='translate(14 14) scale(.6)'%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(72)'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(144)'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(216)'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(288)'/%3E%3Ccircle r='2.2'/%3E%3C/g%3E%3Cg transform='translate(42 42) rotate(36) scale(.5)'%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(72)'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(144)'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(216)'/%3E%3Cellipse cy='-4.6' rx='3.1' ry='4.5' transform='rotate(288)'/%3E%3Ccircle r='2.2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); /* eye r1: 12 / 10 px blossoms */
}
/* L01 gilt edges, above the art (no section may style its root's ::before or ::after) */
.k-card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 1.5px 0 0 var(--k-gilt-hi), inset 3px 0 0 var(--k-gilt-lit), inset -1.5px 0 0 var(--k-gilt), inset -3px 0 0 var(--k-gilt-lo); }
.k-card--top::after { box-shadow: inset 1.5px 0 0 var(--k-gilt-hi), inset 3px 0 0 var(--k-gilt-lit), inset -1.5px 0 0 var(--k-gilt), inset -3px 0 0 var(--k-gilt-lo),
  inset 0 1.5px 0 var(--k-gilt-hi), inset 0 3px 0 var(--k-gilt-lit); }
.k-card--bottom::after { box-shadow: inset 1.5px 0 0 var(--k-gilt-hi), inset 3px 0 0 var(--k-gilt-lit), inset -1.5px 0 0 var(--k-gilt), inset -3px 0 0 var(--k-gilt-lo),
  inset 0 -1.5px 0 var(--k-gilt), inset 0 -3px 0 var(--k-gilt-lo); }
/* L02 letterpress */
.k-kicker, .k-caps, .k-title { text-shadow: var(--k-press); text-wrap: balance; }
/* L04 buttons: a gold hairline 4 px inside the wine line; a 1 px press; the wine focus ring wins while focused */
.k-btn--line, .kjy-cal__toggle { outline: 1px solid var(--k-gilt); outline-offset: -5px; }
.k-btn--solid { outline: 1px solid rgb(243 211 199 / .75); outline-offset: -5px; }
.k-btn, .kjy-cal__toggle { transition: background-color .2s, color .2s, border-color .2s, translate .12s var(--k-ease-press); }
.k-btn:active, .kjy-cal__toggle:active { translate: 0 1px; }
@media (hover: hover) { .k-btn--line:hover, .kjy-cal__toggle:hover { background: rgb(163 53 94 / .04); } }
.k-btn:focus-visible, .kjy-cal__toggle:focus-visible { outline: 2px solid var(--k-wine); outline-offset: 3px; }
/* L05 wine selection and caret */
::selection { background: rgb(178 58 100 / .16); }
input, textarea, select { caret-color: var(--k-wine); accent-color: var(--k-wine); }
/* L03 foil catches the light */
.k-foil { background-image: var(--k-glint), var(--k-foil); background-size: 320% 100%, 100% 100%;
  background-position: 130% 0, 0 0; background-repeat: no-repeat; }
.k-foil--v { background-image: var(--k-glint-v), var(--k-foil-v); background-size: 100% 320%, 100% 100%; background-position: 0 130%, 0 0; }
.k-foil--rule { display: block; width: clamp(90px, 30cqw, 170px); aspect-ratio: 200 / 18;
  -webkit-mask: var(--k-orn-rule-mask) center / 100% 100% no-repeat; mask: var(--k-orn-rule-mask) center / 100% 100% no-repeat; }
.k-foil--bloom { aspect-ratio: 1; -webkit-mask: var(--k-bloom-mask) center / contain no-repeat; mask: var(--k-bloom-mask) center / contain no-repeat; }
.k-join::before, .k-join::after { height: 7px; background-image: var(--k-glow), var(--k-glint), var(--k-foil);
  background-size: 16% 100%, 320% var(--k-join-line), 100% var(--k-join-line); background-position: -48% 50%, 87% 50%, 0 50%; background-repeat: no-repeat; }
.kjy-footer::before { background-image: var(--k-glint), var(--k-foil); background-size: 320% 100%, 100% 100%; background-position: 130% 0, 0 0; background-repeat: no-repeat; }
.k-join::before { -webkit-mask: linear-gradient(90deg, #0000, #000 72%); mask: linear-gradient(90deg, #0000, #000 72%); }
.k-join::after { -webkit-mask: linear-gradient(90deg, #000 28%, #0000); mask: linear-gradient(90deg, #000 28%, #0000); }
/* W3 (A1732; W1 parked #2): on laptops the travelling glow stays on the gold line itself (it touched the paper ~3 px round it at 1440) */
@media (min-aspect-ratio: 1/1) and (min-width: 1000px) {
  .k-join::before, .k-join::after { background-size: 16% var(--k-join-line), 320% var(--k-join-line), 100% var(--k-join-line); }
}
.kjy-footer::before { -webkit-mask: linear-gradient(90deg, #0000, #000 30% 70%, #0000); mask: linear-gradient(90deg, #0000, #000 30% 70%, #0000); }
/* L32 (W3, A1732): the footer is the closing card's foot: gilt down both sides and along the bottom, none across the seam (its
   clip hides its top 1-2 px, so the sides run on from the card's) */
.kjy-footer::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 1.5px 0 0 var(--k-gilt-hi), inset 3px 0 0 var(--k-gilt-lit), inset -1.5px 0 0 var(--k-gilt), inset -3px 0 0 var(--k-gilt-lo),
    inset 0 -1.5px 0 var(--k-gilt), inset 0 -3px 0 var(--k-gilt-lo); }
@supports (animation-timeline: view()) {
  html:not(.motion-reduce):not(.kjy-lite) .k-foil { animation: k-glint linear both; animation-timeline: view(block 20% 38%); }
  html:not(.motion-reduce):not(.kjy-lite) .k-foil--v { animation-name: k-glint-v; }
  html:not(.motion-reduce):not(.kjy-lite) .k-join { view-timeline: --k-join block; view-timeline-inset: 20% 38%; }
  html:not(.motion-reduce):not(.kjy-lite) .k-join::before,
  html:not(.motion-reduce):not(.kjy-lite) .k-join::after { animation: k-glint-line linear both; animation-timeline: --k-join; }
  /* one light crosses the whole ornament: the left line first, then the right (ranges after the shorthand, which resets them) */
  html:not(.motion-reduce):not(.kjy-lite) .k-join::before { animation-range: cover 0% cover 62%; }
  html:not(.motion-reduce):not(.kjy-lite) .k-join::after { animation-range: cover 38% cover 100%; }
}
/* 87 % -> 13 %: the 20 % band is off the part at both ends and on it for the whole pass; the join's glow (a 16 % layer) travels
   -48 % -> 148 %, which keeps its centre on the band's core all the way (eye r2) */
@keyframes k-glint { from { background-position: 87% 0, 0 0; } to { background-position: 13% 0, 0 0; } }
@keyframes k-glint-v { from { background-position: 0 87%, 0 0; } to { background-position: 0 13%, 0 0; } }
@keyframes k-glint-line { from { background-position: -48% 50%, 87% 50%, 0 50%; } to { background-position: 148% 50%, 13% 50%, 0 50%; } }
/* W1.1 (A1714; plan docs/plans/plan_inv12_v2_luxe_w1_1.md B7): a blossom blind-debossed into the cotton, no ink: a shade inside its
   upper-left rim and a highlight inside its lower-right rim (each the bloom minus the bloom moved 1 px), a faint fill. The hero's
   crest and the same crest on the rising card (op035), so the card arrives embossed (AG-T127). Eye r1: stronger from 700 px */
.k-emboss { position: relative; display: block; aspect-ratio: 1; pointer-events: none; background: rgb(60 30 40 / .035);
  -webkit-mask: var(--k-bloom-mask) 0 0 / 100% 100% no-repeat; mask: var(--k-bloom-mask) 0 0 / 100% 100% no-repeat; }
.k-emboss::before, .k-emboss::after { content: ""; position: absolute; inset: 0; }
.k-emboss::before { background: rgb(60 30 40 / var(--k-emboss-sh, .24));
  -webkit-mask: var(--k-bloom-mask) 0 0 / 100% 100% no-repeat, var(--k-bloom-mask) 1px 1px / 100% 100% no-repeat; -webkit-mask-composite: source-out;
  mask: var(--k-bloom-mask) 0 0 / 100% 100% no-repeat, var(--k-bloom-mask) 1px 1px / 100% 100% no-repeat; mask-composite: subtract; }
.k-emboss::after { background: rgb(255 255 255 / var(--k-emboss-hi, .9));
  -webkit-mask: var(--k-bloom-mask) 0 0 / 100% 100% no-repeat, var(--k-bloom-mask) -1px -1px / 100% 100% no-repeat; -webkit-mask-composite: source-out;
  mask: var(--k-bloom-mask) 0 0 / 100% 100% no-repeat, var(--k-bloom-mask) -1px -1px / 100% 100% no-repeat; mask-composite: subtract; }
@media (min-width: 700px) { :root { --k-emboss-sh: .30; --k-emboss-hi: 1; } }
/* W4 (owner 2026-10-22, D-110): the breeze: a soft gust passes every 8.4 s and INV-12's own sprigs stir about their stems
   (the pivot is the art's foot, inside the keyframes: their resting rotate stays put), one after another, then settle
   (D-017: one always-on thing). Never before the tap; lite, reduced motion, no JS: still */
@keyframes k-breeze {
  0%, 34%, 100% { transform: translateY(49%) rotate(0deg) translateY(-49%); }
  6% { transform: translateY(49%) rotate(var(--k-breeze-a, 3deg)) translateY(-49%); }
  13% { transform: translateY(49%) rotate(calc(var(--k-breeze-a, 3deg) * -.55)) translateY(-49%); }
  20% { transform: translateY(49%) rotate(calc(var(--k-breeze-a, 3deg) * .3)) translateY(-49%); }
  27% { transform: translateY(49%) rotate(calc(var(--k-breeze-a, 3deg) * -.12)) translateY(-49%); } }
html:not(.motion-reduce):not(.kjy-lite).kjy-opened .k-join > .k-bb-art { --k-breeze-a: 4deg; /* eye r1: 2.5 -> 4deg */ animation: k-breeze 8.4s ease-in-out infinite; }
/* A1820 (owner 2026-10-24: smooth scrolling while a demo is recorded): at the default colour every tint alpha is 0 (the
   constants are its OKLab), so the 21 pieces' 63 tint layers paint nothing, yet each still costs a mask and a blend group
   on every draw. The engine always writes --c-primary as lower-case hex, so this style query hides them only then: any
   other colour, or a browser without style queries, keeps them exactly as before. The opening's scoped copy is untouched */
@container style(--c-primary: #e98ec0) { .k-bb-art > i { display: none; } }

/* INV-12B Sakura Morning (A2536, D-357): the default design takes the concept picture's own names and envelope colours
   (sampled from Inspiration Ideas/Design 12B/01.png: names #AD4D6E, envelope #E0C0C3). Another couple colour derives them
   from --c-primary (the @supports block above); browsers without style queries derive the default too (#9A4778-ish). */
@container style(--c-primary: #e98ec0) {
  body { --k-wine: #AD4D6E; --k-wine-soft: rgb(173 77 110 / .86); --k-env: #E0C0C3; --k-env-flap: #D8B3B7; }
}
