/* ============================================
   ANIMATIONS
============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: ensure images always become visible after animation delay */
/* This prevents images from staying invisible if JS fails */
@keyframes force-visible {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: force-visible 0.01s ease 2.5s forwards;
}

.fade-up.visible {
    animation: none;
}

/* Ensure images inside containers are always visible once container is visible */
.fade-up.visible img,
.fade-up.visible video {
    opacity: 1 !important;
    visibility: visible !important;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Reduce motion for accessibility and mobile performance */
@media (prefers-reduced-motion: reduce) {
    .fade-up {
        transition: opacity 0.3s ease;
        transform: none;
    }

    .fade-up.visible {
        transform: none;
    }

    .stagger-1,
    .stagger-2,
    .stagger-3,
    .stagger-4 {
        transition-delay: 0s;
    }
}

/* Mobile animation optimizations */
@media (max-width: 768px) {
    .fade-up {
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
    /* Platform Section */
    .platform-header-bar {
        padding: 1.5rem 3rem;
    }

    .platform-hero {
        padding: 6rem 3rem 4rem;
    }

    .platform-intro-block {
        padding: 4rem 3rem;
    }

    .platform-statement-block {
        padding: 6rem 3rem;
    }

    .logic-section {
        padding: 6rem 3rem;
    }

    .timeline-section {
        padding: 3rem 3rem 2rem;
    }

    .s-path-container {
        height: 1200px;
    }

    .s-step {
        width: 320px;
    }

    .s-step[data-step="1"] {
        top: 100px;
        right: 40px;
    }

    .s-step[data-step="2"] {
        top: 480px;
        left: 40px;
    }

    .s-step[data-step="3"] {
        top: 860px;
        right: 40px;
    }

    .pull-quote-section {
        padding: 6rem 3rem;
    }

    .stats-section {
        padding: 2rem 3rem 3rem;
    }

    .platform-cta {
        padding: 3rem;
    }

    .step-grid {
        grid-template-columns: 60px 200px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    /* Callout Section */
    .callout-section {
        padding: 5rem 3rem;
        gap: 3rem;
    }

    .callout-number {
        font-size: clamp(3rem, 10vw, 7rem);
    }

    .deco-slash {
        font-size: 1.25rem;
    }

    .deco-plus {
        font-size: 0.8rem;
    }

    /* Platform Section */
    .platform-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .platform-mega-title {
        text-align: left;
        font-size: clamp(3rem, 10vw, 6rem);
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .statement-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .statement-number {
        font-size: 3rem;
    }

    .logic-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .s-path-container {
        height: 1000px;
    }

    .s-step {
        width: 280px;
    }

    .s-step .step-title {
        font-size: 1.75rem;
    }

    .s-step[data-step="1"] {
        top: 80px;
        right: 20px;
    }

    .s-step[data-step="2"] {
        top: 400px;
        left: 20px;
    }

    .s-step[data-step="3"] {
        top: 720px;
        right: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .manifesto-header {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .why-title {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Callout Section */
    .callout-section {
        padding: 4rem 1.5rem;
        text-align: center;
    }

    .callout-reveal {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .callout-decoration {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .callout-decoration-left,
    .callout-decoration-right {
        transform: translateY(-20px);
        opacity: 0;
    }

    .callout-reveal.visible .callout-decoration-left,
    .callout-reveal.visible .callout-decoration-right {
        transform: translateY(0);
        opacity: 1;
    }

    .callout-decoration-right {
        order: 3;
    }

    .callout-content {
        order: 2;
        padding: 0 1rem;
        clip-path: none;
        opacity: 0;
        transform: scale(0.9);
        transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
        text-align: center;
    }

    .callout-reveal.visible .callout-content {
        opacity: 1;
        transform: scale(1);
    }

    .callout-context {
        align-items: center;
        text-align: center;
    }

    .callout-orb {
        opacity: 0.1;
    }

    .orb-blue {
        width: 200px;
        height: 200px;
        top: 0;
        left: -50px;
    }

    .orb-purple {
        width: 180px;
        height: 180px;
        bottom: 0;
        right: -50px;
    }

    .orb-coral {
        display: none;
    }

    .callout-number {
        font-size: clamp(2.5rem, 15vw, 5rem);
    }

    .callout-label {
        font-size: 1rem;
    }

    .nav-center {
        display: none;
    }

    .nav-left {
        width: auto;
        flex: 1;
    }

    .nav-right {
        width: auto;
    }

    .hero-video-frame {
        inset: 1rem;
    }

    /* Platform Section - Mobile */
    .platform-header-bar {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-progress {
        width: 100%;
        text-align: right;
    }

    .platform-hero {
        padding: 4rem 1.5rem 3rem;
    }

    .platform-mega-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .platform-intro-block {
        padding: 3rem 1.5rem;
    }

    .intro-large {
        font-size: 1.25rem;
    }

    .intro-emphasis {
        font-size: 1.4rem;
    }

    .platform-statement-block {
        padding: 4rem 1.5rem;
    }

    .statement-text h3 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .logic-section {
        padding: 4rem 1.5rem;
    }

    .logic-title {
        font-size: 1.75rem;
    }

    .timeline-section {
        padding: 2rem 1rem 1rem;
    }

    .timeline-header {
        margin-bottom: 1.5rem;
    }

    .timeline-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .s-path-container {
        height: auto;
        min-height: 600px;
    }

    .s-path-svg {
        display: none;
    }

    .s-step {
        position: relative;
        width: 100%;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        opacity: 1;
        transform: none;
        margin-bottom: 1.5rem;
    }

    .s-step.visible {
        transform: none;
    }

    .step-plus {
        display: none;
    }

    .outcome-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .outcome-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .outcome-divider {
        width: 40px;
        height: 1px;
    }

    .statement-section {
        padding: 3rem 1.5rem;
    }

    .statement-headline {
        font-size: 1.25rem;
    }

    .stats-section {
        padding: 1.5rem 1.5rem 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .platform-cta {
        padding: 2rem 1.5rem;
    }

    .supporters-set {
        gap: 3rem;
        padding-right: 3rem;
    }

    .people h2 {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .manifesto,
    .why {
        padding: 4rem 1.5rem;
    }

    .footer-logo {
        font-size: clamp(4rem, 15vw, 8rem);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}
