/* ============================================
   CANVAS — fixed behind everything
   ============================================ */

#canvas-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

#viz {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   SCROLLY — text sections on top of canvas
   ============================================ */

#scrolly {
    position: relative;
    z-index: 1;
}

.step {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: none;
}

.step-content {
    max-width: 560px;
    background: rgba(12, 14, 21, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.step.is-active .step-content {
    opacity: 1;
    transform: translateY(0);
}

.step-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.step-content p:last-child {
    margin-bottom: 0;
}

.step-content strong {
    color: var(--color-white);
    font-weight: 600;
}

.step-accent {
    font-family: var(--font-display);
    font-size: 1.35rem !important;
    color: var(--color-accent) !important;
    font-style: italic;
    line-height: 1.5 !important;
}

/* ============================================
   SIDE step — card on the left, shape on the right
   ============================================ */

.step--side {
    justify-content: flex-start;
    padding-left: 6%;
}

.step-stat {
    font-family: var(--font-display);
    font-size: 1.6rem !important;
    color: var(--color-white) !important;
    margin-top: 0.5rem !important;
}

.step--bottom {
    align-items: flex-end;
    padding-bottom: 5%;
}

.step-content--compact {
    max-width: 520px;
    padding: 1.5rem 2rem;
}

.step-content--wide {
    max-width: 700px;
}

.clr-women { color: var(--color-accent) !important; }
.clr-men { color: var(--color-accent-alt) !important; }

/* ============================================
   HERO step — centered, no card background
   ============================================ */

.step-content--hero {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    text-align: center;
    max-width: 700px;
}

.step-kicker {
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 0.5rem !important;
}

.hero-number {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.hero-sub {
    font-size: 1.3rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 400px;
    margin: 0 auto 2rem !important;
}

.hero-hint {
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6) !important;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ============================================
   CTA — call to action section
   ============================================ */

.cta-section {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
    padding: 5rem 2rem 4rem;
}

.cta-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.cta-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-white);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    max-width: 640px;
    margin: 0 auto 3rem;
}

.cta-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cta-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: left;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}

.cta-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.cta-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.cta-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    flex: 1;
}

.cta-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.02em;
}

.cta-card:hover .cta-link {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cta-cards {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 3.5rem 1.5rem 3rem;
    }
}

/* ============================================
   FOOTER — above canvas
   ============================================ */

.site-footer {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
}

.footer-source {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-subtle);
}

.footer-source a {
    color: var(--color-text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .step-content {
        padding: 1.8rem 1.5rem;
    }

    .hero-number {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    .step-content p {
        font-size: 1.05rem;
        line-height: 1.9;
    }
}
