/* Agentic Labs scroll scenes (motion.js). Only active once JS adds .js-motion
   on desktop with motion allowed; without it nothing here applies. */

/* GSAP owns these elements: no CSS transitions fighting the scrub. */
.js-motion .is-motion-owned { transition: none; }

/* Inline GSAP transforms override :hover transforms, so lift with the
   independent translate property instead. */
.js-motion .outcome.is-motion-owned,
.js-motion .price-card.is-motion-owned { transition: translate .3s var(--ease-out), border-color .3s; }
.js-motion .outcome.is-motion-owned:hover { translate: 0 -4px; }
.js-motion .price-card.is-motion-owned:hover { translate: 0 -3px; }

.js-motion .hero__copy,
.js-motion .hero__stage,
.js-motion .is-motion-owned { will-change: transform, opacity; }
.js-motion .price-card__amount { font-variant-numeric: tabular-nums; }

/* Desktop: keep the six service cards within one screen so the Services
   scene can pin (motion.js only pins a grid that fits the viewport). */
@media (min-width: 900px) {
  #services .services-grid { gap: 16px; margin-top: 36px; }
  #services .services-grid .outcome { padding-top: 24px; padding-bottom: 22px; }
  #services .services-grid .outcome__icon { margin-bottom: 14px; }
}

/* Desktop: the Pricing title sits beside its intro line and the cards are a
   little tighter, so title + cards fit one screen and stay visible together
   while the section is pinned (motion.js pins from the eyebrow when it fits). */
@media (min-width: 1025px) {
  #pricing .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 72px); align-items: end; }
  #pricing .wrap > * { grid-column: 1 / -1; }
  #pricing .wrap > .eyebrow { grid-column: 1; grid-row: 1; }
  #pricing .wrap > h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; font-size: clamp(2rem, 3vw, 2.75rem); }
  #pricing .wrap > .section-lead { grid-column: 2; grid-row: 2; margin: 0; align-self: end; }
  #pricing .price-grid { margin-top: 30px; }
  #pricing .price-card { padding-top: 28px; padding-bottom: 26px; }
  #pricing .price-card__list { margin: 16px 0 22px; gap: 8px; }
}

/* Shorter laptop screens: tighten Pricing further so the title still fits with the cards. */
@media (min-width: 1025px) and (max-height: 900px) {
  #pricing .wrap > h2 { font-size: clamp(1.9rem, 2.6vw, 2.35rem); }
  #pricing .price-grid { margin-top: 20px; gap: 18px; }
  #pricing .price-card { padding-top: 20px; padding-bottom: 18px; }
  #pricing .price-card h3 { margin-bottom: 4px; }
  #pricing .price-card__list { margin: 12px 0 14px; gap: 4px; }
  #pricing .price-card__list li { font-size: .86rem; line-height: 1.38; }
  #pricing .price-card__cta { gap: 8px; }
  #pricing .price-card__cta .btn { padding-top: 11px; padding-bottom: 11px; }
}
@media (min-width: 1025px) and (max-height: 800px) {
  #pricing .price-card__desc { display: none; }
}

/* Services gets the Pricing treatment: on desktop the title sits beside its
   intro line and the cards tighten, so title + cards fit one screen and the
   title stays visible while the section is pinned. */
@media (min-width: 1025px) {
  #services .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 72px); align-items: end; }
  #services .wrap > * { grid-column: 1 / -1; }
  #services .wrap > .eyebrow { grid-column: 1; grid-row: 1; }
  #services .wrap > h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; font-size: clamp(2rem, 3vw, 2.75rem); }
  #services .wrap > .section-lead { grid-column: 2; grid-row: 2; margin: 0; align-self: end; }
  #services .services-grid { margin-top: 28px; gap: 16px; }
  #services .services-grid .outcome { padding: 22px 26px 20px; }
  #services .services-grid .outcome__icon { margin-bottom: 12px; }
}
@media (min-width: 1025px) and (max-height: 900px) {
  #services .wrap > h2 { font-size: clamp(1.9rem, 2.6vw, 2.35rem); }
  #services .services-grid { margin-top: 20px; gap: 14px; }
  #services .services-grid .outcome { padding: 18px 22px 16px; }
  #services .services-grid .outcome__icon { width: 34px; height: 34px; margin-bottom: 8px; }
  #services .services-grid .outcome h3 { font-size: 1.05rem; }
  #services .services-grid .outcome p { font-size: .86rem; line-height: 1.45; }
}
@media (min-width: 1025px) and (max-height: 800px) {
  #services .services-grid .outcome__icon { display: none; }
}
