/* ═══════════════════════════════════════════════════════════════════════
   METHODIEK PAGE STYLES
   (Page-hero shared styles now live in global.css)
   ═══════════════════════════════════════════════════════════════════════ */
/* ─── Typography & Brand Colors ─────────────────────────────────────── */
.page-hero-title,
.methodiek-phase-title,
.section-subtitle,
h1,
h2,
h3 {
    font-family: 'Aeternum', var(--font-family), system-ui, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
}

.section--navy {
    background-color: #06193e !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   METHODE SCROLL TIMELINE  (scroll-driven 3-fase presentation)
   ─────────────────────────────────────────────────────────────────────
   Left column: three phase steps that scroll normally past the viewport.
   Right column: a "workspace" mockup panel pinned (sticky) in view that
   swaps to match the active step. A vertical rail on the left fills orange
   as you progress. On mobile (≤ 960px) the mockups relocate inline under
   each step (handled in main.js) and the rail is hidden.
   ═══════════════════════════════════════════════════════════════════════ */
.methode-scroll {
    --mono: 'SF Mono', ui-monospace, 'Menlo', 'Consolas', 'Roboto Mono', monospace;
    position: relative;
    padding: var(--space-6xl) 0 var(--space-4xl);
}

.methode-scroll .container {
    position: relative;
    z-index: 1;
}

/* ─── Head ───────────────────────────────────────────────────────────── */
.methode-scroll-head {
    max-width: 640px;
    margin-bottom: var(--space-5xl);
}

.methode-scroll-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--color-white);
    margin: var(--space-sm) 0 var(--space-lg);
}

.methode-scroll-title em {
    font-style: normal;
    color: var(--color-orange);
}

.methode-scroll-intro {
    color: var(--color-text-light);
    font-size: var(--font-size-md);
    line-height: 1.8;
    max-width: 560px;
    margin: 0;
}

/* ─── Track: two columns ─────────────────────────────────────────────── */
.methode-scroll-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5xl);
    align-items: start;
}

/* ─── Left: steps rail ───────────────────────────────────────────────── */
.methode-steps {
    position: relative;
    padding-left: 52px;
}

/* Vertical timeline line + orange progress fill */
.methode-timeline {
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.methode-timeline-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--color-orange), #ffb066);
    transition: height 0.15s linear;
}

/* Each step */
.methode-step {
    position: relative;
    padding-bottom: 44vh;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.methode-step:last-child {
    padding-bottom: 20vh;
}

.methode-step.is-active {
    opacity: 1;
}

/* Marker dot sitting on the rail */
.methode-step-marker {
    position: absolute;
    left: -53px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-navy);
    border: 2px solid rgba(255, 255, 255, 0.28);
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.methode-step.is-done .methode-step-marker,
.methode-step.is-active .methode-step-marker {
    border-color: var(--color-orange);
    background: var(--color-orange);
}

.methode-step.is-active .methode-step-marker {
    box-shadow: 0 0 0 5px rgba(241, 122, 31, 0.18);
}

/* Kicker row: number + badge */
.methode-step-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--space-lg);
}

.methode-step-num {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.4s ease;
}

.methode-step.is-active .methode-step-num,
.methode-step.is-done .methode-step-num {
    color: var(--color-orange);
}

.methode-step-badge {
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 5px 12px;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.methode-step.is-active .methode-step-badge {
    color: #fff;
    border-color: rgba(241, 122, 31, 0.55);
}

.methode-step-title {
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.methode-step-title em {
    font-style: normal;
    color: var(--color-orange);
}

.methode-step-desc {
    color: var(--color-text-light);
    font-size: var(--font-size-md);
    line-height: 1.8;
    max-width: 460px;
    margin-bottom: var(--space-lg);
}

/* ─── Right: pinned workspace panel ──────────────────────────────────── */
.methode-visual {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    height: fit-content;
    min-width: 0;
}

.methode-visual-inner {
    display: grid;
}

.methode-mockup {
    grid-row: 1;
    grid-column: 1;
    min-width: 0;
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    pointer-events: none;
}

.methode-mockup.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* ─── Architecture diagram (builds up per phase) ─────────────────────────
   One vertical flow — sources → warehouse → contextlaag → AI-toepassingen —
   shown three times, each a snapshot after that phase. Completed layers
   settle (.is-done), the current phase's layer is highlighted (.is-focus)
   and upcoming layers are ghosted (.is-ghost). Cross-fading between the three
   reads as the architecture building up.
   ───────────────────────────────────────────────────────────────────── */
.arch {
    background: #0a2149;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 22px;
}

.arch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.arch-head-title {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.55);
}

.arch-head-stage {
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-orange);
    border: 1px solid rgba(241, 122, 31, 0.4);
    border-radius: 999px;
    padding: 4px 10px;
}

.arch-caption {
    display: block;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin-bottom: 10px;
}

/* Source chips */
.arch-sources {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.4s ease;
}

.arch-sources.is-done {
    opacity: 0.5;
}

.arch-src {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.03);
}

/* Vertical connector between layers (with a small downward chevron) */
.arch-conn {
    display: block;
    position: relative;
    width: 2px;
    height: 26px;
    margin: 7px auto;
    background: rgba(255, 255, 255, 0.16);
}

.arch-conn::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 6px;
    height: 6px;
    border-right: 2px solid rgba(255, 255, 255, 0.16);
    border-bottom: 2px solid rgba(255, 255, 255, 0.16);
    transform: translateX(-50%) rotate(45deg);
}

.arch-conn.is-active {
    background: linear-gradient(to bottom, var(--color-orange), #ffb066);
}

.arch-conn.is-active::after {
    border-color: #ffb066;
}

.arch-conn.is-ghost {
    background: repeating-linear-gradient(to bottom,
        rgba(255, 255, 255, 0.16) 0 4px, transparent 4px 8px);
}

/* Layer nodes */
.arch-node {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    transition: border-color 0.4s ease, background 0.4s ease,
                box-shadow 0.4s ease, opacity 0.4s ease;
}

.arch-node-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.arch-node-desc {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 5px;
    letter-spacing: 0.3px;
}

.arch-tick {
    color: var(--color-orange);
    flex-shrink: 0;
}

/* focus = the current phase's layer */
.arch-node.is-focus {
    border-color: var(--color-orange);
    background: rgba(241, 122, 31, 0.1);
}

.arch-node.is-focus .arch-node-desc {
    color: var(--color-orange);
}

/* done = built in an earlier phase */
.arch-node.is-done {
    opacity: 0.7;
}

.arch-node.is-done .arch-node-name {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ghost = upcoming phase */
.arch-node.is-ghost {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.16);
    opacity: 0.4;
}

/* Concept tags inside the contextlaag node */
.arch-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.arch-tags span {
    font-family: var(--mono);
    font-size: 0.66rem;
    color: #fff;
    background: rgba(241, 122, 31, 0.14);
    border: 1px solid rgba(241, 122, 31, 0.32);
    border-radius: 999px;
    padding: 3px 9px;
}

/* AI branches (three outputs of the final phase) */
.arch-branches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    transition: opacity 0.4s ease;
}

.arch-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 13px 8px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.arch-branch svg {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.4s ease;
}

.arch-branches.is-focus .arch-branch {
    border-color: rgba(241, 122, 31, 0.45);
    background: rgba(241, 122, 31, 0.08);
}

.arch-branches.is-focus .arch-branch svg {
    color: var(--color-orange);
}

.arch-branches.is-ghost {
    opacity: 0.4;
}

.arch-branches.is-ghost .arch-branch {
    border-style: dashed;
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .methode-mockup,
    .methode-step,
    .methode-timeline-fill,
    .methode-step-marker,
    .methode-step-num,
    .methode-step-badge,
    .methode-visual,
    .arch-node,
    .arch-branches,
    .arch-branch,
    .arch-sources {
        transition: none;
    }
}

/* ─── Responsive: stack into a single column ─────────────────────────── */
@media (max-width: 960px) {
    .methode-scroll {
        padding: var(--space-5xl) 0 var(--space-4xl);
    }

    .methode-scroll-track {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Visual column is emptied by JS (mockups move inline); hide the shell */
    .methode-visual {
        display: none;
    }

    .methode-steps {
        padding-left: 0;
    }

    .methode-timeline {
        display: none;
    }

    .methode-step {
        padding-bottom: var(--space-4xl);
        opacity: 1;
    }

    .methode-step:last-child {
        padding-bottom: 0;
    }

    .methode-step-marker {
        display: none;
    }

    /* Mockup relocated under each step */
    .methode-step-mockup {
        margin-top: var(--space-xl);
        max-width: 520px;
    }

    .methode-step-mockup .methode-mockup {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (max-width: 560px) {
    .arch {
        padding: 16px;
    }

    .arch-node-name {
        font-size: 0.92rem;
    }

    .arch-branch {
        font-size: 0.72rem;
        padding: 11px 5px;
    }

    .arch-branch svg {
        width: 16px;
        height: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════════════ */
.methodiek-cta {
    padding: var(--space-5xl) 0;
}

.methodiek-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.methodiek-cta-content .section-subtitle {
    margin-bottom: var(--space-xl);
}

.methodiek-cta-content .section-description {
    margin-bottom: var(--space-2xl);
}

/* ─── Scroll Animations ─────────────────────────────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
