/* he061 One pane (INV-03B Pressed Glass · Luxe hero, stage 1 still; A2161, rebuilt W1.7 A2209: the owner on the two overlapping
   sheets: "still that old 2 slabs"). One frosted sheet on the sunlit linen, the names together in the middle, one sparse stem
   at two opposite corners, as in the owner's reference. The stems' shadows are baked into their pictures. No venue (D-121), no
   arch (INV-13's), no moving cloth (AG-T348). Sizes are % of the hero, which is one screen tall, min 560 px, so a short phone
   keeps the composition. Long names shrink to fit: --he061-len is the longer name's length. */
.he061 {
  --he061-size: max(20px, min(clamp(34px, 11.6vw, 64px), calc(66vw / (var(--he061-len, 6) * .8))));
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: var(--k-dark, transparent); color: var(--k-on-dark);
}
@media (min-width: 700px) and (max-aspect-ratio: 1/1) {
  .he061 { --he061-size: max(26px, min(clamp(48px, 9vw, 84px), calc(62vw / (var(--he061-len, 6) * .8)))); }
}
/* desktop and landscape: 90 % of the width, both names on one line, never a phone column */
@media (min-aspect-ratio: 1/1) {
  .he061 { --he061-size: max(22px, min(clamp(40px, 5vw, 84px), calc(72vw / ((var(--he061-len, 6) * 2 + 3) * .8)))); }
}

/* ---- the pane: .k-sgl-mist carries the fill and the rim (skin), the etch rides on ::before ---- */
.he061 .he061__pane { position: absolute; left: 9vw; right: 9vw; top: 7%; bottom: 7%; overflow: hidden; isolation: isolate;
  border-radius: 14px; box-shadow: var(--sgl-glass-shadow, 10px 14px 18px rgb(120 76 28 / .26)); }
.he061 .he061__pane::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: var(--sgl-glass-etch-old, none); opacity: var(--sgl-glass-etch-o, .34);
  -webkit-mask-image: var(--sgl-glass-etch-mask, none); mask-image: var(--sgl-glass-etch-mask, none); }
@media (min-aspect-ratio: 1/1) { .he061 .he061__pane { left: 5vw; right: 5vw; } }

/* ---- one stem at each of two opposite corners, lying on the glass ---- */
.he061 .he061__stem { position: absolute; z-index: 2; display: block; pointer-events: none; background: center / contain no-repeat; }
.he061 .he061__stem--a { left: -1vw; top: 3%; width: min(56vw, 26svh); aspect-ratio: var(--sgl-corner-a-ratio); background-image: var(--sgl-art-corner-a, none); }
.he061 .he061__stem--b { right: 1vw; bottom: 2%; width: min(44vw, 36svh); aspect-ratio: var(--sgl-corner-b-ratio); background-image: var(--sgl-art-corner-b, none); }
/* W2.1 (A2238): the pane now carries more words, so on a tablet the stems keep to the corners */
@media (min-width: 700px) and (max-aspect-ratio: 1/1) {
  .he061 .he061__stem--a { width: 40vw; }
  .he061 .he061__stem--b { width: 30vw; }
}
@media (min-aspect-ratio: 1/1) {
  .he061 .he061__stem--a { left: 2.5vw; top: 2%; width: 24vw; }
  .he061 .he061__stem--b { right: 3vw; bottom: 2%; width: 17vw; }
}

/* W2.1 (A2238): one long-stemmed red rose over the pane's foot corner, its stem running off the table's edge as the white stems do, and the fallen
   leaf beside it. The owner: red roses "near the dried" pieces */
.he061 .he061__rose { left: -3vw; bottom: 1%; width: min(39vw, 19svh); }
.he061 .he061__leaf { left: 33vw; bottom: 9.5%; width: 13vw; }
@media (min-width: 700px) and (max-aspect-ratio: 1/1) { .he061 .he061__rose { width: 30vw; } .he061 .he061__leaf { left: 26vw; width: 9vw; } }
@media (min-aspect-ratio: 1/1) { .he061 .he061__rose { left: 2vw; bottom: 1%; width: min(15vw, 38svh); } .he061 .he061__leaf { left: 16vw; bottom: 11%; width: 6.4vw; } }

/* ---- the words: stacked on a phone or tablet, one line on a laptop ---- */
.he061 .he061__words { position: absolute; inset: 0; z-index: 4; padding: 0 11vw; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; color: var(--k-on-dark); }
.he061 .he061-names { margin: 0; display: flex; flex-direction: column; align-items: center; font: 300 var(--he061-size)/1.04 var(--k-font-display); letter-spacing: .15em; }
/* the grain sits on each word, padded so a mask never cuts a letter (AG-T285) */
.he061 .he061-name { margin: -.17em 0; padding: .2em 0 .25em .15em; text-transform: uppercase;
  color: var(--sgl-etched-letter); text-shadow: var(--sgl-etched-letter-cut); -webkit-mask: var(--sgl-text-tex); mask: var(--sgl-text-tex); }
.he061 .he061-amp { font: 400 calc(var(--he061-size) * 1.02)/.9 var(--k-font-script); letter-spacing: 0; color: var(--c-secondary); text-shadow: var(--sgl-etched-text); }
/* W5 (A2268): long names wrap inside the gold frame's inner rule (27 / 240 of its slice), never across it. Names only, so a long date keeps its one line */
@media (max-aspect-ratio: 1/1) { .he061 .he061-names { max-width: calc(100vw - 2 * (9vw + var(--sgl-frame-in) + var(--sgl-frame-w) * .1125 + 6px)); } }
.he061 .he061__announce { margin: .5em 0 0; font: 400 clamp(1.6rem, 6.8vw, 2.4rem)/1 var(--k-font-script); color: var(--c-secondary); }
/* W2.1 (A2238; owner: "more relevant text ... you are invited"): the words of a real invitation. Caps, cut into the glass; a gold line and a sprig between them */
.he061 .he061__invited, .he061 .he061__date { margin: 0; padding-left: .34em; font: 400 clamp(.92rem, 4vw, 1.26rem)/1.3 var(--k-font-display); letter-spacing: .34em;
  text-transform: uppercase; color: var(--c-primary); text-shadow: var(--sgl-etched-text); }
.he061 .he061__date { font-size: clamp(.76rem, 3.1vw, 1.02rem); letter-spacing: .26em; padding-left: .26em; }
.he061 .he061__orn { display: block; width: clamp(190px, 56vw, 300px); aspect-ratio: 640 / 64; margin: clamp(12px, 2.2svh, 22px) 0; background: var(--sgl-art-rule) center / contain no-repeat; }
@media (min-aspect-ratio: 1/1) {
  .he061 .he061-names { flex-direction: row; align-items: baseline; gap: .26em; }
  .he061 .he061-name:not(:first-child) { padding-left: 0; }
  .he061 .he061-amp { font-size: calc(var(--he061-size) * 1.1); margin-right: .16em; }
  .he061 .he061__announce { font-size: clamp(1.8rem, 3vw, 3rem); }
  .he061 .he061__invited { font-size: clamp(.95rem, 1.4vw, 1.3rem); }
  .he061 .he061__date { font-size: clamp(.8rem, 1.1vw, 1.05rem); }
  .he061 .he061__orn { width: clamp(230px, 22vw, 340px); }
}
/* W2.1 (A2238): petal drifts on the bare linen above and below the pane */
.he061 .he061__drift { right: 6vw; top: .7%; width: 50vw; }
.he061 .he061__drift--b { left: 40vw; right: auto; top: auto; bottom: .9%; width: 42vw; }
@media (min-aspect-ratio: 1/1) { .he061 .he061__drift { right: 8vw; width: 21vw; } .he061 .he061__drift--b { left: 37vw; width: 19vw; } }
/* W2.1 (A2238): a short phone (375 x 667): the fuller stack of words keeps clear of the stems and the rose */
@media (max-height: 720px) and (max-aspect-ratio: 1/1) {
  .he061 { --he061-size: max(20px, min(5.6svh, calc(66vw / (var(--he061-len, 6) * .8)))); }
  .he061 .he061__orn { margin: 7px 0; width: clamp(170px, 50vw, 240px); }
  .he061 .he061__announce { margin-top: .3em; font-size: clamp(1.45rem, 6vw, 2rem); }
  .he061 .he061__words { padding-bottom: 2svh; }
}
/* W4 (A2259): the gold dividers draw outward from their star as the words appear. Once, inside the opening, while the page is still locked; clip only, nothing travels */
html.kjy-opening:not(.motion-reduce):not(.kjy-lite):not(.kjy-instant) .he061 .he061__orn { animation: he061-draw 1.1s cubic-bezier(.3, 0, .2, 1) 1.3s backwards; }
@keyframes he061-draw { from { clip-path: inset(-20% 50% -20% 50%); } to { clip-path: inset(-20% -1% -20% -1%); } }
