/* option 02, the handoff. Split hero: copy left, a relay stage right where one conversation passes
   between the five agents and ends in the owner's line. The CSS default is the composed final state
   (what reduced motion shows); hero.js arms the start state and plays the relay over it. */
.hero-handoff .ho{min-height:calc(var(--hero-vh) - var(--nav-h));display:flex;align-items:center;padding-block:clamp(20px,3.5vh,44px)}
.hero-handoff .ho-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(40px,5vw,96px);align-items:center;width:100%}

/* copy */
.hero-handoff .ho-eyebrow{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);margin-bottom:24px}
.hero-handoff .ho-h1{font-size:clamp(40px,4.7vw,72px);max-width:13ch;text-wrap:balance;margin-bottom:24px}
.hero-handoff .ho-lead{max-width:40ch;margin-bottom:32px}
.hero-handoff .ho-ctas{display:flex;gap:10px;flex-wrap:wrap}
.hero-handoff .ho-now{display:flex;align-items:center;justify-content:center;gap:10px;margin:18px 0 0;font-size:12px;color:var(--text-2)}
.hero-handoff .ho-now-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--accent-tint);flex:none}
.hero-handoff .ho-now-list{display:grid}
.hero-handoff .ho-now-s{grid-area:1/1;white-space:nowrap;opacity:0;visibility:hidden}
.hero-handoff .ho-now-s:last-child{opacity:1;visibility:visible}
.hero-handoff .ho-lead .line{will-change:transform}

/* stage */
.hero-handoff .ho-stage{position:relative;margin:0;border-radius:var(--r-tile);background:var(--bg-2);overflow:hidden;isolation:isolate;display:flex;flex-direction:column;padding:18px 20px 20px}
.hero-handoff .ho-glow{position:absolute;left:0;top:0;width:560px;height:560px;margin:-280px 0 0 -280px;border-radius:50%;background:radial-gradient(closest-side,rgba(36,87,255,.2),rgba(127,176,255,.1) 55%,rgba(127,176,255,0));pointer-events:none;z-index:0;transform:translate(560px,640px)}
.hero-handoff .ho-head{position:relative;z-index:1;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-2);padding:0 4px 14px}
.hero-handoff .ho-live{width:8px;height:8px;border-radius:50%;background:#1DBF73;box-shadow:0 0 0 3px rgba(29,191,115,.18);flex:none}
.hero-handoff .ho-time{margin-left:auto;font-size:12px;color:var(--text-3)}

/* the conversation */
.hero-handoff .ho-card{position:relative;z-index:1;flex:none;overflow:hidden;border-radius:20px;background:var(--glass);-webkit-backdrop-filter:blur(var(--glass-blur)) saturate(var(--glass-sat));backdrop-filter:blur(var(--glass-blur)) saturate(var(--glass-sat));border:1px solid var(--glass-edge);box-shadow:var(--glass-lift-sm)}
.hero-handoff .ho-log{height:100%;box-sizing:border-box;padding:4px 16px 16px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}
/* the composed state keeps the last three turns; hero.js lifts this and trims turn by turn */
.hero-handoff .ho-item:nth-last-child(n+4){display:none}
.hero-handoff .ho-stage.is-live .ho-item:nth-last-child(n+4){display:block}
.hero-handoff .ho-item{flex:none;overflow:hidden}
.hero-handoff .ho-in{padding-top:12px;display:flex;flex-direction:column}
.hero-handoff .ho-item.is-in .ho-in{align-items:flex-start}
.hero-handoff .ho-item.is-out .ho-in,.hero-handoff .ho-item.is-rec .ho-in,.hero-handoff .ho-item.is-book .ho-in{align-items:flex-end}
.hero-handoff .ho-who{font-size:11px;color:var(--text-3);margin:0 6px 5px;display:inline-flex;align-items:center;gap:6px}
.hero-handoff .ho-who::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--accent)}
.hero-handoff .ho-bub{max-width:84%;padding:10px 14px;border-radius:16px;font-size:15px;line-height:1.35}
.hero-handoff .is-in .ho-bub{background:#fff;border:1px solid var(--line);border-bottom-left-radius:6px}
.hero-handoff .is-out .ho-bub{background:var(--ink);color:#fff;border-bottom-right-radius:6px}
.hero-handoff .ho-slots{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap;justify-content:flex-end}
.hero-handoff .ho-slot{display:inline-flex;align-items:center;height:28px;padding:0 11px;border-radius:var(--r-pill);border:1px solid var(--line);background:#fff;font-size:12px;color:var(--text-2)}
.hero-handoff .ho-slot.is-pick{background:var(--ink);border-color:var(--ink);color:#fff}
.hero-handoff .ho-rec{width:min(300px,86%);background:#fff;border:1px solid var(--line);border-radius:14px;padding:6px 14px 2px;border-bottom-right-radius:6px}
.hero-handoff .ho-rec-row{display:flex;justify-content:space-between;gap:14px;font-size:13px;line-height:1.3;margin:0;padding:4px 0;border-top:1px solid var(--line)}
.hero-handoff .ho-rec-row:first-child{border-top:0}
.hero-handoff .ho-rec-row span{color:var(--text-3)}
.hero-handoff .ho-rec-row b{font-weight:500;text-align:right;white-space:nowrap}
.hero-handoff .ho-booked{font-size:13px;color:#0B7A4B;background:#E6F7EF;border-radius:var(--r-pill);padding:4px 11px}

/* the relay: five agents, the route between them */
.hero-handoff .ho-relay{position:relative;z-index:1;padding:54px 0 18px}
.hero-handoff .ho-agents{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.hero-handoff .ho-agent{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.hero-handoff .ho-tok{position:relative;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--line);color:var(--text-3);transition:background .4s var(--ease),color .4s var(--ease),border-color .4s var(--ease)}
.hero-handoff .ho-tok svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hero-handoff .ho-ring{position:absolute;inset:-1px;border-radius:50%;border:1.5px solid var(--accent);opacity:0;pointer-events:none}
.hero-handoff .ho-name{font-size:12px;color:var(--text-3);white-space:nowrap;transition:color .4s var(--ease)}
.hero-handoff .ho-agent[data-state="done"] .ho-tok{color:var(--ink);border-color:rgba(13,13,13,.22)}
.hero-handoff .ho-agent[data-state="done"] .ho-name{color:var(--text-2)}
.hero-handoff .ho-agent[data-state="on"] .ho-tok{background:var(--ink);border-color:var(--ink);color:#fff}
.hero-handoff .ho-agent[data-state="on"] .ho-name{color:var(--ink)}

/* the owner's line */
.hero-handoff .ho-line{position:relative;z-index:1;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:12px;min-height:70px;padding:12px 16px 12px 18px;border-radius:18px;background:var(--ink);color:#fff;box-shadow:0 18px 40px -22px rgba(36,87,255,.7)}
.hero-handoff .ho-line-shader{position:absolute;inset:0;z-index:-2;opacity:1}
.hero-handoff .ho-line::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,10,24,.72),rgba(8,10,24,.34) 70%,rgba(8,10,24,.2))}
.hero-handoff .ho-line-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.hero-handoff .ho-line-k{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.66)}
.hero-handoff .ho-line-st{display:grid;font-size:15px;line-height:1.3}
.hero-handoff .ho-st{grid-area:1/1}
.hero-handoff .ho-st-a{opacity:0;visibility:hidden;color:rgba(255,255,255,.72)}
.hero-handoff .ho-take{background:#fff;color:var(--ink);flex:none}
.hero-handoff .ho-bell{flex:none;width:auto;height:24px;color:#fff;overflow:visible}

/* the route and the baton */
.hero-handoff .ho-arcs{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none;overflow:visible}
.hero-handoff .ho-route{fill:none;stroke:rgba(13,13,13,.26);stroke-width:1.5;stroke-dasharray:.5 6;stroke-linecap:round}
.hero-handoff .ho-route.is-last{stroke:none}
.hero-handoff .ho-arc{fill:none;stroke:rgba(13,13,13,.3);stroke-width:1.5;stroke-linecap:round}
.hero-handoff .ho-arc.is-last{stroke:var(--accent);stroke-width:1.75}
.hero-handoff .ho-baton{position:absolute;left:0;top:0;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#5B8BFF;box-shadow:0 0 0 3px rgba(91,139,255,.28),0 0 18px 3px rgba(91,139,255,.55);z-index:5;pointer-events:none;will-change:transform}
.hero-handoff .ho-stage:not(.is-placed) .ho-baton{visibility:hidden}

@media (max-width:1100px) and (min-width:901px){
  .hero-handoff .ho-take{display:none}
}
@media (max-width:900px){
  .hero-handoff .ho{align-items:flex-start;padding-block:28px 40px}
  .hero-handoff .ho-grid{grid-template-columns:minmax(0,1fr);gap:36px}
  .hero-handoff .ho-h1{font-size:clamp(40px,11vw,64px)}
  .hero-handoff .ho-eyebrow{margin-bottom:18px}
  .hero-handoff .ho-h1{margin-bottom:18px}
  .hero-handoff .ho-lead{margin-bottom:26px}
  .hero-handoff .ho-stage{padding:14px 12px 12px;border-radius:20px}
}
@media (max-width:520px){
  .hero-handoff .ho-ctas .pill.lg{height:44px;padding:0 18px;font-size:15px}
  .hero-handoff .ho-log{padding:4px 10px 12px}
  .hero-handoff .ho-bub{font-size:14px;max-width:90%}
  .hero-handoff .ho-tok{width:44px;height:44px}
  .hero-handoff .ho-tok svg{width:19px;height:19px}
  .hero-handoff .ho-name{font-size:10px}
  .hero-handoff .ho-relay{padding:44px 0 14px}
  .hero-handoff .ho-now{font-size:11px;margin-top:14px}
  .hero-handoff .ho-line{padding:10px 12px 10px 14px;gap:10px;min-height:64px}
  .hero-handoff .ho-line-st{font-size:14px}
  .hero-handoff .ho-bell{height:20px}
}
@media (prefers-reduced-motion:reduce){
  .hero-handoff .ho-tok,.hero-handoff .ho-name{transition:none}
}
