/* waggle.software — tokens from the Waggle Brand design system (dark by default). */
:root {
  --ground: #000000; --surface: #161412; --raised: #25201a;
  --line: rgba(255, 190, 40, 0.16); --comb: #e5dcc9;
  --ink: #f5efe3; --ink-muted: #a8998a;
  --honey: #ffb71b; --honey-bright: #ffd666; --honey-deep: #5e4815; --on-honey: #161412;
  --danger: #ff6961; --warning: #ff9f0a;
  --font-display: "Inter Tight", Inter, -apple-system, "SF Pro Display", system-ui, sans-serif;
  --font-sans: Inter, -apple-system, "SF Pro Text", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-10: 40px; --space-16: 64px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 22px; --radius-pill: 999px;
  --glow: 0 0 0 2px rgba(255, 183, 27, 0.55), 0 0 24px rgba(255, 183, 27, 0.35);
  --float: 0 10px 30px rgba(0, 0, 0, 0.6);
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/24px var(--font-sans); }
img, svg { max-width: 100%; }
a { color: var(--honey); text-underline-offset: 3px; }
a:hover { color: var(--honey-bright); }
:focus-visible { outline: 2px solid var(--honey-bright); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; margin: 0 0 var(--space-4); letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 var(--space-4); }
.lead { font-size: 20px; line-height: 30px; color: var(--ink-muted); max-width: 640px; }
.muted { color: var(--ink-muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 10; background: var(--honey); color: var(--on-honey); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: var(--space-6);
  padding: var(--space-3) max(var(--space-4), calc((100% - var(--max)) / 2)); background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none;
  font: 800 22px/1 var(--font-display); }
.site-header nav { display: flex; gap: var(--space-6); margin-left: auto; }
.site-header nav a { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
@media (max-width: 720px) { .site-header nav { display: none; } .site-header .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-block; font: 600 16px/24px var(--font-sans); text-decoration: none; padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--honey); color: var(--on-honey); }
.btn-primary:hover { background: var(--honey-bright); color: var(--on-honey); }
.btn-secondary { border-color: var(--honey-deep); color: var(--ink); background: transparent; }
.btn-secondary:hover { border-color: var(--honey); color: var(--ink); }
.btn-small { font-size: 14px; line-height: 20px; padding: var(--space-2) var(--space-4); }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* Sections */
.section, .page-head { padding: var(--space-16) max(var(--space-4), calc((100% - var(--max)) / 2)); }
.page-head { padding-bottom: var(--space-6); }
.section + .section { border-top: 1px solid var(--line); }
@media (max-width: 720px) { .section, .page-head { padding-top: var(--space-10); padding-bottom: var(--space-10); } }
.eyebrow { color: var(--honey); font-weight: 600; font-size: 14px; text-transform: none; margin-bottom: var(--space-2); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center; }
.hero .note { font-size: 14px; color: var(--ink-muted); margin-top: var(--space-3); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* Hero: a short silent loop rendered from marketing/kit (invented cast only). The poster shows instead for reduced motion. */
.hero-media { margin: var(--space-6) 0 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #000;
  aspect-ratio: 16 / 10; }
.hero-video, .hero-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .hero-poster { display: block; } }
@keyframes wiggle { 0%, 55%, 100% { transform: rotate(0); } 6% { transform: rotate(-12deg) scale(1.06); } 13% { transform: rotate(10deg); } 20% { transform: rotate(-8deg); } 27% { transform: rotate(6deg); } 34% { transform: rotate(0); } }

/* Cards and grids */
.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }
.hex { width: 40px; height: 46px; background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center; color: var(--on-honey); font: 800 18px/1 var(--font-display); margin-bottom: var(--space-4); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; list-style: none; margin: var(--space-6) 0 0; }
.chips li { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: var(--space-1) var(--space-3); font-size: 14px; color: var(--ink-muted); }
.checks { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.checks li { padding-left: 28px; position: relative; margin-bottom: var(--space-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 16px; background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.not li::before { background: var(--ink-muted); }

/* Pricing */
.plans { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--honey); box-shadow: var(--glow); }
.price { font: 800 48px/1 var(--font-display); margin: var(--space-2) 0; }
.price small { font: 400 14px/1 var(--font-sans); color: var(--ink-muted); }
.plan .btn { margin-top: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-muted); }
.table-wrap { overflow-x: auto; }

/* Prose (legal, guides, FAQs) */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin-top: var(--space-10); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose li > ul, .prose li > ol { margin-top: var(--space-2); }
code { font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--raised); border-radius: 4px; padding: 1px 5px; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); overflow-x: auto; }
pre code { background: none; padding: 0; }
.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-10);
  padding: 0 max(var(--space-4), calc((100% - var(--max)) / 2)) var(--space-16); }
.faq-toc { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: var(--space-2); font-size: 14px; }
.faq-toc a { color: var(--ink-muted); text-decoration: none; } .faq-toc a:hover { color: var(--ink); }
.faq-topic { border-top: 1px solid var(--line); padding-top: var(--space-6); }
.faq-topic h2 { margin-top: 0; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-toc { position: static; flex-direction: row; flex-wrap: wrap; } }
.callout { background: var(--surface); border: 1px solid var(--line); border-left-color: var(--line); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); }
.form { display: grid; gap: var(--space-3); max-width: 420px; }
.form input { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-3); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-10) max(var(--space-4), calc((100% - var(--max)) / 2)); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-6); }
.footer-cols nav { display: flex; flex-direction: column; gap: var(--space-2); font-size: 14px; }
.footer-cols h2 { font: 600 14px/20px var(--font-sans); color: var(--ink); margin: 0 0 var(--space-1); }
.footer-cols nav a { color: var(--ink-muted); text-decoration: none; } .footer-cols nav a:hover { color: var(--ink); }
.legal { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0 0 var(--space-2); max-width: 820px; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > div { grid-column: 1 / -1; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.buy-note { margin: var(--space-4) 0 0; color: var(--honey); font-weight: 600; }
/* Phone menu */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: var(--space-2); border-radius: var(--radius-sm); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] nav { display: flex; }
.menu nav { position: absolute; right: 0; top: 44px; flex-direction: column; gap: var(--space-1); min-width: 180px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-2); box-shadow: var(--float); }
.menu nav a { color: var(--ink); text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-weight: 600; }
.menu nav a:hover { background: var(--raised); }
@media (max-width: 720px) { .menu { display: block; } .site-header .btn { margin-left: auto; } }
/* Works-with logo wall */
.logos { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-4); display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.logos li { display: flex; align-items: center; gap: var(--space-3); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-weight: 600; font-size: 14px; }
.logos img { width: 28px; height: 28px; flex: none; }
.logos .initial { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--raised); color: var(--ink-muted);
  display: grid; place-items: center; font: 800 15px/1 var(--font-display); }
.small { font-size: 13px; }
.select { font: inherit; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); margin-top: var(--space-2); }
/* Features: "See it in action" gallery (stills rendered by marketing/kit). */
.gallery { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-top: var(--space-6); }
.shot { margin: 0; }
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.shot img { border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); aspect-ratio: 1200 / 750; }
.shot figcaption { margin-top: var(--space-2); font-weight: 600; font-size: 15px; }
.keybox { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-6) 0; padding: var(--space-4); background: var(--surface); border: 1px solid var(--honey-deep); border-radius: var(--radius-md); }
.keybox code { font-size: 18px; background: none; letter-spacing: .04em; word-break: break-all; }

/* A section that is also .prose: keep the page padding, limit the text column. */
.section.prose { max-width: none; }
.section.prose > * { max-width: 760px; }
h1, h2 { letter-spacing: -0.025em; }
/* FAQs: search, topic pills, accordion rows */
.faq-head { text-align: left; }
.faq-search { position: relative; max-width: 560px; margin-top: var(--space-6); }
.faq-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); }
.faq-search input { width: 100%; font: 400 17px/24px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 14px 18px 14px 46px; }
.faq-search input:focus { outline: 2px solid var(--honey); outline-offset: 2px; border-color: transparent; }
.faq-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.faq-pill { font-size: 14px; font-weight: 600; color: var(--ink-muted); text-decoration: none; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 6px 14px; transition: color .2s, border-color .2s, background .2s; }
.faq-pill:hover, .faq-pill[aria-current] { color: var(--on-honey); background: var(--honey); border-color: var(--honey); }
.faq-list { padding: 0 max(var(--space-4), calc((100% - var(--max)) / 2)) var(--space-16); }
.faq-list .faq-topic { max-width: 820px; border: 0; padding-top: var(--space-10); scroll-margin-top: 80px; }
.faq-list .faq-topic h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--honey); margin-bottom: var(--space-3); }
.faq-items { border-top: 1px solid var(--line); }
.faq-item, .faq-note { border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 18px 4px; font-weight: 600; font-size: 17px; line-height: 25px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--honey-bright); }
.faq-item .chev { flex: none; color: var(--ink-muted); transition: transform .25s ease; }
.faq-item[open] .chev { transform: rotate(180deg); color: var(--honey); }
.faq-answer { padding: 0 4px 20px; color: var(--ink); max-width: 720px; }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-item[open] .faq-answer { animation: faqIn .25s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-note p { margin: 0; padding: 16px 4px; color: var(--ink-muted); }
.faq-link { font-size: 13px; margin-top: var(--space-3); }
.faq-link a { color: var(--ink-muted); }
.faq-empty { color: var(--ink-muted); padding-top: var(--space-10); }
mark { background: rgba(255, 183, 27, .28); color: inherit; border-radius: 3px; padding: 0 2px; }
@media (prefers-reduced-motion: reduce) { .faq-item .chev { transition: none; } .faq-item[open] .faq-answer { animation: none; } }
@media (max-width: 720px) {
  .faq-pills { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--space-4)); margin-right: calc(-1 * var(--space-4)); padding: 0 var(--space-4) var(--space-2); scrollbar-width: none; }
  .faq-pills::-webkit-scrollbar { display: none; }
  .faq-pill { flex: none; }
}

/* Home: hero + scroll story in one pinned stage (marketing/kit renders the parts in /media/story).
   Without JS, or with reduced motion, it's a plain static layout: headline, laptop with the bees
   already in the corner, then the five steps as a list. site.js adds .live and drives --p (intro,
   0 to 1: bees fly into the corner) and data-step (1 to 5). Bee and panel positions are in
   screen percentages, taken from the app's real sizes on a 16-inch screen (1728 x 1117 pt). */
.story2 { --lw: min(92vw, 1180px); --lh: calc(var(--lw) * 0.679); position: relative; padding: var(--space-16) 0 var(--space-10);
  background: radial-gradient(60% 40% at 50% 8%, rgba(255, 183, 27, .10), transparent 70%); }
.story2-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero2-copy { text-align: center; max-width: 900px; padding: 0 var(--space-4); margin: 0 auto var(--space-10); }
.hero2-copy h1 { font-size: clamp(36px, min(5.6vw, 8.4vh), 72px); letter-spacing: -0.03em; line-height: 1.04; margin-bottom: var(--space-4); }
.hero2-sub { color: var(--ink-muted); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; max-width: 560px; margin: 0 auto var(--space-6); }
.btn-big { font-size: 17px; padding: 14px 30px; }
.hero2-note { color: var(--ink-muted); font-size: 13px; margin: var(--space-3) 0 0; letter-spacing: .01em; }
.mac { position: relative; width: var(--lw); flex: none; }
.mac-lid { position: relative; aspect-ratio: 1772 / 1167; border-radius: calc(var(--lw) * .026) calc(var(--lw) * .026) calc(var(--lw) * .011) calc(var(--lw) * .011);
  background: #0a0a0b; box-shadow: inset 0 0 0 1.5px #2e2e33, inset 0 0 0 4px #060606, 0 30px 90px rgba(0, 0, 0, .7); }
.mac-screen { position: absolute; left: 1.24%; right: 1.24%; top: 1.885%; bottom: 2.4%; overflow: hidden; border-radius: calc(var(--lw) * .012) calc(var(--lw) * .012) 3px 3px; background: #050403; }
.mac-wall img, .mac-wall { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; object-fit: cover; }
.mac-notch { position: absolute; left: 50%; top: 0; width: 11.3%; height: 3%; transform: translateX(-50%); background: #000; border-radius: 0 0 calc(var(--lw) * .009) calc(var(--lw) * .009); }
.mac-base { width: 104.2%; margin-left: -2.1%; aspect-ratio: 1846 / 36; border-radius: 2px 2px 40% 40% / 2px 2px 100% 100%;
  background: linear-gradient(#34343a, #1b1b1e 30%, #0d0d0f 85%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); position: relative; }
.mac-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 30%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #0c0c0e; }
/* Bees and panel sit over the screen box (not clipped, so they can float above it in the intro). */
.wbees { position: absolute; z-index: 3; left: 1.24%; top: calc(var(--lw) * .0124); width: 97.52%; aspect-ratio: 1728 / 1117; pointer-events: none; }
.wbee { position: absolute; width: 3.27%; aspect-ratio: 56.5 / 64; container-type: inline-size;
  left: calc(var(--sx) + (var(--ex) - var(--sx)) * var(--p, 1)); top: calc(var(--sy) + (var(--ey) - var(--sy)) * var(--p, 1));
  transform: scale(calc(var(--s0) + (1 - var(--s0)) * var(--p, 1))); }
.wbee .shape { position: absolute; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; }
.wbee .shape img { display: block; width: 100%; height: auto; }
.wbee .hexagon { width: 100%; opacity: 1; } .wbee .circle { width: 106.2%; } .wbee .square, .wbee .rounded { width: 91%; }
/* Final positions: a three-bee hive at x 34 pt, y 948 pt (bottom left), as the app places it. */
.wbee.b1 { --ex: 1.74%; --ey: 84.51%; --sx: 62%; --sy: -11%; --s0: 1.9; z-index: 1; }
.wbee.b2 { --ex: 4.72%; --ey: 84.51%; --sx: 70%; --sy: -17%; --s0: 2.2; z-index: 1; }
.wbee.b3 { --ex: 3.23%; --ey: 88.50%; --sx: 77%; --sy: -9%; --s0: 2.0; z-index: 2; }
.wpill { position: absolute; left: 50%; translate: -50% 0; top: 16cqw; height: 28.6cqw; min-width: 28.6cqw; padding: 0 9cqw; border-radius: 99px;
  background: #25d366; color: #0b141a; font: 700 15.6cqw/28.6cqw var(--font-sans); text-align: center; white-space: nowrap; box-shadow: 0 0 2px rgba(0, 0, 0, .35); }
.wcount { opacity: 0; transition: opacity .3s; }
.wpanel { position: absolute; left: 1.39%; top: 34.02%; width: 21.99%; opacity: 0; transform: scale(.4); transform-origin: 9% 103%;
  transition: opacity .35s ease, transform .4s cubic-bezier(.2, .9, .3, 1.1); }
.wpanel picture, .wpanel img { display: block; width: 100%; height: auto; max-width: none; }
.wpanel .pb, .wpanel .pc { position: absolute; inset: 0; opacity: 0; }
.wcursor { display: none; }
.story2-captions { list-style: none; margin: var(--space-10) auto 0; padding: 0 var(--space-4); max-width: var(--max); display: grid; gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.story2-captions h2 { font-size: 22px; margin-bottom: var(--space-2); }
.story2-captions p { color: var(--ink-muted); margin: 0; }
.steps { display: flex; gap: 5px; margin-bottom: var(--space-3); }
.steps i { width: 9px; height: 10px; background: rgba(255, 183, 27, .22); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.steps i.on { background: var(--honey); }

/* Live (pinned, scroll-driven) version. */
.story2.live { height: 560vh; padding: 0; }
.story2.live .story2-stage { position: sticky; top: 64px; height: calc(100vh - 64px); overflow: hidden; display: block;
  --H: calc(100vh - 64px); --mac-final: calc((var(--H) - var(--lh)) / 2); --mac-intro: calc(var(--H) * .70);
  --mac-top: calc(var(--mac-final) + (var(--mac-intro) - var(--mac-final)) * (1 - var(--p, 0))); }
.story2.live { --lw: min(92vw, calc((100vh - 64px - 36px) / .679), 1500px); }
.story2.live .hero2-copy { position: absolute; left: 0; right: 0; top: 6%; margin: 0 auto; opacity: calc(1 - var(--p, 0) * 1.8); transform: translateY(calc(var(--p, 0) * -70px)); }
.story2.live .mac { position: absolute; left: calc(50% - var(--lw) / 2); top: var(--mac-top); }
.story2.live .wbee { translate: 0 calc((1 - var(--p, 0)) * var(--bob, 0px)); animation: wbob 4.2s ease-in-out infinite; }
.story2.live .wbee.b2 { animation-delay: -1.4s; } .story2.live .wbee.b3 { animation-delay: -2.6s; }
@keyframes wbob { 0%, 100% { --bob: 0px; } 50% { --bob: -9px; } }
@property --bob { syntax: "<length>"; inherits: false; initial-value: 0px; }
.story2.live .story2-captions { position: absolute; margin: 0; padding: 0; display: block; max-width: none;
  left: calc(50% - var(--lw) / 2 + var(--lw) * .56); top: calc(var(--mac-final) + var(--lh) * .36); width: calc(var(--lw) * .36); }
.story2.live .story2-captions li { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.story2.live .story2-captions h2 { font-size: clamp(26px, calc(var(--lw) * .038), 52px); letter-spacing: -0.025em; }
.story2.live .story2-captions p { font-size: clamp(15px, calc(var(--lw) * .0155), 21px); line-height: 1.45; }
.story2.live .story2-stage[data-step="1"] [data-cap="1"], .story2.live .story2-stage[data-step="2"] [data-cap="2"], .story2.live .story2-stage[data-step="3"] [data-cap="3"],
.story2.live .story2-stage[data-step="4"] [data-cap="4"], .story2.live .story2-stage[data-step="5"] [data-cap="5"] { opacity: 1; transform: none; }
/* Step 2: the WhatsApp bee wiggles and glows, with 1 new message. */
.story2-stage[data-step="2"] .b3 .wcount, .story2-stage[data-step="3"] .b3 .wcount { opacity: 1; }
.story2-stage[data-step="2"] .b3 .shape { filter: drop-shadow(0 0 2px #2be36c) drop-shadow(0 0 7px rgba(43, 227, 108, .8)); }
.story2-stage[data-step="2"] .b3 { animation: wwig 2.4s ease-in-out infinite; }
@keyframes wwig { 0%, 60%, 100% { rotate: 0deg; } 4% { rotate: 14deg; } 10% { rotate: -12deg; } 16% { rotate: 10deg; } 22% { rotate: -8deg; } 27% { rotate: 0deg; }
  36% { rotate: 10deg; } 42% { rotate: -8deg; } 47% { rotate: 5deg; } 52% { rotate: 0deg; } }
/* Step 3: the small panel opens above the hive; a reply is typed, then sent. */
.story2-stage[data-step="3"] .wpanel { opacity: 1; transform: none; }
.story2-stage[data-step="3"] .b3 .wcount { opacity: 0; transition-delay: .2s; }
.story2-stage[data-step="3"] .wpanel .pb { animation: pshow 4.4s 1.1s both; }
.story2-stage[data-step="3"] .wpanel .pc { animation: pshow2 4.4s 2.6s both; }
@keyframes pshow { 0% { opacity: 0; } 8%, 100% { opacity: 1; } }
@keyframes pshow2 { 0% { opacity: 0; } 8%, 100% { opacity: 1; } }
/* Step 5: the same bees cycle through the four shapes. */
.story2-stage[data-step="5"] .wbee .shape { animation: shape4 6s step-end infinite; }
.story2-stage[data-step="5"] .wbee .hexagon { animation-delay: 0s; } .story2-stage[data-step="5"] .wbee .circle { animation-delay: -4.5s; }
.story2-stage[data-step="5"] .wbee .square { animation-delay: -3s; } .story2-stage[data-step="5"] .wbee .rounded { animation-delay: -1.5s; }
@keyframes shape4 { 0% { opacity: 1; } 25%, 100% { opacity: 0; } }
.story2-stage[data-step="5"] .wbee .square, .story2-stage[data-step="5"] .wbee .rounded { rotate: -3deg; }
.story2-stage[data-step="5"] .wbee.b2 .square, .story2-stage[data-step="5"] .wbee.b2 .rounded { rotate: 3deg; }
.story2-stage[data-step="5"] .wpill { transition: none; }
@media (max-width: 720px) {
  .story2.live { --lw: calc(100vw - 24px); height: 520vh; }
  .story2.live .story2-stage { --mac-final: 22px; --mac-intro: calc(var(--H) * .70); }
  .story2.live .hero2-copy { top: 5%; }
  /* Phones: bees and the panel at about twice real scale, so they read on a small laptop. */
  .wbee { width: 6.54%; }
  .wbee.b1 { --ex: 1.74%; --ey: 77%; } .wbee.b2 { --ex: 7.7%; --ey: 77%; } .wbee.b3 { --ex: 4.72%; --ey: 85%; }
  .wpanel { width: 30%; top: 8%; }
  .story2.live .wbee { --s0: 1.9; }
  .story2.live .wbee.b1 { --sx: 54%; --sy: -26%; } .story2.live .wbee.b2 { --sx: 68%; --sy: -36%; } .story2.live .wbee.b3 { --sx: 80%; --sy: -22%; }
  .story2.live .story2-captions { left: 16px; right: 16px; width: auto; top: calc(var(--mac-final) + var(--lh) + 28px); }
  .story2.live .story2-captions h2 { font-size: 26px; }
  .story2.live .story2-captions p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .story2 .wbee, .story2 .wpanel, .story2 .shape { animation: none !important; transition: none !important; } }
