.ef-cta {
  --efc-bg: var(--inverse);
  --efc-ink: var(--on-inverse);
  --efc-tone: var(--on-inverse-muted);
  --efc-body: rgba(242, 242, 238, .74);
  --efc-guide: rgba(242, 242, 238, .2);
  --efc-guide-style: dashed;
  --efc-run: 64px;
  --efc-dots: .42;
  --efc-fade: 72px;
  --efc-map-y: 96px;
  --efc-h: clamp(44px, 5vw, 72px);
  --efc-pad: 152px;
  --efc-edge: max(var(--gutter-tablet), calc((100% - var(--container)) / 2));
  position: relative;
  margin-top: var(--space-160);
  padding: var(--efc-pad) var(--efc-edge);
  background: var(--efc-bg);
  color: var(--efc-ink);
  text-align: center;
}
.ef-section:has(#faq-h) + .ef-cta, .ef-bleed + .ef-cta, .ef-band + .ef-cta { margin-top: 0; }

.ef-cta::before, .ef-cta::after {
  content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 0;
  border-left: 1px var(--efc-guide-style) var(--efc-guide); pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - var(--efc-run)), transparent);
          mask-image: linear-gradient(#000 calc(100% - var(--efc-run)), transparent);
}
.ef-cta::before { left: var(--efc-edge); }
.ef-cta::after { right: var(--efc-edge); }

.ef-cta__field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ef-cta__side { position: absolute; top: 0; bottom: 0; width: var(--efc-edge); overflow: hidden; opacity: var(--efc-dots); }
.ef-cta__side--l { left: 0; -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, .2), #000 var(--efc-fade)); mask-image: linear-gradient(to left, rgba(0, 0, 0, .2), #000 var(--efc-fade)); }
.ef-cta__side--r { right: 0; -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .2), #000 var(--efc-fade)); mask-image: linear-gradient(to right, rgba(0, 0, 0, .2), #000 var(--efc-fade)); }
.ef-cta__side i { position: absolute; top: var(--efc-map-y); width: 308px; height: 399px; background: no-repeat 0 0 / 308px 399px; }
.ef-cta__side--l i { right: 0; }
.ef-cta__side--r i { left: 0; }
.ef-cta__side--l i:nth-child(1) { background-image: url("../assets/cta/dots-l-0.svg"); --dx: -16px; --dy: 22px; --d: 120ms; }
.ef-cta__side--l i:nth-child(2) { background-image: url("../assets/cta/dots-l-1.svg"); --dx: 20px; --dy: -14px; --d: 260ms; }
.ef-cta__side--l i:nth-child(3) { background-image: url("../assets/cta/dots-l-2.svg"); --dx: -24px; --dy: -18px; --d: 180ms; }
.ef-cta__side--l i:nth-child(4) { background-image: url("../assets/cta/dots-l-3.svg"); --dx: 12px; --dy: 26px; --d: 340ms; }
.ef-cta__side--l i:nth-child(5) { background-image: url("../assets/cta/dots-l-4.svg"); --dx: 26px; --dy: 10px; --d: 220ms; }
.ef-cta__side--l i:nth-child(6) { background-image: url("../assets/cta/dots-l-5.svg"); --dx: -8px; --dy: -26px; --d: 400ms; }
.ef-cta__side--r i:nth-child(1) { background-image: url("../assets/cta/dots-r-0.svg"); --dx: 16px; --dy: -22px; --d: 160ms; }
.ef-cta__side--r i:nth-child(2) { background-image: url("../assets/cta/dots-r-1.svg"); --dx: -20px; --dy: 14px; --d: 300ms; }
.ef-cta__side--r i:nth-child(3) { background-image: url("../assets/cta/dots-r-2.svg"); --dx: 24px; --dy: 18px; --d: 220ms; }
.ef-cta__side--r i:nth-child(4) { background-image: url("../assets/cta/dots-r-3.svg"); --dx: -12px; --dy: -26px; --d: 380ms; }
.ef-cta__side--r i:nth-child(5) { background-image: url("../assets/cta/dots-r-4.svg"); --dx: -26px; --dy: -10px; --d: 260ms; }
.ef-cta__side--r i:nth-child(6) { background-image: url("../assets/cta/dots-r-5.svg"); --dx: 8px; --dy: 26px; --d: 440ms; }

.ef-cta__h, .ef-cta__line, .ef-cta__btns { position: relative; z-index: 2; }
.ef-cta__h { font-size: var(--efc-h); line-height: 1.03; letter-spacing: -0.014em; color: var(--efc-ink); }
.ef-cta__h > span, .ef-cta__h > em { display: block; }
.ef-cta__h > em { color: var(--efc-tone); }
.ef-cta__line { max-width: 34em; margin: var(--space-28) auto 0; font-size: var(--text-lead); line-height: 1.5; color: var(--efc-body); text-wrap: balance; }
.ef-cta__btns { justify-content: center; margin-top: var(--space-40); }
.ef-cta .ef-btn--ghost { background: transparent; color: var(--efc-ink); box-shadow: inset 0 0 0 var(--hw) var(--border-on-inverse); }
.ef-cta .ef-btn--ghost:hover { background: color-mix(in srgb, var(--on-inverse) 8%, transparent); }

@media (max-width: 1100px) {
  .ef-cta { --efc-pad: 128px; --efc-map-y: 64px; margin-top: var(--space-120); }
}

@media (max-width: 640px) {
  .ef-cta { --efc-edge: var(--gutter-phone); --efc-pad: 104px; --efc-h: clamp(26px, 7.6vw, 36px); --efc-dots: .32; --efc-run: 48px;
    margin-top: var(--space-88); padding-inline: calc(var(--efc-edge) + var(--space-12)); padding-bottom: 124px; }
  .ef-cta__line { margin-top: var(--space-20); font-size: var(--text-body-lg); }
  .ef-cta__btns { margin-top: var(--space-32); }
  .ef-cta__side { width: auto; left: 0; right: 0; }
  .ef-cta__side--l { bottom: auto; height: 120px; -webkit-mask-image: linear-gradient(#000 25%, transparent); mask-image: linear-gradient(#000 25%, transparent); }
  .ef-cta__side--r { top: auto; height: 120px; -webkit-mask-image: linear-gradient(transparent, #000 55%); mask-image: linear-gradient(transparent, #000 55%); }
  .ef-cta__side--l i { right: auto; left: 0; top: 0; }
  .ef-cta__side--r i { left: auto; right: 0; top: auto; bottom: -20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .ef-cta.is-armed::before, .ef-cta.is-armed::after { clip-path: inset(0 0 100% 0); }
  .ef-cta.is-armed .ef-cta__side i { opacity: 0; transform: translate(var(--dx), var(--dy)); }
  .ef-cta.is-armed .ef-cta__h > span, .ef-cta.is-armed .ef-cta__h > em { opacity: 0; transform: translateY(.32em); }
  .ef-cta.is-armed .ef-cta__line, .ef-cta.is-armed .ef-cta__btns { opacity: 0; transform: translateY(10px); }

  .ef-cta.is-in::before, .ef-cta.is-in::after { clip-path: inset(0); transition: clip-path 1200ms cubic-bezier(.4, 0, .2, 1); }
  .ef-cta.is-in .ef-cta__side i { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out) var(--d), transform 1500ms var(--ease-reveal) var(--d); }
  .ef-cta.is-in .ef-cta__h > span, .ef-cta.is-in .ef-cta__h > em,
  .ef-cta.is-in .ef-cta__line, .ef-cta.is-in .ef-cta__btns { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out) var(--t), transform var(--duration-slow) var(--ease-reveal) var(--t); }
  .ef-cta__h > span { --t: 200ms; }
  .ef-cta__h > em { --t: 340ms; }
  .ef-cta__line { --t: 520ms; }
  .ef-cta__btns { --t: 620ms; }
  .ef-cta.is-held::before, .ef-cta.is-held::after, .ef-cta.is-held .ef-cta__side i, .ef-cta.is-held .ef-cta__h > *,
  .ef-cta.is-held .ef-cta__line, .ef-cta.is-held .ef-cta__btns { transition: none !important; }
}

@media (forced-colors: active) {
  .ef-cta__field, .ef-cta::before, .ef-cta::after { display: none; }
}
