/* AI Voice Receptionist (/ai-voice-receptionist/): the page's own layout for its framed header, its scenes and its
   demo lines; every shared look is in components.css (the inner pages' shared forms). */

/* the header: the footage in its rounded frame, the words on its calm right, the call card low on the left, under
   the electrician's work and clear of his face */
.voice-head .vhero__grade { background:
  linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 90%, transparent) 0%, color-mix(in srgb, var(--c-ink) 66%, transparent) 40%, color-mix(in srgb, var(--c-ink) 10%, transparent) 72%),
  linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 55%, transparent) 0%, transparent 38%); }
.voice__call { container-type: normal; }
@media (min-width: 901px) {
  .voice-head .vhero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); align-items: stretch; padding-bottom: 28px; }
  .voice-head .vhero__copy { grid-column: 2; grid-row: 1; align-self: center; }
  .voice-head .voice__call { grid-column: 1; grid-row: 1; align-self: end; }
}
/* on the phone: the words on the ink, then the footage with his face in its free top, the call card lying over its
   lower part (more than half of the card on it), the stop icon on the footage's corner */
@media (max-width: 900px) {
  .voice-head .vhero__box { display: flex; flex-direction: column; }
  .voice-head .vhero__in { display: contents; }
  .voice-head .vhero__grade { display: none; }
  .voice-head .vhero__copy { order: 1; position: relative; z-index: 4; padding: clamp(40px, 10vw, 64px) var(--gutter) var(--space-5); }
  .voice-head .vhero__stop { order: 2; position: relative; inset: auto; top: 12px; align-self: flex-end; margin: 0 12px -44px 0; }
  .voice-head .vhero__slides { order: 3; position: relative; inset: auto; height: 120vw; }
  .voice-head .vhero__slides::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, var(--c-ink) 0%, transparent 22%, transparent 55%, color-mix(in srgb, var(--c-ink) 70%, transparent) 100%); }
  .voice-head .voice__call { order: 4; position: relative; z-index: 4; margin-top: -210px; padding: 0 var(--gutter) var(--space-5); }
}

/* the night: the sky side by side from 900 px of stage, the cards one above the other under it */
.sig__stage.voice__night .scene { height: 460px; }
@container (width < 900px) { .sig__stage.voice__night .scene { height: 560px; } }

/* the board in glass on the cab's calm left (his face is at 53 to 63 % across, in the top third) */
.voice__board { container-type: inline-size; }
.voice__board .scene { width: 100%; aspect-ratio: 820 / 520; }
@container (width < 600px) { .voice__board .scene { width: min(100%, 400px); aspect-ratio: 360 / 640; } }
@media (max-width: 900px) { .page-voice #notes { --chapter-media-h: 150vw; --chapter-overlap: 360px; } }
@media (min-width: 901px) {
  .page-voice #notes .chapter__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .page-voice #notes .chapter__copy { align-self: end; padding-bottom: clamp(8px, 3vw, 40px); }
}

/* the tools it works with, under the included cards */
.voice__tools { margin: var(--space-4) 0 0; color: var(--c-ink-soft); font-weight: 600; }

/* call a demo agent: the AI voice logo and the words, the five lines beside them */
.voice-demo__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.voice-demo__copy { display: grid; gap: var(--space-4); justify-items: start; }
.voice-demo__copy h2, .voice-demo__copy .lead { margin: 0; }
.voice-demo__logo { display: block; width: min(320px, 80%); }
.voice-demo__logo img { display: block; width: 100%; height: auto; }
.voice-demo__live { margin: 0; }
.voice-demo__link { color: var(--c-on-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.voice-demo__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vdemo { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border-radius: 18px; background: color-mix(in srgb, var(--c-paper) 7%, transparent); border: 1px solid var(--c-line-on-ink); color: var(--c-on-ink); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.vdemo:hover, .vdemo:focus-visible { border-color: var(--c-brand); background: color-mix(in srgb, var(--c-brand) 12%, transparent); }
.vdemo__media { display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; }
.vdemo__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vdemo__txt { display: grid; gap: 4px; }
.vdemo__name { font: 700 1.1rem/1.2 var(--font-ui); }
.vdemo__num { color: var(--c-on-ink-soft); font-variant-numeric: tabular-nums; }
.vdemo__call { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-accent); color: var(--c-ink); }
.vdemo__call svg { width: 20px; height: 20px; }
/* each line's call button breathes, one after another down the list */
.vdemo__call::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--c-accent); opacity: 0; animation: vdemo-ring 5s ease-out infinite; }
.voice-demo__list li:nth-child(2) .vdemo__call::after { animation-delay: 1s; }
.voice-demo__list li:nth-child(3) .vdemo__call::after { animation-delay: 2s; }
.voice-demo__list li:nth-child(4) .vdemo__call::after { animation-delay: 3s; }
.voice-demo__list li:nth-child(5) .vdemo__call::after { animation-delay: 4s; }
@keyframes vdemo-ring { 0% { opacity: 0.8; transform: scale(1); } 24% { opacity: 0; transform: scale(1.35); } 100% { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .vdemo__call::after { animation: none; } }
@media (max-width: 900px) { .voice-demo__in { grid-template-columns: 1fr; } }
