/* Rose hero (core/hero/260, fork of core/hero/180), INV-27 Midnight Rose · Luxe (A3019, W1.1 A3024, W1.2 A3031; D-502; the board mock's "First
   screen"): the couple's photo melting into the black, EMMA / and / JAMES and the date, then one long-stemmed rose lying on the black velvet
   under them, its head pointing up to 2 o'clock. Never the venue (D-121). The photo's box is the skin's geometry (--k-mr-p*), the same box the
   opener's print rises into, so the print and this photo show the same pixels in the same place.
   W1.2 (owner: "Remove these 2 flowers from the Image ... Keep the one with the stem in the black area but creatively"; "Rotate the flower ...
   180 degree so it is basically pointing at 2 oclock compared to 8"): no rose on the photo any more. The stemmed rose is part of the words
   group, so every layout places it under the date: mirrored, then turned 50deg anticlockwise, so the head points at 2 o'clock and the light
   still comes from the upper left like every other rose (a plain 180deg turn would light it from below). Its shadow sits on the wrapper, so
   it still falls down-right. Phone: the mock (photo on top, words below). Tablet: the photo full width on top, larger words. Landscape: the
   photo full height on the left, melting into the black on its right; the words and the rose centred in the right-hand side. */
.he260 { position: relative; height: 100svh; overflow: hidden; color: var(--k-ink); background: var(--k-mr-ground-clear, var(--k-mr-ground)); }   /* W2: clear ground, so petals pass behind it */
.he260 > * { position: absolute; }
.he260__ph { z-index: 1; left: var(--k-mr-pl); top: 0; width: var(--k-mr-pw); height: var(--k-mr-ph); overflow: hidden;
  -webkit-mask: linear-gradient(#000 52%, transparent 97%); mask: linear-gradient(#000 52%, transparent 97%); }
.he260__ph img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--he260-pos, 50% 35%); }
.he260__words { z-index: 2; left: 0; right: 0; top: calc(var(--he260-wt, 408) * var(--k-mr-u) + var(--k-mr-oy)); padding-inline: var(--k-gutter); }
/* the rose under the date: --he260-rw is the picture's width; the wrapper is the turned rose's own visible box (0.955 x 0.783 of it), so the
   layout holds exactly the rose; the picture's centre is nudged so the rose, not its empty corners, sits in the middle */
.he260__lay { --he260-rw: calc(92 * var(--k-mr-u)); position: relative; display: block; z-index: 3; width: calc(var(--he260-rw) * .955); height: calc(var(--he260-rw) * .783);
  margin: var(--he260-rg, calc(4 * var(--k-mr-u))) auto 0; filter: var(--k-mr-shadow); pointer-events: none; }
.he260__lay .he260__stem { left: 50%; top: 50%; width: var(--he260-rw); filter: none;
  translate: calc(-50% + var(--he260-rw) * .011) calc(-50% - var(--he260-rw) * .023); rotate: -50deg; scale: -1 1; }
.he260-names { font-size: min(calc(33 * var(--k-mr-u)), calc(84vw / (var(--he260-len, 6) * .62))); }
.he260__date { margin-top: calc(14 * var(--k-mr-u)); font-size: max(11px, calc(8.5 * var(--k-mr-u))); color: var(--k-champ); }
.he260--nophoto .he260__words { top: 36svh; }
@media (min-aspect-ratio: 62/100) and (max-aspect-ratio: 119/100) {
  .he260__ph { -webkit-mask: linear-gradient(#000 56%, transparent 97%); mask: linear-gradient(#000 56%, transparent 97%); }
  .he260__words { top: 62.5svh; }
  .he260__lay { --he260-rw: min(22vw, 14svh); --he260-rg: 1.2svh; }
  .he260-names { font-size: min(8vw, 6svh, calc(84vw / (var(--he260-len, 6) * .62))); }
  .he260__date { margin-top: 2svh; font-size: max(13px, 1.6vw); }
}
@media (min-aspect-ratio: 6/5) {
  .he260__ph { -webkit-mask: linear-gradient(to right, #000 58%, transparent 98%), linear-gradient(#000 84%, transparent 100%); -webkit-mask-composite: source-in;
    mask: linear-gradient(to right, #000 58%, transparent 98%), linear-gradient(#000 84%, transparent 100%); mask-composite: intersect; }
  .he260__words { left: var(--k-mr-pw); right: 0; top: 50svh; transform: translateY(-50%); }
  .he260__lay { --he260-rw: min(14vw, 24svh); --he260-rg: 3svh; }
  .he260-names { font-size: min(4.4vw, 8svh, calc(36vw / (var(--he260-len, 6) * .62))); }
  .he260__date { margin-top: 2.4svh; font-size: max(13px, 1vw); }
  .he260--nophoto .he260__words { left: 0; top: 50svh; }
}

/* The opener's join (op260): the photo develops out of the dark round the opener's print from 2650 ms, the names and date from 3150 ms,
   the rose rises out of the dark under them from 3200 ms; all done by about 4.1 s (feedback-reveal-about-5s). On CSS from kjy-enter
   (about 30 ms after the tap), so nothing waits for a script; a return visit (kjy-instant) or Reduce Motion shows the still hero. */
html.js:not(.motion-reduce):not(.kjy-enter) .he260 :is(.he260__ph, .he260__rose, .he260__words) { opacity: 0; }
html.js:not(.motion-reduce):not(.kjy-enter) .he260 .he260__rose { translate: 0 calc(34 * var(--k-mr-u)); }
html.js:not(.motion-reduce):not(.kjy-enter) .he260 .he260__words { translate: 0 10px; }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he260 .he260__ph { transition: opacity 750ms cubic-bezier(.37, 0, .63, 1) 2620ms; }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he260 .he260__rose { transition: opacity 900ms cubic-bezier(.33, 1, .68, 1) var(--he260-d, 3200ms), translate 900ms cubic-bezier(.33, 1, .68, 1) var(--he260-d, 3200ms); }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he260 .he260__words { transition: opacity 800ms cubic-bezier(.33, 1, .68, 1) 3120ms, translate 800ms cubic-bezier(.33, 1, .68, 1) 3120ms; }
