/* Homepage "Our 5-step process": zig-zag timeline, minimal.
   Each step is a white card topped by a product-UI illustration (an .xp-scene story played by
   js/expertise-stories.js while on screen), facing the step number and the step's outcome
   across a 1px centre line. js/process-flow.js adds .pz-live: the line fills in ink as you scroll,
   cards rise in as they enter (.is-in), the connector and number fill when the line reaches a step
   (.is-reached), the step under the line is .is-current and passed nodes become ticks (.is-done).
   Brand blue and greys only: no black, no gradients, no other hues.
   Transitions carry !important so the global reduced-motion reset in styles.css does not freeze
   them (the owner wants this section animated). */

#process.process-section { overflow-x: clip !important; overflow-y: visible !important; }

#process .pz {
    --px-blue: #2463eb;
    --px-ink: #152641;
    --px-muted: #56677d;
    --px-ease: cubic-bezier(.16, 1, .3, 1);
    --pz-col: 64px;
    --pz-gap: 48px;
    position: relative;
    max-width: 1140px;
    margin: 26px auto 44px;
    color: var(--px-ink);
    text-align: left;
}
#process .pz *, #process .pz *::before, #process .pz *::after { box-sizing: border-box; }
#process .pz :is(h3, p, ul, li, small, figure) { margin: 0; padding: 0; }

/* ---------- Rows: card | node | outcome, mirrored on even steps ---------- */
#process .pz-steps { position: relative; z-index: 1; display: grid; gap: 64px; margin: 0; padding: 0; list-style: none; }
#process .pz-step {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--pz-col) minmax(0, 1fr);
    grid-template-areas: "card node aside";
    column-gap: var(--pz-gap);
    align-items: center;
}
#process .pz-step:nth-child(even) { grid-template-areas: "aside node card"; }
#process .pz-card { grid-area: card; }
#process .pz-node { grid-area: node; }
#process .pz-aside { grid-area: aside; }

/* ---------- Centre line (js sets its start and length to the first and last node) ---------- */
#process .pz-line { position: absolute; left: 50%; top: var(--pz-a, 0); height: var(--pz-len, 100%); width: 1px; margin-left: -.5px; background: #d3dbe6; z-index: 0; }
#process .pz-line-fill { position: absolute; inset: 0; background: var(--px-blue); transform-origin: top; transform: scaleY(var(--pz-fill, 1)); }
#process .pz-line-tip { position: absolute; left: 50%; top: calc(var(--pz-fill, 0) * 100%); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--px-blue); box-shadow: 0 0 0 4px #f0f3f7; opacity: var(--pz-tip, 0); transition: opacity .3s ease !important; }

/* ---------- Node on the line ---------- */
#process .pz-node {
    position: relative;
    z-index: 2;
    justify-self: center;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d3dbe6;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    transition: background .4s ease, border-color .4s ease, color .4s ease, opacity .5s ease, transform .6s var(--px-ease) !important;
}
#process .pz-node b { font-weight: 500; transition: opacity .3s ease, transform .4s var(--px-ease) !important; }
#process .pz-node svg { position: absolute; width: 16px; height: 16px; fill: none; stroke: var(--px-blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .5s ease .1s !important; }

/* ---------- Card ---------- */
#process .pz-card {
    position: relative;
    padding: 10px;
    border: 1px solid #e3e8ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 60px -44px #0f172a59, 0 2px 6px -3px #0f172a12;
    transition: border-color .5s ease, box-shadow .6s ease !important;
}
/* Connector from the card to its node: hairline, filled in ink once the line reaches the step */
#process .pz-card::before, #process .pz-card::after { content: ""; position: absolute; top: 50%; right: calc(-1 * var(--pz-gap) - 2px); width: var(--pz-gap); height: 1px; background: #d3dbe6; }
#process .pz-card::after { background: var(--px-blue); transform-origin: left; transform: scaleX(0); transition: transform .7s var(--px-ease) !important; }
#process .pz-step:nth-child(even) .pz-card::before, #process .pz-step:nth-child(even) .pz-card::after { right: auto; left: calc(-1 * var(--pz-gap) - 2px); }
#process .pz-step:nth-child(even) .pz-card::after { transform-origin: right; }

/* Illustration panel: flat brand blue; a white product window sits inside it */
#process .pz-scene {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #2563eb;
    box-shadow: inset 0 0 0 1px #ffffff1f;
}
#process .pz-scene::before { opacity: .8; }
#process .pz-scene svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }

#process .pz-body { padding: 22px 18px 14px; }
#process .pz-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#process .pz-pill { display: inline-flex; align-items: center; padding: 0; color: #64748b; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
#process .pz-of { font-size: 12px; letter-spacing: .06em; color: #9aa7ba; }
#process .pz-card h3 { margin-bottom: 10px !important; font-size: clamp(24px, 2.1vw, 29px); font-weight: 500 !important; line-height: 1.14; letter-spacing: -.035em; color: var(--px-ink) !important; }
#process .pz-card p { margin-bottom: 18px !important; font-size: 15.5px; line-height: 1.68; color: var(--px-muted) !important; text-align: left; }
#process .px-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
#process .px-tags li { display: inline-flex; align-items: center; padding: 6px 11px !important; border: 1px solid #e3e8ef; border-radius: 999px; background: #f8fafc; color: #475569; font-size: 12.5px; line-height: 1; }

/* ---------- Outcome side: a short label and the outcome of the step ---------- */
#process .pz-aside { display: grid; justify-items: start; gap: 12px; padding: 0 6px; }
#process .pz-step:nth-child(even) .pz-aside { justify-items: end; text-align: right; }
#process .pz-num { display: block; color: var(--px-blue); font-size: clamp(76px, 7.6vw, 116px); font-weight: 300; line-height: .86; letter-spacing: -.06em; font-variant-numeric: tabular-nums; user-select: none; }
#process .pz-label { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--px-blue); }
#process .pz-label::before { content: ""; width: 24px; height: 1px; background: currentColor; }
#process .pz-step:nth-child(even) .pz-label { flex-direction: row-reverse; }
#process .pz-outcome { max-width: 20ch; font-size: clamp(22px, 2vw, 28px) !important; font-weight: 300 !important; line-height: 1.25 !important; letter-spacing: -.025em; color: var(--px-ink) !important; }

/* ---------- Live: entrance as each step scrolls in ---------- */
#process .pz-live .pz-card {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition: opacity .8s ease, transform 1.1s var(--px-ease), border-color .5s ease, box-shadow .6s ease !important;
}
#process .pz-live .pz-step:nth-child(even) .pz-card { transform: translate3d(0, 36px, 0); }
#process .pz-live .pz-scene { transform: scale(.97); transition: transform 1.3s var(--px-ease) .1s !important; }
#process .pz-live .pz-node { opacity: 0; transform: scale(.7); }
#process .pz-live .pz-num { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s ease .1s, transform 1s var(--px-ease) .1s !important; }
#process .pz-live .pz-aside :is(.pz-label, .pz-outcome) { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .6s ease, transform .9s var(--px-ease) !important; }
#process .pz-live .pz-body :is(.pz-meta, p, .px-tags li) { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .55s ease, transform .8s var(--px-ease) !important; }
#process .pz-card h3 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
#process .pz-card h3 .w > span { display: inline-block; }
#process .pz-live .pz-card h3 .w > span { transform: translate3d(0, 108%, 0); transition: transform .85s var(--px-ease) !important; }

/* :nth-child(n) lifts specificity above the mirrored (even) entrance offsets, including the tablet ones */
#process .pz-live .pz-step.is-in:nth-child(n) :is(.pz-card, .pz-scene, .pz-num) { opacity: 1; transform: none; }
#process .pz-live .pz-step.is-in .pz-node { opacity: 1; transform: none; transition-delay: .15s !important; }
#process .pz-live .pz-step.is-in .pz-aside :is(.pz-label, .pz-outcome),
#process .pz-live .pz-step.is-in .pz-body :is(.pz-meta, p, .px-tags li) { opacity: 1; transform: none; }
#process .pz-live .pz-step.is-in .pz-label { transition-delay: .35s, .35s !important; }
#process .pz-live .pz-step.is-in .pz-outcome { transition-delay: .45s, .45s !important; }
#process .pz-live .pz-step.is-in .pz-meta { transition-delay: .3s, .3s !important; }
#process .pz-live .pz-step.is-in .pz-body p { transition-delay: .55s, .55s !important; }
#process .pz-live .pz-step.is-in .px-tags li { transition-delay: calc(.65s + var(--i, 0) * 70ms), calc(.65s + var(--i, 0) * 70ms) !important; }
#process .pz-live .pz-step.is-in .pz-card h3 .w > span { transform: none; transition-delay: calc(.38s + var(--i, 0) * 60ms) !important; }

/* ---------- Reached by the line: connector and number fill; passed nodes become ticks ---------- */
#process .pz-live .pz-step.is-reached .pz-card::after { transform: scaleX(1); }
#process .pz-live .pz-step.is-done .pz-node { border-color: var(--px-blue); }
#process .pz-live .pz-step.is-done .pz-node b { opacity: 0; transform: scale(.5); }
#process .pz-live .pz-step.is-done .pz-node svg { stroke-dashoffset: 0; }
/* Current step: solid ink node, a slightly firmer card edge */
#process .pz-live .pz-step.is-current .pz-node { border-color: var(--px-blue); background: var(--px-blue); color: #fff; }
#process .pz-live .pz-step.is-current .pz-card { border-color: #bfd3f6; box-shadow: 0 40px 70px -44px #2563eb59, 0 2px 6px -3px #0f172a14; }

/* ---------- Product-UI illustrations (pv-*): white window, hairlines, small type, blue accents only ---------- */
#process .pz-scene text { font-family: 'DM Sans', -apple-system, sans-serif; }
#process .pv-win { fill: #fff; filter: drop-shadow(0 14px 24px rgba(10, 30, 90, .28)); }
#process .pv-cover { fill: #fff; }
#process .pv-hair { fill: none; stroke: #e5eaf1; }
#process .pv-dot { fill: #e2e8f0; }
#process .pv-title { font-size: 9.5px; fill: #64748b !important; letter-spacing: .2px; }
#process .pv-label { font-size: 7.6px; font-weight: 600; letter-spacing: 1.3px; fill: #94a3b8 !important; }
#process .pv-t { font-size: 10.5px; font-weight: 500; fill: #0f172a !important; }
#process .pv-s { font-size: 8.8px; fill: #64748b !important; }
#process .pv-val { font-size: 11px; font-weight: 600; fill: #0f172a !important; font-variant-numeric: tabular-nums; }
#process .pv-big { font-size: 14px; font-weight: 600; fill: #0f172a !important; letter-spacing: -.2px; }
#process .pv-h { font-size: 15px; font-weight: 600; fill: #0f172a !important; letter-spacing: -.4px; }
#process .pv-btn-t { font-size: 8px; font-weight: 600; fill: #fff !important; }
#process .pv-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 8.8px; }
#process .pv-ln { fill: #cbd5e1 !important; }
#process .pv-row { fill: #f8fafc; stroke: #e5eaf1; }
#process .pv-card { fill: #fff; stroke: #e2e8f0; }
#process .pv-frame { fill: #f8fafc; stroke: #e5eaf1; }
#process .pv-sel { fill: #2563eb; fill-opacity: .07; stroke: #2563eb; }
#process .pv-radio { fill: none; stroke: #cbd5e1; stroke-width: 1.2; }
#process .pv-radio-on { fill: none; stroke: #2563eb; stroke-width: 1.2; }
#process .pv-blue { fill: #2563eb; }
#process .pv-blue-2 { fill: #60a5fa; }
#process .pv-blue-3 { fill: #bfdbfe; }
#process .pv-violet { fill: #93c5fd; }
#process .pv-track { fill: #e5eaf1; }
#process .pv-fill { fill: #f1f5f9; }
#process .pv-fill-hi { fill: #e2e8f0; }
#process .pv-wire { fill: none; stroke: #cbd5e1; stroke-dasharray: 3 3; }
#process .pv-node { fill: #fff; stroke: #e2e8f0; }
#process .pv-node-root { fill: #eff6ff; stroke: #2563eb; }
#process .pv-node-t { font-size: 9px; fill: #334155 !important; }
#process .pv-node-hi { fill: #1d4ed8 !important; font-weight: 600; }
#process .pv-line { fill: none; stroke: #e2e8f0; }
#process .pv-draw { fill: none; stroke: #2563eb; stroke-width: 1; }
#process .pv-chip { fill: #f8fafc; stroke: #e2e8f0; }
#process .pv-chip-t { font-size: 8.5px; fill: #334155 !important; }
#process .pv-av-t { font-size: 8px; font-weight: 700; fill: #fff !important; }
#process .pv-ok { fill: #2563eb; }
#process .pv-ok-t { font-size: 8.8px; font-weight: 600; fill: #2563eb !important; }
#process .pv-ok-soft { fill: #eff6ff; stroke: #bfdbfe; }
#process .pv-info-soft { fill: #eff6ff; stroke: #bfdbfe; }
#process .pv-info-t { font-size: 8.8px; font-weight: 600; fill: #2563eb !important; }
#process .pv-warn { fill: #94a3b8; }
#process .pv-warn-soft { fill: #f1f5f9; stroke: #e2e8f0; }
#process .pv-warn-t { font-size: 8.8px; font-weight: 600; fill: #64748b !important; }
#process .pv-tick { fill: none; stroke: #2563eb; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#process .pv-tick-w { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#process .pv-sig { fill: none; stroke: #0f172a; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
#process .pv-code { fill: #f8fafc; stroke: #e5eaf1; }
#process .pv-dev { fill: none; stroke: #94a3b8; stroke-width: 1.1; }
#process .pv-dev-base { fill: none; stroke: #94a3b8; stroke-width: 1.1; stroke-linecap: round; }
#process .pv-lock { fill: none; stroke: #2563eb; stroke-width: 1.3; }
#process .pv-mail { fill: none; stroke: #2563eb; stroke-width: 1.1; stroke-linejoin: round; }
#process .pv-k { fill: #1d4ed8 !important; }
#process .pv-f { fill: #2563eb !important; }
#process .pv-c { fill: #2563eb !important; }
#process .pv-a { fill: #3b82f6 !important; }
#process .pv-g { fill: #1e40af !important; }
#process .pv-x { fill: #334155 !important; }
#process .pv-p { fill: #94a3b8 !important; }
#process .pv-spin { fill: none; stroke: #cbd5e1; stroke-width: 1.3; stroke-dasharray: 2.5 2.5; transform-box: fill-box; transform-origin: center; }
#process .pv-spin-warn { stroke: #94a3b8; }
#process .xp-scene.is-on .pv-spin { animation: pvSpin 1.4s linear infinite; }
@keyframes pvSpin { to { transform: rotate(360deg); } }

/* Line drawing: paths carry pathLength="1" */
#process .pz-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease; }
#process .xp-scene.s1 .pz-draw-s1, #process .xp-scene.s2 .pz-draw-s2, #process .xp-scene.s4 .pz-draw-s4 { stroke-dashoffset: 0; }

/* ---------- Tablet: line on the left, outcome strip under each card ---------- */
@media (max-width: 980px) {
    #process .pz-num { display: none; }
    #process .pz { --pz-col: 52px; --pz-gap: 22px; max-width: 720px; }
    #process .pz-steps { gap: 44px; }
    #process .pz-step, #process .pz-step:nth-child(even) {
        grid-template-columns: var(--pz-col) minmax(0, 1fr);
        grid-template-areas: "node card" ". aside";
        row-gap: 12px;
        align-items: start;
    }
    #process .pz-node { margin-top: 26px; }
    #process .pz-line { left: calc(var(--pz-col) / 2); }
    #process .pz-card::before, #process .pz-card::after,
    #process .pz-step:nth-child(even) .pz-card::before, #process .pz-step:nth-child(even) .pz-card::after { top: 52px; left: calc(-1 * var(--pz-gap) - 2px); right: auto; }
    #process .pz-step:nth-child(even) .pz-card::after { transform-origin: left; }
    #process .pz-aside, #process .pz-step:nth-child(even) .pz-aside {
        display: flex;
        align-items: center;
        justify-items: start;
        gap: 12px;
        padding: 12px 16px;
        border: 1px dashed #cbd9ee;
        border-radius: 16px;
        background: #ffffffb8;
        text-align: left;
    }
    #process .pz-label, #process .pz-step:nth-child(even) .pz-label { flex: none; flex-direction: row; margin-top: 0 !important; }
    #process .pz-label::before { display: none; }
    #process .pz-outcome { max-width: none; font-size: 15px !important; }
    #process .pz-live .pz-card,
    #process .pz-live .pz-step:nth-child(even) .pz-card { transform: translate3d(0, 36px, 0) scale(.97); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
    #process .pz { --pz-col: 34px; --pz-gap: 12px; margin-top: 6px; }
    #process .pz-steps { gap: 30px; }
    #process .pz-node { width: 34px; height: 34px; margin-top: 16px; font-size: 13px; }
    #process .pz-node svg { width: 15px; height: 15px; }
    #process .pz-card::before, #process .pz-card::after,
    #process .pz-step:nth-child(even) .pz-card::before, #process .pz-step:nth-child(even) .pz-card::after { top: 33px; }
    #process .pz-card { padding: 7px; border-radius: 22px; }
    #process .pz-scene { border-radius: 16px; }
    #process .pz-body { padding: 16px 10px 10px; }
    #process .pz-meta { margin-bottom: 10px; }
    #process .pz-pill { font-size: 10px; }
    #process .pz-card h3 { font-size: 22px; }
    #process .pz-card p { margin-bottom: 14px !important; font-size: 14.5px; line-height: 1.6; }
    #process .px-tags { gap: 6px; }
    #process .px-tags li { padding: 6px 10px !important; font-size: 11.5px; }
    #process .pz-aside, #process .pz-step:nth-child(even) .pz-aside { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
    #process .pz-outcome { font-size: 14.5px !important; }
}
/* Blueprint screen extras */
#process .pv-ink { fill: #334155; }
#process .pv-blue-4 { fill: #dbeafe; }
#process .pv-select { fill: none; stroke: #2563eb; stroke-width: 1.2; }
#process .pv-handle { fill: #fff; stroke: #2563eb; stroke-width: 1; }

/* ---------- Minimal step cards (2026-11-07) ----------
   Owner rejected the product "window" on a heavy blue panel and the empty placeholder fields.
   Each card is now white with a hairline border; its scene sits on a soft grey panel and is a
   clean diagram where every element carries real text: white chips with hairlines, thin brand
   blue lines that draw in, blue ticks. Played by js/expertise-stories.js (.st / sN classes). */
#process .pz-card { padding: 8px; border-color: #e6ebf2; border-radius: 20px; box-shadow: 0 1px 2px #0f172a0a, 0 20px 44px -30px #0f172a47; }
#process .pz-scene { border-radius: 14px; background: #f6f8fb; box-shadow: inset 0 0 0 1px #edf1f6; }
#process .pz-scene::before, #process .pz-scene::after { display: none !important; }
#process .pz-body { padding: 20px 16px 12px; }
#process .px-tags li { background: transparent; border-color: #e2e8f0; color: #56677d; }

#process .q-label { font-size: 9.5px; font-weight: 500; letter-spacing: 1.4px; fill: #94a3b8; }
#process .q-t { font-size: 12px; font-weight: 500; fill: #152641; }
#process .q-t2 { font-size: 11.5px; fill: #334155; }
#process .q-s { font-size: 10.5px; fill: #64748b; }
#process .q-big { font-size: 26px; font-weight: 500; letter-spacing: -.6px; fill: #152641; }
#process .q-aa { font-size: 13px; font-weight: 600; fill: #2563eb; }
#process .q-chip { fill: #fff; stroke: #e2e8f0; }
#process .q-chip-on { fill: #f5f8ff; stroke: #2563eb; stroke-width: 1.4; }
#process .q-radio { fill: #fff; stroke: #cbd5e1; stroke-width: 1.2; }
#process .q-radio-on { fill: #fff; stroke: #2563eb; stroke-width: 1.4; }
#process .q-dot, #process .q-swatch, #process .q-ok { fill: #2563eb; }
#process .q-okw { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#process .q-line { fill: none; stroke: #d5dde8; stroke-width: 1.2; }
#process .q-hair { fill: none; stroke: #eef2f7; }
#process .q-arrow { fill: none; stroke: #2563eb; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#process .q-draw { fill: none; stroke: #2563eb; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.45, .05, .35, 1) !important; }
#process .xp-scene.s1 .qd-s1, #process .xp-scene.s2 .qd-s2, #process .xp-scene.s3 .qd-s3 { stroke-dashoffset: 0; }
#process .q-agreed { font-size: 10.5px; font-weight: 500; fill: #2563eb; }
#process .q-pill { fill: #eef4ff; stroke: #d6e2fb; }
#process .q-pill-t { font-size: 11px; font-weight: 500; fill: #1d4ed8; }
#process .q-btn { fill: #2563eb; }
#process .q-btn-t { font-size: 12px; font-weight: 500; fill: #fff; }
#process .q-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; fill: #1e40af; }
#process .q-code-s { font-size: 9.5px; fill: #64748b; }
#process .q-track { fill: none; stroke: #e8edf4; stroke-width: 4; stroke-linecap: round; }
#process .q-fill { fill: none; stroke: #2563eb; stroke-width: 4; stroke-linecap: round; }
#process .q-icon { fill: none; stroke: #64748b; stroke-width: 1.3; }
#process .q-live { fill: #2563eb; stroke: #2563eb; }
#process .q-live-t { font-size: 12px; font-weight: 500; fill: #fff; }
#process .q-live-s { font-size: 10.5px; fill: #dbe7ff; }
#process .q-pulse { fill: #fff; animation: qPulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes qPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
