/* Out of the fishbowl (from the Place to B talk, 2026-11-12): four projects,
   each in its own glass bowl with a few notes swimming; the glass lifts away
   and the notes fly into one shared world, threads drawing between projects.
   It plays on its own while it is on screen, then settles back and repeats.
   Tokens only, no raw hex. */

main > section.fb:not(.hero) { padding-top: clamp(40px, 6vh, 90px); }
.fb-grid {
  max-width: var(--page-w); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center; gap: var(--site-gap);
}
.fb-head { margin: 0; font: 600 var(--head-xl)/1.06 var(--display); letter-spacing: -0.016em; color: var(--ink); }
.fb-ask { margin: 0 0 0.8em; font: italic 500 var(--text-lg)/1.4 var(--display); color: var(--ink-3); }
.fb-body { margin: 0.9em 0 0; max-width: 40ch; font: var(--text-base)/1.55 var(--body); color: var(--ink-2); }

.fb-svg { width: 100%; height: auto; display: block; overflow: visible; }
.fb-glass { fill: color-mix(in srgb, var(--ink) 6%, transparent); stroke: color-mix(in srgb, var(--ink) 65%, transparent); stroke-width: 3; }
.fb-water { opacity: 0.22; }
.fb-rim { fill: none; stroke: color-mix(in srgb, var(--ink) 75%, transparent); stroke-width: 3; }
.fb-base { fill: color-mix(in srgb, var(--paper) 60%, black); }
.fb-t { fill: var(--ink-2); font: 500 24px var(--display); text-anchor: middle; }
.fb-bowl { transition: opacity 900ms ease, transform 1100ms ease; transform-origin: 350px 330px; transform-box: view-box; }

.fb-world { fill: color-mix(in srgb, var(--kind-reference) 9%, transparent); stroke: color-mix(in srgb, var(--kind-reference) 55%, transparent); stroke-width: 2; stroke-dasharray: 3 9; opacity: 0; transition: opacity 1200ms ease 900ms; }
.fb-label { font: 500 23px var(--display); paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; text-anchor: middle; opacity: 0; transition: opacity 900ms ease 1700ms; }
.fb-link { stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.85; }
.fb-mark { opacity: 0; transform: scale(0.4) rotate(-120deg); transform-origin: 350px 330px; transform-box: view-box; transition: opacity 800ms ease 1200ms, transform 1200ms cubic-bezier(.2,.9,.25,1.03) 1200ms; }

.fb-dot {
  transform: translate(var(--x0), var(--y0));
  transition: transform 1500ms cubic-bezier(.6,.05,.25,1);
  transition-delay: calc(var(--i) * 25ms);
}
.fb-dot circle { animation: fb-swim 3s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); }
@keyframes fb-swim { 50% { transform: translate(7px, -5px); } }

/* open: the glass goes and the notes find each other */
.fb.open .fb-dot { transform: translate(var(--x1), var(--y1)); }
.fb.open .fb-dot circle { animation: none; }
.fb.open .fb-bowl { opacity: 0; transform: scale(1.15); }
.fb.open .fb-world, .fb.open .fb-label { opacity: 1; }
.fb.open .fb-mark { opacity: 1; transform: none; }
.fb.open .fb-link { animation: fb-draw 1s ease-out forwards; animation-delay: var(--d); }
@keyframes fb-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fb-dot, .fb-bowl, .fb-world, .fb-label, .fb-mark { transition: none; }
  .fb-dot circle { animation: none; }
  .fb.open .fb-link { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 760px) {
  .fb-grid { grid-template-columns: 1fr; }
}

/* the shared world's centre: one glowing point the threads gather round */
.fb-core { fill: var(--kind-reference); filter: drop-shadow(0 0 10px var(--kind-reference)); }
.fb-core-ring { fill: none; stroke: color-mix(in srgb, var(--kind-reference) 60%, transparent); stroke-width: 2; }

/* the question in the lamp gold used across the page, and the answer broken
   into four short points (Dan, 2026-11-21) */
.fb .fb-text .fb-ask { color: var(--lamp, var(--kind-reference)); }
.fb-head { margin-bottom: 0; }
.fb .fb-text .fb-ask { margin-bottom: 0.6em; }
/* each point carries its own colour, as the organization points do, so only
   the headline stays white (design pass, 2026-11-21) */
.fb-points { list-style: none; margin: clamp(22px, 2.6vw, 36px) 0 0; padding: 0; max-width: 42ch; display: grid; gap: clamp(14px, 1.4vw, 20px); }
.fb-points li { position: relative; padding-left: 1.35em; font: 400 var(--text-base)/1.5 var(--body); color: color-mix(in srgb, var(--k) 22%, var(--ink-3)); }
.fb-points li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--k); box-shadow: 0 0 0.8em color-mix(in srgb, var(--k) 70%, transparent); }
.fb-points b { display: block; margin-bottom: 0.2em; font: 600 var(--text-md)/1.25 var(--display); color: color-mix(in srgb, var(--k) 60%, var(--ink)); }
@media (max-width: 760px) {
  .fb-points { margin: 26px auto 0; max-width: 36ch; gap: 18px; }
  .fb-points li { font-size: var(--text-sm); }
  .fb-points b { font-size: var(--text-base); }
}

/* the region names arrive late, after the notes reach the shared world, and
   leave at once when it closes, before the bowls return, so a name never sits
   over a bowl (Dan, 2026-11-21) */
.fb-label { transition: opacity 200ms ease 0ms; }
.fb.open .fb-label { transition: opacity 900ms ease 1700ms; }
