/* Nr. 1f: the reference's transparent bougainvillea, framing the portrait. */
.hero-intro--flowers .hero-intro__portrait { isolation: isolate; }
.hero-intro--flowers .hero-intro__portrait > .arch { z-index: 1; }
.hero-intro--flowers .hero-intro__card { z-index: 2; }
.hero-flowers {
  position: absolute;
  z-index: 0;
  width: calc(100% + 230px);
  aspect-ratio: 1;
  top: -165px;
  right: -100px;
  transform: scaleX(-1);
  pointer-events: none;
  user-select: none;
}
.hero-flowers__poster,
.hero-flowers__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-flowers__video { opacity: 0; }
.hero-flowers.is-playing .hero-flowers__video { opacity: 1; }
.hero-flowers.is-playing .hero-flowers__poster { visibility: hidden; }
.hero-flowers__toggle {
  position: absolute;
  z-index: 3;
  right: -44px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
}
.hero-flowers__toggle .icon { width: 14px; height: 14px; }
.hero-flowers__toggle:hover { border-color: var(--brass); color: var(--ink); }
.hero-flowers__toggle:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.hero-flowers__play { display: none; }
.hero-flowers__toggle.is-paused .hero-flowers__pause { display: none; }
.hero-flowers__toggle.is-paused .hero-flowers__play { display: block; }
/* Nr. 1g: keep 1f's flower scale and fill only the lower-right gap. */
.hero-intro--flowers-extended { overflow: clip; }
.hero-intro--flowers-extended .hero-flowers__poster,
.hero-intro--flowers-extended .hero-flowers__video {
  /* The parent mirrors the flowers; their upper-right roots stay anchored. */
  transform-origin: 0 0;
  transform: translateX(var(--flower-drift, 0px)) rotate(var(--flower-turn, 0deg));
}
.hero-intro--flowers-extended .hero-flowers--trail {
  top: 38px;
  right: -135px;
  clip-path: inset(0 72% 0 0);
}
@media (min-width: 961px) {
  .hero-intro--flowers .hero-intro__grid { min-height: 740px; padding-block: 150px 64px; }
}
@media (max-width: 960px) {
  .hero-intro--flowers .hero-intro__portrait { margin-top: 100px; }
  .hero-flowers { top: -130px; right: -70px; width: calc(100% + 150px); }
  .hero-intro--flowers-extended .hero-flowers--trail { top: 0; right: -100px; }
  .hero-flowers__toggle { right: 8px; bottom: 8px; }
}
