/* Glass Bloom Scroll: full-screen, pinned, scroll-scrubbed glass flower */
.gbs {
  --gbs-scroll-length: 520vh;
  --gbs-bg-top: #3b4263;
  --gbs-bg-bottom: #b9b8d6;
  position: relative;
  height: var(--gbs-scroll-length);
  background: linear-gradient(180deg, var(--gbs-bg-top) 0%, #6a6d9c 55%, var(--gbs-bg-bottom) 100%);
}

.gbs__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* Full screen: the canvas always covers the whole pinned viewport. */
.gbs__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.gbs.is-ready .gbs__stage {
  opacity: 1;
}

.gbs__cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font: 500 11px/1 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.2s linear;
}

.gbs__cue i {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  transform-origin: top;
  animation: gbs-cue 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes gbs-cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.gbs__loader {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: opacity 0.5s ease 0.3s;
}

.gbs__loader i {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.55);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s linear;
}

.gbs.is-loaded .gbs__loader {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .gbs__cue i { animation: none; transform: scaleY(1); }
}
