/* =========================================================
   AGENTIZED — Global stylesheet
   Brand system per Website Implementation Specification v1.0
   Palette: Agentized Ink / Agent Blue / Human Orange / Warm White
   Licensing note: commercial display font not yet cleared —
   using Inter (display+body) and Source Serif 4 (editorial accent)
   as the approved open-source fallbacks. IBM Plex Mono for system labels.
   ========================================================= */

:root {
    /* Color tokens */
    --agentized-ink: #07182B;
    --agentized-midnight: #0B2239;
    --agent-blue: #10A9F4;
    --agent-blue-deep: #087DBA;
    --human-orange: #FF6800;
    --human-orange-deep: #D94F00;
    --warm-white: #F7F5F0;
    --cool-white: #F3F8FC;
    --graphite: #17202A;
    --slate: #687586;
    --white: #FFFFFF;

    /* Radii */
    --radius-sm: 6px;
    --radius-lg: 14px;

    /* Layout */
    --container: 1280px;
    --container-narrow: 860px;

    /* Type */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Liberation Mono', monospace;
    --font-editorial: 'Source Serif 4', Georgia, serif;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 128px;

    --section-pad: 96px;
}

@media (max-width: 1023px) {
    :root { --section-pad: 80px; }
}

@media (max-width: 767px) {
    :root { --section-pad: 60px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--graphite);
    line-height: 1.6;
    font-size: 17px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--agentized-ink);
}

p { max-width: 68ch; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
    outline: 3px solid var(--agent-blue);
    outline-offset: 2px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section-tight { padding: calc(var(--section-pad) * 0.6) 0; }

.bg-ink { background: var(--agentized-ink); color: var(--white); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--white); }
.bg-ink p { color: rgba(247, 245, 240, 0.78); }

.bg-midnight { background: var(--agentized-midnight); color: var(--white); }
.bg-midnight h1, .bg-midnight h2, .bg-midnight h3 { color: var(--white); }
.bg-midnight p { color: rgba(247, 245, 240, 0.78); }

.bg-warm { background: var(--warm-white); }
.bg-cool { background: var(--cool-white); }
.bg-white { background: var(--white); }

.eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--agent-blue-deep);
    margin-bottom: var(--space-4);
}

.bg-ink .eyebrow, .bg-midnight .eyebrow { color: var(--agent-blue); }

h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-bottom: var(--space-4); }
h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }

.lead {
    font-size: 1.15rem;
    color: var(--slate);
    max-width: 68ch;
}

.bg-ink .lead, .bg-midnight .lead { color: rgba(247, 245, 240, 0.78); }

.text-center { text-align: center; }
.text-center p, .text-center .lead { margin-left: auto; margin-right: auto; }

.mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate);
}

/* =====================
   Announcement bar
   ===================== */
.announcement-bar {
    background: var(--agentized-midnight);
    color: var(--white);
    text-align: center;
    padding: 8px 48px 8px 16px;
    font-size: 0.82rem;
    position: relative;
}

.announcement-bar a { color: var(--white); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.4); }

.announcement-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    line-height: 1;
    padding: 4px;
}

.announcement-close:hover { color: var(--white); }

/* =====================
   Navigation
   ===================== */
.navbar {
    background: var(--agentized-ink);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.2s ease;
}

.navbar.is-scrolled { box-shadow: 0 2px 16px rgba(7, 24, 43, 0.25); }

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--white);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.logo .agent { color: var(--human-orange); }
.logo .ized { color: var(--agent-blue); }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: rgba(247, 245, 240, 0.85);
    font-size: 0.94rem;
    font-weight: 500;
    padding: 8px 2px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active { border-bottom: 2px solid var(--human-orange); }

.nav-cta { flex-shrink: 0; }
.nav-cta-mobile { display: none; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* =====================
   Buttons — CTA hierarchy
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
    background: var(--human-orange);
    color: var(--white);
}
.btn-primary:hover { background: var(--human-orange-deep); }

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(247, 245, 240, 0.35);
}
.btn-secondary:hover { border-color: var(--white); }

.bg-white .btn-secondary, .bg-warm .btn-secondary, .bg-cool .btn-secondary {
    color: var(--agentized-ink);
    border-color: rgba(23, 32, 42, 0.25);
}
.bg-white .btn-secondary:hover, .bg-warm .btn-secondary:hover, .bg-cool .btn-secondary:hover {
    border-color: var(--agentized-ink);
}

.btn-tertiary {
    color: var(--agent-blue-deep);
    font-weight: 600;
    min-height: auto;
    padding: 0;
}
.bg-ink .btn-tertiary, .bg-midnight .btn-tertiary { color: var(--agent-blue); }
.btn-tertiary::after { content: '\2192'; margin-left: 6px; transition: transform 0.15s ease; }
.btn-tertiary:hover::after { transform: translateX(3px); }

.cta-row { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }

/* =====================
   Hero
   ===================== */
.hero {
    background: var(--agentized-ink);
    color: var(--white);
    padding: var(--space-9) 0;
    min-height: 760px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .hero-grid { position: relative; z-index: 1; }

/* ambient background field: bleeds a grid + breathing glows + pulsing
   markers across the ENTIRE hero, so the hero-visual diagram reads as one
   part of a larger field instead of a boxed-in graphic. Sits behind
   .hero-grid (z-index:0 vs 1 above), purely decorative (aria-hidden). */
.hero-field { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* Real <line> elements, drawn by script.js from the exact same grid model
   (grid.verticalLines / grid.horizontalLines) that spawnCell()/spawnStreak()
   read their coordinates from. A "grid square" is just the physical overlap
   of one vertical and one horizontal line from that shared model — not a
   separate background pattern that has to be kept in sync by hand. */
.hero-field-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* lines near the center stay crisp; anything farther out visibly thins to
       almost nothing well before the hero's edge, instead of holding steady
       most of the way across */
    mask-image: radial-gradient(ellipse 70% 78% at 50% 42%, #000 15%, rgba(0,0,0,0.35) 45%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 78% at 50% 42%, #000 15%, rgba(0,0,0,0.35) 45%, transparent 78%);
}
.hero-field-grid line { stroke: rgba(16, 169, 244, 0.16); stroke-width: 1; stroke-dasharray: 1 5; }
.hero-field-grid .hero-field-cross { stroke: rgba(16, 169, 244, 0.4); stroke-width: 1; }
/* .hero-cell and .hero-streak elements are spawned one at a time by script.js
   at randomized grid-aligned positions with randomized durations — each plays
   this blink-on / hold / blink-off animation exactly once, then removes itself. */
/* fixed one-cell size now — script.js no longer varies it */
/* hexagons, not squares — clipped to a hex, tiled loosely over the square
   grid. .hero-field needs perspective for the rotateY flip below to read as
   3D instead of just squashing flat. */
.hero-cell {
    position: absolute;
    width: 34px;
    height: 34px;
    background: rgba(16, 169, 244, 0.3);
    opacity: 0;
    pointer-events: none;
    /* --peak is set per-cell by script.js, based on how far the cell sits
       from the field's center — the same falloff the background grid/mask
       already fades on, so peripheral squares max out dimmer instead of
       hitting the same full brightness as central ones */
    --peak: 1;
    animation-name: heroCellBlink;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}
/* old-fluorescent-tube startup: a couple of stuttering flickers, then a slow
   climb up to fully lit (fully lit = --peak, not always 1), a hold, then it
   drops off */
@keyframes heroCellBlink {
    0%   { opacity: 0; }
    4%   { opacity: calc(var(--peak) * 0.55); }
    7%   { opacity: calc(var(--peak) * 0.05); }
    11%  { opacity: calc(var(--peak) * 0.45); }
    15%  { opacity: calc(var(--peak) * 0.05); }
    21%  { opacity: calc(var(--peak) * 0.65); }
    27%  { opacity: calc(var(--peak) * 0.1); }
    32%  { opacity: calc(var(--peak) * 0.2); }
    65%  { opacity: var(--peak); }
    88%  { opacity: var(--peak); }
    100% { opacity: 0; }
}
/* a short comet-like segment that sweeps the FULL length of its line, fast —
   script.js sets --travel to the line's actual pixel length and starts the
   streak at that line's origin (top:0 for verticals, left:0 for horizontals) */
.hero-streak {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    --travel: 0px;
}
.hero-streak-v {
    top: 0;
    width: 1px;
    height: 90px;
    background: linear-gradient(to bottom, transparent, rgba(16, 169, 244, 0.85) 50%, transparent);
    animation-name: heroStreakSweepV;
}
.hero-streak-h {
    left: 0;
    height: 1px;
    width: 90px;
    background: linear-gradient(to right, transparent, rgba(16, 169, 244, 0.85) 50%, transparent);
    animation-name: heroStreakSweepH;
}
.hero-streak-v, .hero-streak-h {
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}
@keyframes heroStreakSweepV {
    0%   { opacity: 0; transform: translateY(0); }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(var(--travel)); }
}
@keyframes heroStreakSweepH {
    0%   { opacity: 0; transform: translateX(0); }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(var(--travel)); }
}
/* small blinking lights sitting right on the grid-line intersections */
.hero-light {
    position: absolute;
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px; /* centers the dot on its intersection point */
    border-radius: 50%;
    background: var(--agent-blue);
    box-shadow: 0 0 6px 1px rgba(16, 169, 244, 0.85);
    opacity: 0;
    pointer-events: none;
    animation-name: heroLightBlink;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
@keyframes heroLightBlink {
    0%, 100% { opacity: 0; }
    15% { opacity: 1; }
    30% { opacity: 0.2; }
    45% { opacity: 1; }
    100% { opacity: 0; }
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: heroFieldBreathe 9s ease-in-out infinite;
}
/* kept small, dim, and pinned to the bottom-left corner so it sits below the
   headline/body copy instead of glowing through it */
.hero-glow-left { width: 340px; height: 340px; left: -160px; bottom: -140px; top: auto; background: rgba(16, 169, 244, 0.12); }
.hero-glow-right { width: 560px; height: 560px; right: -220px; bottom: -8%; background: rgba(255, 104, 0, 0.16); animation-delay: 3s; }
/* sits behind roughly where the diagram's line cluster is, dim enough that
   it never competes with the crisp lines drawn on top of it in .hero-visual */
.hero-glow-diagram { width: 620px; height: 460px; right: 6%; top: 30%; background: rgba(16, 169, 244, 0.09); animation-delay: 1.4s; }
@keyframes heroFieldBreathe {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
    /* .hero-cell/.hero-streak are never spawned by script.js under reduced motion,
       this just covers the .hero-glow element that's static in HTML */
    .hero-glow { animation: none; }
}

/* The hero gets its own, much wider container so the diagram isn't
   squeezed into the standard 1280px content width on large screens.
   width:100% is REQUIRED: .hero is display:flex, so this container is a
   flex item and would otherwise shrink-wrap to its content (which made
   the SVG collapse to the 300px replaced-element default). */
.hero .container {
    width: 100%;
    max-width: 1560px;
}

.hero-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-8);
}

.hero-copy {
    flex: 0 0 560px;
    max-width: 560px;
    position: relative;
    top: -28px;
}

.hero-copy h1 { color: var(--white); margin-bottom: var(--space-4); }
.hero-copy .lead { color: rgba(247, 245, 240, 0.82); margin-bottom: var(--space-6); font-size: 1.15rem; }
@media (min-width: 768px) {
    .hero-copy .cta-row { flex-wrap: nowrap; gap: var(--space-3); }
    .hero-copy .cta-row .btn { padding: 12px 18px; font-size: 0.9rem; white-space: nowrap; }
}

.hero-strip {
    margin-top: var(--space-7);
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(247, 245, 240, 0.5);
}

.hero-visual { position: relative; flex: 1 1 0%; min-width: 0; }

/* mobile-only vertical rebuild of the hero diagram — hidden by default,
   swapped in for .handoff-svg under the 767px breakpoint (see Responsive
   section). Same SVG technique as desktop (hf-node/hf-line/hf-tile-slot),
   so it gets the identical hex-tile build animation from script.js — just a
   different, one-column viewBox instead of the 3-column desktop layout. */
.handoff-svg-mobile { display: none; width: 100%; height: auto; }

/* Page hero (secondary pages, less tall than homepage) */
.page-hero { padding: 80px 0 72px; }
.page-hero h1 { margin-bottom: var(--space-4); }

/* =====================
   Grids & cards
   ===================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }

.card {
    background: var(--white);
    border: 1px solid rgba(23, 32, 42, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--space-6);
}

.card-outcome {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: var(--space-6);
    border-top: 3px solid var(--slate);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.card-outcome.orange { border-top-color: var(--human-orange); }
.card-outcome.blue { border-top-color: var(--agent-blue); }
.card-outcome .card-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.card-outcome .card-measure {
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid rgba(23,32,42,0.08);
    font-size: 0.85rem;
    color: var(--slate);
}

/* Stage / stepper list */
.stage-list { display: grid; gap: 2px; background: rgba(247,245,240,0.12); border-radius: var(--radius-lg); overflow: hidden; }
.stage-item {
    background: var(--agentized-midnight);
    padding: var(--space-5) var(--space-6);
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: var(--space-5);
    align-items: start;
}
.stage-num {
    font-family: var(--font-mono);
    color: var(--human-orange);
    font-size: 0.85rem;
    font-weight: 700;
}
.stage-item h3 { color: var(--white); margin-bottom: 4px; }
.stage-item p { color: rgba(247,245,240,0.72); font-size: 0.92rem; }

/* Numbered layer list (Enterprise System, Authority levels) */
.layer-list { display: flex; flex-direction: column; gap: var(--space-3); }
.layer-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--white);
    border: 1px solid rgba(23,32,42,0.1);
    border-radius: var(--radius-sm);
    align-items: start;
}
.layer-num {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--agent-blue-deep);
}
.layer-item strong { display: block; color: var(--agentized-ink); margin-bottom: 2px; }
.layer-item span { color: var(--slate); font-size: 0.92rem; }

/* Offer ladder */
.offer-ladder { display: flex; flex-direction: column; gap: var(--space-3); }
.offer-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-5);
    align-items: center;
    padding: var(--space-5) var(--space-6);
    background: var(--white);
    border: 1px solid rgba(23,32,42,0.1);
    border-radius: var(--radius-sm);
}
.offer-item h3 { margin-bottom: 2px; }
.offer-item .offer-duration { font-family: var(--font-mono); font-size: 0.72rem; color: var(--agent-blue-deep); text-transform: uppercase; letter-spacing: 0.05em; }
.offer-item p { color: var(--slate); font-size: 0.92rem; margin-top: 4px; }
.offer-arrow { color: var(--slate); font-size: 1.3rem; }

/* Governance principle table */
.principle-list { display: grid; gap: 1px; background: rgba(23,32,42,0.08); border: 1px solid rgba(23,32,42,0.08); border-radius: var(--radius-sm); overflow: hidden; }
.principle-row { background: var(--white); padding: var(--space-4) var(--space-5); display: grid; grid-template-columns: 160px 1fr; gap: var(--space-5); align-items: baseline; }
.principle-row strong { color: var(--agentized-ink); }
.principle-row span { color: var(--slate); font-size: 0.94rem; }

/* Authority levels */
.authority-track { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.authority-pill {
    flex: 1 1 260px;
    background: var(--white);
    border: 1px solid rgba(23,32,42,0.1);
    border-left: 3px solid var(--agent-blue);
    border-radius: var(--radius-sm);
    padding: var(--space-4) var(--space-5);
}
.authority-pill.escalate { border-left-color: var(--human-orange); }
.authority-pill .mono { display: block; margin-bottom: 4px; }
.authority-pill strong { display: block; color: var(--agentized-ink); margin-bottom: 4px; }
.authority-pill span { color: var(--slate); font-size: 0.9rem; }

/* Fit criteria checklist */
.check-list { display: flex; flex-direction: column; gap: var(--space-3); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--graphite); }
.check-list li::before { content: '\2713'; color: var(--agent-blue-deep); font-weight: 700; flex-shrink: 0; }

/* Person / team cards */
.person-card { text-align: left; }
.person-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    background: var(--cool-white);
}
.person-card h3 { margin-bottom: 2px; }
.person-role { font-size: 0.85rem; color: var(--agent-blue-deep); font-weight: 600; margin-bottom: var(--space-3); }
.person-card p { color: var(--slate); font-size: 0.92rem; }

/* Contact routing table */
.route-list { display: flex; flex-direction: column; gap: 2px; }
.route-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-5);
    align-items: center;
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid rgba(23,32,42,0.1);
    border-radius: var(--radius-sm);
}
.route-item h3 { margin-bottom: 2px; font-size: 1.05rem; }
.route-item p { color: var(--slate); font-size: 0.88rem; }

/* =====================
   Diagram — Agentized Handoff
   ===================== */
.handoff-svg { width: 100%; height: auto; display: block; }
.handoff-svg text { font-family: var(--font-body); }
.handoff-node-fill { fill: var(--agentized-midnight); }
.handoff-node-stroke { stroke: rgba(16,169,244,0.5); }

/* This one-time hero intro (plays once, when the diagram scrolls into view)
   is driven by script.js: for each block, a rolling cascade of hex tiles
   flips in one after another covering the box, then that mosaic resolves
   into the real, full solid block. */

/* the block's rect starts scaled down to nothing at its own center, then
   scales up to full size right as the hex mosaic (below) fades out — reads
   as the tiles resolving into the block, not two unrelated animations */
.handoff-anim .hf-node rect {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    transform: scale(0.1);
}
.handoff-anim .hf-node.is-in rect {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(.22,.85,.3,1.05);
}
.handoff-anim .hf-node-content,
.handoff-anim .hf-line { opacity: 0; }
.handoff-anim .hf-node-content.is-in,
.handoff-anim .hf-line.is-in { opacity: 1; transition: opacity 0.25s ease; }

/* the rolling hex-tile cascade — each tile flips in on arrival; the whole
   group (script.js: .hf-tile-group) fades out once the real block appears */
.hf-tile-group.is-out { animation: hfTileGroupOut 0.3s ease forwards; }
@keyframes hfTileGroupOut { to { opacity: 0; } }
.hf-tile-live {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: hfTileFlip 0.3s cubic-bezier(.22,.85,.3,1.1) forwards;
}
@keyframes hfTileFlip {
    0%   { opacity: 0; transform: scale(0) rotate(18deg); }
    60%  { opacity: 1; transform: scale(1.15) rotate(-5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.diagram-caption { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate); text-align: right; margin-top: var(--space-2); }
.bg-ink .diagram-caption, .bg-midnight .diagram-caption { color: rgba(247,245,240,0.4); }

/* =====================
   Book
   ===================== */
.book-hero-grid { display: grid; grid-template-columns: 380px 1fr; gap: var(--space-8); align-items: center; }
.book-cover-frame { border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 24px 60px rgba(7,24,43,0.35); }
.book-package-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.book-package { background: var(--white); border: 1px solid rgba(23,32,42,0.1); border-radius: var(--radius-sm); padding: var(--space-5); }
.book-package h3 { font-size: 1.05rem; }
.book-package p { color: var(--slate); font-size: 0.9rem; margin-bottom: var(--space-3); }

/* =====================
   Forms
   ===================== */
.form-card {
    background: var(--white);
    border: 1px solid rgba(23,32,42,0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-group { margin-bottom: var(--space-4); }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--agentized-ink); margin-bottom: 6px; }
.form-group .hint { font-size: 0.78rem; color: var(--slate); margin-top: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(23,32,42,0.2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--graphite);
    background: var(--white);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 3px solid var(--agent-blue);
    outline-offset: 1px;
    border-color: var(--agent-blue);
}
.form-consent { font-size: 0.8rem; color: var(--slate); margin-top: var(--space-3); }

/* Footer */
footer {
    background: var(--agentized-ink);
    color: rgba(247,245,240,0.7);
    padding: var(--space-8) 0 var(--space-6);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6); margin-bottom: var(--space-7); }
.footer-brand .logo { margin-bottom: var(--space-3); }
.footer-brand p { color: rgba(247,245,240,0.6); font-size: 0.9rem; max-width: 32ch; }
footer h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
footer ul { display: flex; flex-direction: column; gap: var(--space-2); }
footer a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(247,245,240,0.12);
    padding-top: var(--space-5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: 0.82rem;
}
.footer-bottom a { color: rgba(247,245,240,0.6); }

/* =====================
   Responsive
   ===================== */
@media (max-width: 1023px) {
    .hero { min-height: auto; padding: var(--space-8) 0; }
    .hero-grid { flex-direction: column; }
    .hero-copy { flex-basis: auto; max-width: 100%; }
    .hero-visual { order: 2; max-width: 520px; width: 100%; margin: 0 auto; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .book-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .book-cover-frame { max-width: 280px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    body { font-size: 16px; }
    .nav-links {
        display: none;
        position: fixed;
        inset: 0 0 0 0;
        top: 60px;
        background: var(--agentized-ink);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-6) 24px;
        gap: var(--space-2);
        overflow-y: auto;
        z-index: 99;
    }
    .nav-links.active { display: flex; }
    .nav-links a { width: 100%; padding: 12px 0; font-size: 1.05rem; }
    .nav-cta { display: none; }
    .nav-links .nav-cta-mobile { display: flex; margin-top: var(--space-4); width: 100%; }
    .nav-links .nav-cta-mobile .btn { width: 100%; }
    .mobile-menu-btn { display: flex; }
    .container { padding: 0 20px; }
    .stage-item, .layer-item, .offer-item, .principle-row, .route-item { grid-template-columns: 1fr; }
    .offer-item { text-align: left; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-row .btn { width: 100%; }

    /* The desktop hero diagram is a 3-column SVG with fixed-size text baked
       into its viewBox — no amount of shrinking makes that legible on a
       phone. Below this breakpoint, swap it for the separate one-column
       .handoff-svg-mobile SVG instead of scaling or scrolling this one. */
    .handoff-svg { display: none; }
    .handoff-svg-mobile { display: block; }

    /* Chaos-diagram and three-outcomes diagram: cut the side padding, which
       was eating a third of the available width on a phone screen */
    .cvad { padding: 24px 16px 20px; }
    .mbb { padding: 20px 14px 16px; }

    /* Column 2 of the three-outcomes diagram (inputs | agents | exception)
       is a 3-part horizontal row that has no room to breathe at phone
       widths — stack it vertically instead, same pattern column 1 already
       uses for its signal-to-chain flow */
    .mbb-grid-flow { flex-direction: column; align-items: stretch; }
    .mbb-inputs, .mbb-agents, .mbb-exception { flex: 1 1 auto; }
    .mbb-arrow-col { align-self: center; transform: rotate(90deg); }
    .mbb-exception { border-top: 1px dashed rgba(255,104,0,0.3); padding-top: 8px; margin-top: 4px; }
}


/* ============================================================
   CHAOS DIAGRAM COMPONENT (H05 before/after) — vector SVG, no raster image
   ============================================================ */
.preview-note { font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================================
   CHAOS DIAGRAM — scoped component styles
   ============================================================ */
.cvad {
    --cvad-bg: #0A1626;
    --cvad-panel: #0E1E33;
    --cvad-line: rgba(255,255,255,0.10);
    --cvad-text-dim: rgba(255,255,255,0.55);
    background: var(--cvad-bg);
    border-radius: 20px;
    padding: 36px 40px 30px;
    color: #fff;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}
.cvad-icon { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- 01 Title block --- */
.cvad-title-block { text-align: center; margin-bottom: 26px; }
.cvad-title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2.05rem); font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.cvad-title sup { font-size: 0.5em; top: -0.8em; }
.cvad-subtitle { font-size: 0.95rem; color: var(--cvad-text-dim); margin: 0 auto; }

/* --- 02 Two-column grid --- */
.cvad-grid { display: grid; grid-template-columns: 1fr 46px 1fr; gap: 0 6px; align-items: stretch; }
.cvad-col { display: flex; flex-direction: column; }

/* --- 03 Column headers --- */
.cvad-col-header { margin-bottom: 16px; }
.cvad-col-header .tag { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.cvad-col.today .tag { color: var(--human-orange); background: rgba(255,104,0,0.12); }
.cvad-col.after .tag { color: var(--agent-blue); background: rgba(16,169,244,0.12); }
.cvad-col-header h3 { color: #fff; font-size: 1.02rem; font-weight: 700; margin: 0 0 3px; }
.cvad-col-header p { font-size: 0.78rem; color: var(--cvad-text-dim); margin: 0; }

/* --- 04 Department row (both columns) --- */
.cvad-dept-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 10px; }
.cvad-dept { background: rgba(255,255,255,0.05); border: 1px solid var(--cvad-line); border-radius: 8px; padding: 8px 4px; text-align: center; }
.cvad-dept .cvad-icon-wrap { width: 26px; height: 26px; margin: 0 auto 5px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); }
.cvad-dept .cvad-icon { width: 14px; height: 14px; color: #fff; }
.cvad-dept span { display: block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.03em; color: rgba(255,255,255,0.85); }

/* --- 05 Chaos: scattered tool-icon clusters --- */
.cvad-tool-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; }
.cvad-tool-cluster { background: rgba(255,255,255,0.03); border: 1px dashed var(--cvad-line); border-radius: 8px; padding: 6px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; min-height: 46px; }
.cvad-tool-chip { width: 17px; height: 17px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.cvad-tool-chip .cvad-icon { width: 9px; height: 9px; color: #fff; stroke-width: 2.4; }
.chip-blue { background: #2563EB; } .chip-purple { background: #7C3AED; } .chip-green { background: #059669; }
.chip-pink { background: #DB2777; } .chip-orange { background: var(--human-orange); } .chip-teal { background: #0D9488; }
.chip-red { background: #DC2626; } .chip-cyan { background: var(--agent-blue); }

/* --- 06 Chaos: manual handoff row + connector lines --- */
.cvad-handoff-area { position: relative; margin-bottom: 6px; padding-top: 14px; }
.cvad-handoff-row { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; padding: 0 2px; }
.cvad-person { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--human-orange); display: flex; align-items: center; justify-content: center; background: var(--cvad-bg); }
.cvad-person .cvad-icon { width: 12px; height: 12px; color: var(--human-orange); }
.cvad-handoff-glyph { color: rgba(255,255,255,0.35); font-size: 0.7rem; }
.cvad-handoff-label { text-align: center; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.06em; color: var(--cvad-text-dim); margin-top: 8px; }

/* --- 07 Chaos: X-list --- */
.cvad-x-panel { margin-top: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--cvad-line); border-radius: 8px; padding: 10px 14px; flex: 1; }
.cvad-x-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.cvad-x-item { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: rgba(255,255,255,0.8); }
.cvad-x-item .cvad-icon { width: 11px; height: 11px; color: #EF4444; flex-shrink: 0; }

/* --- 08 Center arrow --- */
.cvad-center-arrow { display: flex; align-items: center; justify-content: center; }
.cvad-center-arrow .cvad-icon { width: 30px; height: 30px; color: var(--agent-blue); stroke-width: 2.5; }

/* --- 09 Agentized side: agent boxes under each dept --- */
.cvad-agent-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; }
.cvad-agent-box { background: rgba(16,169,244,0.08); border: 1px solid rgba(16,169,244,0.3); border-radius: 8px; padding: 8px 5px; text-align: center; min-height: 46px; display: flex; flex-direction: column; justify-content: center; }
.cvad-agent-box span { font-size: 0.56rem; font-weight: 600; line-height: 1.25; color: rgba(255,255,255,0.9); }
.cvad-agent-box .cvad-icon-wrap { width: 20px; height: 20px; margin: 0 auto 4px; border-radius: 50%; background: var(--agent-blue); display: flex; align-items: center; justify-content: center; }
.cvad-agent-box .cvad-icon { width: 11px; height: 11px; color: #fff; }

/* --- 10 Agentized: connector down to orchestration --- */
.cvad-drop-lines { height: 12px; position: relative; }
.cvad-drop-lines svg { width: 100%; height: 100%; overflow: visible; }

/* --- 11 Layered stack (orchestration / governance / systems) --- */
.cvad-layer { border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; }
.cvad-layer-label { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 6px; display: block; }
.cvad-layer.orchestration { background: rgba(16,169,244,0.14); border: 1px solid rgba(16,169,244,0.4); }
.cvad-layer.orchestration .cvad-layer-label { color: var(--agent-blue); }
.cvad-orch-items { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.68rem; color: rgba(255,255,255,0.85); }
.cvad-orch-items span::before { content: '•'; margin-right: 5px; color: var(--agent-blue); }

.cvad-layer.governance { background: rgba(255,255,255,0.04); border: 1px solid var(--cvad-line); }
.cvad-layer.governance .cvad-layer-label { color: rgba(255,255,255,0.7); }
.cvad-gov-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.cvad-gov-item { text-align: center; padding: 5px 2px; border-radius: 6px; }
.cvad-gov-item .cvad-icon-wrap { width: 22px; height: 22px; margin: 0 auto 3px; border-radius: 6px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.cvad-gov-item .cvad-icon { width: 12px; height: 12px; color: #fff; }
.cvad-gov-item span { font-size: 0.55rem; color: rgba(255,255,255,0.75); }
.cvad-gov-item.highlight { background: rgba(255,104,0,0.12); border: 1px solid var(--human-orange); }
.cvad-gov-item.highlight .cvad-icon-wrap { background: var(--human-orange); }
.cvad-gov-item.highlight span { color: var(--human-orange); font-weight: 700; }

.cvad-layer.systems { background: rgba(255,255,255,0.04); border: 1px solid var(--cvad-line); }
.cvad-layer.systems .cvad-layer-label { color: rgba(255,255,255,0.7); }
.cvad-sys-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cvad-sys-item { text-align: center; padding: 5px 2px; }
.cvad-sys-item .cvad-icon-wrap { width: 20px; height: 20px; margin: 0 auto 3px; border-radius: 6px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.cvad-sys-item .cvad-icon { width: 11px; height: 11px; color: rgba(255,255,255,0.8); }
.cvad-sys-item span { font-size: 0.52rem; color: rgba(255,255,255,0.6); }

/* --- 12 Right sidebar: measurable outcomes --- */
.cvad-after-body { display: flex; gap: 8px; }
.cvad-after-main { flex: 1; }
.cvad-outcomes { width: 108px; background: rgba(255,255,255,0.04); border: 1px solid var(--cvad-line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; }
.cvad-outcomes-label { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.04em; color: var(--cvad-text-dim); margin-bottom: 8px; text-align: center; }
.cvad-outcome-item { display: flex; align-items: center; gap: 5px; font-size: 0.62rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.cvad-outcome-item .cvad-icon-wrap { width: 18px; height: 18px; border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cvad-outcome-item .cvad-icon { width: 10px; height: 10px; color: #fff; }
.oc-revenue .cvad-icon-wrap { background: #059669; } .oc-margin .cvad-icon-wrap { background: var(--agent-blue); }
.oc-capacity .cvad-icon-wrap { background: #7C3AED; } .oc-speed .cvad-icon-wrap { background: var(--human-orange); }

/* --- 13 Bottom FROM/TO bar --- */
.cvad-bottom-bar { margin-top: 22px; border: 1px solid var(--cvad-line); border-radius: 10px; padding: 10px 22px; display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,0.02); flex-wrap: wrap; }
.cvad-badge-a { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.cvad-bottom-bar .from-label, .cvad-bottom-bar .to-label { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; }
.cvad-bottom-bar .from-label { color: var(--human-orange); }
.cvad-bottom-bar .to-label { color: var(--agent-blue); }
.cvad-bottom-bar .from-items, .cvad-bottom-bar .to-items { font-size: 0.72rem; color: rgba(255,255,255,0.75); }
.cvad-bottom-bar .divider { color: rgba(255,255,255,0.25); }

@media (max-width: 860px) {
    .cvad-grid { grid-template-columns: 1fr; }
    .cvad-center-arrow { transform: rotate(90deg); margin: 10px 0; }
    .cvad-dept-row, .cvad-tool-row, .cvad-agent-row { grid-template-columns: repeat(3, 1fr); }
    .cvad-gov-row { grid-template-columns: repeat(3, 1fr); }
    .cvad-sys-row { grid-template-columns: repeat(4, 1fr); }
    .cvad-outcomes { width: auto; }
    .cvad-after-body { flex-direction: column; }
}

/* ============================================================
   THREE-OUTCOMES DIAGRAM (H06) — vector, mirrors the .mbb-col cards above it.
   Reuses the icon symbols already defined in the .cvad component earlier in
   the page (ic-users, ic-person, ic-doc, ic-database, etc.) plus a handful
   of new ones (target, search, edit, filter, clock, warning, rocket).
   ============================================================ */
.mbb {
    background: #0A1626;
    border-radius: 20px;
    padding: 32px 28px 24px;
    color: #fff;
    font-family: var(--font-body);
}
.mbb-icon { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* head */
.mbb-head { text-align: center; margin-bottom: 24px; }
.mbb-head h3 { color: #fff; font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 800; margin: 0 0 4px; }
/* the global `p { max-width: 68ch }` rule constrains this paragraph's box
   but doesn't center that box — text-align:center only centers text INSIDE
   it, so without margin:auto the whole box (and its text) sits flush left */
.mbb-head p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin: 0 auto; }

/* one shared key for what every icon/box color means, so all three columns
   below read with the same visual grammar instead of each needing to be
   puzzled out separately */
.mbb-legend {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px;
    margin: 14px auto 22px; padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    background: rgba(255,255,255,0.03);
    font-size: 0.7rem; color: rgba(255,255,255,0.7);
}
.mbb-legend span { display: flex; align-items: center; gap: 6px; }
.mbb-legend-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.mbb-legend-swatch.agent { background: rgba(16,169,244,0.25); border: 1px solid rgba(16,169,244,0.6); }
.mbb-legend-swatch.human { background: rgba(255,104,0,0.25); border: 1px solid var(--human-orange); }
.mbb-legend-swatch.system { background: transparent; border: 1px dashed rgba(255,255,255,0.4); }
.mbb-legend-arrow { color: var(--agent-blue); font-style: normal; }

/* columns */
.mbb-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.mbb-col { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.mbb-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mbb-num { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.mbb-col-head.orange .mbb-num { background: rgba(255,104,0,0.18); color: var(--human-orange); }
.mbb-col-head.blue .mbb-num { background: rgba(16,169,244,0.18); color: var(--agent-blue); }
.mbb-col-head h4 { color: #fff; font-size: 0.92rem; font-weight: 700; margin: 0; }
.mbb-col-caption { color: rgba(255,255,255,0.6); font-size: 0.72rem; line-height: 1.5; margin: 0 0 14px; }
.mbb-drop-arrow { text-align: center; color: var(--human-orange); opacity: 0.6; font-size: 0.85rem; margin-bottom: 4px; }

/* each stage gets a plain-English label naming what happens in it, so the
   chain below reads as a story (signal → agents build → person approves →
   logged) instead of eight unlabeled boxes stacked with no explanation */
.mbb-stage { margin-bottom: 2px; }
.mbb-stage-label {
    display: block; font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 0.03em; text-transform: uppercase; color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
}

/* shared node/chip styling */
.mbb-node, .mbb-chip {
    display: flex; align-items: center; gap: 7px;
    background: rgba(16,169,244,0.08); border: 1px solid rgba(16,169,244,0.3);
    border-radius: 7px; padding: 7px 9px; font-size: 0.72rem; color: rgba(255,255,255,0.9);
}
.mbb-node.highlight, .mbb-chip.highlight { background: rgba(255,104,0,0.14); border-color: var(--human-orange); color: #FFD9B3; font-weight: 600; }
.mbb-node.sm, .mbb-chip.sm { font-size: 0.66rem; padding: 6px 8px; }
.mbb-node.end { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }
/* CRM is a system, not an agent doing work — dashed border, no fill, matches
   the "system" swatch in the legend so it doesn't read as another agent */
.mbb-node.system { background: transparent; border: 1px dashed rgba(255,255,255,0.35); color: rgba(255,255,255,0.75); }
.mbb-node-tag {
    margin-left: auto; font-family: var(--font-mono); font-size: 0.56rem; text-transform: uppercase;
    letter-spacing: 0.04em; color: rgba(255,255,255,0.4); flex-shrink: 0;
}

/* ===== Column 1: vertical signal -> chain ===== */
.mbb-signal { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 0.68rem; color: rgba(255,255,255,0.7); }
.mbb-icon-circle { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--human-orange); display: flex; align-items: center; justify-content: center; }
.mbb-icon-circle .mbb-icon { color: var(--human-orange); width: 15px; height: 15px; }
/* explicit arrows between every box (.mbb-arrow-down, inserted in the
   markup) do the connecting now — a passive spine line used to sit here
   instead, but a faint sideways tick doesn't read as "connects to" the way
   an actual arrow does */
.mbb-chain { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.mbb-arrow-down { display: block; text-align: center; color: var(--agent-blue); opacity: 0.7; font-size: 0.8rem; line-height: 1.6; font-family: var(--font-mono); }

/* ===== Column 2: inputs -> agents -> exception ===== */
/* the six input types are parallel sources, not a sequence — a wrapped row
   of small tags feeding one funnel, not a vertical chain with arrows */
.mbb-inputs-row { display: flex; flex-wrap: wrap; gap: 5px; }
.mbb-inputs-row div { display: flex; align-items: center; gap: 6px; font-size: 0.62rem; color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 5px; padding: 5px 8px; }
.mbb-exception-label { display: flex; align-items: center; gap: 4px; font-size: 0.6rem; color: var(--human-orange); font-family: var(--font-mono); text-align: center; }

/* ===== Column 3: sequential vs parallel ===== */
.mbb-compare-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); margin: 8px 0 6px; text-transform: uppercase; }
.mbb-row-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 4px; }
.mbb-row-flow .mbb-chip { flex: 1 1 auto; justify-content: center; text-align: center; }
.mbb-arrow-row { flex: 0 0 auto; color: var(--agent-blue); font-size: 0.85rem; opacity: 0.6; }
.mbb-parallel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.mbb-parallel-agents { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; flex: 1 1 140px; }

/* ===== bottom stat strips (all columns) ===== */
.mbb-stats { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); }
.mbb-stats div { display: flex; align-items: center; gap: 5px; font-size: 0.62rem; color: rgba(255,255,255,0.55); }

/* ===== footer wave bar ===== */
.mbb-footer {
    margin-top: 20px; text-align: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.08);
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.mbb-dot { color: var(--agent-blue); margin: 0 10px; }

@media (max-width: 900px) {
    .mbb-cols { grid-template-columns: 1fr; }
}
