/* ===== Section animations (only when motion is allowed; content is never hidden without JavaScript) ===== */

/* Simple steps: number circles pop in one by one, the dashed line draws from left to right */
.lp-reveal-on .ofw-step .ofw-step-num { transform: scale(.5); opacity: 0; transition: transform 650ms cubic-bezier(.34,1.56,.64,1), opacity 400ms ease; transition-delay: calc(var(--reveal-delay, 0ms) + 200ms); }
.lp-reveal-on .ofw-step.is-revealed .ofw-step-num { transform: none; opacity: 1; }
.lp-reveal-on .ofw-steps::before { transform: scaleX(0); transform-origin: left center; transition: transform 1400ms cubic-bezier(.22,1,.36,1) 350ms; }
.lp-reveal-on .ofw-steps:has(.ofw-step.is-revealed)::before { transform: scaleX(1); }
@media (hover: hover) {
  .ofw-step .ofw-step-num { transition: transform 300ms ease; }
  .ofw-step:hover .ofw-step-num { transform: translateY(-4px); }
}

/* Who can apply: the green check badge pops in after each item appears */
.lp-reveal-on .ofw-elig li .ofw-elig-icon::after { transform: scale(0); transition: transform 500ms cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--reveal-delay, 0ms) + 450ms); }
.lp-reveal-on .ofw-elig li.is-revealed .ofw-elig-icon::after { transform: scale(1); }

/* What you'll need: list rows fade up one after another, on scroll and when switching tabs */
.req-list li:nth-child(1) { --d: 0ms; }   .req-list li:nth-child(2) { --d: 50ms; }
.req-list li:nth-child(3) { --d: 100ms; } .req-list li:nth-child(4) { --d: 150ms; }
.req-list li:nth-child(5) { --d: 200ms; } .req-list li:nth-child(6) { --d: 250ms; }
.req-list li:nth-child(7) { --d: 300ms; } .req-list li:nth-child(8) { --d: 350ms; }
.req-list--outline li { --d2: 300ms; }
.lp-reveal-on .req-grid .req-list li { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--d, 0ms) + var(--d2, 0ms) + 200ms); }
.lp-reveal-on .req-grid.is-revealed .req-list li { opacity: 1; transform: none; }
.req-panel.is-entering .req-list li { animation: reqItemIn 420ms cubic-bezier(.22,1,.36,1) both; animation-delay: var(--d, 0ms); }
@keyframes reqItemIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Real stories: the first cards slide in from the left, one after another */
.lp-reveal-on #stories .carousel-track-viewport .quote-card { opacity: 0; translate: -32px 0; transition: opacity 900ms cubic-bezier(.22,1,.36,1), translate 900ms cubic-bezier(.22,1,.36,1), background-color 300ms ease; }
.lp-reveal-on #stories .carousel-track-viewport.is-revealed .quote-card { opacity: 1; translate: 0 0; }
.lp-reveal-on #stories .carousel-track-viewport.is-revealed .quote-card:nth-child(2) { transition-delay: 150ms, 150ms, 0ms; }
.lp-reveal-on #stories .carousel-track-viewport.is-revealed .quote-card:nth-child(3) { transition-delay: 300ms, 300ms, 0ms; }

/* We're here to help: icons lift on hover */
@media (hover: hover) {
  .ofw-contact-icon { transition: transform 300ms ease; }
  .ofw-contact-item:hover .ofw-contact-icon { transform: translateY(-3px); }
}

/* Final banner: zooms in gently, soft glows drift (same as the home page) */
.lp-reveal-on .final-cta-container[data-reveal="zoom"] { transform: translateY(20px) scale(.96); }
.lp-reveal-on .final-cta-container[data-reveal="zoom"].is-revealed { transform: none; }
@keyframes ctaGlowDrift { 0%, 100% { translate: 0 0; } 50% { translate: -40px 30px; } }
.final-cta-container::before { animation: ctaGlowDrift 14s ease-in-out infinite; }
.final-cta-container::after { animation: ctaGlowDrift 18s ease-in-out infinite reverse; }

@media (prefers-reduced-motion: reduce) {
  .ofw-step-num, .ofw-steps::before, .ofw-elig-icon::after, .req-list li,
  #stories .quote-card, .ofw-contact-icon, .final-cta-container {
    opacity: 1 !important; transform: none !important; translate: none !important; stroke-dashoffset: 0 !important; transition: none !important; animation: none !important;
  }
  .final-cta-container::before, .final-cta-container::after { animation: none !important; }
}
