/* Automation Workflows — compact, fits ~100vh */
.automation {
  background: linear-gradient(180deg, #ebe7fc 0%, #ddd5f5 50%, #ebe7fc 100%);
  padding-block: clamp(40px, 5vw, 72px);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.automation__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 40px);
  max-width: 1100px;
  margin-inline: auto;
  width: 100%;
}

/* Header */
.automation__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 880px;
}
.automation__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.65);
  font-size: var(--eyebrow-fs);
  font-weight: var(--eyebrow-fw);
  letter-spacing: var(--eyebrow-ls);
  text-transform: uppercase;
  color: var(--color-text);
}
.automation__chip i,
.automation__chip svg,
.automation__chip [data-lucide] {
  background: rgba(36, 36, 38, 0.06);
  border-radius: var(--r-pill);
  padding: 4px;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  color: var(--color-primary);
}
.automation__title {
  font-family: var(--font-display);
  font-size: var(--fs-section-h2);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  white-space: normal;
}
.automation__lede {
  font-size: var(--fs-section-lede);
  line-height: var(--lh-section-lede);
  color: var(--color-text-muted);
  margin: 0;
  max-width: 56ch;
}

/* Dashboard image — no frame, no inner shadow.
   Scroll-driven 3D tilt is added by GSAP in main.js (initGsap),
   defaults handled gracefully if JS / GSAP is missing. */
.automation__frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  /* Perspective on the wrapper so the child rotateX has depth */
  perspective: 1600px;
  perspective-origin: 50% 50%;
}
.automation__frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: clamp(14px, 1.4vw, 22px);
  /* No shadow — the image already has its own background and chrome */
  transform-origin: 50% 100%;
  /* GSAP overrides these on scroll; reasonable rest state if JS off */
  will-change: transform;
}

@media (max-width: 720px) {
  .automation { min-height: 0; padding-block: clamp(48px, 8vw, 72px); }
  .automation__lede br { display: none; }
  .automation__frame img {
    max-height: none;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .automation__frame img { transform: none !important; }
}
