.ai-banner {
  position: relative;
  min-height: 610px;
  padding: 150px 0 62px;
  overflow: hidden;
  background-color: #fdfdfd;
  /* background:
    radial-gradient(circle at 78% 48%, rgba(232,71,72,.065), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #fbfbfb 100%); */
}
.ai-banner__layout {
  min-height: 474px;
  display: grid;
  grid-template-columns: 54% 46%;
  align-items: center;
}
.ai-banner__content { position: relative; z-index: 3; max-width: 680px; padding-right: 34px; }
.ai-banner__eyebrow {
  margin: 0 0 14px;
  color: #e84748;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.2px;
  line-height: 1.4;
}
.ai-banner__title {
  max-width: 650px;
  min-height: 3.36em;
  margin: 0 0 22px;
  color: #2b2a29;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -1.4px;
}
.ai-banner__description {
  max-width: 610px;
  min-height: 7em;
  margin: 0 0 27px;
  color: #626262;
  font-size: 17px;
  line-height: 1.75;
}
.ai-banner__actions { display: flex; align-items: center; gap: 12px; }
.ai-banner__button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid #e84748;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.ai-banner__button--primary { color: #fff; background: #e84748; }
.ai-banner__button--secondary { color: #2b2a29; background: transparent; border-color: #2b2a29; }
.ai-banner__button:hover { transform: translateY(-2px); text-decoration: none; }
.ai-banner__button--primary:hover { color: #fff; background: #c93436; border-color: #c93436; }
.ai-banner__button--secondary:hover { color: #fff; background: #2b2a29; }

.ai-banner__visual {
  position: relative;
  height: 500px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-banner__video {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 13%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 13%, #000 87%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 13%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-composite: intersect;
}
.ai-banner__glow {
  position: absolute;
  width: 390px;
  height: 360px;
  border-radius: 48%;
  background: radial-gradient(ellipse, rgba(232,71,72,.075), rgba(232,71,72,.02) 54%, transparent 75%);
  filter: blur(8px);
}
.ai-story { display: none; }
.ai-story .interior,
.ai-story .outdoor,
.ai-story .desk,
.ai-story .chair,
.ai-story .computer,
.ai-story .team,
.ai-story .workflow-paths,
.ai-story .lead-markers,
.ai-story .growth-sign {
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.22,.75,.22,1);
  transform-box: fill-box;
  transform-origin: center;
}
.ai-story .outdoor,
.ai-story .team,
.ai-story .workflow-paths,
.ai-story .lead-markers,
.ai-story .growth-sign { opacity: 0; }
.ai-story .outdoor { transform: scale(1.035); }
.ai-story .interior { opacity: 1; }
.ai-story .professional {
  transform-box: view-box;
  transform-origin: 340px 448px;
  animation: characterJourney 28s cubic-bezier(.45,0,.55,1) infinite;
  animation-play-state: paused;
}
.ai-story .character-arm,
.ai-story .character-leg { transform-box: view-box; }
.ai-story .character-arm--front {
  transform-origin: 378px 296px;
  animation: characterGesture 2.8s ease-in-out infinite;
}
.ai-story .character-arm--back {
  transform-origin: 300px 296px;
  animation: characterGestureBack 2.8s ease-in-out infinite;
}
.ai-story .character-leg--front {
  transform-origin: 350px 358px;
  animation: characterWalkFront .9s ease-in-out infinite;
}
.ai-story .character-leg--back {
  transform-origin: 320px 358px;
  animation: characterWalkBack .9s ease-in-out infinite;
}
.ai-story .character-head { transform-box: view-box; transform-origin: 340px 250px; animation: characterLook 3.6s ease-in-out infinite; }
.ai-story .computer { transform-origin: 480px 280px; }
.ai-story .screen-custom,
.ai-story .screen-crm,
.ai-story .screen-marketing { transition: opacity .8s ease; }
.ai-story .screen-crm,
.ai-story .screen-marketing { opacity: 0; }
.ai-story .screen-label {
  fill: #464543;
  font-family: Arial, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .8px;
}
.ai-story .team { transform: translateY(12px); }
.ai-story .team-member { transform-box: fill-box; transform-origin: center bottom; animation: teamShift 4.8s ease-in-out infinite; }
.ai-story .team-member--two { animation-delay: -.8s; }
.ai-story .team-member--three { animation-delay: -1.6s; }
.ai-story .workflow-paths path { animation: dashFlow 2.6s linear infinite; }
.ai-story .lead { animation: leadTravel 5.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ai-story .lead--two { animation-delay: -.7s; }
.ai-story .lead--three { animation-delay: -1.4s; }
.ai-story .growth-sign path:first-child {
  stroke-dasharray: 310;
  stroke-dashoffset: 310;
}
.ai-story .screen-custom path,
.ai-story .screen-marketing path { stroke-dasharray: 4 2; animation: screenActivity 3.8s ease-in-out infinite alternate; }

.ai-story[data-scene="1"] .screen-custom { opacity: 1; }
.ai-story[data-scene="1"] .screen-crm,
.ai-story[data-scene="1"] .screen-marketing { opacity: 0; }

.ai-story[data-scene="2"] .screen-custom { opacity: 0; }
.ai-story[data-scene="2"] .screen-crm { opacity: 1; }
.ai-story[data-scene="2"] .computer { transform: scale(1.025); }

.ai-story[data-scene="3"] .screen-custom,
.ai-story[data-scene="3"] .screen-crm { opacity: 0; }
.ai-story[data-scene="3"] .screen-marketing { opacity: 1; }
.ai-story[data-scene="3"] .workflow-paths,
.ai-story[data-scene="3"] .lead-markers { opacity: 1; }
.ai-story[data-scene="3"] .lead-markers { transform: translateX(0); }
.ai-story[data-scene="3"] .computer { transform: scale(1.015); }

.ai-story[data-scene="4"] .interior,
.ai-story[data-scene="4"] .desk,
.ai-story[data-scene="4"] .chair,
.ai-story[data-scene="4"] .computer,
.ai-story[data-scene="4"] .screen-custom,
.ai-story[data-scene="4"] .screen-crm,
.ai-story[data-scene="4"] .screen-marketing { opacity: 0; }
.ai-story[data-scene="4"] .outdoor { opacity: 1; transform: scale(1); }
.ai-story[data-scene="4"] .team { opacity: 1; transform: translateY(0); }
.ai-story[data-scene="4"] .workflow-paths { opacity: .62; }
.ai-story[data-scene="4"] .lead-markers { opacity: .45; transform: translateX(18px); }
.ai-story[data-scene="4"] .growth-sign { opacity: 1; }
.ai-story[data-scene="4"] .growth-sign path:first-child { animation: revealGrowth 1.8s ease-out forwards; }

.ai-banner__text-enter { animation: bannerTextEnter .5s cubic-bezier(.22,1,.36,1) both; }
.ai-banner__title.ai-banner__text-enter { animation-delay: .06s; }
.ai-banner__description.ai-banner__text-enter { animation-delay: .12s; }
.ai-banner__actions.ai-banner__text-enter { animation-delay: .18s; }
.ai-banner__outgoing {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: auto;
  max-width: 680px;
  pointer-events: none;
  animation: bannerContentExit .28s cubic-bezier(.22,1,.36,1) both;
}

.ai-banner__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(43,42,41,.16);
  border-radius: 50%;
  color: #2b2a29;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(43,42,41,.08);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.ai-banner__arrow--prev { left: 18px; }
.ai-banner__arrow--next { right: 18px; }
.ai-banner__arrow:hover { color: #fff; background: #e84748; border-color: #e84748; transform: translateY(-50%) scale(1.05); }
.ai-banner__arrow:focus-visible,
.ai-banner__dots button:focus-visible,
.ai-banner__button:focus-visible { outline: 3px solid rgba(232,71,72,.28); outline-offset: 3px; }
.ai-banner__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.ai-banner__dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(43,42,41,.22);
  cursor: pointer;
  transition: width .3s cubic-bezier(.22,1,.36,1), background .3s ease;
}
.ai-banner__dots button.is-active { width: 40px; background: rgba(232,71,72,.88); }

@keyframes characterJourney {
  0%, 15% { transform: translate(0,0) scale(.82); }
  22% { transform: translate(25px,-2px) scale(1); }
  29% { transform: translate(48px,0) scale(1); }
  42% { transform: translate(48px,0) scale(1); }
  50% { transform: translate(12px,0) scale(1); }
  57% { transform: translate(0,0) scale(1); }
  69% { transform: translate(0,0) scale(1); }
  78% { transform: translate(78px,-2px) scale(1); }
  84% { transform: translate(98px,0) scale(1); }
  91% { transform: translate(62px,0) scale(.82); }
  100% { transform: translate(0,0) scale(.82); }
}
@keyframes characterWalkFront { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-18deg); } }
@keyframes characterWalkBack { 0%,100% { transform: rotate(0); } 50% { transform: rotate(18deg); } }
@keyframes characterGesture { 0%,35%,100% { transform: rotate(0); } 52%,72% { transform: rotate(-12deg); } }
@keyframes characterGestureBack { 0%,35%,100% { transform: rotate(0); } 52%,72% { transform: rotate(10deg); } }
@keyframes characterLook { 0%,35%,100% { transform: rotate(0); } 50%,70% { transform: rotate(3deg); } }
@keyframes teamShift { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-2px) } }
@keyframes dashFlow { to { stroke-dashoffset: -28 } }
@keyframes leadTravel { 0%,100% { opacity: .78; transform: translate(0,0) scale(.96) } 50% { opacity: 1; transform: translate(11px,3px) scale(1.04) } }
@keyframes screenActivity { from { stroke-dashoffset: 0; opacity: .7 } to { stroke-dashoffset: 12; opacity: 1 } }
@keyframes revealGrowth { to { stroke-dashoffset: 0 } }
@keyframes bannerTextEnter { from { opacity:0; transform:translateY(12px) } to { opacity:1; transform:translateY(0) } }
@keyframes bannerContentExit { to { opacity:0; transform:translateY(-8px) } }
@keyframes bannerTextFadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes bannerContentFadeOut { from { opacity:1 } to { opacity:0 } }

@media (max-width: 1199px) {
  .ai-banner { min-height: 570px; }
  .ai-banner__layout { min-height: 460px; grid-template-columns: 52% 48%; }
  .ai-banner__title { font-size: 40px; }
  .ai-banner__description { font-size: 16px; min-height: 7em; }
  .ai-banner__visual { height: 460px; }
  .ai-banner__arrow--prev { left: 8px; }
  .ai-banner__arrow--next { right: 8px; }
}
@media (max-width: 991px) {
  .ai-banner { min-height: 760px; padding-top: 52px; }
  .ai-banner__layout { grid-template-columns: 58% 42%; min-height: 650px; }
  .ai-banner__title { min-height: 2.3em; margin-bottom: 12px; font-size: 36px; }
  .ai-banner__description { min-height: 130px; }
  .ai-banner__visual { height: 390px; margin-right: -20px; }
  .ai-banner__actions { align-items: stretch; flex-direction: column; max-width: 260px; }
  .ai-banner__arrow { top: 62%; }
}
@media (max-width: 767px) {
  .ai-banner {
    --ai-banner-mobile-top-padding: 96px;
    --ai-banner-mobile-visual-height: 300px;
    min-height: 700px;
    padding: var(--ai-banner-mobile-top-padding) 0 52px;
  }
  .ai-banner__layout { display: flex; flex-direction: column; min-height: 610px; }
  .ai-banner__content { width: 100%; max-width: none; padding: 25px 8px 0; text-align: left; }
  .ai-banner__eyebrow { margin-bottom: 10px; font-size: 11px; letter-spacing: 1.6px; }
  .ai-banner__title { max-width: 540px; min-height: 2.3em; margin-bottom: 10px; font-size: 30px; line-height: 1.15; letter-spacing: -.7px; }
  .ai-banner__description { max-width: 540px; min-height: 132px; margin-bottom: 18px; font-size: 15px; line-height: 1.55; }
  .ai-banner__actions { max-width: none; flex-direction: row; }
  .ai-banner__button { min-width: 0; min-height: 46px; padding: 10px 6px; font-size: 11px; white-space: nowrap; }
  .ai-banner__visual { order: -1; width: 100%; height: 300px; margin: 2px 0 0; }
  .ai-banner__glow { width: 220px; height: 220px; }
  .ai-banner__arrow {
    top: calc(var(--ai-banner-mobile-top-padding) + 2px + var(--ai-banner-mobile-visual-height) - 62px);
    bottom: auto;
    width: 38px;
    height: 38px;
    transform: none;
  }
  .ai-banner__arrow--prev { left: calc(50% - 82px); }
  .ai-banner__arrow--next { right: calc(50% - 82px); }
  .ai-banner__arrow:hover { transform: scale(1.05); }
  .ai-banner__dots {
    top: calc(var(--ai-banner-mobile-top-padding) + 2px + var(--ai-banner-mobile-visual-height) - 4px);
    bottom: auto;
  }
  .ai-banner__dots button { width: 20px; }
  .ai-banner__dots button.is-active { width: 32px; }
}
@media (max-width: 420px) {
  .ai-banner { --ai-banner-mobile-visual-height: 280px; }
  .ai-banner { min-height: 720px; }
  .ai-banner__layout { min-height: 630px; }
  .ai-banner__title { font-size: 27px; }
  .ai-banner__description { min-height: 150px; }
  .ai-banner__actions { gap: 8px; }
  .ai-banner__button { flex: 1; text-align: center; }
  .ai-banner__visual { height: 280px; }
}
@media (max-width: 359px) {
  .ai-banner__button { padding-right: 4px; padding-left: 4px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-banner *, .ai-banner *::before, .ai-banner *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ai-story .growth-sign path:first-child { stroke-dashoffset: 0 !important; }
  .ai-story .professional,
  .ai-story .team-member,
  .ai-story .lead,
  .ai-story .character-arm,
  .ai-story .character-leg,
  .ai-story .character-head,
  .ai-story .screen-custom path,
  .ai-story .screen-marketing path,
  .ai-story .workflow-paths path { animation: none !important; }
  .ai-banner__text-enter { animation: bannerTextFadeIn .2s ease-out both !important; }
  .ai-banner__outgoing { animation: bannerContentFadeOut .15s ease-out both !important; }
}
