/* White garden close (core/closing/022), fork of core/closing/001 for INV-01 v2 · Luxe: the day ends in a white garden.
   A white panel with a soft lavender glow behind cl001's garland of white and lavender roses, which unfurls from the
   centre; her ribbon's two cut tails slide down from behind it (no bow); "With love" and the names written on in
   lavender ink with a pearl sheen; a few lavender petals drift down from the garland while the close is in view, behind
   the words. Still versions: six resting petals. Its top and foot fade into the page, so there is no edge. */
.cl022 { position: relative; overflow: hidden; color: var(--k-ink);
  background: radial-gradient(64% 42% at 50% 24%, rgb(var(--c-primary-rgb) / .10), rgb(var(--c-primary-rgb) / 0) 72%),
    linear-gradient(180deg, rgb(255 255 255 / 0) 0%, #FFFFFF 12%, #FFFFFF 86%, rgb(255 255 255 / 0) 100%); }
/* leaves in soft sage at the two bottom corners */
.cl022__hedge { position: absolute; z-index: 0; bottom: -10%; width: min(62%, 520px); aspect-ratio: 1; pointer-events: none; background: rgb(var(--c-secondary-rgb) / .2);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* each leaf corner also fades out toward the section's foot, so the panel's edge never cuts a leaf */
.cl022__hedge--l { left: -16%; -webkit-mask-image: var(--glk-card-bl-leaf), linear-gradient(180deg, #000 45%, transparent 88%); mask-image: var(--glk-card-bl-leaf), linear-gradient(180deg, #000 45%, transparent 88%); }
.cl022__hedge--r { right: -16%; -webkit-mask-image: var(--glk-card-br-leaf), linear-gradient(180deg, #000 45%, transparent 88%); mask-image: var(--glk-card-br-leaf), linear-gradient(180deg, #000 45%, transparent 88%); }
.cl022__hedge { -webkit-mask-composite: source-in; mask-composite: intersect; }
.cl022__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; min-height: min(100svh, 880px);
  max-width: calc(var(--k-measure) + 2 * var(--k-gutter)); margin: 0 auto; padding: var(--k-section-pad) var(--k-gutter) 118px; text-align: center; } /* the names end well inside the white */
.cl022__top { position: relative; width: min(100%, 520px); }
.cl022__garland { position: relative; z-index: 1; display: block; width: 100%; height: auto; transform-origin: 50% 20%; }
.cl022__tail { position: absolute; z-index: 0; left: 50%; top: 56%; width: clamp(60px, 16%, 84px); height: 16px; transform-origin: 0 50%;
  background: linear-gradient(180deg, var(--c-primary-deep), var(--c-primary) 22%, color-mix(in oklab, var(--c-primary) 55%, #fff) 50%, var(--c-primary) 78%, var(--c-primary-deep));
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%); filter: drop-shadow(0 2px 2px rgb(52 46 74 / .18)); }
.cl022__tail--l { rotate: 97deg; margin-left: -9px; }
.cl022__tail--r { rotate: 84deg; margin-left: 9px; width: clamp(72px, 19%, 98px); }
.cl022__words { position: relative; z-index: 1; margin-top: auto; padding-top: 64px; }
.cl022__line { margin: 0; font-style: italic; font-size: 1.25rem; letter-spacing: .02em; color: var(--k-ink-soft); }
.cl022__names { margin: var(--k-s-2) 0 0; font: 400 clamp(2.75rem, 12vw, 4.25rem)/1.1 var(--k-font-script); filter: drop-shadow(0 1px 1px rgb(52 46 74 / .10)); }
.cl022__names .k-ink { background: linear-gradient(118deg, var(--c-primary-deep), var(--c-primary) 30%, color-mix(in oklab, var(--c-primary) 60%, #fff) 46%, var(--c-primary) 62%, var(--c-primary-deep) 84%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* tablets and laptops: the close spans the screen less a thin margin (92 % / 90 %), with a bigger garland */
@media (min-width: 768px) {
  .cl022 { --cl022-frame: 92vw; }
  .cl022__inner { max-width: none; width: var(--cl022-frame); padding-inline: 0; }
  .cl022__top { width: min(100%, 680px); }
}
@media (min-width: 1100px) {
  .cl022 { --cl022-frame: min(90vw, 1728px); }
  .cl022__top { width: min(100%, 920px); }
  .cl022__tail { width: clamp(60px, 16%, 134px); height: 22px; }
  .cl022__tail--r { width: clamp(72px, 19%, 156px); }
  .cl022__hedge { width: min(40%, 720px); }
  .cl022__names { font-size: 5.25rem; }
}
/* petals: the still six (section.js swaps them for its own while the close is in view); behind the words */
.cl022__flies { position: absolute; z-index: 0; left: 0; right: 0; top: 8%; bottom: 0; pointer-events: none; }
.cl022__flies i, .cl022-petal { position: absolute; left: var(--cl022-x, 50%); top: var(--cl022-y, 50%); width: 10px; height: 14px; margin: -7px 0 0 -5px;
  border-radius: 80% 8% 80% 8%; background: linear-gradient(140deg, color-mix(in oklab, var(--c-primary) 30%, #fff), color-mix(in oklab, var(--c-primary) 72%, #fff));
  box-shadow: 0 1px 2px rgb(52 46 74 / .14); transform: rotate(var(--cl022-r, 20deg)); opacity: .85; }
.cl022.is-moving .cl022__flies i { display: none; } /* the script adds its own (spans) */
.cl022-petal { left: 0; top: 0; margin: 0; opacity: 0; will-change: transform, opacity; }
