/* ─────────────────────────────────────────
   CTA FINALE — animated closing section
   Used on about-us, can be reused elsewhere.
   ───────────────────────────────────────── */
.cta-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(5rem, 10vw, 9rem);
  /* Organic colour patches centred ON the bottom edge — the footer draws the
     matching lower halves, so the colour runs continuous across the seam
     (no straight stripe). Same system as cta-cinema. */
  background:
    radial-gradient(40% 30% at 27% 100%, rgba(28,125,245,0.04), transparent 72%),
    radial-gradient(36% 26% at 71% 100%, rgba(28,125,245,0.04), transparent 72%),
    radial-gradient(30% 22% at 50% 100%, rgba(229,51,108,0.03), transparent 74%);
  color: var(--ink);
}
/* Keep the line work (arc + grid) on the new fade; drop only the colour blobs */
.cta-final__mesh,
.cta-final__orb { display: none; }
.cta-final__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; color: var(--accent); }
.cta-final__mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(28,125,245,0.18), transparent 70%),
    radial-gradient(35% 45% at 80% 70%, rgba(28,125,245,0.14), transparent 70%),
    radial-gradient(30% 40% at 50% 100%, rgba(229,51,108,0.10), transparent 70%);
  filter: blur(20px);
  animation: ctaFinalMesh 18s ease-in-out infinite;
}
@keyframes ctaFinalMesh {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  33%      { transform: translate(3%, -2%) rotate(2deg); }
  66%      { transform: translate(-3%, 2%) rotate(-2deg); }
}
.cta-final__grid { display: none; }
.cta-final__arc { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-final__orb {
  position: absolute; border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.cta-final__orb--a {
  width: 320px; height: 320px;
  top: -60px; left: -80px;
  background: radial-gradient(circle, rgba(28,125,245,0.45), transparent 70%);
  animation: ctaFinalOrbA 14s ease-in-out infinite;
}
.cta-final__orb--b {
  width: 380px; height: 380px;
  bottom: -80px; right: -100px;
  background: radial-gradient(circle, rgba(229,51,108,0.30), transparent 70%);
  animation: ctaFinalOrbB 16s ease-in-out infinite;
}
@keyframes ctaFinalOrbA {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px, 30px) scale(1.1); }
}
@keyframes ctaFinalOrbB {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-50px, -40px) scale(1.08); }
}

.cta-final__inner { position: relative; z-index: 1; text-align: center; }
.cta-final__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  opacity: 0; transform: translateY(8px);
  animation: ctaFinalFade .9s ease forwards .1s;
}
.cta-final__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
}
.cta-final__title .line { display: block; }
/* Padding gives italic ascenders/descenders room inside the overflow clip;
   the matching negative margin cancels the layout shift (spacing unchanged). */
.cta-final__title .word {
  display: inline-block; overflow: hidden;
  padding: 0.55em 0.42em 0.44em;
  margin: -0.55em -0.37em -0.44em;
}
.cta-final__title .word__inner {
  display: inline-block;
  transform: translateY(185%);
  animation: ctaFinalRise .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.cta-final__title .word:nth-child(1) .word__inner { animation-delay: .2s; }
.cta-final__title .word:nth-child(2) .word__inner { animation-delay: .3s; }
.cta-final__title .word:nth-child(3) .word__inner { animation-delay: .4s; }
.cta-final__title .word--accent .word__inner em {
  font-style: italic;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: ctaFinalShift 6s ease-in-out infinite;
  /* Widen the background-clip:text box so the italic overhang is painted;
     the negative side margin cancels it — no extra space between words. */
  padding: 0.34em 0.32em; margin: 0 -0.32em;
}
@keyframes ctaFinalShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
@keyframes ctaFinalRise { to { transform: translateY(0); } }
@keyframes ctaFinalFade { to { opacity: 1; transform: none; } }

.cta-final__lede {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 38ch;
  margin: 1.5rem auto 0;
  opacity: 0; transform: translateY(10px);
  animation: ctaFinalFade .9s ease forwards .65s;
}

.cta-final__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2.4rem auto 0;
  padding: 1.05rem 1.7rem 1.05rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.02rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
  box-shadow: 0 10px 30px -10px rgba(28,125,245,0.55), 0 0 0 1px rgba(255,255,255,0.18) inset;
  opacity: 0; transform: translateY(12px);
  animation: ctaFinalFade .9s ease forwards .85s;
}
.cta-final__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -12px rgba(28,125,245,0.7), 0 0 0 1px rgba(255,255,255,0.25) inset;
}
.cta-final__btn-arrow {
  display: inline-flex;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  align-items: center; justify-content: center;
  transition: transform .3s ease, background .3s ease;
}
.cta-final__btn:hover .cta-final__btn-arrow {
  transform: translateX(4px);
  background: rgba(255,255,255,0.28);
}
.cta-final__btn-shine {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  z-index: -1;
}
.cta-final__btn:hover .cta-final__btn-shine {
  animation: ctaFinalShine 1s ease;
}
@keyframes ctaFinalShine {
  to { transform: translateX(100%); }
}

.cta-final__sub {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0;
  animation: ctaFinalFade .9s ease forwards 1.05s;
}
.cta-final__sub span { display: inline-flex; align-items: center; }
.cta-final__pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #18a957;
  margin-right: 0.5rem;
  animation: ctaFinalPulse 1.8s ease-in-out infinite;
}
@keyframes ctaFinalPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(24,169,87,0.6); }
  50%     { box-shadow: 0 0 0 6px rgba(24,169,87,0); }
}
.cta-final__sep { opacity: 0.45; }

@media (prefers-reduced-motion: reduce) {
  .cta-final__mesh, .cta-final__orb, .cta-final__title .word__inner,
  .cta-final__title .word--accent .word__inner em,
  .cta-final__pulse, .cta-final__btn-shine { animation: none !important; transform: none !important; }
  .cta-final__eyebrow, .cta-final__lede, .cta-final__btn, .cta-final__sub {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}
