/* Rose serenade (core/hero/290, fork of core/hero/180), INV-29 Midnight Serenade · Luxe (A3046; plan docs/plans/plan_inv29_w1_build.md, the W0.3 page's
   hero): blue hour at the top of the card. The rose on old sheet music (the skin's art, not the couple's photo) fills the top of the card and fades into
   the black glass (W1.1) by two masks; over its fade: "Together with their families", the names in gilt on one line, the date, the heart join and one line.
   Never the venue (D-121). No filter over the rose: it stays vivid red. The card's top corners sit here. Still in stage 1.
   W2.2 (A3066): the couple's photo is the hero now and the rose only the fallback (see below); its settle after the tap is in the skin's moments. */
.he290 { padding-bottom: 54px; text-align: center; color: var(--k-ms-ivory); }
.he290__art { position: relative; height: clamp(420px, 124vw, 560px); }
.he290__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 54% 36%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%), radial-gradient(130% 90% at 50% 30%, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%), radial-gradient(130% 90% at 50% 30%, #000 60%, transparent 100%);
}
/* W2.2 (A3066; owner: "In the hero use couple pic instead on rose only"): the couple's own photo (hero_photo) is the hero; the rose is only the fallback
   when there is no photo. Phones and upright tablets: the photo fills the art box (cut round the faces by the photo's focus) with the rose's masks. */
.he290__glow { display: none; }
.he290__img--photo { max-width: none; }
.he290__words { position: relative; display: grid; justify-items: center; gap: 16px; margin-top: -96px; padding-inline: 22px; }
/* one line: the size follows the longer name (name_len), so a long pair shrinks instead of wrapping */
.he290-names { margin: 4px 0 0; max-width: 100%; font-size: min(clamp(40px, 11.6vw, 118px), calc((100vw - 80px) / (var(--he290-len) * 1.12 + 1.3))); }
.he290__line { max-width: 30ch; }
@media (min-width: 760px) {
  .he290__art { height: clamp(520px, 70vw, 640px); }
}
/* Desktop, laptop and landscape tablets (A3054, owner: "HERO SHOULD BE FITTING THE SCREEN ON DESKTOP"): the hero is exactly one screen, the card's
   16 px top margin and 2 px rim taken off; the rose fills what the words leave, the words always inside the screen. */
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .he290 { display: flex; flex-direction: column; height: calc(100svh - 18px); min-height: 540px; padding-bottom: clamp(24px, 5vh, 54px); }
  .he290__art { flex: 1 1 auto; height: auto; min-height: 0; }
  .he290__img { object-position: 54% 40%; }
  .he290__words { flex: 0 0 auto; gap: clamp(10px, 1.7vh, 16px); margin-top: clamp(-170px, -17vh, -90px); }
  .he290-names { font-size: min(clamp(56px, 13vh, 118px), calc((100vw - 80px) / (var(--he290-len) * 1.12 + 1.3))); }
  /* W2.2: the couple's photo stands whole in the middle at the art's full height (never a wide crop of a portrait photo), its sides and foot
     melting into the black; behind it a soft, dim, blurred copy of the same photo lends its colour to the dark (on a black-ground photo it is
     simply dark). Any shape of photo works: a landscape one is capped at the box's width and cut round its focus. */
  .he290__img--photo {
    position: absolute; left: 50%; top: 0; translate: -50% 0; width: auto; height: 100%; max-width: 100%; object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  }
  .he290__glow {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; pointer-events: none;
    filter: blur(44px) saturate(1.15) brightness(.6); opacity: .2; scale: 1.12;
    -webkit-mask-image: radial-gradient(56% 66% at 50% 40%, #000 25%, transparent 100%); mask-image: radial-gradient(56% 66% at 50% 40%, #000 25%, transparent 100%);
  }
}
