/* The BeeSub bee: flies down the page, leaves a honey-dot trail and says short things.
   Drawn by bee-flight.js. Decorative only: it never takes clicks except the bee itself. */
#bee-trail { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 3; overflow: visible; }
#bee-trail path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: .3; }

#flybee {
  position: fixed; top: 52vh; left: 0; z-index: 30; width: 64px; height: 64px;
  margin-top: -32px; margin-left: -32px; padding: 0; border: 0; background: none;
  cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent;
  transition: opacity .6s ease;
}
/* When the reader stops, the bee settles and fades so the text is left alone. */
#flybee.rest { opacity: .28; }
#flybee.rest .bee-body { animation-play-state: paused; }
#flybee.rest .bee-wing { animation-duration: 1.4s; }
#flybee.over { opacity: .38; }
#flybee:hover, #flybee:focus-visible { opacity: 1; }
#flybee .bee-body { display: block; width: 100%; height: 100%; animation: bee-bob 1.6s ease-in-out infinite; transition: transform .25s ease; }
#flybee .bee-body svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
#flybee[data-dir="left"] .bee-body svg { transform: scaleX(-1); }
#flybee.hop .bee-body { animation: bee-hop .6s ease-out; }
.bee-wing { transform-origin: 49px 44px; }
.bee-wing-a { animation: bee-flap .11s ease-in-out infinite alternate; }
.bee-wing-b { animation: bee-flap .11s ease-in-out infinite alternate-reverse; }
@keyframes bee-flap { from { transform: rotate(-16deg); } to { transform: rotate(10deg); } }
@keyframes bee-bob { 0%, 100% { transform: translateY(-5px) rotate(-4deg); } 50% { transform: translateY(6px) rotate(4deg); } }
@keyframes bee-hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-22px) scale(1.18) rotate(-10deg); } 100% { transform: translateY(0) scale(1); } }

#bee-say {
  position: absolute; bottom: 70%; width: max-content; max-width: 210px; padding: 9px 13px;
  border-radius: 14px; background: #fff7df; color: #2b1d05; font-size: .86rem; line-height: 1.7; font-weight: 500;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
#bee-say[data-side="start"] { inset-inline-start: 62%; }
#bee-say[data-side="end"] { inset-inline-end: 62%; }
#bee-say::after { content: ""; position: absolute; bottom: -6px; width: 12px; height: 12px; background: #fff7df; transform: rotate(45deg); }
#bee-say[data-side="start"]::after { inset-inline-start: 14px; }
#bee-say[data-side="end"]::after { inset-inline-end: 14px; }
#bee-say.on { opacity: 1; transform: none; }
html[dir="rtl"] #flybee { direction: rtl; }

@media (max-width: 720px) {
  #flybee { width: 42px; height: 42px; margin-top: -21px; margin-left: -21px; }
  #bee-trail { display: none; }
  #bee-say { font-size: .8rem; max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  #flybee .bee-body, .bee-wing { animation: none !important; }
  #bee-say { transition: none; }
}
@media print { #flybee, #bee-trail { display: none; } }

.bee-note { display: flex; align-items: center; gap: 10px; margin: 18px 0 4px; color: var(--accent); font-size: .95rem; font-weight: 500; }
.bee-note img { width: 26px; height: 26px; flex: none; }
.bee-foot { margin: 0; color: var(--text-soft); font-size: .86rem; }

/* The approved logo, as it was drawn. */
.brand-lockup { display: block; width: min(300px, 70%); height: auto; margin: 0 auto 22px; padding: 16px 22px; border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
