.ai-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b1127;
  color: #fff;
}
.ai-hero-art, .ai-hero::after { position: absolute; inset: 0; z-index: -1; }
.ai-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.ai-hero::after {
  --ai-light: 90deg;
  content: "";
  background: linear-gradient(var(--ai-light), #080d20 4%, #0a0f23e8 33%, #0b10234d 79%), linear-gradient(0deg, #0b1127b8, transparent 65%);
}
[dir="rtl"] .ai-hero::after { --ai-light: 270deg; }
.ai-hero-streams {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  fill: none;
}
[dir="rtl"] .ai-hero-streams { transform: scaleX(-1); }
.ai-hero-streams path {
  stroke: #d9bcff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 9 15 1 17 4 11 2 19 5 17;
}
.ai-hero-streams path:nth-child(2) { stroke: #8798ff; stroke-width: 2.5; }
.ai-hero-streams path:nth-child(3) { stroke: #b7c8ff; stroke-width: 1.25; }
.ai-motion-toggle {
  display: inline-block;
  margin-block-start: 16px;
  padding: 7px 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #eee5fa;
  font: inherit;
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: .22em;
  cursor: pointer;
}
.ai-motion-toggle[hidden] { display: none; }
[dir="rtl"] .ai-hero { --ai-pan-direction: 1; }
.ai-hero-content { padding-block: clamp(46px, 6vw, 82px); }
.ai-hero .eyebrow { color: #e6c7fc; margin: 0 0 13px; }
.ai-hero h1 { max-width: 18ch; margin: 0; font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: 1.09; }
[dir="rtl"] .ai-hero h1 { font-family: Alexandria, sans-serif; font-weight: 500; line-height: 1.25; max-width: 20ch; }
.ai-hero-intro { max-width: 36rem; margin-block: 18px 22px; color: #f5effb; font-size: clamp(1rem, 1.5vw, 1.16rem); }
.ai-hero .actions { gap: 12px; }
.ai-hero .button.primary { background: #8c319e; }

.ai-services { background: #f8f7fa; padding-block: clamp(32px, 5vw, 64px); scroll-margin-top: 18px; }
.ai-services h2, .ai-industries-section h2, .ai-engagement h2 {
  margin: 0 0 22px;
  font-size: clamp(1.65rem, 3.1vw, 2.65rem);
}
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 26px); align-items: stretch; }
.ai-service {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e2dae7;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px #20182e0c;
}
.ai-service-media { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #131731; }
.ai-service-media img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; }
.ai-service-copy { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: clamp(16px, 1.65vw, 24px); }
.ai-service h3 { margin: 0 0 9px; font-size: clamp(1.12rem, 1.55vw, 1.33rem); line-height: 1.35; overflow-wrap: anywhere; }
.ai-service p { margin: 0 0 12px; color: #51495c; }
.ai-service .ai-benefits { color: #653479; font-weight: 600; }
.ai-service-copy .textlink { margin-top: auto; display: inline-block; padding-block: 5px; }
.ai-service-copy .textlink:hover { color: #892b90; }
.ai-industries-section { padding-block: clamp(36px, 5vw, 62px); background: #111427; color: #fff; }
.ai-engagement { padding-block: clamp(36px, 5vw, 62px); }
.ai-industries, .ai-steps { display: grid; gap: 16px 24px; grid-template-columns: minmax(0, 1fr); }
.ai-industries article, .ai-steps li { padding-block: 12px 4px; border-top: 1px solid #b5a2c0; }
.ai-industries p { color: #e1dceb; }
.ai-steps { padding-inline-start: 1.35rem; margin-block: 0 24px; }
.ai-steps p, .ai-industries p { margin-block: 5px 0; }
@media (min-width: 640px) {
  .ai-grid, .ai-industries, .ai-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ai-grid, .ai-industries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .ai-hero.ai-motion-ready .ai-hero-art img {
    animation: ai-wave-drift 24s ease-in-out infinite;
  }
  .ai-hero.ai-motion-ready .ai-hero-streams { opacity: .8; }
  .ai-hero.ai-motion-ready .ai-hero-streams path {
    animation: ai-wave-stream 24s linear infinite;
  }
  .ai-hero.ai-motion-ready .ai-hero-streams path:nth-child(2) { animation-delay: -8s; }
  .ai-hero.ai-motion-ready .ai-hero-streams path:nth-child(3) { animation-delay: -15s; }
  .ai-hero:is(.ai-motion-paused, .ai-motion-away) :is(.ai-hero-art img, .ai-hero-streams path) {
    animation-play-state: paused;
  }
  @keyframes ai-wave-drift {
    0%, 100% { transform: scale(1.04) translateX(0); }
    47% { transform: scale(1.16) translateX(calc(var(--ai-pan-direction, -1) * 4%)) translateY(-3%); }
    73% { transform: scale(1.11) translateX(calc(var(--ai-pan-direction, -1) * 2%)) translateY(2%); }
  }
  @keyframes ai-wave-stream { to { stroke-dashoffset: -300; } }
  .ai-service.motion-seen { animation: ai-service-arrival .42s ease-out both; }
  @keyframes ai-service-arrival { from { opacity: .78; transform: translateY(7px); } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ai-service-media img { transition: transform .32s ease-out; }
  .ai-service:hover img, .ai-service:focus-within img { transform: scale(1.04); }
}
