/* ============================================
   PARTNERS PAGE — LETS GO STUDIOS
   Hybrid Alignment: Text LEFT | Book RIGHT (Sticky)
   Black bg throughout | White text
   ============================================ */

/* 1. BASE ENVIRONMENT */
.partners-page {
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
}

/* 2. NAVIGATION - Handled by global styles.css */

/* 3. MASTER SPLIT LAYOUT */
.p-split-layout {
    display: flex;
    align-items: flex-start;
    width: 100%;
    background: #000000;
}

/* ─────────────────────────────────────────
   4. LEFT COLUMN — Scrollable text panels
───────────────────────────────────────── */
.p-left-col {
    width: 50%;
    flex-shrink: 0;
    background: #000000;
}

/* Each block = full viewport height */
.p-scroll-block {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 8vw 80px 8vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

/* LEFT alignment: Block 1 — mirrors Creators hero */
.p-block--left {
    justify-content: flex-start;
    text-align: left;
}

/* CENTER alignment: Block 2 & 3 */
.p-block--center {
    justify-content: center;
    text-align: center;
}

.p-block-inner {
    max-width: 540px;
    width: 100%;
}

/* Block counter accent */
.p-block-number {
    font-family: 'Monument Extended', 'Archivo Black', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.2);
    display: block;
    margin-bottom: 28px;
    text-transform: uppercase;
}

/* Headline */
.p-block-title {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.05;
    margin: 0 0 28px 0;
}

/* Body text */
.p-block-body {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.75;
    margin: 0 0 40px 0;
}

/* CTA — Fusión Signature (White border, white text, inverts on hover) */
.p-cta-btn {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000000;
    background: #ffffff;
    border: 1.5px solid #ffffff;
    padding: 16px 40px;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 12px;
}

.p-cta-btn:hover {
    background: transparent;
    color: #ffffff;
}

/* ─────────────────────────────────────────
   5. RIGHT COLUMN — Sticky Spline
───────────────────────────────────────── */
.p-right-col {
    width: 50%;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    background: #000000;
    overflow: hidden;
}

.p-spline-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    /* GPU layer — prevents WebGL compositing glitch */
    transform: translateZ(0);
    will-change: transform;
    background: #000000;
}

/* Float animation: translateY + translateX ONLY — GPU-safe for WebGL */
/* NEVER rotateY/scale on WebGL — causes blur & texture glitch */
.p-float-inner {
    width: 100%;
    height: 100%;
    animation:
        partnerFloatY 5s ease-in-out infinite,
        partnerDriftX 9s ease-in-out infinite;
    will-change: transform;
}

@keyframes partnerFloatY {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-28px); }
    100% { transform: translateY(0px); }
}

@keyframes partnerDriftX {
    0%   { transform: translateX(0px); }
    50%  { transform: translateX(22px); }
    100% { transform: translateX(0px); }
}

.p-float-inner spline-viewer {
    /* Zoom in without scale: oversize the canvas then re-center */
    width: 115%;
    height: 115%;
    display: block;
    margin: -7.5% 0 0 -7.5%;
    background: transparent;
}

/* ─────────────────────────────────────────
   6. SCROLL REVEAL ANIMATIONS
───────────────────────────────────────── */
.partners-page .hidden-animate {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.partners-page .visible-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children within each block */
.p-scroll-block .p-block-number { transition-delay: 0s; }
.p-scroll-block .hidden-animate:nth-child(2) { transition-delay: 0.1s; }
.p-scroll-block .hidden-animate:nth-child(3) { transition-delay: 0.25s; }
.p-scroll-block .p-cta-btn.hidden-animate { transition-delay: 0.35s; }

/* ─────────────────────────────────────────
   7. RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
    .p-split-layout {
        flex-direction: column-reverse;
    }

    .p-left-col,
    .p-right-col {
        width: 100%;
        position: relative;
        height: auto;
    }

    .p-right-col {
        height: 60vh;
        position: relative;
        top: auto;
    }

    .p-scroll-block {
        min-height: 80vh;
        padding: 100px 6vw 60px 6vw;
    }

    /* Monument Extended 30% reduction + 1 column */
    .p-block-title, .p-stat-number {
        font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important;
    }

    .p-block--center {
        text-align: left;
    }
}

/* ─────────────────────────────────────────
   PARTNERS STATS BLOCK (Count-Up Impact)
───────────────────────────────────────── */
.p-stats-block {
    background: #000000;
    padding: 140px 8vw 120px;
    text-align: center;
    /* Sits outside the split layout — full width */
    width: 100%;
}

.p-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto 100px;
}

.p-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p-stat-number {
    font-family: 'Monument Extended', 'Archivo Black', sans-serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 9vw, 8rem);
    color: #ffffff;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}

/* Static number (24/7) — same visual weight, no animation */
.p-stat-static {
    font-size: clamp(3rem, 7vw, 7rem);
}

.p-stat-label {
    font-family: 'Monument Extended', 'Archivo Black', sans-serif;
    font-weight: 900;
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.p-stat-sub {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 220px;
    line-height: 1.5;
    text-align: center;
}

/* Divider + closing phrase */
.p-stats-closing {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 80px;
    max-width: 800px;
    margin: 0 auto;
}

.p-stats-frase {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.2vw, 2.5rem);
    color: #ffffff;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.p-stats-frase strong {
    font-style: italic;
    font-weight: 700;
}

@media (max-width: 768px) {
    .p-stats-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .p-stats-block {
        padding: 80px 6vw;
    }
}
