.voice-control {
  padding-block: clamp(46px, 5vw, 76px);
  background: #171714;
  color: #f7f1e7;
}
.voice-control__layout {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 2.35fr);
  align-items: center;
  gap: clamp(24px, 4vw, 62px);
}
.voice-control .section-kicker { margin: 0 0 13px; color: #dfc298; }
.voice-control h2 { margin: 0; font-size: clamp(2.15rem, 3.5vw, 3.7rem); font-weight: 580; line-height: 1.045; letter-spacing: -.05em; }
.voice-control__description { max-width: 33ch; margin: 15px 0 23px; color: #d4cab9; line-height: 1.6; font-size: .94rem; }
.voice-control__points { margin: 0; padding: 0; list-style: none; }
.voice-control__points li {
  padding: 9px 0;
  border-top: 1px solid #c4a98436;
  font-size: .81rem;
}
.voice-control__demo { min-width: 0; overflow: hidden; border: 1px solid #705e49; border-radius: 11px; background: #242019; }
.voice-control__room { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1672 / 941; background: #3b2c1f; }
.voice-control__room > img { display: block; width: 100%; height: auto; }
.voice-control__dim,
.voice-control__devices { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.voice-control__dim { opacity: 0; transition: opacity 1.35s ease; }
.voice-control__room.lights-dimmed .voice-control__dim { opacity: 1; }
.voice-control__drape { transform-box: view-box; transform: scaleX(.14); filter: brightness(.89); transition: transform 1.24s cubic-bezier(.52,.12,.27,1), filter .75s ease; }
.voice-control__drape--left { transform-origin: 714px 0; }
.voice-control__drape--right { transform-origin: 1230px 0; }
.voice-control__room.curtains-closed .voice-control__drape { transform: scaleX(1.005); }
.voice-control__room.lights-dimmed .voice-control__drape { filter: brightness(.54) saturate(.76); }
.voice-control__room.fan-on .voice-control__fan { animation: room-fan-turn 1.03s linear infinite; }
.voice-control__climate { opacity: 0; transition: opacity .45s ease; }
.voice-control__room.ac-on .voice-control__climate { opacity: 1; }
.voice-control__room.ac-on .voice-control__air { animation: voice-control-breeze 2.8s ease-in-out infinite; }
@keyframes voice-control-breeze { 0%,100% { opacity: .24; } 49% { opacity: .78; transform: translateY(6px); } }
.voice-control__alexa-ring { opacity: 0; filter: drop-shadow(0 0 6px #36b8ff); transition: opacity .2s ease; }
.voice-control[data-replying="true"] .voice-control__alexa-ring { opacity: 1; animation: voice-control-ring 1s ease-in-out infinite alternate; }
@keyframes voice-control-ring { to { opacity: .64; } }
.voice-control__bubble,
.voice-control__result, .voice-control__pause {
  position: absolute;
  z-index: 2;
  border: 1px solid #f8e5c060;
  border-radius: 8px;
  background: #171410df;
  box-shadow: 0 4px 11px #0004;
}
.voice-control__bubble {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 37%;
  padding: clamp(4px, .8vw, 11px);
  font-size: clamp(.66rem, 1.24vw, 1rem);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .24s ease, transform .24s ease;
  pointer-events: none;
}
.voice-control__bubble--person { top: 39%; left: 28.5%; color: #fff; }
.voice-control__bubble--alexa { bottom: 28.1%; left: 53.8%; border-color: #91ddeb82; color: #b9f0ff; }
.voice-control__bubble--alexa::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 24%;
  width: 8px;
  height: 8px;
  border-right: 1px solid #91ddeb82;
  border-bottom: 1px solid #91ddeb82;
  background: #171410;
  transform: rotate(45deg);
}
.voice-control[data-speaking="true"] .voice-control__bubble--person,
.voice-control[data-replying="true"] .voice-control__bubble--alexa {
  opacity: 1;
  transform: translateY(0);
}
.voice-control__wave { display: flex; align-items: center; flex: 0 0 12px; gap: 2px; height: 12px; }
.voice-control__wave i { width: 2px; height: 8px; transform: scaleY(.4); background: currentColor; border-radius: 5px; }
.voice-control[data-typing="true"] .voice-control__wave--person i,
.voice-control[data-replying="true"] .voice-control__bubble--alexa i { animation: voice-control-pulse .42s ease infinite alternate; }
.voice-control__wave i:nth-child(2) { animation-delay: -.2s !important; }
@keyframes voice-control-pulse { to { transform: scaleY(1.3); } }
.voice-control__result {
  right: 2%;
  bottom: 3%;
  padding: 5px 9px;
  color: #ffeac6;
  font-size: clamp(.58rem, 1vw, .8rem);
}
.voice-control__result:empty { display: none; }
.voice-control__pause { top: 3%; left: 2%; display: grid; width: clamp(32px, 3vw, 40px); aspect-ratio: 1; place-items: center; padding: 0; color: inherit; cursor: pointer; }
.voice-control__pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.voice-control__pause-icon,
.voice-control[data-playing="true"] .voice-control__play-icon { display: none; }
.voice-control[data-playing="true"] .voice-control__pause-icon { display: block; }
.voice-control__pause:hover { background: #49392a; }
.voice-control__pause:focus-visible { outline: 2px solid #f1d39e; outline-offset: 3px; }
.voice-control[data-playing="false"] :is(.voice-control__wave i, .voice-control__fan, .voice-control__air, .voice-control__alexa-ring) { animation-play-state: paused; }
@media (max-width: 800px) {
  .voice-control__layout { grid-template-columns: 1fr; gap: 22px; }
  .voice-control__description { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .voice-control *, .voice-control *::before, .voice-control *::after { animation: none !important; transition: none !important; }
  .voice-control__room.fan-on .voice-control__fan { transform: rotate(35deg); }
}
