/* ============================================================
   Full Business Solution — page-specific styles.
   Typography, buttons and tokens come from get-started.css
   (.gs-page). Accent = the "full" path purple.
   ============================================================ */
.fbs-page {
    --gs-accent: #a78bfa;
    --gs-accent-dark: #8b5cf6;
    --fbs-rgb: 167, 139, 250;
    --fbs-warn: #fbbf24;          /* "needs attention" amber */
    --fbs-ok: #34d399;            /* "connected / improving" green */
}

/* ---- Under the hood: the architecture schematic section ---- */
.fbs-under { background: var(--gs-bg); }
.fbs-under .fbs-stage { margin-top: var(--gs-5); }

/* ---- The schematic stage ---- */
.fbs-stage {
    position: relative;
    height: clamp(440px, 64vh, 640px);
    display: none;                 /* mobile: copy only */
}
@media (min-width: 768px) {
    .fbs-stage { display: block; }
}
.fbs-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.fbs-line {
    stroke: rgba(var(--fbs-rgb), 0.22);
    stroke-width: 1.5;
    stroke-dasharray: var(--len, 600);
    stroke-dashoffset: var(--len, 600);
    transition: stroke-dashoffset 0.5s ease;
}
.fbs-stage.is-built .fbs-line { stroke-dashoffset: 0; }

/* ---- Group colour-coding: each cluster takes a theme accent, and its
   nodes, label, spoke lines and pulses follow. ---- */
.fbs-stage [data-group="access"]    { --gc: #60a5fa; }
.fbs-stage [data-group="tools"]     { --gc: #34d399; }
.fbs-stage [data-group="ai"]        { --gc: #818cf8; }
.fbs-stage [data-group="comms"]     { --gc: #f472b6; }
.fbs-stage [data-group="knowledge"] { --gc: #2dd4bf; }
.fbs-line--access    { stroke: rgba(96, 165, 250, 0.25); }
.fbs-line--tools     { stroke: rgba(52, 211, 153, 0.25); }
.fbs-line--ai        { stroke: rgba(129, 140, 248, 0.25); }
.fbs-line--comms     { stroke: rgba(244, 114, 182, 0.25); }
.fbs-line--knowledge { stroke: rgba(45, 212, 191, 0.25); }
.fbs-pulse {
    fill: var(--gs-accent);
    filter: drop-shadow(0 0 7px rgba(var(--fbs-rgb), 0.9));
}

/* The hub */
.fbs-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    padding: 0.85rem 1.5rem;
    /* solid (opaque) fill so lines and glows never show through the pill */
    background: #1e1b31;
    border: 1px solid var(--gs-accent);
    border-radius: var(--gs-radius-pill);
    box-shadow: 0 0 34px rgba(var(--fbs-rgb), 0.35);
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}
.fbs-stage.is-built .fbs-hub { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fbs-hub span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gs-accent);
    white-space: nowrap;
}
.fbs-hub::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(var(--fbs-rgb), 0.45);
    border-radius: inherit;
    animation: fbs-hub-ring 2.6s ease-out infinite;
}
@keyframes fbs-hub-ring {
    from { transform: scale(0.92); opacity: 1; }
    to   { transform: scale(1.28); opacity: 0; }
}

/* Nodes — logo tiles and text tiles */
.fbs-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%) scale(0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}
.fbs-stage.is-built .fbs-node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fbs-node__logo {
    width: 52px;
    aspect-ratio: 1 / 1;
    border-radius: 13px;
    background: var(--gs-surface);
    border: 1px solid var(--gs-border);
    position: relative;
}
.fbs-node__logo::after {
    content: "";
    position: absolute;
    inset: 24%;
    background: var(--gs-text-dim);
    -webkit-mask: var(--logo) center / contain no-repeat;
            mask: var(--logo) center / contain no-repeat;
}
.fbs-node.is-glow .fbs-node__logo,
.fbs-node.is-glow .fbs-node__tag {
    border-color: var(--gs-accent);
    box-shadow: 0 0 16px rgba(var(--fbs-rgb), 0.45);
}
.fbs-node.is-glow .fbs-node__logo::after { background: var(--gs-accent); }
.fbs-node__label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
    white-space: nowrap;
}
.fbs-node__tag {
    padding: 0.5rem 0.95rem;
    background: var(--gs-surface);
    border: 1px solid var(--gs-border-strong);
    border-radius: var(--gs-radius-pill);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gs-text);
    white-space: nowrap;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.fbs-node.is-glow .fbs-node__tag { color: var(--gs-accent); }

/* group-tinted node visuals (override the neutral defaults above) */
.fbs-node[data-group] .fbs-node__logo {
    border-color: color-mix(in srgb, var(--gc) 45%, transparent);
}
.fbs-node[data-group] .fbs-node__logo::after {
    background: color-mix(in srgb, var(--gc) 55%, var(--gs-text-dim));
}
.fbs-node[data-group] .fbs-node__label {
    color: color-mix(in srgb, var(--gc) 70%, var(--gs-text-faint));
}
.fbs-node[data-group] .fbs-node__tag {
    border-color: color-mix(in srgb, var(--gc) 45%, transparent);
    color: color-mix(in srgb, var(--gc) 28%, var(--gs-text));
}
.fbs-glabel[data-group] { color: var(--gc); }
/* the ambient glow takes the group colour too */
.fbs-node[data-group].is-glow .fbs-node__logo,
.fbs-node[data-group].is-glow .fbs-node__tag {
    border-color: var(--gc);
    box-shadow: 0 0 16px color-mix(in srgb, var(--gc) 50%, transparent);
}
.fbs-node[data-group].is-glow .fbs-node__logo::after { background: var(--gc); }
.fbs-node[data-group].is-glow .fbs-node__tag { color: var(--gc); }

/* Faint group labels */
.fbs-glabel {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
    opacity: 0;
    transition: opacity 0.5s ease 2.3s;   /* appear after the build */
    pointer-events: none;
}
.fbs-stage.is-built .fbs-glabel { opacity: 0.75; }

@media (prefers-reduced-motion: reduce) {
    .fbs-line,
    .fbs-hub,
    .fbs-node,
    .fbs-glabel { transition: none; }
    .fbs-hub::after { animation: none; }
}

/* ---- What it does — action grid ---- */
.fbs-does {
    background: var(--gs-bg-alt);
    scroll-margin-top: 4.5rem;   /* clear the fixed nav on anchor jumps */
}
.fbs-does__grid {
    list-style: none;
    margin: var(--gs-5) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gs-3);
}
@media (min-width: 680px)  { .fbs-does__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fbs-does__grid { grid-template-columns: repeat(3, 1fr); } }
.fbs-does__card {
    background: var(--gs-surface);
    border: 1px solid var(--gs-border);
    border-top: 3px solid var(--gs-accent);
    border-radius: var(--gs-radius);
    padding: clamp(1.4rem, 2.6vw, 2rem);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fbs-does__card:hover {
    transform: translateY(-3px);
    border-color: var(--gs-border-strong);
    box-shadow: 0 16px 44px -20px rgba(var(--fbs-rgb), 0.5);
}
.fbs-does__card { display: flex; flex-direction: column; }
.fbs-does__num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gs-accent);
}
.fbs-does__name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0.45rem 0 0;
}
/* the messy arrival, quoted */
.fbs-does__input {
    margin: 0.55rem 0 0;
    padding-left: 0.65rem;
    border-left: 2px solid var(--gs-border-strong);
    font-size: 0.8rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--gs-text-dim);
}
.fbs-does__input span {
    display: block;
    font-style: normal;
    font-size: 0.64rem;
    color: var(--gs-text-faint);
    margin-top: 0.25rem;
}
/* the proof line each card reveals once handled */
.fbs-does__receipt {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--gs-text-dim);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.fbs-does.is-handled .fbs-does__receipt { opacity: 1; transform: none; }
.fbs-does__card:nth-child(1) .fbs-does__receipt { transition-delay: 0.45s; }
.fbs-does__card:nth-child(2) .fbs-does__receipt { transition-delay: 0.65s; }
.fbs-does__card:nth-child(3) .fbs-does__receipt { transition-delay: 0.85s; }
.fbs-does__card:nth-child(4) .fbs-does__receipt { transition-delay: 1.05s; }
.fbs-does__card:nth-child(5) .fbs-does__receipt { transition-delay: 1.25s; }

/* ---- Beat 2: the hero job the visitor approves themselves ---- */
.fbs-hjob {
    margin-top: var(--gs-5);
    padding: clamp(1.2rem, 2.4vw, 1.8rem);
    background: var(--gs-surface);
    border: 1px solid rgba(var(--fbs-rgb), 0.3);
    border-radius: var(--gs-radius);
    box-shadow: 0 30px 80px -45px rgba(var(--fbs-rgb), 0.4);
}
.fbs-hjob__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.fbs-hjob .fbs-does__st { transition-delay: 0.55s; }
.fbs-hjob__panes {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
    gap: clamp(1.2rem, 3vw, 2.5rem);
    align-items: start;
    margin-top: 1.2rem;
}
.fbs-hjob__label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
    margin-bottom: 0.55rem;
}
.fbs-sms p {
    margin: 0;
    max-width: 34ch;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--gs-border-strong);
    border-radius: 14px 14px 14px 4px;
    padding: 0.7rem 0.85rem;
    font-size: 0.8rem;
    line-height: 1.5;
}
.fbs-sms span {
    display: block;
    font-size: 0.64rem;
    color: var(--gs-text-faint);
    margin-top: 0.4rem;
}

/* the pipeline strip: plain words, with the human step glowing */
.fbs-pipe {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.7rem;
    margin: 1.1rem 0 0;
    padding: 0;
}
.fbs-pipe li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
    transition: color 0.3s ease;
}
.fbs-pipe li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--gs-border-strong);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.fbs-pipe li:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    right: -1.2rem;
    color: var(--gs-text-faint);
}
.fbs-pipe li.is-done { color: var(--gs-text-dim); }
.fbs-pipe li.is-done::before {
    background: var(--gs-accent);
    border-color: var(--gs-accent);
}
.fbs-pipe__you { color: var(--gs-text); }
.fbs-pipe__you::before {
    border-color: var(--gs-accent);
    animation: fbs-pipe-pulse 1.4s ease infinite;
}
@keyframes fbs-pipe-pulse {
    50% { box-shadow: 0 0 0 5px rgba(var(--fbs-rgb), 0.18); }
}
.fbs-does.is-approved .fbs-pipe__you { color: var(--gs-text-dim); }
.fbs-does.is-approved .fbs-pipe__you::before {
    background: var(--gs-accent);
    border-color: var(--gs-accent);
    animation: none;
}
.fbs-does.is-approved .fbs-pipe li:last-child {
    color: var(--gs-text-dim);
    transition-delay: 0.45s;
}
.fbs-does.is-approved .fbs-pipe li:last-child::before {
    background: var(--gs-accent);
    border-color: var(--gs-accent);
    transition-delay: 0.45s;
}

/* the draft itself — the artifact a skeptic wants to read */
.fbs-draft {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gs-border-strong);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}
.fbs-draft__head b { display: block; font-size: 0.82rem; font-weight: 700; }
.fbs-draft__head span { display: block; font-size: 0.68rem; color: var(--gs-text-faint); margin-top: 0.1rem; }
.fbs-draft__body {
    margin: 0.55rem 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--gs-text-dim);
}
.fbs-draft__lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.3rem;
}
.fbs-draft__lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.76rem;
}
.fbs-draft__lines span { color: var(--gs-text-dim); }
.fbs-draft__lines em { font-style: normal; font-weight: 600; }
.fbs-draft__total {
    display: flex;
    justify-content: space-between;
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gs-border);
    font-size: 0.8rem;
}
.fbs-draft__total em {
    font-style: normal;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
}
.fbs-draft__note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.64rem;
    font-style: italic;
    color: var(--gs-text-faint);
}
.fbs-stamp {
    position: absolute;
    right: 12px;
    top: 36%;
    transform: rotate(-8deg) scale(1.6);
    opacity: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gs-accent);
    border: 2px solid var(--gs-accent);
    border-radius: 8px;
    padding: 0.35rem 0.7rem;
    background: rgba(10, 14, 22, 0.85);
    pointer-events: none;
}
.fbs-does.is-approved .fbs-stamp {
    animation: fbs-stamp-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 0.5s both;
}
@keyframes fbs-stamp-in {
    from { opacity: 0; transform: rotate(-8deg) scale(1.7); }
    to   { opacity: 1; transform: rotate(-8deg) scale(1); }
}

.fbs-hjob__acts {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
}
.fbs-approve {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: var(--gs-accent);
    border: none;
    border-radius: var(--gs-radius-pill);
    padding: 0.6rem 1.3rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease, opacity 0.3s ease;
}
.fbs-approve:hover { background: var(--gs-accent-dark); color: color-mix(in srgb, var(--gs-accent) 38%, #000); }
.fbs-approve:active { transform: scale(0.97); }
.fbs-approve:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fbs-does.is-approved .fbs-approve { opacity: 0.35; pointer-events: none; }
.fbs-hjob__wait {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.72rem;
    font-style: italic;
    color: var(--gs-text-faint);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.fbs-does.is-patient .fbs-hjob__wait { opacity: 1; }
.fbs-hjob__receipt {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.74rem;
    color: var(--gs-text-dim);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.45s ease 0.9s, transform 0.45s ease 0.9s;
}
.fbs-does.is-approved .fbs-hjob__receipt { opacity: 1; transform: none; }
@media (max-width: 860px) {
    .fbs-hjob__panes { grid-template-columns: 1fr; }
}

/* The status chip: every chore waits, then flips to handled once the
   visitor has approved the first job — the queue clears, card by card. */
.fbs-does__status {
    position: relative;
    margin-top: auto;
    padding-top: 1.1rem;
    align-self: flex-start;
    display: inline-grid;
}
.fbs-does__st {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.32rem 0.8rem;
    border-radius: var(--gs-radius-pill);
    white-space: nowrap;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.fbs-does__st--q {
    color: var(--gs-text-faint);
    border: 1px solid var(--gs-border-strong);
}
.fbs-does__st--q::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gs-text-faint);
    animation: fbs-blink 1.2s ease infinite;
}
.fbs-does__st--d {
    color: #fff;
    background: var(--gs-accent);
    border: 1px solid var(--gs-accent);
    opacity: 0;
    transform: translateY(6px);
}
.fbs-does__st--d i {
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
.fbs-does.is-handled .fbs-does__st--q { opacity: 0; transform: translateY(-6px); }
.fbs-does.is-handled .fbs-does__st--d { opacity: 1; transform: none; }
/* the hero's own chip flips earlier — the moment the visitor approves */
.fbs-does.is-approved .fbs-hjob .fbs-does__st--q { opacity: 0; transform: translateY(-6px); }
.fbs-does.is-approved .fbs-hjob .fbs-does__st--d { opacity: 1; transform: none; }
.fbs-does__card:nth-child(1) .fbs-does__st { transition-delay: 0.2s; }
.fbs-does__card:nth-child(2) .fbs-does__st { transition-delay: 0.4s; }
.fbs-does__card:nth-child(3) .fbs-does__st { transition-delay: 0.6s; }
.fbs-does__card:nth-child(4) .fbs-does__st { transition-delay: 0.8s; }
.fbs-does__card:nth-child(5) .fbs-does__st { transition-delay: 1.0s; }
.fbs-does__card:nth-child(6) .fbs-does__st { transition-delay: 1.2s; }
.fbs-does__tally {
    text-align: center;
    color: var(--gs-text-dim);
    margin: var(--gs-4) 0 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 1.7s, transform 0.5s ease 1.7s;
}
.fbs-does__tally em { font-style: normal; color: var(--gs-accent); }
.fbs-does__tally b {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--gs-accent);
}
.fbs-does__more {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gs-accent);
}
.fbs-does__more:hover { text-decoration: underline; }
.fbs-does.is-handled .fbs-does__tally { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .fbs-does__card { transition: none; }
    .fbs-does__card:hover { transform: none; }
    .fbs-does__st,
    .fbs-does__tally,
    .fbs-does__receipt,
    .fbs-hjob__wait,
    .fbs-hjob__receipt,
    .fbs-pipe li,
    .fbs-pipe li::before,
    .fbs-approve { transition: none; }
    .fbs-does__st--q::before,
    .fbs-pipe__you::before { animation: none; }
    .fbs-does.is-approved .fbs-stamp { animation: none; opacity: 1; transform: rotate(-8deg) scale(1); }
}

/* ============================================================
   The story — pinned portal scrollytelling
   ============================================================ */
.fbs-story { background: var(--gs-bg); }
/* hero block + the stage's natural height + the pinned scroll distance
   (~105vh of scroll per scene keeps eight scenes readable but not draggy) */
.fbs-story__track { height: calc(68vh + 100vh + var(--steps, 8) * 105vh); }

/* Standard hero (like the other Get Started pages); the portal's top edge
   peeks in from below the fold. */
.fbs-heroblock {
    height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: clamp(4rem, 10vh, 7rem);   /* clear the fixed nav, breathe */
    padding-inline: var(--gs-pad);
    background:
        radial-gradient(900px 520px at 50% -10%, rgba(var(--fbs-rgb), 0.16), transparent 60%),
        transparent;
}
.fbs-heroblock { position: relative; }
.fbs-heroblock .gs-hero__copy { position: relative; z-index: 1; }
.fbs-heroblock .gs-hero__sub { margin-inline: auto; }
.fbs-heroblock .gs-hero__actions { justify-content: center; }

/* Blurred purple circle centred on the hero's bottom edge — one unclipped
   circle spanning the seam into the portal area (no halves, no seam line). */
.fbs-heroblock__glow {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: min(720px, 85vw);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(var(--fbs-rgb), 0.26) 0%,
        rgba(var(--fbs-rgb), 0.10) 45%,
        transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Hero title colour-block fill (same treatment as the other Get Started
   pages, in this page's purples): flat fields with clean hard edges, per
   line; boundaries glide with the cursor while it's inside the hero. */
.fbs-fxline { position: relative; display: inline-block; }
.fbs-fxline::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background:
        /* theme purple (the darkest shade) — small diagonal block, lower left */
        linear-gradient(115deg,
            #a78bfa 0%, #a78bfa var(--b1, 22%), rgba(167, 139, 250, 0) var(--b1, 22%)),
        /* lavender arc dipping in from the top */
        radial-gradient(circle 300px at var(--c1, 30%) -180px,
            #c4b5fd 0% 62%, rgba(196, 181, 253, 0) 62%),
        /* light purple blob rising from the bottom right */
        radial-gradient(circle 260px at var(--c2, 78%) 130%,
            #ddd6fe 0% 58%, rgba(221, 214, 254, 0) 58%),
        /* lavender slice on the far right edge */
        linear-gradient(-65deg,
            #c4b5fd 0% 12%, rgba(196, 181, 253, 0) 12%),
        /* palest purple base */
        linear-gradient(#ede9fe, #ede9fe);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.fbs-heroblock.is-spot .fbs-fxline::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .fbs-fxline::after { display: none; }
}

/* When pinned, the portal rests just below the fixed nav (~20px clearance). */
@media (min-width: 1024px) {
    .fbs-portal {
        align-self: start;
        margin-top: calc(var(--nav-height, 72px) + 20px);
    }
}
.fbs-story__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr minmax(540px, 700px) 1fr;
    gap: clamp(1.5rem, 3vw, 3.5rem);
    align-items: center;
    max-width: 1560px;
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 4vw, 4rem);
    /* No background on the stage: its top edge would slice a visible line
       across the hero glow. Ambient light comes from the heroblock circle
       (spans the seam) and the portal's own glow shadow. */
}

/* Progress rail */
.fbs-story__rail {
    position: absolute;
    left: clamp(0.9rem, 2vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.fbs-story__rail li {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid var(--gs-border-strong);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.fbs-story__rail li.is-active {
    background: var(--sc, var(--gs-accent));
    border-color: var(--sc, var(--gs-accent));
    transform: scale(1.25);
    box-shadow: 0 0 12px color-mix(in srgb, var(--sc, var(--gs-accent)) 70%, transparent);
}

/* Chapter copy columns — chapters stack absolutely so a column can host
   more than one (hero is step 0, Memory is step 2, both on the left). */
.fbs-story__col {
    position: relative;
    height: 100%;
    min-width: 0;
}
.fbs-chapter {
    position: absolute;
    top: 50%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}
.fbs-story__col--left .fbs-chapter { transform: translateY(-50%) translateX(-32px); }
.fbs-story__col--right .fbs-chapter { transform: translateY(-50%) translateX(32px); }
/* Copy appears only once the portal has locked centre-stage. */
.fbs-story__stage.is-pinned .fbs-chapter.is-active {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
}

/* At the pin, scene 1's source cards take a quiet bow */
.fbs-story__stage.is-pinned[data-step="0"] .fbs-src { animation: fbs-tool-pop 0.5s ease 0.35s both; }
.fbs-story__stage.is-pinned[data-step="0"] .fbs-src:nth-child(2) { animation-delay: 0.43s; }
.fbs-story__stage.is-pinned[data-step="0"] .fbs-src:nth-child(3) { animation-delay: 0.51s; }
.fbs-story__stage.is-pinned[data-step="0"] .fbs-src:nth-child(4) { animation-delay: 0.59s; }
.fbs-story__stage.is-pinned[data-step="0"] .fbs-src:nth-child(5) { animation-delay: 0.67s; }
.fbs-story__stage.is-pinned[data-step="0"] .fbs-src:nth-child(6) { animation-delay: 0.75s; }
/* opacity is pinned at 1 throughout: this animation REPLACES the cards'
   rise animation when it fires (one animation property per element), and
   without it they'd fall back to the hidden base state and vanish. */
@keyframes fbs-tool-pop {
    0%   { opacity: 1; transform: scale(1); box-shadow: none; }
    45%  { opacity: 1; transform: scale(1.04); box-shadow: 0 0 18px rgba(var(--fbs-rgb), 0.4); border-color: var(--gs-accent); }
    100% { opacity: 1; transform: scale(1); box-shadow: none; }
}

/* Scene colour-coding: each scene takes one of the theme accents (the
   trio from the path pages plus the sanctioned complementary set), and
   the kicker, one-liner dashes, chip and rail dot follow along. The
   final scene returns to the brand purple to close the loop. */
.fbs-story__stage[data-step="0"] { --sc: #a78bfa; }
.fbs-story__stage[data-step="1"] { --sc: #818cf8; }
.fbs-story__stage[data-step="2"] { --sc: #60a5fa; }
.fbs-story__stage[data-step="3"] { --sc: #34d399; }
.fbs-story__stage[data-step="4"] { --sc: #fbbf24; }
.fbs-story__stage[data-step="5"] { --sc: #f472b6; }
.fbs-story__stage[data-step="6"] { --sc: #2dd4bf; }
.fbs-story__stage[data-step="7"] { --sc: #fb923c; }
.fbs-story__stage[data-step="8"] { --sc: #a78bfa; }

/* ---- Ambient layer: blurred orbs + giant faded keyword per scene ---- */
.fbs-orbs,
.fbs-words {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.fbs-orb {
    position: absolute;
    width: clamp(360px, 38vw, 620px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--sc, var(--gs-accent));
    filter: blur(110px);
    opacity: 0.07;
    transition: background 1.4s ease;
    will-change: transform;
}
.fbs-orb--a { left: 6%; top: 4%; animation: fbs-orb-a 23s ease-in-out infinite alternate; }
.fbs-orb--b { right: 2%; top: 38%; width: clamp(300px, 30vw, 480px); opacity: 0.055; animation: fbs-orb-b 29s ease-in-out infinite alternate; }
.fbs-orb--c { left: 38%; bottom: -12%; opacity: 0.06; animation: fbs-orb-c 35s ease-in-out infinite alternate; }
@keyframes fbs-orb-a { from { transform: translate(0, 0); }            to { transform: translate(9vw, 14vh); } }
@keyframes fbs-orb-b { from { transform: translate(0, 0) scale(1); }   to { transform: translate(-7vw, -10vh) scale(1.15); } }
@keyframes fbs-orb-c { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-12vw, -6vh) scale(0.95); } }

.fbs-word {
    position: absolute;
    left: 50%;
    bottom: 1.5%;
    translate: -50% 0;     /* centring lives here so the float owns transform */
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4.2rem, 8.5vw, 8.2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.fbs-story__stage[data-step="0"] .fbs-word[data-word="0"],
.fbs-story__stage[data-step="1"] .fbs-word[data-word="1"],
.fbs-story__stage[data-step="2"] .fbs-word[data-word="2"],
.fbs-story__stage[data-step="3"] .fbs-word[data-word="3"],
.fbs-story__stage[data-step="4"] .fbs-word[data-word="4"],
.fbs-story__stage[data-step="5"] .fbs-word[data-word="5"],
.fbs-story__stage[data-step="6"] .fbs-word[data-word="6"],
.fbs-story__stage[data-step="7"] .fbs-word[data-word="7"],
.fbs-story__stage[data-step="8"] .fbs-word[data-word="8"] {
    opacity: 1;
    animation: fbs-word-float 12s ease-in-out infinite alternate;
}
@keyframes fbs-word-float { from { transform: translateY(0); } to { transform: translateY(-16px); } }

/* content sits above the ambient layer */
.fbs-story__col { z-index: 1; }
.fbs-portal { position: relative; z-index: 1; }
.fbs-story__rail { z-index: 2; }

@media (max-width: 1023px) {
    .fbs-orbs,
    .fbs-words { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fbs-orb { animation: none; }
    .fbs-story__stage .fbs-word { animation: none; transition: none; }
}
.fbs-chapter__kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sc, var(--gs-accent));
    transition: color 0.4s ease;
}

/* One-liners on the column opposite the paragraph: a compact heading
   with a scene-coloured dash and key word, plus a smaller quiet
   description line beneath each. */
.fbs-notes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}
.fbs-notes li { opacity: 0; }
.fbs-notes b {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.92rem, 1.05vw, 1.05rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--gs-text);
}
.fbs-notes em {
    font-style: normal;
    color: var(--sc, var(--gs-accent));
    transition: color 0.4s ease;
}
.fbs-notes b::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sc, var(--gs-accent)), transparent);
    vertical-align: middle;
    margin-right: 0.6rem;
    transition: background 0.4s ease;
}
.fbs-notes span {
    display: block;
    margin-top: 0.28rem;
    padding-left: calc(18px + 0.6rem);   /* align under the heading text */
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--gs-text-dim);
    max-width: 34ch;
}
/* in the left column the lines right-align and the dash flips sides */
.fbs-story__col--left .fbs-notes { text-align: right; }
.fbs-story__col--left .fbs-notes b::before { display: none; }
.fbs-story__col--left .fbs-notes b::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(270deg, var(--sc, var(--gs-accent)), transparent);
    vertical-align: middle;
    margin-left: 0.6rem;
    transition: background 0.4s ease;
}
.fbs-story__col--left .fbs-notes span {
    padding-left: 0;
    padding-right: calc(18px + 0.6rem);
    margin-left: auto;
}
.fbs-story__stage.is-pinned .fbs-chapter.is-active .fbs-notes li { animation: fbs-row 0.45s ease both; }
.fbs-story__stage.is-pinned .fbs-chapter.is-active .fbs-notes li:nth-child(1) { animation-delay: 0.25s; }
.fbs-story__stage.is-pinned .fbs-chapter.is-active .fbs-notes li:nth-child(2) { animation-delay: 0.4s; }
.fbs-story__stage.is-pinned .fbs-chapter.is-active .fbs-notes li:nth-child(3) { animation-delay: 0.55s; }
.fbs-chapter__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0.7rem 0 0;
}
.fbs-chapter__body {
    color: var(--gs-text-dim);
    line-height: 1.6;
    margin: 0.9rem 0 0;
    max-width: 32ch;
}

/* ---- The portal window ---- */
.fbs-portal {
    height: min(580px, 74vh);
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #10141f, #0a0e16);
    border: 1px solid rgba(var(--fbs-rgb), 0.22);
    border-radius: 18px;
    box-shadow:
        0 40px 90px -40px rgba(0, 0, 0, 0.9),
        0 0 80px -30px rgba(var(--fbs-rgb), 0.35);
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fbs-portal.is-on { opacity: 1; transform: none; }
.fbs-portal__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--gs-border);
}
.fbs-portal__bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}
.fbs-portal__bar span {
    margin-inline: auto;
    font-size: 0.62rem;
    color: var(--gs-text-faint);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--gs-radius-pill);
    padding: 0.22rem 0.95rem;
}
.fbs-portal__body { flex: 1; display: flex; min-height: 0; }

/* Sidebar */
.fbs-portal__nav {
    width: clamp(140px, 12vw, 168px);
    border-right: 1px solid var(--gs-border);
    padding: 0.8rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.fbs-portal__brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0.3rem 0.65rem;
}
.fbs-portal__brand b {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gs-accent);
    box-shadow: 0 0 10px rgba(var(--fbs-rgb), 0.8);
}
.fbs-portal__item {
    position: relative;
    padding: 0.32rem 0.7rem;
    border-radius: 9px;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--gs-text-dim);
    transition: color 0.25s ease, background 0.25s ease;
}
.fbs-portal__item.is-active {
    color: var(--gs-text);
    background: rgba(var(--fbs-rgb), 0.12);
}
.fbs-portal__item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 26%;
    height: 48%;
    width: 2px;
    border-radius: 2px;
    background: var(--gs-accent);
}

/* Screens */
.fbs-portal__main { flex: 1; position: relative; min-width: 0; }
.fbs-screen {
    position: absolute;
    inset: 0;
    padding: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}
.fbs-screen.is-active { opacity: 1; transform: none; pointer-events: auto; }
.fbs-screen__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.95rem;
}
.fbs-screen__head h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}
.fbs-screen__sub {
    display: block;
    font-size: 0.7rem;
    color: var(--gs-text-faint);
    margin-top: 0.2rem;
}
.fbs-chip {
    flex: none;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--sc, var(--gs-accent));
    background: color-mix(in srgb, var(--sc, var(--gs-accent)) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--sc, var(--gs-accent)) 35%, transparent);
    border-radius: var(--gs-radius-pill);
    padding: 0.28rem 0.7rem;
    white-space: nowrap;
    transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}
.fbs-chip--warn {
    color: var(--fbs-warn);
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.35);
}

/* Generic card lists: every scene's cards rise in, gently staggered. */
.fbs-cards { list-style: none; margin: 0; padding: 0; }
.fbs-screen .fbs-cards > * { opacity: 0; }
.fbs-screen.is-active .fbs-cards > * { animation: fbs-row 0.4s ease both; }
.fbs-screen.is-active .fbs-cards > *:nth-child(1) { animation-delay: 0.12s; }
.fbs-screen.is-active .fbs-cards > *:nth-child(2) { animation-delay: 0.18s; }
.fbs-screen.is-active .fbs-cards > *:nth-child(3) { animation-delay: 0.24s; }
.fbs-screen.is-active .fbs-cards > *:nth-child(4) { animation-delay: 0.30s; }
.fbs-screen.is-active .fbs-cards > *:nth-child(5) { animation-delay: 0.36s; }
.fbs-screen.is-active .fbs-cards > *:nth-child(6) { animation-delay: 0.42s; }
@keyframes fbs-row {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* Scene 1 — Connected Sources */
.fbs-srcgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
.fbs-src {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gs-border);
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
}
.fbs-src__logo {
    flex: none;
    width: 30px;
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    background: var(--gs-surface);
    border: 1px solid var(--gs-border);
    position: relative;
}
.fbs-src__logo::after {
    content: "";
    position: absolute;
    inset: 24%;
    background: var(--gs-text-dim);
    -webkit-mask: var(--logo) center / contain no-repeat;
            mask: var(--logo) center / contain no-repeat;
}
.fbs-src__logo--mono {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--gs-text-dim);
}
.fbs-src__logo--mono::after { display: none; }
.fbs-src b { display: block; font-size: 0.74rem; font-weight: 600; line-height: 1.15; }
.fbs-status {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.6rem;
    color: var(--gs-text-faint);
    margin-top: 0.15rem;
}
.fbs-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gs-text-faint);
    flex: none;
}
.fbs-status--ok::before { background: var(--fbs-ok); }
.fbs-status--sync::before { background: var(--gs-accent); animation: fbs-blink 1.1s ease infinite; }
.fbs-status--soft::before { background: var(--gs-text-faint); }
@keyframes fbs-blink { 50% { opacity: 0.25; } }
.fbs-feed {
    list-style: none;
    margin: auto 0 0;
    padding: 0.5rem 0 0;
    display: grid;
    gap: 0.45rem;
}
.fbs-feed li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.7rem;
    color: var(--gs-text-dim);
    opacity: 0;
}
.fbs-feed i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gs-accent);
    box-shadow: 0 0 8px rgba(var(--fbs-rgb), 0.8);
    flex: none;
}
.fbs-feed em { margin-left: auto; font-style: normal; font-size: 0.62rem; color: var(--gs-text-faint); }
.fbs-screen--sources.is-active .fbs-feed li { animation: fbs-row 0.45s ease both; }
.fbs-screen--sources.is-active .fbs-feed li:nth-child(1) { animation-delay: 0.55s; }
.fbs-screen--sources.is-active .fbs-feed li:nth-child(2) { animation-delay: 0.7s; }
.fbs-screen--sources.is-active .fbs-feed li:nth-child(3) { animation-delay: 0.85s; }

/* Scene 2 — Business Knowledge */
.fbs-knowgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
.fbs-know {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gs-border);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    display: grid;
    gap: 0.18rem;
}
.fbs-know b { font-size: 0.74rem; font-weight: 700; }
.fbs-know span { font-size: 0.66rem; color: var(--gs-text-dim); }
.fbs-know em {
    font-style: normal;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
    margin-top: 0.12rem;
}
.fbs-feed--know { margin-top: 0.8rem; }
.fbs-screen--know.is-active .fbs-feed li { animation: fbs-row 0.45s ease both; }
.fbs-screen--know.is-active .fbs-feed li:nth-child(1) { animation-delay: 0.55s; }
.fbs-screen--know.is-active .fbs-feed li:nth-child(2) { animation-delay: 0.7s; }
.fbs-know__depth {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-top: 0.6rem;
}
.fbs-know__depth > span:first-child {
    flex: none;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
}
.fbs-know__depth .fbs-bar { flex: 1; margin-top: 0; }
.fbs-screen--know.is-active .fbs-bar i { width: 72%; transition-delay: 0.6s; }

/* Scene 2 — Business Rules */
.fbs-rulelist { display: grid; gap: 0.5rem; }
.fbs-rule {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gs-border);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
}
.fbs-rule b { font-size: 0.76rem; font-weight: 600; }
.fbs-rule em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gs-accent);
    flex: none;
}
.fbs-rule.is-draft b { color: var(--gs-text-dim); }
.fbs-rule.is-draft em { color: var(--gs-text-faint); }
.fbs-tgl {
    flex: none;
    width: 28px;
    height: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--gs-border-strong);
    position: relative;
}
.fbs-tgl i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gs-text-dim);
}
.fbs-tgl.is-on { background: rgba(var(--fbs-rgb), 0.35); border-color: var(--gs-accent); }
.fbs-tgl.is-on i { transform: translateX(12px); background: #fff; }

/* Scene 3 — Agent Workspace */
.fbs-agentgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.fbs-agent {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gs-border);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    display: grid;
    gap: 0.3rem;
}
.fbs-agent b { font-size: 0.78rem; font-weight: 700; }
.fbs-agent span { font-size: 0.66rem; color: var(--gs-text-dim); }
.fbs-bar {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    margin-top: 0.3rem;
}
.fbs-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gs-accent-dark), var(--gs-accent));
    transition: width 0.9s cubic-bezier(0.25, 1, 0.4, 1);
}
.fbs-screen--agents.is-active .fbs-agent:nth-child(1) .fbs-bar i { width: 64%; transition-delay: 0.45s; }
.fbs-screen--agents.is-active .fbs-agent:nth-child(2) .fbs-bar i { width: 38%; transition-delay: 0.55s; }
.fbs-screen--agents.is-active .fbs-agent:nth-child(3) .fbs-bar i { width: 81%; transition-delay: 0.65s; }
.fbs-screen--agents.is-active .fbs-agent:nth-child(4) .fbs-bar i { width: 52%; transition-delay: 0.75s; }

/* Scene 4 — Approval Queue */
.fbs-apprlist { display: grid; gap: 0.5rem; }
.fbs-appr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gs-border);
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
}
.fbs-appr b { display: block; font-size: 0.76rem; font-weight: 600; }
.fbs-appr > div:first-child span { font-size: 0.64rem; color: var(--gs-text-faint); }
.fbs-appr.is-selected {
    border-color: rgba(var(--fbs-rgb), 0.55);
    background: rgba(var(--fbs-rgb), 0.07);
}
.fbs-appr__acts { display: flex; gap: 0.35rem; flex: none; }
.fbs-mini {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.26rem 0.6rem;
    border-radius: var(--gs-radius-pill);
    border: 1px solid var(--gs-border-strong);
    color: var(--gs-text-dim);
    white-space: nowrap;
}
.fbs-mini--ok { background: var(--gs-accent); border-color: var(--gs-accent); color: #fff; }

/* Scene 5 — Message Centre */
.fbs-tabs {
    list-style: none;
    display: flex;
    gap: 0.4rem;
    margin: 0 0 0.9rem;
    padding: 0;
}
.fbs-tabs li {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--gs-text-dim);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-radius-pill);
    padding: 0.3rem 0.8rem;
}
.fbs-tabs li.is-active {
    color: var(--gs-text);
    border-color: rgba(var(--fbs-rgb), 0.55);
    background: rgba(var(--fbs-rgb), 0.1);
}
.fbs-chat { display: flex; flex-direction: column; gap: 0.7rem; min-height: 0; }
.fbs-chat__q {
    align-self: flex-end;
    display: flex;
    align-items: center;
    margin: 0;
    max-width: 85%;
    min-height: 2.3em;
    background: rgba(var(--fbs-rgb), 0.16);
    border: 1px solid rgba(var(--fbs-rgb), 0.4);
    border-radius: 14px 14px 4px 14px;
    padding: 0.6rem 0.8rem;
    font-size: 0.76rem;
}
.fbs-chat__caret {
    width: 1.5px;
    height: 1em;
    background: var(--gs-accent);
    margin-left: 2px;
    animation: fbs-caret 1s steps(1) infinite;
}
@keyframes fbs-caret { 50% { opacity: 0; } }
.fbs-chat__a {
    align-self: flex-start;
    max-width: 88%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gs-border);
    border-radius: 14px 14px 14px 4px;
    padding: 0.65rem 0.85rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.fbs-chat__a b {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gs-accent);
    margin-bottom: 0.25rem;
}
.fbs-chat__a p { margin: 0; font-size: 0.76rem; line-height: 1.5; }
.fbs-chat__next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    border: 1px dashed var(--gs-border-strong);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    font-size: 0.68rem;
    color: var(--gs-text-dim);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease 0.25s, transform 0.45s ease 0.25s;
}
.fbs-chat__next em {
    flex: none;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    background: var(--gs-accent);
    border-radius: var(--gs-radius-pill);
    padding: 0.3rem 0.75rem;
}
.fbs-screen--msg.is-replied .fbs-chat__a,
.fbs-screen--msg.is-replied .fbs-chat__next { opacity: 1; transform: none; }

/* Scene 6 — Activity & Insights */
.fbs-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.fbs-kpi {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gs-border);
    border-radius: 12px;
    padding: 0.55rem 0.6rem;
}
.fbs-kpi b {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.fbs-kpi span {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
    margin-top: 0.12rem;
    white-space: nowrap;
}
.fbs-kpi em { display: block; font-style: normal; font-size: 0.6rem; font-weight: 700; margin-top: 0.22rem; }
.fbs-kpi em.is-up { color: var(--fbs-ok); }
.fbs-kpi em.is-down { color: var(--fbs-warn); }
.fbs-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 56px;
    margin-top: 0.75rem;
    padding-inline: 2px;
}
.fbs-chart span {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, rgba(var(--fbs-rgb), 0.85), rgba(var(--fbs-rgb), 0.2));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.4, 1);
}
.fbs-chart span:nth-child(1) { height: 34%; transition-delay: 0.3s; }
.fbs-chart span:nth-child(2) { height: 52%; transition-delay: 0.35s; }
.fbs-chart span:nth-child(3) { height: 40%; transition-delay: 0.4s; }
.fbs-chart span:nth-child(4) { height: 58%; transition-delay: 0.45s; }
.fbs-chart span:nth-child(5) { height: 48%; transition-delay: 0.5s; }
.fbs-chart span:nth-child(6) { height: 66%; transition-delay: 0.55s; }
.fbs-chart span:nth-child(7) { height: 78%; transition-delay: 0.6s; }
.fbs-chart span:nth-child(8) { height: 92%; transition-delay: 0.65s; }
.fbs-screen--insights.is-active .fbs-chart span { transform: scaleY(1); }
.fbs-insightlist { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.fbs-insight {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gs-border);
    border-left: 3px solid var(--gs-accent);
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    opacity: 0;
}
.fbs-insight--ok { border-left-color: var(--fbs-ok); }
.fbs-insight--warn { border-left-color: var(--fbs-warn); }
.fbs-screen--insights.is-active .fbs-insight { animation: fbs-row 0.45s ease both; }
.fbs-screen--insights.is-active .fbs-insight:nth-child(1) { animation-delay: 0.7s; }
.fbs-screen--insights.is-active .fbs-insight:nth-child(2) { animation-delay: 0.85s; }

/* Scene 7 — Action Centre */
.fbs-actgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.fbs-act {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gs-border);
    border-radius: 12px;
    padding: 0.65rem 0.7rem;
}
.fbs-act::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--gs-accent);
    opacity: 0.85;
    flex: none;
}
.fbs-flow {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: 1.1rem 0 0;
    padding: 0;
    flex-wrap: wrap;
}
.fbs-flow li {
    position: relative;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--gs-text-dim);
    border: 1px solid var(--gs-border-strong);
    border-radius: var(--gs-radius-pill);
    padding: 0.35rem 0.8rem;
    opacity: 0;
    white-space: nowrap;
}
.fbs-flow li:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    right: -1.05rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gs-text-faint);
}
.fbs-flow li:last-child { color: var(--gs-accent); border-color: rgba(var(--fbs-rgb), 0.5); }
.fbs-screen--actions.is-active .fbs-flow li { animation: fbs-row 0.4s ease both; }
.fbs-screen--actions.is-active .fbs-flow li:nth-child(1) { animation-delay: 0.55s; }
.fbs-screen--actions.is-active .fbs-flow li:nth-child(2) { animation-delay: 0.75s; }
.fbs-screen--actions.is-active .fbs-flow li:nth-child(3) { animation-delay: 0.95s; }

/* Scene 8 — Business Health */
.fbs-winlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.fbs-winlist li:last-child { grid-column: 1 / -1; }
.fbs-win {
    position: relative;
    font-size: 0.74rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gs-border);
    border-radius: 12px;
    padding: 0.65rem 0.75rem 0.65rem 2rem;
}
.fbs-win::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--fbs-ok);
    border-bottom: 2px solid var(--fbs-ok);
    transform: translateY(-65%) rotate(-45deg);
}
.fbs-portalcta {
    margin-top: auto;
    align-self: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    background: var(--gs-accent);
    border-radius: var(--gs-radius-pill);
    padding: 0.55rem 1.25rem;
    box-shadow: 0 8px 24px -8px rgba(var(--fbs-rgb), 0.6);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease 0.6s, transform 0.45s ease 0.6s;
}
.fbs-screen--health.is-active .fbs-portalcta { opacity: 1; transform: none; }

/* ============================================================
   Framed screenshot placeholders (story minis + case study)
   ============================================================ */
.fbs-shot {
    margin: 0;
    border: 1px solid var(--gs-border);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, #10141f, #0a0e16);
    box-shadow: 0 30px 70px -38px rgba(0, 0, 0, 0.85);
}
.fbs-shot__frame {
    display: flex;
    gap: 5px;
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid var(--gs-border);
}
.fbs-shot__frame i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.fbs-shot__ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    aspect-ratio: 16 / 10;
    margin: 0.8rem;
    padding: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
    text-align: center;
    border: 1px dashed var(--gs-border-strong);
    border-radius: 10px;
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.018) 0 12px, transparent 12px 24px);
}
.fbs-shot__icon {
    position: relative;
    width: 34px;
    height: 26px;
    border: 1.5px solid var(--gs-text-faint);
    border-radius: 6px;
    opacity: 0.8;
}
.fbs-shot__icon::before {
    content: "";
    position: absolute;
    top: 4px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gs-text-faint);
}
.fbs-shot__icon::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 2px;
    height: 12px;
    background: var(--gs-text-faint);
    clip-path: polygon(0 100%, 38% 10%, 62% 78%, 78% 45%, 100% 100%);
    opacity: 0.85;
}
/* Mini variant — woven into the story chapters, rides the chapter's
   slide/fade so it enters as part of the scene. */
.fbs-shot--mini {
    margin-top: 1.5rem;
    max-width: 330px;
    border-radius: 12px;
}
.fbs-shot--mini .fbs-shot__frame { padding: 0.4rem 0.6rem; }
.fbs-shot--mini .fbs-shot__frame i { width: 6px; height: 6px; }
.fbs-shot--mini .fbs-shot__ph {
    aspect-ratio: 16 / 9;
    margin: 0.6rem;
    gap: 0.55rem;
    font-size: 0.6rem;
    padding: 0.8rem;
}
.fbs-shot--mini .fbs-shot__icon { width: 26px; height: 20px; }
/* keep the right-column minis hugging the portal side of their text */
.fbs-story__col--left .fbs-shot--mini { margin-left: 0; }

/* ============================================================
   Case study — Friend & Dobson
   ============================================================ */
.fbs-case { background: var(--gs-bg-alt); }
.fbs-case__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
    gap: clamp(var(--gs-3), 4vw, var(--gs-5));
    margin-top: var(--gs-5);
    align-items: start;
}
.fbs-case__who {
    position: relative;
    border-radius: var(--gs-radius);
    overflow: hidden;
    border: 1px solid var(--gs-border);
}
.fbs-case__photo { display: block; width: 100%; height: auto; }
.fbs-case__id {
    position: absolute;
    inset: auto 0 0;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(transparent, rgba(5, 7, 12, 0.92) 55%);
    display: grid;
    gap: 0.15rem;
}
.fbs-case__id b { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700; }
.fbs-case__id span { font-size: 0.78rem; color: var(--gs-text-dim); }
.fbs-case__firm {
    width: 130px;
    height: auto;
    margin-top: 0.6rem;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}
.fbs-case__quote {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
}
.fbs-case__text {
    color: var(--gs-text-dim);
    line-height: 1.65;
    margin: var(--gs-2) 0 0;
    max-width: 56ch;
}
.fbs-case__stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gs-2);
    margin: var(--gs-3) 0 0;
    padding: var(--gs-3) 0 0;
    border-top: 1px solid var(--gs-border);
}
.fbs-case__stats b {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gs-accent);
}
.fbs-case__stats span { display: block; font-size: 0.78rem; color: var(--gs-text-dim); margin-top: 0.25rem; }
.fbs-shot--case { margin-top: var(--gs-3); }
.fbs-shot--case .fbs-shot__ph { aspect-ratio: 21 / 9; }
@media (max-width: 900px) {
    .fbs-case__grid { grid-template-columns: 1fr; }
    .fbs-case__who { max-width: 420px; }
}

/* ============================================================
   Client logos — the home page's white set, slow marquee
   ============================================================ */
.fbs-logos {
    background: var(--gs-bg);
    padding-block: clamp(3rem, 6vw, 4.5rem);
}
.fbs-logos .gs-section__head { margin-bottom: var(--gs-4); }
.fbs-logos__viewport {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.fbs-logos__row {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: fbs-logos-scroll 90s linear infinite;
}
.fbs-logos__viewport:hover .fbs-logos__row { animation-play-state: paused; }
.fbs-logos__track {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(2.4rem, 4vw, 4rem);
    margin: 0;
    /* tail equals the gap so the -50% loop lands seamlessly */
    padding: 0 clamp(2.4rem, 4vw, 4rem) 0 0;
}
/* fixed-width slots: the track's total width never changes (no matter
   when images arrive), so the -50% loop glides instead of juddering */
.fbs-logos__track li {
    flex: none;
    width: 144px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fbs-logos__track img {
    height: 2.3rem;
    width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: opacity 0.25s ease;
}
.fbs-logos__track img:hover { opacity: 1; }
@keyframes fbs-logos-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .fbs-logos__row { animation: none; }
}

/* ---- Stacked fallback (small screens) ---- */
@media (max-width: 1023px) {
    .fbs-story__track { height: auto; }
    .fbs-story__stage {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: var(--gs-4);
        padding-block: clamp(5rem, 12vw, 7rem) clamp(3rem, 8vw, 5rem);
    }
    .fbs-heroblock { height: auto; padding-block: clamp(6rem, 16vw, 8rem) clamp(2rem, 6vw, 3rem); }
    .fbs-story__rail { display: none; }
    .fbs-story__col { display: contents; }   /* chapters/portal become orderable */
    .fbs-chapter {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        width: 100%;
        max-width: 640px;
        margin-inline: auto;
    }
    /* The columns' desktop offsets are higher-specificity than .fbs-chapter,
       so they leak into the stacked layout and translateY(-50%) the cards up
       over each other — neutralise them here. */
    .fbs-story__col--left .fbs-chapter,
    .fbs-story__col--right .fbs-chapter { transform: none; }
    /* portal sizes to the one shown screen instead of a fixed 480px box
       that clips its content on a narrow screen */
    .fbs-portal { order: 0; height: auto; }
    .fbs-screen[data-screen="0"] {
        position: relative;
        inset: auto;
        opacity: 1;
        transform: none;
    }
    .fbs-chapter[data-chapter="0"] { order: 1; }
    .fbs-chapter[data-chapter="1"] { order: 2; }
    .fbs-chapter[data-chapter="2"] { order: 3; }
    .fbs-chapter[data-chapter="3"] { order: 4; }
    .fbs-chapter[data-chapter="4"] { order: 5; }
    .fbs-chapter[data-chapter="5"] { order: 6; }
    .fbs-chapter[data-chapter="6"] { order: 7; }
    .fbs-chapter[data-chapter="7"] { order: 8; }
    .fbs-chapter[data-chapter="8"] { order: 9; }
    /* only the Sources screen shows in the stacked version */
    .fbs-screen:not([data-screen="0"]) { display: none; }
    .fbs-screen .fbs-cards > *,
    .fbs-feed li { opacity: 1; animation: none; }
    /* the one-liner asides and story minis are desktop garnish */
    .fbs-chapter--notes { display: none; }
    .fbs-shot--mini { display: none; }

    /* "Everything in one place" keeps the node diagram on small screens —
       just scaled down (smaller tiles, hub and labels) so it fits. The SVG
       wiring still draws as the section scrolls into view; the faint group
       labels are dropped since they crowd at this size. */
    .fbs-under .fbs-stage {
        display: block;
        height: clamp(380px, 70vw, 560px);
    }
    .fbs-under .fbs-hub { padding: 0.55rem 1rem; }
    .fbs-under .fbs-hub span { font-size: clamp(0.7rem, 1.6vw, 0.92rem); }
    .fbs-under .fbs-node { gap: 0.25rem; }
    .fbs-under .fbs-node__logo { width: clamp(34px, 6.2vw, 50px); }
    .fbs-under .fbs-node__label { font-size: clamp(0.5rem, 1.1vw, 0.64rem); }
    .fbs-under .fbs-node__tag {
        font-size: clamp(0.62rem, 1.4vw, 0.8rem);
        padding: 0.3rem 0.6rem;
    }
    .fbs-under .fbs-glabel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fbs-chapter,
    .fbs-portal,
    .fbs-screen,
    .fbs-story__rail li,
    .fbs-bar i,
    .fbs-chart span,
    .fbs-chat__a,
    .fbs-chat__next,
    .fbs-portalcta,
    .fbs-portal__item { transition: none; }
    .fbs-screen .fbs-cards > *,
    .fbs-feed li,
    .fbs-insight,
    .fbs-flow li,
    .fbs-notes li,
    .fbs-src { animation: none !important; opacity: 1; transform: none; }
    .fbs-chart span { transform: scaleY(1); }
    .fbs-chat__a, .fbs-chat__next, .fbs-portalcta { opacity: 1; transform: none; }
    .fbs-chat__caret, .fbs-status--sync::before { animation: none; }
}
