@font-face {
    font-family: "Onest";
    src: url('/fonts/onest/Onest-Variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ink: #151715;
    --ink-soft: #4b514c;
    --muted: #6f746f;
    --line: #e3e5df;
    --canvas: #ffffff;
    --surface: #f5f6f3;
    --accent: #3f463f;
    --accent-ink: #ffffff;
    --positive: #19725a;
    --warning: #8a6400;
    --rail: #111311;
    --rail-line: #2a2d2a;
    --rail-muted: #a7ada7;
    --radius-control: 0.72rem;
    --radius-surface: 1rem;
    --radius-feature: 1.5rem;
    --measure: 40rem;
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* nav sits over content, so it needs its own translucent fill per theme */
    --nav-bg: rgba(255, 255, 255, .82);
    /* the hero engraving: ink is the animal, cut is the line lifted out of it */
    --mark-ink: #0a0a0a;
    --mark-cut: #ffffff;
    --geom: rgba(0, 0, 0, .17);
    --geom-faint: rgba(0, 0, 0, .13);
    --geom-rule: rgba(0, 0, 0, .2);
    --logo-invert: 0;
}

/* Dark theme. The map section keeps its own near-black palette either way — it is an
   inverted moment by design, not a themed surface. */
[data-theme="dark"] {
    color-scheme: dark;
    --ink: #eef0ec;
    --ink-soft: #b9bfb9;
    --muted: #8f958f;
    --line: #282c28;
    --canvas: #0d0f0e;
    --surface: #161916;
    --accent: #c8d0c6;
    --accent-ink: #0d0f0e;
    --positive: #4bbf9a;
    --warning: #d0a53c;
    /* the inverted band must read as raised here, not as another hole in the page */
    --rail: #1b1f1b;
    --rail-line: #333833;
    --rail-muted: #a7ada7;

    --nav-bg: rgba(13, 15, 14, .82);
    --mark-ink: #f0f2ee;
    --mark-cut: #0d0f0e;
    --geom: rgba(255, 255, 255, .18);
    --geom-faint: rgba(255, 255, 255, .12);
    --geom-rule: rgba(255, 255, 255, .22);
    --logo-invert: 1;
}

* { box-sizing: border-box; }

.zlp-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

html {
    scroll-behavior: smooth;
}

body.zlp {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Onest", ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.zlp img { max-width: 100%; display: block; }
.zlp a { color: inherit; }
.zlp section { position: relative; }

.zlp-wrap {
    max-width: 74rem;
    margin: 0 auto;
    padding-inline: 1.5rem;
}

@media (max-width: 720px) {
    .zlp-wrap { padding-inline: 1.25rem; }
}

/* ---------- Nav ---------- */
.zlp-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    /* the bar itself is full width; .zlp-nav-inner puts its contents on the page column,
       so the wordmark lines up with the hero headline instead of the viewport edge */
    padding-block: 1rem;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.zlp-nav.is-scrolled { border-bottom-color: var(--line); }

.zlp-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.zlp-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.zlp-brand img { height: 1.9rem; width: auto; filter: invert(var(--logo-invert)); }
.zlp-brand span { font-weight: 730; font-size: 1.05rem; letter-spacing: -.02em; }

.zlp-nav-links { display: flex; align-items: center; gap: 1.8rem; }
.zlp-nav-links a {
    text-decoration: none;
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: color .15s var(--ease);
}
.zlp-nav-links a:hover { color: var(--ink); }

@media (max-width: 800px) {
    .zlp-nav-links { display: none; }
}

.zlp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: .86rem;
    letter-spacing: -.01em;
    border-radius: var(--radius-control);
    padding: .68rem 1.15rem;
    text-decoration: none;
    transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.zlp-btn.zlp-btn-primary { background: var(--ink); color: var(--canvas); }
.zlp-btn.zlp-btn-primary:hover { transform: translateY(-1px); background: var(--accent); }
.zlp-btn.zlp-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.zlp-btn.zlp-btn-ghost:hover { border-color: var(--ink); }
.zlp-btn.zlp-btn-invert { background: #fff; color: var(--rail); }
.zlp-btn.zlp-btn-invert:hover { transform: translateY(-1px); background: #eeeee7; }
.zlp-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- icon controls in the nav ---------- */
.zlp-nav-tools { display: flex; align-items: center; gap: .5rem; }

.zlp-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.zlp-icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.zlp-icon-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* pressed = the decorative animation is switched off */
.zlp-icon-btn[aria-pressed="true"] { color: var(--muted); background: var(--surface); }

/* one icon per state; the theme button swaps which half is shown */
.zlp-icon-btn .zlp-icon-dark { display: none; }
[data-theme="dark"] .zlp-icon-btn .zlp-icon-dark { display: block; }
[data-theme="dark"] .zlp-icon-btn .zlp-icon-light { display: none; }

@media (max-width: 420px) {
    /* Keep access and preference controls readable; the contact CTA remains in the hero. */
    .zlp-nav-tools { gap: .35rem; }
    .zlp-nav-tools .zlp-btn { padding-inline: .75rem; white-space: nowrap; }
    .zlp-nav-tools .zlp-btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.zlp-hero {
    padding: 4.5rem 0 3rem;
    overflow: hidden;
}
.zlp-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 900px) {
    .zlp-hero-grid { grid-template-columns: 1fr; }
}

.zlp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .35rem .8rem;
    margin-bottom: 1.4rem;
}
.zlp-eyebrow::before {
    content: '';
    width: .4rem; height: .4rem;
    border-radius: 50%;
    background: var(--positive);
}

.zlp-h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.75rem);
    font-weight: 780;
    line-height: .98;
    letter-spacing: -.035em;
    margin: 0 0 1.2rem;
}
.zlp-h1 em { font-style: normal; color: var(--accent); }

.zlp-lede {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 34rem;
    margin: 0 0 2rem;
}

.zlp-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.zlp-hero-note {
    font-size: .78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Hero plate: black engraving on white, arms re-drawn each frame by octopuz-plate.js */
.zlp-hero-mark {
    position: relative;
    display: block;
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
}

.zlp-mascot-trigger {
    padding: 0;
    border: 0;
    border-radius: 42% 48% 46% 44%;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.zlp-mascot-trigger .zlp-plate {
    transform-origin: 50% 52%;
    transition: opacity .9s var(--ease), transform .35s var(--ease), filter .35s var(--ease);
}
.zlp-mascot-trigger:hover .zlp-plate {
    transform: translateY(-3px) scale(1.012);
    filter: drop-shadow(0 14px 22px rgba(15, 18, 15, .08));
}
.zlp-mascot-trigger:hover [data-arm="a4"] {
    transform-box: fill-box;
    transform-origin: 18% 20%;
    transform: rotate(-1.8deg) translate(2px, -2px);
}
.zlp-mascot-trigger:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: .35rem;
}
.zlp-mascot-trigger:disabled { cursor: wait; }
.zlp-mascot-trigger.is-journey-source-hidden .zlp-plate { opacity: 0 !important; }
.zlp-mascot-trigger.is-journey-source-hidden .zlp-mascot-hint { opacity: 0 !important; }

.zlp-mascot-hint {
    position: absolute;
    left: 50%;
    bottom: 4.5%;
    z-index: 2;
    padding: .42rem .72rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: color-mix(in srgb, var(--canvas) 90%, transparent);
    box-shadow: 0 7px 22px rgba(24, 30, 25, .06);
    color: var(--ink-soft);
    font-size: .68rem;
    font-weight: 680;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    pointer-events: none;
}
.zlp-mascot-trigger:hover .zlp-mascot-hint,
.zlp-mascot-trigger:focus-visible .zlp-mascot-hint {
    opacity: 1;
    transform: translate(-50%, 0);
}

.zlp-plate {
    margin: 0;
    opacity: 0;
    transition: opacity .9s var(--ease);
}
.zlp-plate.is-ready { opacity: 1; }
.zlp-plate svg { display: block; width: 100%; height: auto; overflow: visible; }

/* the engraving's only colour contract with octopuz-plate.js and the tentacle layer */
.zlp-mark-ink { fill: var(--mark-ink); }
.zlp-mark-cut { fill: none; stroke: var(--mark-cut); }
.zlp-mark-cup { fill: var(--mark-cut); }

/* the construction system stays an order of magnitude quieter than the animal */
.zlp-geom { fill: none; stroke: var(--geom); stroke-width: 1.1; }
.zlp-geom-faint { stroke: var(--geom-faint); }
.zlp-geom-rule { stroke: var(--geom-rule); }

@media (max-width: 900px) {
    /* fine engraving is noise at phone size; the silhouette carries it instead */
    .zlp-hero-mark { max-width: 26rem; }
    .zlp-geom-faint { display: none; }
}

/* ---------- Tentacles reaching in from beyond the viewport ----------
   Absolute, not fixed: they belong to the top of the page and should scroll away with it
   rather than follow the reader down. */
.zlp-tentacles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;                 /* the arms overflow it; it must never add page height */
    /* The edge-hugging silhouettes can lie over the page without intercepting it. Their
       authored curves stay outside the navigation until below the header band. */
    z-index: 45;
    pointer-events: none;
    overflow: visible;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .08));
}

.zlp-tent { position: absolute; top: 0; height: auto; overflow: visible; }
.zlp-tent-right { right: 0; width: 27rem; }

/* The left arm only appears once the container has real side margin to sit in —
   below that it would land on the logo and the eyebrow instead of beside them. */
.zlp-tent-left { display: none; left: 0; width: 11rem; }
@media (min-width: 1080px) {
    .zlp-tent-left { display: block; }
}

@media (max-width: 1024px) {
    .zlp-tent-right { width: 21rem; }
}
@media (max-width: 600px) {
    /* On the narrow header the paired arm passes behind the navigation glass, keeping the
       compact CTA perfectly legible while the silhouette still reads at the edge. */
    .zlp-tentacles { z-index: 35; }
    .zlp-tent-right { width: 15rem; }
}
@media (prefers-reduced-motion: reduce) {
    .zlp-tentacles { display: none; }
}

/* ---------- Fixed mascot journey ----------
   The body braces in this layer while the page scrolls underneath. Only after two arms
   establish visible anchors is its transform allowed to change position. */
.zlp-travel-layer {
    position: fixed;
    inset: 0;
    z-index: 80;
    overflow: hidden;
    pointer-events: none;
    isolation: isolate;
}
.zlp-travel-octopus {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 2;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    filter:
        drop-shadow(0 0 2px rgba(238, 240, 235, .92))
        drop-shadow(0 14px 24px rgba(0, 0, 0, .16));
}
.zlp-travel-octopus .zlp-plate {
    width: 100%;
    margin: 0;
    opacity: 1;
}
.zlp-travel-octopus .zlp-plate svg { overflow: visible; }
.zlp-travel-octopus .zlp-mark-ink,
.zlp-travel-octopus .zlp-mark-cut,
.zlp-travel-octopus .zlp-mark-cup { transition: fill .22s ease, stroke .22s ease; }
.zlp-travel-octopus.is-at-map {
    --mark-ink: #eef0eb;
    --mark-cut: #121512;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .38));
}
.zlp-travel-octopus [data-arm] {
    transform-box: fill-box;
    transform-origin: 30% 25%;
    will-change: transform;
}
.zlp-travel-octopus [data-arm="a2"],
.zlp-travel-octopus [data-arm="a4"] { transform-origin: 18% 36%; }
.zlp-travel-octopus [data-arm="a5"],
.zlp-travel-octopus [data-arm="a6"] { transform-origin: 50% 16%; }

.zlp-reach-svg {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    overflow: visible;
    --reach-ink: var(--mark-ink);
    --reach-cut: var(--mark-cut);
}
.zlp-reach-svg.is-at-map {
    --reach-ink: #eef0eb;
    --reach-cut: #121512;
}
.zlp-reach-ink {
    fill: var(--reach-ink);
    stroke: #eef0eb;
    stroke-width: 3;
    paint-order: stroke fill;
    transition: fill .22s ease, stroke .22s ease;
}
.zlp-reach-svg.is-at-map .zlp-reach-ink { stroke: #121512; }
.zlp-reach-cut { fill: none; stroke: var(--reach-cut); stroke-width: 1.25; stroke-linecap: round; opacity: .28; transition: stroke .22s ease; }
.zlp-reach-cup { fill: var(--reach-cut); opacity: .58; transition: fill .22s ease; }
.zlp-reach-ring { fill: none; stroke: #d9b040; stroke-width: 2; opacity: 0; }

@media (max-width: 700px) {
    .zlp-mascot-hint { display: none; }
    .zlp-travel-octopus { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); }
}
@media (prefers-reduced-motion: reduce) {
    .zlp-mascot-trigger:hover .zlp-plate { transform: none; filter: none; }
    .zlp-mascot-trigger:hover [data-arm="a4"] { transform: none; }
    .zlp-mascot-hint { transition: none; transform: translate(-50%, 0); }
}

/* ---------- Arms reaching in from the edges as you scroll ----------
   Anchored to a section rather than the viewport, so they belong to that band of the
   page. Zero height: they must never add to the section's own layout. */
.zlp-reach {
    position: absolute;
    top: 14%;
    width: 27rem;
    /* a real box so the observer has something to intersect; being absolute, it still
       contributes nothing to the section's layout */
    aspect-ratio: 460 / 300;
    /* behind the column: the arm reaches in from the margin and slides under the
       cards rather than lying across their text */
    z-index: 0;
    pointer-events: none;
    display: block;
}
.zlp-reach[data-side="left"] { left: 0; }
/* mirrored, so one authored curve serves both edges without reading as a copy */
.zlp-reach[data-side="right"] { right: 0; transform: scaleX(-1); }

.zlp-reach-svg { display: block; width: 100%; height: auto; overflow: visible; }

@media (max-width: 1100px) {
    .zlp-reach { width: 19rem; }
}
@media (max-width: 720px) {
    /* the column is the whole screen here; an arm across it would sit on the text */
    .zlp-reach { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .zlp-reach { display: none; }
}

/* ---------- Reveal on scroll ---------- */
.zlp-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.zlp-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Section scaffolding ---------- */
.zlp-section { padding: 5rem 0; }
.zlp-section-head { max-width: 38rem; margin-bottom: 2.75rem; }
.zlp-kicker {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}
.zlp-h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    font-weight: 760;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin: 0 0 .85rem;
}
.zlp-section-head p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* ---------- Compare ---------- */
.zlp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .zlp-compare { grid-template-columns: 1fr; } }
.zlp-compare-card {
    border-radius: var(--radius-feature);
    padding: 1.9rem;
    border: 1px solid var(--line);
}
.zlp-compare-card.is-them { background: var(--surface); }
.zlp-compare-card.is-us { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.zlp-compare-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1.1rem; opacity: .65; }
.zlp-compare-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.zlp-compare-card li { display: flex; gap: .65rem; font-size: .92rem; line-height: 1.45; }
.zlp-compare-card li svg { flex-shrink: 0; margin-top: .15rem; }
.zlp-compare-card.is-them li svg { color: var(--muted); }
.zlp-compare-card.is-us li svg { color: var(--canvas); }

/* ---------- Pipeline (inverted section) ---------- */
.zlp-rail-section { background: var(--rail); color: #f3f4f1; }
.zlp-rail-section .zlp-section-head p { color: var(--rail-muted); }
.zlp-rail-section .zlp-kicker { color: #9fe6c8; }

.zlp-pipeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rail-line);
    border: 1px solid var(--rail-line);
    border-radius: var(--radius-surface);
    overflow: hidden;
}
@media (max-width: 760px) { .zlp-pipeline { grid-template-columns: 1fr; } }
.zlp-step {
    background: var(--rail);
    padding: 1.75rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.zlp-step-num {
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: .72rem;
    color: var(--rail-muted);
}
.zlp-step h3 { margin: 0; font-size: 1.02rem; font-weight: 720; letter-spacing: -.01em; }
.zlp-step p { margin: 0; font-size: .86rem; color: var(--rail-muted); line-height: 1.5; }

/* ---------- Evidence levels ---------- */
.zlp-evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .zlp-evidence-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .zlp-evidence-grid { grid-template-columns: 1fr; } }
.zlp-evidence-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    padding: 1.3rem;
    background: var(--canvas);
}
.zlp-evidence-chip {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .01em;
    padding: .3rem .6rem;
    border-radius: 999px;
    margin-bottom: .7rem;
}
.zlp-evidence-chip.lvl-measured { background: #e6f3ee; color: var(--positive); }
.zlp-evidence-chip.lvl-registry { background: var(--ink); color: var(--canvas); }
.zlp-evidence-chip.lvl-estimated { background: #f6efdd; color: var(--warning); }
.zlp-evidence-chip.lvl-inferred { background: var(--surface); color: var(--ink-soft); border: 1px dashed var(--line); }
.zlp-evidence-chip.lvl-hypothesis { background: var(--surface); color: var(--ink-soft); border: 1px dashed var(--line); }
.zlp-evidence-chip.lvl-unknown { background: var(--surface); color: var(--muted); }
.zlp-evidence-card p { margin: 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Non-goals ---------- */
.zlp-restraint-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (max-width: 700px) { .zlp-restraint-list { grid-template-columns: 1fr; } }
.zlp-restraint-list li {
    list-style: none;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    /* opaque so a reaching arm passes behind the text instead of through it */
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    padding: 1rem 1.1rem;
    font-size: .9rem;
    color: var(--ink-soft);
}
.zlp-restraint-list svg { flex-shrink: 0; margin-top: .1rem; color: var(--ink); }

/* ---------- Contact ---------- */
.zlp-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .zlp-contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

.zlp-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.zlp-field label { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.zlp-field input, .zlp-field textarea {
    font-family: inherit;
    font-size: .92rem;
    padding: .75rem .85rem;
    border-radius: var(--radius-control);
    border: 1px solid var(--line);
    background: var(--canvas);
    color: var(--ink);
    resize: vertical;
}
.zlp-field input:focus, .zlp-field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(21, 23, 21, .08);
}
.zlp-field-hp { position: absolute; left: -9999px; top: -9999px; }

.zlp-form-status { font-size: .84rem; margin-top: .6rem; min-height: 1.2em; }
.zlp-form-status.is-ok { color: var(--positive); }
.zlp-form-status.is-err { color: #b44d47; }

/* ---------- Footer ---------- */
.zlp-footer {
    border-top: 1px solid var(--line);
    padding: 2.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.zlp-footer .zlp-brand img { height: 1.5rem; }
.zlp-footer-note { font-size: .8rem; color: var(--muted); }

/* ---------- Command dock ----------
   Collapsed it is a segmented rail; expanded, the assistant sheet grows upward out of it.
   One anchored object in two states, rather than a launcher plus a separate window. */
.zlp-dock {
    position: fixed;
    left: 50%;
    bottom: 1.4rem;
    z-index: 60;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    max-width: calc(100vw - 1.5rem);
}

.zlp-dock-bar {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .38rem;
    border-radius: 999px;
    background: var(--rail);
    border: 1px solid var(--rail-line);
    box-shadow: 0 16px 40px rgba(9, 11, 9, .34);
}

.zlp-dock .zlp-dock-seg {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .58rem .85rem;
    border-radius: 999px;
    color: var(--rail-muted);
    font-size: .82rem;
    font-weight: 640;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s var(--ease), background .18s var(--ease);
}
.zlp-dock .zlp-dock-seg:hover { color: #f3f4f1; background: rgba(255, 255, 255, .07); }
.zlp-dock .zlp-dock-seg svg { flex-shrink: 0; }

.zlp-dock .zlp-dock-seg.is-mark { padding: .5rem .55rem; }
.zlp-dock-seg.is-mark img { height: 1.35rem; width: auto; filter: invert(1); }

.zlp-dock-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    margin-left: .18rem;
    border: none;
    border-radius: 50%;
    background: #f4f5f1;
    color: #141714;
    cursor: pointer;
    transition: transform .32s var(--ease), background .18s var(--ease);
}
.zlp-dock-action:hover { background: #fff; }
.zlp-dock-action:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* the plus becomes a close mark once the sheet is out */
.zlp-dock.is-open .zlp-dock-action { transform: rotate(135deg); }

/* ---------- the assistant sheet ---------- */
.zlp-dock-sheet {
    width: 23rem;
    max-width: calc(100vw - 1.5rem);
    height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: var(--radius-feature);
    box-shadow: 0 24px 60px rgba(15, 18, 15, .3);
    transform: translateY(10px) scale(.97);
    transform-origin: 50% 100%;
    pointer-events: none;
    transition: height .34s var(--ease), opacity .22s var(--ease), transform .34s var(--ease);
}
.zlp-dock.is-open .zlp-dock-sheet {
    height: min(27rem, calc(100vh - 9rem));
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.zlp-dock-sheet-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1rem;
    background: var(--rail);
    color: #f3f4f1;
    flex-shrink: 0;
}
.zlp-dock-mark { display: inline-flex; }
.zlp-dock-sheet-head img { height: 1.5rem; filter: invert(1); }
.zlp-dock-sheet-head strong { font-size: .88rem; display: block; }
.zlp-dock-sheet-head small { font-size: .72rem; color: var(--rail-muted); display: block; }

@media (max-width: 640px) {
    /* labels go, icons stay: the rail keeps its shape without wrapping */
    .zlp-dock-seg span { display: none; }
    .zlp-dock .zlp-dock-seg { padding: .58rem .62rem; }
    .zlp-dock { bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .zlp-dock-sheet, .zlp-dock-action { transition-duration: .01ms; }
}

.zlp-chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; }
.zlp-msg { max-width: 85%; padding: .55rem .75rem; border-radius: .8rem; font-size: .86rem; line-height: 1.45; }
.zlp-msg.from-bot { align-self: flex-start; background: var(--surface); border-bottom-left-radius: .2rem; }
.zlp-msg.from-user { align-self: flex-end; background: var(--ink); color: var(--canvas); border-bottom-right-radius: .2rem; }
.zlp-msg.is-typing { display: flex; gap: .25rem; padding: .7rem .85rem; }
.zlp-msg.is-typing span { width: .35rem; height: .35rem; border-radius: 50%; background: var(--muted); animation: zlp-typing 1s infinite ease-in-out; }
.zlp-msg.is-typing span:nth-child(2) { animation-delay: .15s; }
.zlp-msg.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes zlp-typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.zlp-chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.zlp-chat-form input {
    flex: 1;
    font-family: inherit;
    font-size: .86rem;
    padding: .6rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.zlp-chat-form input:focus { outline: none; border-color: var(--ink); }
.zlp-chat-form button {
    background: var(--ink);
    color: var(--canvas);
    border: none;
    border-radius: 50%;
    width: 2.3rem;
    height: 2.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.zlp-chat-form button:disabled { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   Global opportunities map
   The page stays white; this block inverts hard to near-black, which is where
   most of the impact comes from. Gold is scoped to this block only: the site
   accent (--accent, olive graphite) disappears against near-black and cannot
   carry the moment where a single country lights up.
   ========================================================================== */

.zmap-section {
    padding: 5.5rem 0 4.5rem;
    --zmap-gold: #c49a2c;
    --zmap-gold-soft: #8a6c22;
    --zmap-gold-bright: #d9b040;
    --zmap-ink: #0b0d0c;
    --zmap-land: #202321;
    --zmap-land-off: #161917;
    --zmap-edge: rgba(255, 255, 255, .12);
}
.zmap-wrap { max-width: 84rem; }

.zmap-head { max-width: 44rem; margin: 0 auto 2.75rem; text-align: center; }

.zmap-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #8a6c22;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .45rem .95rem;
    margin-bottom: 1.5rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.zmap-h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 780;
    line-height: 1;
    letter-spacing: -.038em;
}
.zmap-sub { margin: 0 auto; max-width: 34rem; color: var(--muted); font-size: 1.02rem; }

/* ---------- the plate ----------
   Full-bleed: the header stays in the container, the map itself breaks out to the
   full viewport so the white-to-black switch happens edge to edge. */
.zmap-plate {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 22rem;
    max-height: 44rem;
    overflow: hidden;
    background: radial-gradient(120% 90% at 50% 0%, #141715 0%, var(--zmap-ink) 62%), var(--zmap-ink);
    border-block: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 40px 90px rgba(11, 13, 12, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* slow ambient light drift: the only thing moving before the user touches anything */
.zmap-glow {
    position: absolute;
    inset: -25%;
    background: radial-gradient(38% 46% at 32% 34%, rgba(196, 154, 44, .13), transparent 70%);
    animation: zmap-drift 26s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes zmap-drift {
    from { transform: translate3d(-3%, -2%, 0); }
    to   { transform: translate3d(6%, 4%, 0); }
}

.zmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- country states ---------- */
.zmap-c {
    fill: var(--zmap-land-off);
    stroke: rgba(255, 255, 255, .07);
    stroke-width: .6;
    stroke-linejoin: round;
    transition: fill .2s var(--ease), stroke .2s var(--ease);
}
/* modelled markets read one step brighter, so coverage is legible before any hover */
.zmap-c.is-live {
    fill: var(--zmap-land);
    stroke: var(--zmap-edge);
    cursor: pointer;
}
.zmap-c.is-live:hover {
    fill: var(--zmap-gold-soft);
    stroke: rgba(217, 176, 64, .5);
}
.zmap-c.is-live:focus-visible {
    fill: var(--zmap-gold-soft);
    stroke: #fff;
    stroke-width: 1.4;
    outline: none;
}
.zmap-c.is-selected,
.zmap-c.is-selected:hover {
    fill: var(--zmap-gold);
    stroke: var(--zmap-gold-bright);
    stroke-width: .9;
}
.zmap-c.is-journey-hit {
    animation: zmap-contact .52s cubic-bezier(.16, 1, .3, 1);
}
@keyframes zmap-contact {
    0%   { fill: var(--zmap-gold-soft); stroke-width: .9; }
    38%  { fill: var(--zmap-gold-bright); stroke: #fff0ad; stroke-width: 2.2; }
    100% { fill: var(--zmap-gold); stroke: var(--zmap-gold-bright); stroke-width: .9; }
}

/* hotspots sit above the countries, so they must not swallow clicks on the land beneath */
.zmap-hotspots { pointer-events: none; }
.zmap-hot {
    animation: zmap-pulse 4.4s ease-in-out infinite;
    animation-delay: var(--delay);
}
@keyframes zmap-pulse {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}

/* one quiet nudge on arrival so the map reads as interactive without opening a card */
.zmap-c.is-teasing { animation: zmap-tease 1.9s ease-in-out 2; }
@keyframes zmap-tease {
    0%, 100% { fill: var(--zmap-land); }
    50% { fill: var(--zmap-gold-soft); }
}

/* ---------- floating market card ---------- */
.zmap-card {
    position: absolute;
    z-index: 5;
    width: 17.5rem;
    padding: 1.35rem 1.4rem 1.2rem;
    border-radius: 1.25rem;
    background: rgba(24, 26, 24, .94);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    backdrop-filter: blur(14px);
    color: #f2f3f0;
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.zmap-card.is-open { opacity: 1; transform: none; }

.zmap-card-close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    display: flex;
    padding: .35rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: color .15s var(--ease), background .15s var(--ease);
}
.zmap-card-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.zmap-card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.zmap-card-name { font-size: 1.05rem; font-weight: 720; letter-spacing: -.015em; }

/* Emoji flags do not render on every platform. The badge is sized so the ISO letters
   Windows substitutes still look deliberate rather than broken. */
.zmap-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    height: 1.3rem;
    padding-inline: .2rem;
    border-radius: .3rem;
    background: rgba(255, 255, 255, .09);
    font-size: .95rem;
    line-height: 1;
    font-weight: 700;
}

.zmap-card-label { margin: 0 0 .35rem; font-size: .78rem; color: rgba(255, 255, 255, .55); }
.zmap-card-count {
    margin: 0 0 .7rem;
    font-size: 2.85rem;
    font-weight: 760;
    line-height: 1;
    letter-spacing: -.035em;
    color: var(--zmap-gold-bright);
    font-variant-numeric: tabular-nums;
}
.zmap-card-note { margin: 0 0 1.15rem; font-size: .82rem; line-height: 1.45; color: rgba(255, 255, 255, .6); }

.zmap-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .72rem 1rem;
    border-radius: .72rem;
    background: var(--zmap-gold);
    color: #17190f;
    font-size: .86rem;
    font-weight: 720;
    text-decoration: none;
    transition: background .18s var(--ease), transform .18s var(--ease);
}
.zmap-cta:hover { background: var(--zmap-gold-bright); transform: translateY(-1px); }

.zmap-card-foot {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: .85rem 0 0;
    font-size: .72rem;
    color: rgba(255, 255, 255, .45);
}

.zmap-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--zmap-gold); flex-shrink: 0; }
.zmap-dot.is-emerging { background: var(--zmap-gold-soft); }

/* ---------- pointer tooltip ---------- */
.zmap-tip {
    position: absolute;
    z-index: 4;
    padding: .4rem .6rem;
    border-radius: .5rem;
    background: rgba(18, 20, 18, .92);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #eceee9;
    font-size: .74rem;
    line-height: 1.35;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s var(--ease);
}
.zmap-tip.is-on { opacity: 1; }
.zmap-tip b { color: var(--zmap-gold-bright); font-weight: 700; }

/* ---------- legend + hint ---------- */
.zmap-legend, .zmap-hint {
    position: absolute;
    bottom: 1.35rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .74rem;
    color: rgba(255, 255, 255, .42);
    pointer-events: none;
}
.zmap-legend { left: 1.6rem; }
.zmap-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.zmap-legend em { font-style: normal; color: rgba(255, 255, 255, .18); }
/* top-right, not bottom-right: the floating chat launcher owns that corner of the viewport */
.zmap-hint { top: 1.35rem; bottom: auto; right: 1.6rem; }

.zmap-disclosure {
    max-width: 40rem;
    margin: 1.1rem auto 0;
    text-align: center;
    font-size: .76rem;
    line-height: 1.5;
    color: var(--muted);
}

/* ---------- mobile: a pinned sheet, not a chased centroid ---------- */
@media (max-width: 768px) {
    .zmap-section { padding: 3.5rem 0 3rem; }
    .zmap-plate {
        aspect-ratio: auto;
        height: 28rem;
        min-height: 0;
        border-radius: 1.25rem;
    }
    /* crop toward the populated band so countries stay readable at this width */
    .zmap-svg { width: 168%; left: -34%; }

    .zmap-card {
        left: .75rem !important;
        right: .75rem !important;
        top: auto !important;
        bottom: .75rem !important;
        width: auto;
        padding: 1.1rem 1.15rem 1rem;
    }
    .zmap-card-count { font-size: 2.2rem; }
    .zmap-card-note { margin-bottom: .9rem; }
    .zmap-legend { left: 1rem; bottom: 1rem; font-size: .68rem; }
    .zmap-legend em, .zmap-legend span:last-of-type { display: none; }
    .zmap-hint, .zmap-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .zmap-glow, .zmap-hot { animation: none; }
    .zmap-c.is-journey-hit { animation: none; }
    .zmap-card { transform: none; transition: opacity .2s linear; }
}
