/* ==========================================================================
   Manifesto Section — Agency-Style Statement with Animated Background
   Words cascade in (fade + rise) once, the moment the section scrolls
   into view. A canvas behind the text renders slow, glowing drifting
   blobs plus a faint moving grid — contained strictly to this section.
   ========================================================================== */

.manifesto-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background: #050508;
    padding: 6rem 1.5rem;
}

.manifesto-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

/* Faint moving grid overlay, layered above the canvas blobs for texture */
.manifesto-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(255,107,26,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,107,26,0.06) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
    animation: manifesto-grid-drift 30s linear infinite;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 60%, transparent 100%);
}
@keyframes manifesto-grid-drift {
    from { background-position: 0 0; }
    to   { background-position: 3.5rem 3.5rem; }
}

.manifesto-inner {
    position: relative;
    z-index: 1;
    max-width: 1150px;
    margin: 0 auto;
    text-align: center;
}

.manifesto-kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--saffron);
    margin-bottom: 1.75rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.manifesto-section.in-view .manifesto-kicker {
    opacity: 1;
    transform: translateY(0);
}

.manifesto-text {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 6.2vw, 4.6rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #F0F0FF;
}

.manifesto-text .word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(36px) scale(0.94);
    transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
                filter 0.75s cubic-bezier(0.16,1,0.3,1),
                transform 0.75s cubic-bezier(0.16,1,0.3,1);
}

.manifesto-section.in-view .manifesto-text .word {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

.manifesto-text .word.highlight {
    background: var(--grad-saffron);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Subtle continuous life in the highlighted words once revealed */
.manifesto-section.in-view .manifesto-text .word.highlight {
    animation: manifesto-highlight-pulse 3.5s ease-in-out infinite;
}
@keyframes manifesto-highlight-pulse {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.25); }
}

@media (prefers-reduced-motion: reduce) {
    .manifesto-section::after { animation: none; }
    .manifesto-kicker,
    .manifesto-text .word {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 600px) {
    .manifesto-section { padding: 4.5rem 1.25rem; min-height: 90vh; }
}
