/* =====================================================================
   I Love Lucy AI — theme.css
   "Private AI workforce" dark theme. Warm near-black canvas (#151213), PolyAI-inspired
   lime accent (#D9EE50) with bluebird + robin secondaries, Inter body + Instrument Serif
   italic accent phrases. Text on the accent is dark (lime is too bright for white).
   Built fresh; defines every class the retained JS depends on:
   [data-reveal], .site-nav.scrolled, .nav-uc.open, .audio-sample.is-playing,
   .carousel-dot.active, .lead-* / .is-invalid, #kb-consent (styles injected
   by analytics.js).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Surfaces — warm near-black (PolyAI-inspired) */
    --black: #0e0c0d;
    --ink: #151213;
    --panel: #1b1819;
    --panel-2: #232021;
    --card: #262324;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);

    /* Text — warm whites */
    --text: #f7f7f5;
    --text-soft: #c3c1bd;
    --text-faint: #86847f;

    /* Accents — PolyAI "macaw" lime, with bluebird + robin secondaries */
    --lime: #D9EE50;
    --lime-deep: #CAE437;
    --lime-bright: #E4F56B;
    --sky: #6FD9FF;
    --amber: #FF8A5B;
    --lime-glow: rgba(217, 238, 80, 0.35);
    --sky-glow: rgba(111, 217, 255, 0.28);

    /* Semantic — lime is bright, so text ON the accent is dark, not white */
    --accent: var(--lime);
    --on-accent: #151213;

    /* Type */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Spacing (4pt) */
    --s-4: 0.25rem;  --s-8: 0.5rem;   --s-12: 0.75rem; --s-16: 1rem;
    --s-20: 1.25rem; --s-24: 1.5rem;  --s-32: 2rem;    --s-40: 2.5rem;
    --s-48: 3rem;    --s-64: 4rem;    --s-80: 5rem;    --s-96: 6rem;
    --s-128: 8rem;

    /* Shape */
    --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 30px; --r-full: 9999px;

    /* Layout */
    --container: 1200px;
    --gutter: 1.5rem;
    --nav-h: 68px;
    --section-py: 7rem;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur: 260ms;
    --dur-slow: 640ms;

    /* Elevation */
    --shadow-card: 0 24px 60px -34px rgba(0, 0, 0, 0.85);
    --shadow-cta: 0 14px 34px -14px var(--lime-glow);

    color-scheme: dark;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--lime); color: var(--on-accent);
    padding: 0.75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Ambient background ---------- */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(60rem 40rem at 12% -8%, rgba(217, 238, 80, 0.16), transparent 60%),
        radial-gradient(52rem 40rem at 100% 8%, rgba(111, 217, 255, 0.10), transparent 55%),
        radial-gradient(46rem 36rem at 50% 120%, rgba(255, 138, 91, 0.07), transparent 60%);
    pointer-events: none;
}
body::after {
    content: "";
    position: fixed; inset: 0; z-index: -1; opacity: 0.035; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Container & sections ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.panel { position: relative; padding-block: var(--section-py); }
.panel-hero { padding-block: 0; }
.panel-ink { background: linear-gradient(180deg, var(--ink), #08080f); }
.panel-panel { background: var(--panel); }
.panel-tint {
    background:
        linear-gradient(180deg, rgba(217, 238, 80, 0.05), rgba(111, 217, 255, 0.03)),
        var(--ink);
}
.panel + .panel { border-top: 1px solid var(--line); }

/* ---------- Typography roles ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--lime);
    padding: 0.4rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--r-full);
    background: rgba(217, 238, 80, 0.06);
}
.display { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; }
.headline { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.03em; }
.title { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--text-soft); line-height: 1.55; }
.body { color: var(--text-soft); max-width: 62ch; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.text-grad {
    background: linear-gradient(115deg, var(--lime), var(--amber) 75%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Solid accent for emphasis phrases. Emphasis comes from the coral + the serif
   italic cut, not a gradient fill (which reads as an AI tell against our
   grounded, pre-launch register). */
.text-accent { color: var(--lime); }

.section-head { max-width: 62ch; margin-bottom: var(--s-48); }
.section-head .eyebrow { margin-bottom: var(--s-20); }
.section-head .headline { margin-bottom: var(--s-20); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .body { margin-inline: auto; }

/* ---------- Buttons ---------- */
.cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
    padding: 0.9rem 1.5rem; border-radius: var(--r-full);
    border: 1px solid transparent; cursor: pointer;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur);
    white-space: nowrap;
}
.cta-primary { background: linear-gradient(135deg, var(--lime), var(--lime-deep)); color: var(--on-accent); box-shadow: var(--shadow-cta); }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -14px var(--lime-glow); background: linear-gradient(135deg, var(--lime-bright), var(--lime)); }
.cta-secondary { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line-strong); }
.cta-secondary:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); border-color: var(--lime); }
.cta:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(217, 238, 80, 0.4); }

/* ============================================================
   NAV — fixed, transparent over hero, solid on scroll
   ============================================================ */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background var(--dur) var(--ease-out), border-color var(--dur), backdrop-filter var(--dur);
    border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
    background: rgba(10, 10, 20, 0.82);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom-color: var(--line);
}
.nav-row {
    display: flex; align-items: center; gap: var(--s-24);
    max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter);
    height: var(--nav-h);
}
.brand-mark { display: inline-flex; align-items: center; gap: 0.65rem; margin-right: auto; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--text); }
.brand-dot { color: var(--lime); }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-top: 2px; white-space: nowrap; }

.nav-toggle, .nav-burger { display: none; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-link {
    display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
    padding: 0.5rem 0.85rem; border-radius: var(--r-full);
    font-size: 0.95rem; font-weight: 500; color: var(--text-soft);
    background: none; border: 0; cursor: pointer;
    transition: color var(--dur), background var(--dur);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.cta-nav { margin-left: 0.5rem; padding: 0.6rem 1.15rem; }

/* Use Cases mega-menu */
.nav-uc { position: relative; }
.nav-uc-caret { font-size: 0.7em; transition: transform var(--dur); }
.uc-megamenu {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
    width: min(760px, 88vw);
    background: rgba(17, 17, 31, 0.98); backdrop-filter: blur(20px);
    border: 1px solid var(--line-strong); border-radius: var(--r-lg);
    box-shadow: var(--shadow-card); padding: var(--s-24);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
    z-index: 120;
}
.nav-uc:hover .uc-megamenu, .nav-uc:focus-within .uc-megamenu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-uc:hover .nav-uc-caret, .nav-uc:focus-within .nav-uc-caret { transform: rotate(180deg); }
.uc-megamenu-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-24) var(--s-32); }
.uc-group-head { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin-bottom: var(--s-12); }
.uc-rows { display: flex; flex-direction: column; gap: 2px; }
.uc-row {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-16);
    padding: 0.6rem 0.75rem; border-radius: var(--r-sm);
    transition: background var(--dur);
}
.uc-row:hover { background: rgba(255, 255, 255, 0.05); }
.uc-row-title { display: block; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.uc-row-sub { display: block; font-size: 0.82rem; color: var(--text-faint); }
.uc-row-arrow { color: var(--lime); transition: transform var(--dur); }
.uc-row:hover .uc-row-arrow { transform: translateX(4px); }

/* ============================================================
   HERO
   ============================================================ */
.panel-hero { padding-top: calc(var(--nav-h) + 4.5rem); padding-bottom: 5.5rem; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.hero-eyebrow { margin-bottom: var(--s-24); }

/* Drifting orbs — a slow lime/teal gradient field behind the hero copy.
   Transform-only animation (GPU-cheap), clipped by the hero's overflow:hidden.
   Alphas are pitched to read clearly on the near-black canvas while the dense
   core stays out from under the centred headline. Sits above body::before's
   static ambient wash but below .hero-inner. */
.hero-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(28px); will-change: transform; }
.orb-1 {
    width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: -8vw; top: -12vw;
    background: radial-gradient(circle at 50% 50%, rgba(217, 238, 80, 0.5), rgba(217, 238, 80, 0.14) 45%, rgba(217, 238, 80, 0) 72%);
    animation: orb-drift-1 26s ease-in-out infinite alternate;
}
.orb-2 {
    width: 52vw; height: 52vw; max-width: 720px; max-height: 720px; right: -14vw; top: 0;
    background: radial-gradient(circle at 50% 50%, rgba(111, 217, 255, 0.42), rgba(111, 217, 255, 0.12) 45%, rgba(111, 217, 255, 0) 72%);
    animation: orb-drift-2 32s ease-in-out infinite alternate;
}
.orb-3 {
    width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; left: 28vw; bottom: -18vw;
    background: radial-gradient(circle at 50% 50%, rgba(217, 238, 80, 0.3), rgba(111, 217, 255, 0.22) 46%, transparent 74%);
    animation: orb-drift-3 38s ease-in-out infinite alternate;
}
@keyframes orb-drift-1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vw, 4vw, 0) scale(1.12); } }
@keyframes orb-drift-2 { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(-5vw, 5vw, 0) scale(0.94); } }
@keyframes orb-drift-3 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-4vw, -5vw, 0) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }
.hero-display { max-width: 16ch; margin-inline: auto; margin-bottom: var(--s-24); }
.hero-lead { max-width: 52ch; margin-inline: auto; margin-bottom: var(--s-32); }
.hero-cta-row { display: flex; gap: var(--s-16); justify-content: center; flex-wrap: wrap; }
.hero-hook { margin-top: var(--s-20); font-size: 0.9rem; color: var(--text-faint); }

/* Hero product frame (Teams + Portal mock) */
.hero-frame {
    margin: var(--s-64) auto 0; max-width: 980px;
    border: 1px solid var(--line-strong); border-radius: var(--r-xl);
    background: linear-gradient(180deg, rgba(23, 23, 42, 0.9), rgba(12, 12, 22, 0.9));
    box-shadow: var(--shadow-card), 0 0 90px -40px var(--lime-glow);
    overflow: hidden;
}
.hero-frame-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); }
.hero-frame-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.hero-frame-tag { margin-left: auto; font-size: 0.78rem; color: var(--text-faint); font-family: var(--font-mono); }
.hero-frame-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.hero-frame-body > * { padding: var(--s-24); }
.hero-frame-body > * + * { border-left: 1px solid var(--line); }

/* ============================================================
   CLIENT RIBBON (marquee)
   ============================================================ */
.ribbon { padding-block: var(--s-48); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.ribbon-label { text-align: center; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s-24); }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: var(--s-48); animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
    color: var(--text-soft); opacity: 0.72; white-space: nowrap;
    transition: opacity var(--dur), color var(--dur);
}
.client-chip:hover { opacity: 1; color: var(--text); }
.client-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); opacity: 0.6; }
/* Client logos in the ribbon. Matched to the KwickBlocks.Website.AI treatment:
   optical height, dimmed until hover, badges carry ~1.3x to balance wordmarks. */
.client-logo {
    height: 34px; width: auto; max-width: 172px; object-fit: contain; flex: 0 0 auto;
    opacity: 0.7; transition: opacity var(--dur);
}
.client-logo.is-badge { height: 46px; }
.client-logo:hover { opacity: 1; }

@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ============================================================
   SOLUTION / feature grid
   ============================================================ */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-20); }
.solution-card {
    padding: var(--s-32); border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--card), var(--panel));
    transition: transform var(--dur) var(--ease-out), border-color var(--dur), box-shadow var(--dur);
}
.solution-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.solution-card--system { background: linear-gradient(180deg, rgba(217, 238, 80,0.10), var(--panel)); }
.solution-card-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin-bottom: var(--s-16); }
.solution-card-title { font-size: 1.2rem; margin-bottom: var(--s-12); }
.solution-card-line { color: var(--text-soft); font-size: 0.98rem; }

/* Department grid — icon-led, minimal copy, one accent per tile.
   A spinning conic-gradient ring behind each glyph is the "always-on"
   motion; hover speeds it up and lifts the tile. */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-20); }
.dept-tile {
    padding: var(--s-32) var(--s-24); border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--panel); text-align: center;
    transition: transform var(--dur) var(--ease-out), border-color var(--dur), box-shadow var(--dur);
}
.dept-tile:hover {
    transform: translateY(-6px); border-color: var(--tile-accent, var(--lime));
    box-shadow: 0 20px 40px -24px var(--tile-accent, var(--lime));
}
.dept-tile:hover .dept-icon::before { animation-duration: 2.2s; }
.dept-icon {
    position: relative; width: 56px; height: 56px; margin: 0 auto var(--s-20);
    display: grid; place-items: center; border-radius: 50%;
    color: var(--tile-accent, var(--lime));
}
.dept-icon svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.dept-icon::before {
    content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: 0;
    background: conic-gradient(from 0deg, var(--tile-accent, var(--lime)), transparent 45%, var(--tile-accent, var(--lime)) 100%);
    opacity: 0.5; animation: dept-spin 7s linear infinite;
    transition: animation-duration var(--dur);
}
.dept-icon::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--panel); z-index: 0; }
@keyframes dept-spin { to { transform: rotate(360deg); } }
.dept-name { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tile-accent, var(--lime)); margin-bottom: var(--s-8); }
.dept-title { font-size: 1.12rem; }

/* Feature grid (8-up) */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-20); }
.feature-card { padding: var(--s-24); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); transition: transform var(--dur) var(--ease-out), border-color var(--dur); }
.feature-card:hover { transform: translateY(-3px); border-color: var(--lime); }
.feature-glyph { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(217, 238, 80,0.12); color: var(--lime); margin-bottom: var(--s-16); }
.feature-glyph svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: var(--s-8); }
.feature-card p { font-size: 0.9rem; color: var(--text-soft); }

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pullquote { max-width: 26ch; margin: var(--s-32) 0 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; color: var(--text); }
.pullquote .text-grad { font-style: italic; }

/* Two-up text/figure */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-64); align-items: center; }
.split-narrow { gap: var(--s-48); }

/* ============================================================
   GIVE THE TASK — messaging mock (Teams + Portal)
   ============================================================ */
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-20); align-items: start; }
.chatcard {
    border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
    overflow: hidden; box-shadow: var(--shadow-card);
}
.chatcard-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--text-soft); font-weight: 600; }
.chatcard-head .badge { margin-left: auto; font-size: 0.68rem; padding: 0.2rem 0.55rem; border-radius: var(--r-full); border: 1px solid var(--line-strong); color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.chatcard-body { padding: var(--s-20); display: flex; flex-direction: column; gap: var(--s-12); }
.bubble { padding: 0.7rem 0.95rem; border-radius: var(--r-md); font-size: 0.92rem; line-height: 1.45; max-width: 92%; }
.bubble-user { align-self: flex-end; background: rgba(111, 217, 255,0.14); border: 1px solid rgba(111, 217, 255,0.22); }
.bubble-lucy { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.bubble-name { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 0.2rem; color: var(--lime); }

/* ============================================================
   COLLABORATE — team transcript + memory columns
   ============================================================ */
.transcript {
    border: 1px solid var(--line-strong); border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    box-shadow: var(--shadow-card); overflow: hidden;
}
.transcript-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--text-soft); }
.transcript-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #58d68d; box-shadow: 0 0 0 4px rgba(88,214,141,0.18); }
.transcript-body { padding: var(--s-24); display: flex; flex-direction: column; gap: var(--s-16); }
.turn { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-12); }
.turn-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: var(--on-accent); }
.turn-body { border-left: 2px solid var(--turn-color, var(--lime)); padding-left: var(--s-16); }
.turn-name { font-weight: 700; font-size: 0.9rem; color: var(--turn-color, var(--lime)); }
.turn-text { font-size: 0.94rem; color: var(--text-soft); margin-top: 0.15rem; }
.turn-nested { margin-top: var(--s-12); margin-left: var(--s-24); padding: var(--s-12) var(--s-16); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: rgba(0,0,0,0.25); }
.turn-nested .turn-name { font-size: 0.8rem; }
.turn-delegate { font-size: 0.74rem; color: var(--amber); font-family: var(--font-mono); margin-bottom: 0.4rem; }
.turn-collator { border-color: var(--sky); }

/* Turn-by-turn reveal + typing caret, driven by js/transcript-type.js.
   Scoped to .is-animating so nothing hides if that script never runs. */
.turn, .turn-nested { transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.transcript.is-animating .turn:not(.is-in) { opacity: 0; transform: translateY(10px); }
.transcript.is-animating .turn-nested:not(.is-in) { opacity: 0; transform: translateY(8px); }
.turn-text.is-typing::after {
    content: ""; display: inline-block; width: 2px; height: 1em;
    background: var(--turn-color, var(--lime)); margin-left: 2px; vertical-align: -3px;
    animation: caret 900ms steps(1) infinite;
}

.memory-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-20); margin-top: var(--s-32); }
.mem-col { padding: var(--s-24); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.mem-col h3 { font-size: 1.05rem; margin-bottom: var(--s-8); display: flex; align-items: center; gap: 0.5rem; }
.mem-col p { font-size: 0.9rem; color: var(--text-soft); }
.mem-tag { width: 10px; height: 10px; border-radius: 3px; }
.mem-private .mem-tag { background: var(--lime); }
.mem-team .mem-tag { background: var(--sky); }
.mem-company .mem-tag { background: var(--amber); }

/* ============================================================
   USE CASES grid
   ============================================================ */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-20); }
.uc-card { display: block; padding: var(--s-24); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); transition: transform var(--dur) var(--ease-out), border-color var(--dur); }
.uc-card:hover { transform: translateY(-3px); border-color: var(--lime); }
.uc-card .tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); }
.uc-card h3 { font-size: 1.12rem; margin: var(--s-12) 0 var(--s-8); }
.uc-card p { font-size: 0.92rem; color: var(--text-soft); }
.uc-card .arrow { margin-top: var(--s-16); color: var(--lime); font-weight: 600; font-size: 0.9rem; }

/* ============================================================
   GET STARTED — stepper
   ============================================================ */
#get-started .gs-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-48); align-items: start; max-width: none; margin-bottom: var(--s-48); }
#get-started .gs-head .headline { margin: 0; }
#get-started .gs-head .body { margin: 0 0 var(--s-16); }
.gs-agent-cta { display: inline-block; vertical-align: baseline; min-height: 0; padding: 0.1em 0.5em; font-size: inherit; text-transform: none; border-radius: var(--r-sm); }
.gs-bridge { max-width: 60ch; margin-bottom: var(--s-32); color: var(--text); font-weight: 500; }
.steps-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-20); counter-reset: step; }
.step { position: relative; padding: var(--s-24); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.step-index { font-family: var(--font-mono); font-size: 0.78rem; color: var(--lime); letter-spacing: 0.08em; }
.step-name { font-size: 1.12rem; margin: var(--s-8) 0 var(--s-12); }
.step-desc { font-size: 0.92rem; color: var(--text-soft); }
.gs-cta-row { margin-top: var(--s-40); }

/* ============================================================
   IN PRODUCTION — testimonials + carousel
   ============================================================ */
.testi-carousel { position: relative; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-20); }
.testimonials--single { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
.testimonial { padding: var(--s-32); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.t-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); }
.t-quote { margin: var(--s-16) 0; font-size: 1.05rem; line-height: 1.55; color: var(--text); }
.t-cite { display: flex; flex-direction: column; }
.t-cite b { font-weight: 700; }
.t-role { font-size: 0.85rem; color: var(--text-faint); }
.carousel-controls { display: none; align-items: center; justify-content: center; gap: var(--s-16); margin-top: var(--s-24); }
.carousel-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.carousel-arrow:disabled { opacity: 0.35; cursor: default; }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; padding: 0; }
.carousel-dot.active { background: var(--lime); }

/* ============================================================
   AI MODELS
   ============================================================ */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-20); }
.model-card { padding: var(--s-32); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); text-align: center; }
.model-card.is-auto { border-color: var(--lime); background: linear-gradient(180deg, rgba(217, 238, 80,0.10), var(--panel)); }
.model-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); margin-bottom: var(--s-12); }
.model-card h3 { font-size: 1.3rem; margin-bottom: var(--s-8); }
.model-card p { font-size: 0.92rem; color: var(--text-soft); }
.model-note { text-align: center; margin-top: var(--s-32); color: var(--text-faint); font-size: 0.92rem; }
/* Fine print that sits under a left-aligned lead paragraph: keeps a precise technical
   claim available to the reader who wants it without it being the first thing read.
   Unlike .model-note this is not centred, so it works inside a .split column. */
.note-fine { margin-top: var(--s-16); color: var(--text-faint); font-size: 0.88rem; line-height: 1.55; }

/* ============================================================
   SECURITY / trust
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-20); }
.trust-item { padding: var(--s-24); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.trust-name { font-size: 1.05rem; margin-bottom: var(--s-8); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.trust-name svg { width: 20px; height: 20px; color: var(--sky); }
/* The industry term for a plain-English heading, kept for the reader who searches for
   it. Deliberately quiet: the plain words lead, the jargon rides along behind. */
.tn-term {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400;
    letter-spacing: 0.04em; color: var(--text-faint);
    border: 1px solid var(--line); border-radius: var(--r-full); padding: 0.1rem 0.5rem;
}
.trust-desc { font-size: 0.92rem; color: var(--text-soft); }

/* ============================================================
   ROADMAP teaser + page timeline
   ============================================================ */
.road-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-20); }
.road-item { padding: var(--s-24); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.road-status { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: var(--r-full); }
.status-live { color: #58d68d; background: rgba(88,214,141,0.12); }
.status-uat { color: var(--sky); background: rgba(111, 217, 255,0.12); }
.status-soon { color: var(--amber); background: rgba(255, 138, 91,0.12); }
.road-item h3 { font-size: 1.05rem; margin: var(--s-12) 0 var(--s-8); }
.road-item p { font-size: 0.9rem; color: var(--text-soft); }

.timeline { display: flex; flex-direction: column; gap: var(--s-24); max-width: 820px; }
.timeline-row { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-24); padding-bottom: var(--s-24); border-bottom: 1px solid var(--line); }
.timeline-when { font-weight: 700; color: var(--lime); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.panel-final { text-align: center; }
.final-cta { max-width: 640px; margin-inline: auto; }
.final-cta .display { margin: var(--s-24) 0; }
.final-cta .cta-row { display: flex; justify-content: center; gap: var(--s-16); margin-top: var(--s-32); flex-wrap: wrap; }
.final-hook { margin-top: var(--s-16); font-size: 0.9rem; color: var(--text-faint); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-64) var(--s-40); background: var(--black); }
.footer-row { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-32); }
.footer-brand-col .brand-name { font-size: 1.2rem; }
.footer-tagline { margin-top: var(--s-16); font-size: 0.9rem; color: var(--text-faint); max-width: 34ch; }
.footer-col .footer-col-head { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s-16); }
.footer-col a { display: block; padding: 0.3rem 0; font-size: 0.92rem; color: var(--text-soft); }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { max-width: var(--container); margin: var(--s-40) auto 0; padding: var(--s-24) var(--gutter) 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s-16); justify-content: space-between; font-size: 0.85rem; color: var(--text-faint); }
.footer-bottom a { color: var(--text-soft); }
.footer-bottom a:hover { color: var(--lime); }

/* ============================================================
   AUDIO SAMPLE player (used on voice use-case pages)
   ============================================================ */
.audio-sample { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--panel); padding: var(--s-24); --audio-progress: 0%; }
.audio-sample-marker { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-faint); margin-bottom: var(--s-16); }
.audio-marker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217, 238, 80,0.18); }
.audio-sample.is-playing .audio-marker-dot { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(217, 238, 80,0); } }
.audio-waveform { position: relative; height: 60px; overflow: hidden; }
.audio-waveform-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.audio-waveform-svg--base rect { fill: var(--line-strong); }
.audio-waveform-svg--heard { clip-path: inset(0 calc(100% - var(--audio-progress)) 0 0); }
.audio-waveform-svg--heard rect { fill: var(--lime); }
.audio-waveform-playhead { position: absolute; top: 0; bottom: 0; left: var(--audio-progress); width: 2px; background: var(--sky); }
.audio-transport { display: flex; align-items: center; gap: var(--s-16); margin-top: var(--s-16); }
.audio-play-button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--lime); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; }
.audio-icon { width: 22px; height: 22px; fill: currentColor; }
.audio-icon--pause { display: none; }
.audio-sample.is-playing .audio-icon--play { display: none; }
.audio-sample.is-playing .audio-icon--pause { display: block; }
.audio-timecode { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-soft); }
.audio-meta-strip { margin-left: auto; font-size: 0.78rem; color: var(--text-faint); }

/* callproof transcript */
.callproof-script { margin-top: var(--s-24); padding: var(--s-20); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.callproof-script-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.callproof-script p { font-size: 0.92rem; color: var(--text-soft); margin-top: var(--s-8); }
.callproof-more summary { cursor: pointer; color: var(--lime); margin-top: var(--s-12); font-size: 0.9rem; }

/* ============================================================
   LEAD / REQUEST-ACCESS form
   ============================================================ */
.lead-wrap { max-width: 640px; margin-inline: auto; }
.lead-form { display: grid; gap: var(--s-20); margin-top: var(--s-32); }
.lead-field { display: flex; flex-direction: column; gap: 0.4rem; }
.lead-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.lead-input, .lead-textarea, .lead-select {
    width: 100%; padding: 0.85rem 1rem; border-radius: var(--r-sm);
    background: var(--panel); border: 1px solid var(--line-strong); color: var(--text);
    font: inherit; font-size: 0.98rem;
}
.lead-input:focus, .lead-textarea:focus, .lead-select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(217, 238, 80,0.18); }
.lead-textarea { min-height: 120px; resize: vertical; }
.lead-radio-row { display: flex; gap: var(--s-16); flex-wrap: wrap; }
.lead-radio { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; }
.lead-input.is-invalid, .lead-textarea.is-invalid, .lead-select.is-invalid { border-color: #f87171; }
.validation-error { color: #f87171; font-size: 0.82rem; }
.lead-note { font-size: 0.85rem; color: var(--text-faint); }

/* ============================================================
   REVEAL system
   ============================================================ */
.has-reveal [data-reveal]:not([data-reveal="shown"]) { opacity: 0; transform: translateY(24px); }
[data-reveal] { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal="shown"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .has-reveal [data-reveal]:not([data-reveal="shown"]) { opacity: 1; transform: none; }
}

/* Generic page hero (supporting pages) */
.page-hero { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: var(--s-48); }
.page-hero .display { max-width: 20ch; }
.page-hero .lead { max-width: 56ch; margin-top: var(--s-20); }

/* status pills inline in prose */
.st { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.12rem 0.5rem; border-radius: var(--r-full); vertical-align: middle; margin-left: 0.4rem; }
.st-live { color: #58d68d; background: rgba(88,214,141,0.12); }
.st-uat { color: var(--sky); background: rgba(111, 217, 255,0.12); }
.st-soon { color: var(--amber); background: rgba(255, 138, 91,0.12); }

/* FAQ */
.faq-list { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--s-12); }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: var(--s-20) var(--s-24); font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-16); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--lime); font-size: 1.4rem; font-weight: 400; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding: 0 var(--s-24) var(--s-24); color: var(--text-soft); }

/* ============================================================
   COMPLIANCE strip — only what is actually held
   ============================================================ */
.compliance {
    display: flex; flex-wrap: wrap; gap: var(--s-12); justify-content: center;
    margin-top: var(--s-32);
}
.comp {
    display: inline-flex; align-items: center; gap: 0.7rem;
    padding: 0.7rem 1.05rem; border-radius: var(--r-md);
    border: 1px solid var(--line); background: var(--panel);
    color: var(--text-faint);
}
.comp svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--sky); }
.comp img { width: 34px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.comp-text { display: flex; flex-direction: column; line-height: 1.25; }
.comp-text b { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.comp-text small { font-size: 0.74rem; color: var(--text-faint); }
/* Only the certified one is a link, and it goes to the certificate itself. */
.comp-verify { transition: border-color var(--dur), background var(--dur); }
.comp-verify:hover { border-color: var(--lime); background: var(--panel-2); }
.comp-verify:hover .comp-text small { color: var(--lime); }

@media (max-width: 640px) {
    .compliance { gap: var(--s-8); }
    .comp { padding: 0.55rem 0.8rem; }
    .comp-text b { font-size: 0.8rem; }
}

/* ============================================================
   MODEL PICKER — provider + level, in plain language
   ============================================================ */
.picker { max-width: 820px; margin-inline: auto; display: grid; gap: var(--s-20); }
.picker-row {
    display: grid; grid-template-columns: 92px 1fr; gap: var(--s-20); align-items: center;
    padding: var(--s-20); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel);
}
.picker-label {
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-faint);
}
.picker-opts { display: flex; gap: var(--s-8); flex-wrap: wrap; }
.opt {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 0.95rem; border-radius: var(--r-sm);
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft); font-size: 0.92rem;
}
.opt img { width: 20px; height: 20px; object-fit: contain; }
.opt b { font-weight: 600; color: var(--text); }
.opt small { color: var(--text-faint); font-size: 0.78rem; }
.opt.is-on { border-color: var(--lime); background: rgba(217, 238, 80, 0.08); color: var(--text); }
.opt .st { margin-left: 0.1rem; }

/* Clickable picker: the opts are real buttons */
button.opt {
    cursor: pointer; font-family: inherit;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
button.opt:hover:not(.is-on) { border-color: var(--text-faint); transform: translateY(-1px); }
button.opt:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* Live model card: the answer to "what did I just pick?" */
.model-card {
    display: grid; grid-template-columns: 1fr auto; gap: var(--s-20); align-items: center;
    padding: var(--s-20); border: 1px solid var(--lime); border-radius: var(--r-md);
    background: rgba(217, 238, 80, 0.05); text-align: left;
}
.model-card.is-swap { animation: model-swap 0.28s ease; }
@keyframes model-swap {
    from { opacity: 0.35; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}
.model-card-id { display: flex; gap: var(--s-12); align-items: flex-start; }
.model-card-id img { width: 24px; height: 24px; object-fit: contain; margin-top: 0.15rem; }
.model-card-name { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.model-card-line { color: var(--text-soft); font-size: 0.92rem; margin-top: 0.2rem; }
.model-meters { display: grid; gap: 0.45rem; min-width: 180px; }
.meter { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: var(--s-12); }
.meter dt {
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-faint);
}
.meter dd { display: flex; gap: 0.3rem; }
.m-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.12); transition: background 0.25s ease;
}
.m-dot.on { background: var(--lime); }
.meter-cost { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text); letter-spacing: 0.08em; }

@media (max-width: 640px) {
    .picker-row { grid-template-columns: 1fr; gap: var(--s-12); }
    .opt { font-size: 0.86rem; padding: 0.5rem 0.75rem; }
    .model-card { grid-template-columns: 1fr; }
}

/* ============================================================
   ASK LUCY — hero demo: one instruction, every surface
   ============================================================ */
.askdemo { max-width: 780px; margin: var(--s-48) auto 0; }

.askdemo-surfaces {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem;
    margin-bottom: var(--s-20);
}
.surface {
    display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
    padding: 0.5rem 0.9rem; border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
    color: var(--text-faint); font-size: 0.85rem; font-weight: 500;
    transition: color var(--dur), background var(--dur), border-color var(--dur);
}
.surface img { width: 18px; height: 18px; object-fit: contain; opacity: 0.65; transition: opacity var(--dur); }
.surface:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.surface:hover img { opacity: 1; }
.surface.is-active { color: var(--text); background: rgba(255, 255, 255, 0.09); border-color: var(--line-strong); }
.surface.is-active img { opacity: 1; }
.surface:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(217, 238, 80, 0.4); }

.askdemo-stage {
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--panel); overflow: hidden;
    box-shadow: var(--shadow-card);
    text-align: left;
}
.askdemo-bar {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.22);
}
.askdemo-app { display: inline-flex; }
.askdemo-app img { width: 16px; height: 16px; object-fit: contain; }
.askdemo-where { font-size: 0.82rem; color: var(--text-soft); font-weight: 500; }
.askdemo-live {
    margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-faint);
}
.askdemo-dot { width: 6px; height: 6px; border-radius: 50%; background: #58d68d; box-shadow: 0 0 0 3px rgba(88, 214, 141, 0.16); }

.askdemo-thread { padding: var(--s-24); display: flex; flex-direction: column; gap: var(--s-16); min-height: 210px; }

.askdemo-thread .ask {
    align-self: flex-end; max-width: 88%;
    padding: 0.75rem 1rem; border-radius: var(--r-md) var(--r-md) 4px var(--r-md);
    background: rgba(111, 217, 255, 0.14); border: 1px solid rgba(111, 217, 255, 0.24);
    font-size: 0.97rem; line-height: 1.5;
}
.askdemo-thread .ask b { color: var(--sky); font-weight: 600; }
.askdemo-thread .ask.is-typing::after {
    content: ""; display: inline-block; width: 2px; height: 1em;
    background: var(--sky); margin-left: 2px; vertical-align: -2px;
    animation: caret 900ms steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.askdemo-thread .said {
    align-self: flex-start; max-width: 92%;
    padding: 0.75rem 1rem; border-radius: var(--r-md) var(--r-md) var(--r-md) 4px;
    background: var(--card); border: 1px solid var(--line);
    font-size: 0.97rem; line-height: 1.5; color: var(--text-soft);
    opacity: 0; transform: translateY(6px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.askdemo-thread .said.is-in { opacity: 1; transform: none; }
.said-who { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--lime); margin-bottom: 0.2rem; }

.working { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; align-self: flex-start; }
.working-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-faint); }
.working-label::after { content: "…"; }
.working-chips { display: inline-flex; gap: 0.35rem; flex-wrap: wrap; }
.working .chip {
    display: inline-block; padding: 0.2rem 0.6rem; border-radius: var(--r-full);
    background: rgba(217, 238, 80, 0.12); border: 1px solid rgba(217, 238, 80, 0.28);
    color: var(--lime); font-size: 0.74rem; font-weight: 600;
    opacity: 0; transform: translateY(4px);
    animation: chip-in 420ms var(--ease-out) forwards;
    animation-delay: var(--chip-delay, 0ms);
}
@keyframes chip-in { to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
    .askdemo-surfaces { gap: 0.3rem; }
    .surface { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
    .askdemo-thread { padding: var(--s-16); min-height: 240px; }
    .askdemo-thread .ask, .askdemo-thread .said { max-width: 100%; font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) {
    .askdemo-thread .said { opacity: 1; transform: none; }
    .working .chip { opacity: 1; transform: none; animation: none; }
}

/* ============================================================
   SECTION MEDIA — cinematic imagery that breaks up text bands
   ============================================================ */
.section-media {
    margin: 0; position: relative;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; background: var(--panel-2);
    box-shadow: var(--shadow-card);
    aspect-ratio: 16 / 10;
}
.section-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Grade into the page: darken the base and lift a coral wash from one corner so
   the photography reads as part of the theme, not a pasted-in stock shot. */
.section-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(120% 90% at 100% 0%, var(--lime-glow), transparent 55%),
        linear-gradient(180deg, transparent 55%, rgba(10, 10, 20, 0.55));
    mix-blend-mode: normal;
}
.section-media--caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--s-24); }
.section-media--caption .eyebrow { color: #fff; }
.section-media--caption p { color: #fff; font-weight: 500; max-width: 34ch; margin-top: var(--s-8); text-shadow: 0 2px 12px rgba(0,0,0,0.5); }

/* Full-width cinematic band (used at the top of a section). */
.media-band { margin-bottom: var(--s-48); aspect-ratio: 21 / 8; }
@media (max-width: 640px) { .media-band { aspect-ratio: 16 / 11; } }

/* ============================================================
   CONSTELLATION — every department orbits Lucy at the centre
   A radial layout (not a bilateral hub-and-spoke): six content-sized chips
   sit on an ellipse around a central Lucy hub, joined by thin spokes that
   pulse inward. The box is locked to the 1000x480 viewBox aspect and the SVG
   uses preserveAspectRatio="none", so x/y scale by the SAME factor and the
   ellipse/spokes stay aligned with the %-positioned chips. Chips are auto-width
   so a long label (e.g. "Operations") never clips.
   ============================================================ */
.constellation {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 1000 / 480;
    margin: 0 auto var(--s-32);
    container-type: inline-size;
}
.cn-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cn-wires line, .cn-wires ellipse { fill: none; vector-effect: non-scaling-stroke; }
.cn-orbit {
    stroke: var(--line-strong); stroke-width: 1; opacity: 0.5;
    stroke-dasharray: 2 10; stroke-linecap: round;
    animation: cn-orbit-crawl 26s linear infinite;
}
@keyframes cn-orbit-crawl { to { stroke-dashoffset: -120; } }
.cn-base line { stroke: var(--line-strong); stroke-width: 1; }
.cn-flow line {
    stroke: var(--lime); stroke-width: 2; stroke-linecap: round;
    stroke-dasharray: 12 100; stroke-dashoffset: 112;
    animation: cn-flow 3s var(--ease-out) infinite;
    animation-delay: var(--flow-delay, 0s);
    filter: drop-shadow(0 0 5px var(--lime-glow));
}
@keyframes cn-flow {
    0%   { stroke-dashoffset: 112; opacity: 0; }
    14%  { opacity: 1; }
    72%  { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

.cn-nodes { position: absolute; inset: 0; margin: 0; }
.cn-node {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 1.4cqw; white-space: nowrap;
    padding: 1.1cqw 1.6cqw;
    border: 1px solid var(--line); border-radius: var(--r-full);
    background: var(--panel-2); box-shadow: var(--shadow-card); z-index: 2;
}
.cn-logos { display: inline-flex; align-items: center; gap: 0.7cqw; flex: 0 0 auto; }
.cn-logo {
    width: clamp(22px, 3cqw, 34px); height: clamp(22px, 3cqw, 34px);
    display: grid; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, 0.06);
}
.cn-logo.on-light { background: #f3f3f6; }
.cn-logo img { width: 72%; height: 72%; object-fit: contain; }
.cn-label { font-size: clamp(0.82rem, 1.9cqw, 1.08rem); font-weight: 600; letter-spacing: -0.01em; color: var(--text); }

.cn-hub {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 12.4%; aspect-ratio: 1; z-index: 3;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong); border-radius: var(--r-lg);
    background: var(--panel-2);
    animation: cn-hub-pulse 3s var(--ease-out) infinite;
}
.cn-hub img { width: 58%; height: 58%; object-fit: contain; }
@keyframes cn-hub-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 238, 80, 0); }
    55%      { box-shadow: 0 0 30px 3px var(--lime-glow); }
}

.cn-note { text-align: center; font-size: 0.9rem; color: var(--text-faint); margin-bottom: var(--s-48); }
.cn-note a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .cn-orbit { animation: none; }
    .cn-flow line { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; opacity: 0.55; }
    .cn-hub { animation: none; }
}

/* Narrow screens: the radial layout stops being legible, so it becomes a plain
   stack — Lucy on top, departments in a two-column grid, no spokes. */
@media (max-width: 760px) {
    .constellation {
        aspect-ratio: auto; container-type: normal;
        display: flex; flex-direction: column; align-items: center; gap: var(--s-20);
    }
    .cn-wires { display: none; }
    .cn-hub { position: static; transform: none; order: -1; width: 76px; }
    .cn-nodes {
        position: static; width: 100%;
        display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8);
    }
    .cn-node {
        position: static; transform: none; justify-content: center;
        flex-direction: column; gap: var(--s-8);
        padding: var(--s-16) var(--s-8); border-radius: var(--r-md); text-align: center;
    }
    .cn-logos { gap: 6px; }
    .cn-logo { width: 26px; height: 26px; }
    .cn-label { font-size: 0.85rem; }
}

@media (max-width: 420px) {
    .cn-nodes { grid-template-columns: 1fr; }
    .cn-node { flex-direction: row; justify-content: center; }
}

/* ============================================================
   INTEGRATIONS directory
   ============================================================ */
/* Scopes the sticky toolbar to the directory: it unpins once the last grid
   scrolls past, instead of riding over the sections below. */
.int-directory { position: relative; }
.int-toolbar {
    position: sticky; top: var(--nav-h); z-index: 40;
    padding-block: var(--s-20);
    background: rgba(10, 10, 20, 0.88); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.int-toolbar-row { display: flex; align-items: center; gap: var(--s-16); flex-wrap: wrap; }
.int-search-wrap { position: relative; flex: 1 1 320px; max-width: 460px; }
.int-search-wrap svg { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-faint); pointer-events: none; }
.int-search {
    width: 100%; padding: 0.8rem 1rem 0.8rem 2.6rem; border-radius: var(--r-full);
    background: var(--panel); border: 1px solid var(--line-strong); color: var(--text);
    font: inherit; font-size: 0.95rem;
}
.int-search::placeholder { color: var(--text-faint); }
.int-search:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(217, 238, 80, 0.18); }
.int-tally { font-size: 0.85rem; color: var(--text-faint); font-family: var(--font-mono); margin-left: auto; }

.int-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-top: var(--s-16); scrollbar-width: none; }
.int-chips::-webkit-scrollbar { display: none; }
.int-chip {
    flex: 0 0 auto; cursor: pointer; white-space: nowrap;
    padding: 0.5rem 1rem; border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong);
    color: var(--text-soft); font-size: 0.88rem; font-weight: 500;
    transition: color var(--dur), background var(--dur), border-color var(--dur);
}
.int-chip:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.int-chip[aria-pressed="true"] { color: var(--on-accent); background: linear-gradient(135deg, var(--lime), var(--lime-deep)); border-color: transparent; }
.int-chip:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(217, 238, 80, 0.35); }

/* The toolbar already provides the visual break — don't stack a full section
   pad on top of it before the first grid. */
.int-toolbar + .panel { padding-top: var(--s-48); }

.int-section + .int-section { margin-top: var(--s-64); }
.int-section-head { display: flex; align-items: baseline; gap: 0.7rem; padding-bottom: var(--s-16); border-bottom: 1px solid var(--line); margin-bottom: var(--s-24); }
.int-section-head h2 { font-size: 1.35rem; letter-spacing: -0.02em; }
.int-section-count { font-size: 0.82rem; color: var(--text-faint); font-family: var(--font-mono); }

.int-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-12); }
.int-card {
    display: flex; flex-direction: column; align-items: center; gap: var(--s-12);
    padding: var(--s-20) var(--s-12); text-align: center;
    border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel);
    transition: transform var(--dur) var(--ease-out), border-color var(--dur), background var(--dur);
}
.int-card:hover { transform: translateY(-3px); border-color: var(--lime); background: var(--panel-2); }
.int-logo {
    width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}
.int-card:hover .int-logo { background: rgba(255, 255, 255, 0.08); }
.int-logo img { width: 38px; height: 38px; object-fit: contain; }
/* A handful of marks are near-black or very dark and vanish on the dark chip.
   Those keep a light plate so the logo stays legible. */
.int-logo.on-light { background: #f3f3f6; border-color: transparent; }
.int-card:hover .int-logo.on-light { background: #fff; }
.int-name { font-size: 0.85rem; font-weight: 500; color: var(--text-soft); line-height: 1.3; }
.int-card:hover .int-name { color: var(--text); }

.int-empty { display: none; padding: var(--s-64) 0; text-align: center; color: var(--text-faint); }
.int-empty.is-shown { display: block; }
.int-hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    :root { --section-py: 5.5rem; }
    .solution-grid, .task-grid, .uc-grid, .memory-cols, .models-grid, .trust-grid, .road-strip, .testimonials, .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-stepper { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: var(--s-32); }
    #get-started .gs-head { grid-template-columns: 1fr; gap: var(--s-24); }
    .hero-frame-body { grid-template-columns: 1fr; }
    .hero-frame-body > * + * { border-left: 0; border-top: 1px solid var(--line); }
    .footer-row { grid-template-columns: 1fr 1fr; gap: var(--s-32); }
    .int-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile nav breakpoint. Set from measurement, not taste: the full link row plus the
   brand lockup and gutters needs ~1144px, so below 1150px the desktop row runs out of
   room and labels start wrapping mid-word. Hand over to the burger before that happens. */
@media (max-width: 1150px) {
    .nav-burger {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; margin-left: auto; cursor: pointer; z-index: 130;
        border-radius: var(--r-sm);
    }
    .nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin-inline: auto; transition: transform var(--dur), opacity var(--dur); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: auto;
        max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
        flex-direction: column; align-items: stretch; gap: 0.15rem;
        padding: var(--s-16); background: rgba(10,10,20,0.98); backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
    }
    .nav-toggle:checked ~ .nav-links { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-link { justify-content: space-between; padding: 0.85rem 1rem; font-size: 1.02rem; }
    .cta-nav { margin: var(--s-8) 0 0; }

    /* Use Cases accordion on mobile */
    .nav-uc { width: 100%; }
    .nav-uc-trigger { width: 100%; }
    .nav-uc:hover .uc-megamenu, .nav-uc:focus-within .uc-megamenu {
        opacity: 0; visibility: hidden; pointer-events: none; max-height: 0;
    }
    .uc-megamenu {
        position: static; transform: none; width: 100%;
        max-height: 0; overflow: hidden; padding: 0;
        opacity: 0; visibility: hidden; pointer-events: none;
        border: 0; box-shadow: none; background: transparent;
        transition: max-height var(--dur) var(--ease-out), opacity var(--dur), padding var(--dur);
    }
    .nav-uc.open .uc-megamenu {
        opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
        max-height: 80vh !important; padding: var(--s-12) var(--s-8) var(--s-16) !important;
        transform: none !important;
    }
    .nav-uc.open .nav-uc-caret { transform: rotate(180deg); }
    .uc-megamenu-inner { grid-template-columns: 1fr; gap: var(--s-16); }
}

@media (max-width: 640px) {
    :root { --section-py: 4rem; --gutter: 1.15rem; }
    body { font-size: 1rem; }
    .display { font-size: clamp(2.1rem, 9vw, 2.8rem); }
    .headline { font-size: clamp(1.6rem, 6vw, 2rem); }
    .section-head { margin-bottom: var(--s-32); }
    .solution-grid, .task-grid, .uc-grid, .memory-cols, .models-grid, .trust-grid, .road-strip, .feature-grid, .steps-stepper, .dept-grid { grid-template-columns: 1fr; }
    .footer-row { grid-template-columns: 1fr 1fr; }
    .hero-frame { margin-top: var(--s-40); }

    /* testimonials -> swipe rail */
    .testimonials { grid-template-columns: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s-16); scrollbar-width: none; }
    .testimonials::-webkit-scrollbar { display: none; }
    .testimonials--single { display: block; }
    .testimonial { scroll-snap-align: center; flex: 0 0 86%; }
    .carousel-controls { display: flex; }

    .timeline-row { grid-template-columns: 1fr; gap: var(--s-8); }

    .client-logo { height: 28px; max-width: 132px; }
    .client-logo.is-badge { height: 38px; }

    .int-grid { grid-template-columns: repeat(2, 1fr); }
    .int-toolbar { position: static; }
    .int-tally { margin-left: 0; }
    .int-card { padding: var(--s-16) var(--s-8); }
}

@media (min-width: 641px) and (max-width: 860px) {
    .int-grid { grid-template-columns: repeat(3, 1fr); }
}
