/* Venue card · Luxe (core/venue/013) — INV-12 Burgundy Blossom v2 · Luxe W2 (A1722; plan docs/plans/plan_inv12_v2_luxe_w2.md D4),
   a fork of core/venue/011 (v2 Premium). The venue card on the Luxe skin, entering in ink: "The venue" and the name are written
   on, the foil rule draws out from its centre and the address arrives phrase by phrase. The photo sits slightly turned in gold
   photo corners and still slides out of its sleeve; with no photo, a blossom drifts down onto the card. The corner sprig drifts
   a little with the scroll. Lite, reduced motion and no JS show the finished card. Below: vn011's rules, then the Luxe block.
   W4 (A1744, D-110): the photo sits in a cream mount with a gilt bevel (no photo corners, no sleeve), develops once from sepia
   to colour, and the view shifts gently in its window with the scroll. */
.vn170 { color: var(--k-ink); text-align: center; }
.vn170 .vn170__in { position: relative; padding: calc(var(--k-cw) * .14 + var(--k-join-room)) calc(var(--k-cw) * .09) calc(var(--k-cw) * .16); }
.vn170 .vn170__corner { width: 15cqw; right: -3cqw; bottom: 2%; rotate: 24deg; }
.vn170 .vn170__kicker { margin: 0 0 clamp(6px, 2cqw, 12px); }
.vn170 .vn170__name { margin: 0; text-wrap: balance; font: 400 clamp(28px, 8.6cqw, 44px)/1.15 var(--k-font-script); color: var(--k-wine); }
.vn170 .vn170-rule { margin: clamp(6px, 2cqw, 12px) auto clamp(10px, 3cqw, 16px); } /* L16-style: the skin's .k-foil--rule */
.vn170 .vn170__addr { max-inline-size: 24em; margin: 0 auto; text-wrap: balance; font: 400 clamp(9px, 2.75cqw, 13px)/1.65 var(--k-font-caps);
  letter-spacing: .1em; text-transform: uppercase; color: var(--k-ink); }

/* the print: the shadow sits on the link so it follows the clip; the keyline is inside the clip */
.vn170 .vn170__lead { display: block; width: 78cqw; margin: clamp(18px, 6cqw, 32px) auto 0;
  filter: drop-shadow(0 1px 1px rgb(50 40 48 / .22)) drop-shadow(0 9px 12px rgb(50 40 48 / .26)); }
.vn170 .vn170__print { display: block; position: relative; padding: var(--vn170-mt); --vn170-mt: clamp(16px, 3.6cqw, 30px); /* eye r1: phone 12 -> 16 px */
  background-color: var(--k-paper, #FCFCFD); background-image: var(--k-cotton, none, none, none), radial-gradient(130% 60% at 92% 0%, rgb(255 255 255 / .62), rgb(255 255 255 / 0) 62%);
  box-shadow: inset 1.5px 0 0 var(--k-gilt-hi, #F3D3C7), inset -1.5px 0 0 var(--k-gilt-lo, #8E5A4B), inset 0 1.5px 0 var(--k-gilt-hi, #F3D3C7), inset 0 -1.5px 0 var(--k-gilt-lo, #8E5A4B); } /* W4: the mount: the cards' cotton stock with a gilt edge */
@media (max-width: 699px) { .vn170 .vn170__print { background-image: var(--k-cotton-fine, none, none, none), radial-gradient(130% 60% at 92% 0%, rgb(255 255 255 / .62), rgb(255 255 255 / 0) 62%); background-size: 300px, 238px, 140px, auto; } }
/* W4 (owner 2026-10-22, D-110): the window in the mount: a gilt bevel, a little depth at its top edge; the photo sits behind it */
.vn170 .vn170__win { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; overflow: clip;
  box-shadow: 0 0 0 1px var(--k-gilt-lo, #8E5A4B), 0 0 0 3.5px var(--k-gilt, #C08470), 0 0 0 4.5px rgb(227 230 234 / .7); } /* eye r1: gilt 2.5 -> 3.5 px (the light ring 1 px outside it) */
.vn170 .vn170__win::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 2px 4px rgb(40 20 10 / .42), inset 0 -1px 0 rgb(255 248 236 / .35); } /* eye r1: .38 -> .42 */
.vn170 .vn170__lead-img { position: absolute; left: 0; top: -4%; width: 100%; height: 108%; object-fit: cover; object-position: var(--vn170-pos, 50% 50%); }
.vn170 .vn170__land { position: relative; z-index: 0; width: 30cqw; margin: clamp(16px, 5cqw, 28px) auto 0; } /* W2: the bloom's size and place, on its landing wrapper */
.vn170 .vn170__bloom { position: relative; width: 100%; }
.vn170 .vn170__go { margin: clamp(20px, 6cqw, 32px) 0 0; }
.vn170 .vn170__btn { display: inline-flex; align-items: center; gap: .6em; }
.vn170 .vn170__ico { width: 1.1em; height: 1.1em; }

/* The viewer (vn005's, forked): a modal <dialog> made on the first tap, the photo on a cream mat over wine */
.vn170__view {
  position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgb(2 6 26 / .9); color: #FCFCFD;
  overflow: hidden; overscroll-behavior: contain; touch-action: pinch-zoom;
}
.vn170__view::backdrop { background: rgb(2 6 26 / .9); }
.vn170__view[open] { animation: vn170-in .22s ease-out; }
@keyframes vn170-in { from { opacity: 0; } }
.vn170__view-in {
  height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "fig fig" "prev next"; align-items: center; gap: 16px;
  padding: calc(76px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}
.vn170__view-fig {
  grid-area: fig; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; min-height: 0; height: 100%; margin: 0;
}
.vn170__view-img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: min(80vh, calc(100vh - 220px)); max-height: min(80svh, calc(100svh - 220px));
  object-fit: contain; border: 8px solid var(--k-paper, #FCFCFD); user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / .5);
}
.vn170__view-cap {
  max-width: 60ch; margin-top: 12px; text-align: center; text-wrap: balance;
  font: 400 clamp(10px, 2.8vw, 13px)/1.6 var(--k-font-caps); letter-spacing: .1em; text-transform: uppercase; color: #FCFCFD;
}
.vn170__view-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vn170__view-btn[hidden] { display: none; }
.vn170__view-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.vn170__view-close {
  position: absolute; z-index: 2; top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right));
  background: transparent; color: #FCFCFD; border: 1px solid rgb(252 252 253 / .7);
}
.vn170__view-prev, .vn170__view-next { background: transparent; color: #FCFCFD; border: 1px solid rgb(252 252 253 / .5); }
.vn170__view-prev { grid-area: prev; justify-self: end; }
.vn170__view-next { grid-area: next; justify-self: start; }
.vn170__view-close:focus-visible, .vn170__view-prev:focus-visible, .vn170__view-next:focus-visible { outline: 2px solid #E3E6EA; outline-offset: 3px; }

/* W1.2 (A1660, plan docs/plans/plan_inv12_v2_w1_2.md D1): the skin's join ornament (.k-join) opens the section. The top
   padding takes the join's room, and the ornament's top puts it in the middle of the join: (this top - the section above's
   bottom) / 2, so the space above and below it match, and it stays inside this section (whose top is clipped). */
.vn170 > .k-join { top: calc((var(--k-cw) * .06 + var(--k-join-room)) / 2); }
/* W1.1: the near-full-width desktop card (the skin's query): the padding follows the skin's rhythm, not the card's width;
   the print, the pressed blossom and the corner sprig keep a desktop size (78cqw would make a 1022 x 766 px print) */
/* W2a (A1676): portrait tablets take this wide block too (plan_inv12_v2_w2.md A3) */
@media (min-aspect-ratio: 1/1) and (min-width: 1000px), (max-aspect-ratio: 999/1000) and (min-width: 700px) {
  .vn170 > .k-join { top: calc((var(--k-dpad-t) + var(--k-join-room) - var(--k-dpad-b)) / 2); }
  .vn170 .vn170__in { padding: calc(var(--k-dpad-t) + var(--k-join-room)) calc(var(--k-cw) * .06) var(--k-dpad-t); }
  .vn170 .vn170__lead { width: min(78cqw, 720px); }
  .vn170 .vn170__land { width: min(30cqw, 260px); }
  .vn170 .vn170__print { --vn170-mt: clamp(22px, 2.6cqw, 36px); } /* W4: the mount on the wide card */
  .vn170 .vn170__corner { width: min(15cqw, 140px); }
}
/* W3 (A1732, parked #5): portrait tablets only: a smaller no-photo blossom, and the corner sprig 16 px further out, clear of the print */
@media (max-aspect-ratio: 999/1000) and (min-width: 700px) {
  .vn170 .vn170__land { width: min(20cqw, 170px); } /* eye r1: 22 -> 20cqw */
  .vn170 .vn170__corner { right: calc(-3cqw - 16px); bottom: calc(2% - 16px); } /* eye window: 12 -> 16 px (sprig_gap: 4.5 px at 1024x1366); r1 tried 8 px down (2.2 px from the photo): back to 16 */
}

/* ---------- Luxe (W2, A1722) ---------- */
/* L24: the print sits slightly turned, as if placed by hand (the drop shadow is on the unrotated link: AG-T162) */
.vn170 .vn170__print { rotate: -1.1deg; }
/* L25 parts: the landing shadow, invisible at rest */
.vn170 .vn170__shade { position: absolute; left: 50%; bottom: 2%; width: 70%; height: 14%; translate: -50% 0; z-index: -1; opacity: 0;
  background: radial-gradient(closest-side, rgb(50 40 48 / .5), rgb(50 40 48 / 0)); }
/* the ink entrance: the kicker and the name are the skin's .k-ink (the name starts 250 ms after the kicker); the rule draws out
   from its centre; the address arrives phrase by phrase: plain inline spans (no padding, no display change), so the lines break
   exactly as the unsplit still's do; opacity works on inline boxes, a mask or a translate would need inline-blocks (new breaks) */
html.kjy-fx .vn170 .vn170__name.is-in .k-ink { transition-delay: 250ms; }
html.kjy-fx .vn170.is-armed .vn170-rule:not(.is-in) { clip-path: inset(0 50%); }
html.kjy-fx .vn170.is-armed .vn170-rule.is-in { clip-path: inset(0 0); transition: clip-path 900ms var(--k-ease) 700ms; } /* inset to inset: none would not interpolate (review) */
html.kjy-fx .vn170.is-armed .vn170__addr:not(.is-in) .vn170-ph { opacity: 0; }
html.kjy-fx .vn170.is-armed .vn170__addr.is-in .vn170-ph { transition: opacity 600ms ease calc(900ms + var(--vn170-p, 0) * 240ms); }
html.kjy-fx .vn170.is-armed .vn170__go:not(.is-in) { opacity: 0; translate: 0 8px; }
html.kjy-fx .vn170.is-armed .vn170__go.is-in { transition: opacity 700ms var(--k-ease), translate 700ms var(--k-ease); }
/* W4: the print develops once, from warm sepia to full colour, as it comes into view (armed only: lite, reduced, no JS = the colour still) */
html.kjy-fx .vn170.is-armed .vn170__win:not(.is-dev) .vn170__lead-img { filter: sepia(.8) saturate(.6) contrast(.82) brightness(1.1); } /* eye r1: sepia .9 -> .8, saturate .55 -> .6 (warmer) */
html.kjy-fx .vn170.is-armed .vn170__win.is-dev .vn170__lead-img { transition: filter 2400ms cubic-bezier(.33, 0, .2, 1) 200ms; }
/* L25: with no photo, the blossom drifts down onto the card once (dt015's motion, the drop a share of the larger bloom) */
html.kjy-fx .vn170 .vn170__land.is-armed:not(.is-down) { opacity: 0; }
html.kjy-fx .vn170 .vn170__land.is-armed.is-down { animation: vn170-land 1100ms cubic-bezier(.3, .7, .2, 1) both; }
html.kjy-fx .vn170 .vn170__land.is-armed.is-down .vn170__bloom { animation: vn170-turn 1100ms cubic-bezier(.3, .7, .2, 1) both; }
html.kjy-fx .vn170 .vn170__land.is-armed.is-down .vn170__shade { animation: vn170-shade 1100ms ease both; }
@keyframes vn170-land { from { opacity: 0; transform: translate(-3%, -38%); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes vn170-turn { from { transform: rotate(-64deg) scale(.84); } to { transform: none; } }
@keyframes vn170-shade { from { opacity: 0; scale: 1; } 70% { opacity: .32; scale: .62; } to { opacity: 0; scale: .5; } }
/* depth: the corner sprig drifts with the scroll, 0 when the section is centred (the timeline lives on the root; its static
   rotate composes; the card clips at its bottom edge, where the sprig already bleeds) */
.vn170 .vn170__corner { --vn170-dp: 10px; } /* eye r1 8 -> 14 px; r2 -> 10 px: at 14 the tablet sprig touched the print's foot */
/* W4 (A1744, D-110): the breeze (the skin's k-breeze): alone here for browsers without view timelines; with the depth inside @supports */
html:not(.motion-reduce):not(.kjy-lite).kjy-opened .vn170 .vn170__corner { animation: k-breeze 8.4s ease-in-out .45s infinite; }
@supports (animation-timeline: view()) {
  html:not(.motion-reduce):not(.kjy-lite) .vn170 { view-timeline: --vn170-v block; }
  html:not(.motion-reduce):not(.kjy-lite) .vn170 .vn170__corner { animation: vn170-depth linear both; animation-timeline: --vn170-v; animation-range: cover 0% cover 100%; }
  html:not(.motion-reduce):not(.kjy-lite).kjy-opened .vn170 .vn170__corner { animation: vn170-depth linear both, k-breeze 8.4s ease-in-out .45s infinite;
    animation-timeline: --vn170-v, auto; animation-range: cover 0% cover 100%, normal; }
  html:not(.motion-reduce):not(.kjy-lite) .vn170 .vn170__lead-img { animation: vn170-win linear both; animation-timeline: --vn170-v; animation-range: cover 0% cover 100%; } /* W4: the view shifts in the window */
}
@keyframes vn170-depth { from { translate: 0 calc(var(--vn170-dp) * -1); } to { translate: 0 var(--vn170-dp); } }
@keyframes vn170-win { from { translate: 0 -3.5%; } to { translate: 0 3.5%; } }

/* INV-12B W1d (A2569; owner 2026-11-02: "sprinkle more blossom on the left side, it looks a bit empty"): a mirrored spray on
   the card's left, opposite this section's right-hand corner (the long card had blossom on the right only). */
.vn170 .vn170__corner--l { right: auto; left: -2.5cqw; bottom: auto; top: 9%; rotate: -8deg; scale: -1 1; }
