/* ═══════════════════════════════════════════════════════════
   Innovator Edge, shared motion layer
   Loaded AFTER each page's inline <style> so it takes precedence.
   Additive only: if this file fails to load, pages still read fine.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* expo-out. the curve that reads as considered rather than bouncy */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.30, 1);
  --ease-soft:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --stagger:       75ms;
}

/* ── 1. Base reveal, upgraded easing ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   0.75s var(--ease-out-expo),
    transform 0.75s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ── 2. Headlines travel further and slower than everything else.
      This contrast is what makes motion feel intentional. ────── */
.section-title.reveal,
.hero-headline.reveal,
.cta-title.reveal {
  transform: translateY(38px);
  transition-duration: 1.05s;
}
.section-title.reveal.visible,
.hero-headline.reveal.visible,
.cta-title.reveal.visible {
  transform: translateY(0);
}

/* Supporting copy follows its headline a beat later */
.section-sub.reveal,
.section-intro.reveal,
.cta-sub.reveal { transition-delay: 90ms; }

/* ── 3. Grid children arrive in sequence, not all at once ──── */
.pain-grid > .reveal:nth-child(1),
.deliverables-grid > .reveal:nth-child(1),
.diff-grid > .reveal:nth-child(1),
.solutions-grid > .reveal:nth-child(1)      { transition-delay: 0ms; }
.pain-grid > .reveal:nth-child(2),
.deliverables-grid > .reveal:nth-child(2),
.diff-grid > .reveal:nth-child(2),
.solutions-grid > .reveal:nth-child(2)      { transition-delay: calc(var(--stagger) * 1); }
.pain-grid > .reveal:nth-child(3),
.deliverables-grid > .reveal:nth-child(3),
.diff-grid > .reveal:nth-child(3),
.solutions-grid > .reveal:nth-child(3)      { transition-delay: calc(var(--stagger) * 2); }
.pain-grid > .reveal:nth-child(4),
.deliverables-grid > .reveal:nth-child(4)   { transition-delay: calc(var(--stagger) * 3); }
.pain-grid > .reveal:nth-child(5),
.deliverables-grid > .reveal:nth-child(5)   { transition-delay: calc(var(--stagger) * 4); }
.pain-grid > .reveal:nth-child(6),
.deliverables-grid > .reveal:nth-child(6)   { transition-delay: calc(var(--stagger) * 5); }

/* ── 4. The accent rule under section labels draws itself in ── */
.section-label {
  position: relative;
  display: inline-block;
  padding-bottom: 9px;
}
.section-label::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold, #E8621C), var(--jade, #1A4FCC));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out-expo) 180ms;
}
.section-label.visible::after,
.visible .section-label::after,
.section-label:not(.reveal)::after { transform: scaleX(1); }

/* ── 5. Cards respond to the cursor. Restraint is the point. ── */
.pain-card,
.deliverable-card,
.solution-card,
.industry-pill,
.pricing-card {
  transition:
    transform   0.45s var(--ease-soft),
    box-shadow  0.45s var(--ease-soft),
    border-color 0.45s var(--ease-soft);
}
.pain-card:hover,
.solution-card:hover,
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px -18px rgba(8, 12, 26, 0.30);
}
.deliverable-card:hover,
.industry-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 98, 28, 0.45);
}

/* Automation rows slide a touch toward the reader on hover */
.auto-item {
  transition: transform 0.35s var(--ease-soft), background 0.35s var(--ease-soft);
}
.auto-item:hover { transform: translateX(5px); }

/* ── 6. Buttons lift instead of just changing colour ────────── */
.btn-primary, .btn-outline, .btn-blue,
.btn-orange-full, .btn-outline-ink, .nav-cta {
  transition:
    transform  0.28s var(--ease-soft),
    box-shadow 0.28s var(--ease-soft),
    background 0.28s var(--ease-soft),
    color      0.28s var(--ease-soft);
}
.btn-primary:hover, .btn-blue:hover,
.btn-orange-full:hover, .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(232, 98, 28, 0.55);
}
.btn-outline:hover, .btn-outline-ink:hover { transform: translateY(-2px); }

/* Arrows in links nudge forward, a small signal of direction */
.solution-link i, .btn-primary i, .btn-blue i, .btn-orange-full i {
  transition: transform 0.3s var(--ease-soft);
}
.solution-link:hover i, .btn-primary:hover i,
.btn-blue:hover i, .btn-orange-full:hover i { transform: translateX(4px); }

/* ── 7. Nav links get a quiet underline on hover ────────────── */
.nav-link, .nav-links a {
  position: relative;
  transition: color 0.28s var(--ease-soft);
}
.nav-link::after, .nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1.5px;
  background: var(--gold, #E8621C);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.32s var(--ease-out-expo);
}
.nav-link:hover::after, .nav-links a:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ── 8. Accessibility. Anyone who asks for reduced motion gets
      a completely still site, with all content visible. ─────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section-label::after { transform: scaleX(1) !important; }
}

/* ── 9. Safety net. If JS never runs, nothing stays hidden. ── */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   SHARED FOOTER
   Identical on every page. Loaded after each page's inline CSS
   so it overrides the older per-page footer rules.
   ═══════════════════════════════════════════════════════════ */
footer {
  background: #080E09 !important;
  padding: 64px 48px 40px !important;
  display: block !important;
  border-top: none !important;
  color: rgba(255,255,255,0.55) !important;
}
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-name {
  font-family: var(--font-head, 'Cormorant Garamond', serif);
  font-size: 1.4rem; font-weight: 600; color: #fff; margin-bottom: 4px;
}
.footer-brand-sub {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-light, #F07A35); margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  line-height: 1.7; margin-bottom: 24px; max-width: 34ch;
}
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.2s;
}
.footer-contact a:hover { color: var(--gold-light, #F07A35); }
.footer-contact i { color: var(--gold-light, #F07A35); font-size: 0.75rem; width: 14px; }
.footer-col-title {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px;
}
footer .footer-links {
  display: flex !important; flex-direction: column !important;
  gap: 10px !important; align-items: flex-start !important;
}
footer .footer-links a {
  font-size: 0.83rem; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--gold-light, #F07A35); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
  text-decoration: none; transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 900px) {
  footer { padding: 48px 24px 32px !important; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
