/* Voice project additions; existing project styles stay untouched. */
.home-intro > h1, .hero-school { text-align: center; }
.hero-school { margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.015em; }
.hero-agent { display: flex; flex-direction: column; align-items: center; margin: 32px 0 0; }
.hero-agent-call { position: relative; display: flex; flex-direction: column; align-items: center; width: 240px; max-width: 100%; padding: 0; border: 0; background: none; font: inherit; color: #173e37; text-decoration: none; border-radius: 8px; }
.hero-agent-circle { display: grid; place-items: center; width: 116px; height: 116px; border: 1px solid #173e37; border-radius: 50%; background: #edf5f1; transition: background .18s ease, transform .18s ease; }
.hero-agent-label { margin-top: 18px; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.04em; }
.hero-agent-soon { display: block; margin-top: 5px; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.hero-agent-call:disabled { color: #858984; cursor: not-allowed; opacity: 1; -webkit-text-fill-color: currentColor; }
.hero-agent-call:disabled .hero-agent-circle { border-color: #c8ccc7; background: #f0f1ed; transform: none; }
.hero-agent-circle > svg { width: 64px; height: 64px; fill: currentColor; }
.hero-agent [hidden] { display: none !important; }
.hero-agent-call { cursor: pointer; }
.hero-agent-call[data-state="active"] .hero-agent-circle { background: #173e37; color: #fff; }
.hero-agent-call[data-state="active"]:hover .hero-agent-circle { background: #24584e; }
.hero-agent-call[data-state="paused"] .hero-agent-circle { background: #e8eee8; }
.hero-agent-call[data-state="connecting"] .hero-agent-circle { border-style: dashed; }
.hero-agent-controls { display: flex; justify-content: center; gap: 18px; margin-top: 10px; }
.hero-agent-controls button { padding: 5px 2px; background: none; border: 0; font: inherit; font-size: 12px; color: #234c43; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.hero-agent-controls button:focus-visible { outline: 3px solid #167a6c; outline-offset: 4px; }
.hero-agent-arrow { position: absolute; top: 48px; right: -16px; width: 80px; height: 104px; overflow: visible; pointer-events: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-agent-call:not(:disabled):not([data-state="active"]):hover .hero-agent-circle { background: #dfede5; transform: translateY(-2px); }
.hero-agent-call:focus-visible, .hero-agent-details:focus-visible { outline: 3px solid #167a6c; outline-offset: 5px; }
.hero-agent > p { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.5; }
.hero-agent-details { margin-top: 8px; text-underline-offset: 4px; font-size: 12px; color: #234c43; }
/* The parent document owns the call while project pages occupy the frame. */
body.voice-project-view { overflow: hidden; }
.voice-project-view > .site-shell { display: none !important; }
#voice-project-frame { position: fixed; inset: 72px 0 0; width: 100%; height: calc(100vh - 72px); height: calc(100dvh - 72px); border: 0; background: #f5f6f4; z-index: 1000; }
#voice-project-frame[hidden] { display: none; }
.hero-agent.hero-agent--compact { position: fixed; top: 12px; left: max(14px, env(safe-area-inset-left)); z-index: 1001; margin: 0; align-items: flex-start; }
.hero-agent--compact .hero-agent-call { width: 48px; height: 48px; }
.hero-agent--compact .hero-agent-circle { width: 48px; height: 48px; box-shadow: 0 3px 12px #173e371a; }
.hero-agent--compact .hero-agent-circle > svg { width: 24px; height: 24px; }
.hero-agent--compact .hero-agent-arrow, .hero-agent--compact .hero-agent-details { display: none; }
.hero-agent--compact .hero-agent-label, .hero-agent--compact > p { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-agent--compact .hero-agent-controls { position: absolute; top: 10px; left: 64px; margin: 0; white-space: nowrap; gap: 16px; }
@media (max-width: 600px) {
  .hero-school { max-width: 310px; margin: 20px auto 0; font-size: 15px; text-wrap: balance; }
  .hero-agent-call { width: 228px; }
  .hero-agent-circle { width: 104px; height: 104px; }
  .hero-agent-label { margin-top: 16px; font-size: 23px; }
  .hero-agent-circle > svg { width: 58px; height: 58px; }
  .hero-agent-arrow { top: 40px; right: -12px; width: 72px; height: 94px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-agent-circle { transition: none; }
  .hero-agent-call:hover .hero-agent-circle { transform: none; }
}
