/* Matthew Carlson Consulting: site styles */

:root {
    --bg: #f2f3fa;
    --surface: #ffffff;
    --surface-2: #e8eaf6;
    --ink: #0d1233;
    --text: #2b3150;
    --muted: #5d6482;
    --line: #d9dcee;
    --accent: #4338ca;
    --accent-ink: #ffffff;
    --accent-soft: #e4e3fb;
    --warm: #f0a33a;
    --warm-soft: #fdefd6;
    --teal: #0ea5a4;
    --hero-bg: #0d1233;
    --hero-bg-2: #1e1b63;
    --hero-text: #e9ebfa;
    --hero-muted: #aab1d6;
    --hero-line: rgba(255, 255, 255, 0.13);
    --ok: #13795b;
    --ok-soft: #e3f4ec;
    --pilot: #0e7490;
    --pilot-soft: #e0f3f7;
    --test: #3b4cc0;
    --test-soft: #e9ebfb;
    --neutral: #5b6575;
    --neutral-soft: #eceeea;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(15, 26, 43, 0.05), 0 8px 24px rgba(15, 26, 43, 0.06);
    --shadow-lg: 0 2px 4px rgba(15, 26, 43, 0.06), 0 24px 48px rgba(15, 26, 43, 0.12);
    --max: 1140px;
    --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0d1f;
        --surface: #131734;
        --surface-2: #1b2044;
        --ink: #eef0fb;
        --text: #cfd4ee;
        --muted: #98a0c6;
        --line: #272d55;
        --accent: #8b87ff;
        --accent-ink: #0a0d1f;
        --accent-soft: #232764;
        --warm: #f5b44f;
        --warm-soft: #3a2d12;
        --teal: #2dd4bf;
        --hero-bg: #070920;
        --hero-bg-2: #171352;
        --ok: #4fd1a1;
        --ok-soft: #12352a;
        --pilot: #5bc8de;
        --pilot-soft: #10323b;
        --test: #9aa6ff;
        --test-soft: #1f2650;
        --neutral: #a4aec0;
        --neutral-soft: #1d293b;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px rgba(0, 0, 0, 0.4);
    }
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 200;
    background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--warm); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px;
    border-radius: 999px; border: 1px solid transparent;
    font: 600 0.98rem/1 var(--font);
    text-decoration: none; cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow::after { content: "→"; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: var(--ink); color: var(--bg); font: 700 0.85rem/1 var(--font); letter-spacing: 0;
}
.brand small { display: block; font-weight: 500; font-size: 0.74rem; color: var(--muted); letter-spacing: 0.01em; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
    color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    padding: 8px 12px; border-radius: 999px;
}
.nav-menu a:hover { background: var(--surface-2); color: var(--ink); }
.nav-menu a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-menu .btn { margin-left: 8px; padding: 0 18px; min-height: 40px; color: var(--accent-ink); background: var(--accent); }
.nav-menu .btn:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.nav-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        position: fixed; inset: 68px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: 12px var(--gutter) 20px;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu a { padding: 12px 14px; font-size: 1.05rem; }
    .nav-menu .btn { margin: 8px 0 0; min-height: 48px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-alt { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: linear-gradient(135deg, var(--hero-bg), var(--hero-bg-2)); color: var(--hero-text); }
.section-dark h2, .section-dark h3, .section-dark blockquote { color: #fff; }
.section-dark .lead, .section-dark p { color: var(--hero-muted); }
.section-dark .eyebrow { color: var(--warm); }
.section-head { margin-bottom: 40px; max-width: 700px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { background: radial-gradient(900px 500px at 85% -10%, rgba(99, 102, 241, 0.45), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(14, 165, 164, 0.28), transparent 60%), linear-gradient(135deg, var(--hero-bg), var(--hero-bg-2)); color: var(--hero-text); padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--hero-line) 1px, transparent 1px), linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
    background-size: 56px 56px; opacity: 0.35;
    mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; }
.hero .lead { color: var(--hero-muted); }
.hero .eyebrow { color: var(--warm); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero .btn-primary { background: var(--warm); color: #1a1200; }
.hero .btn-primary:hover { background: #ffb64f; }
.hero-person { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.25); }
.hero-person span { display: block; font-size: 0.92rem; color: var(--hero-muted); line-height: 1.35; }
.hero-person strong { color: #fff; font-weight: 600; }
.hero-note { margin-top: 22px; font-size: 0.9rem; color: var(--hero-muted); }

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

/* Page hero (interior) */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 820px; }

/* Assistant preview card */
.assistant-card {
    display: block; text-decoration: none; color: inherit;
    background: #16233a; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px;
    padding: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.assistant-card:hover { transform: translateY(-3px); border-color: rgba(159, 182, 255, 0.55); text-decoration: none; }
.assistant-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.assistant-top strong { color: #fff; font-size: 0.98rem; }
.assistant-top span { font-size: 0.8rem; color: var(--hero-muted); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.72rem; color: #7ee2b8; text-transform: uppercase; letter-spacing: 0.06em; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7ee2b8; }
.bubble { padding: 11px 14px; border-radius: 12px; font-size: 0.92rem; line-height: 1.5; margin-bottom: 10px; max-width: 92%; }
.bubble.user { background: #2a3b5c; color: #e8ecf3; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.ai { background: rgba(255, 255, 255, 0.06); color: #dbe2ee; border: 1px solid rgba(255, 255, 255, 0.08); border-bottom-left-radius: 4px; }
.assistant-cta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; color: #9fb6ff; font-weight: 600; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 22px 20px; }
.stat-value { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 750; color: var(--accent); letter-spacing: -0.03em; line-height: 1.1; }
.stat-label { font-size: 0.88rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats .stat:last-child { grid-column: 1 / -1; } }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .proof { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.88rem; color: var(--text); }
a.card { text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-icon {
    width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff; margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-link { margin-top: 14px; font-weight: 600; font-size: 0.93rem; color: var(--accent); }

/* Status badges */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live, .badge-shipped { color: var(--ok); background: var(--ok-soft); }
.badge-pilot { color: var(--pilot); background: var(--pilot-soft); }
.badge-tested { color: var(--test); background: var(--test-soft); }
.badge-delivered { color: var(--neutral); background: var(--neutral-soft); }
.tag { font-size: 0.8rem; color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

/* Case studies */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
    border: 1px solid var(--line); background: var(--surface); color: var(--text);
    padding: 8px 16px; border-radius: 999px; font: 500 0.92rem/1.2 var(--font); cursor: pointer; min-height: 40px;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.case-list { display: grid; gap: 24px; }
.case {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(24px, 3.5vw, 40px); scroll-margin-top: 90px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px clamp(24px, 4vw, 48px);
}
.case-head { grid-column: 1 / -1; }
.case-head h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 10px; }
.case-outcome { font-size: 1.08rem; color: var(--text); max-width: 760px; margin: 0; }
.case-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 10px; }
.case-stats div { background: var(--surface-2); border-radius: 10px; padding: 14px; }
.case-stats strong { display: block; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
.case-stats span { font-size: 0.82rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }
.case h4 { font-size: 0.78rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 10px 0 10px; font-weight: 600; }
.case ul { font-size: 0.96rem; }
.case .chips { margin-top: 4px; }
@media (max-width: 820px) {
    .case { grid-template-columns: 1fr; }
    .case-stats { grid-template-columns: repeat(2, 1fr); }
}

.lab-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.lab-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.lab-list strong { color: var(--ink); }
.lab-list span { color: var(--muted); font-size: 0.93rem; text-align: right; }
@media (max-width: 640px) { .lab-list li { flex-direction: column; gap: 4px; } .lab-list span { text-align: left; } }

.shot { border-radius: 10px; border: 1px solid var(--line); overflow: hidden; margin-bottom: 14px; background: var(--surface-2); }

/* Solutions */
.solution {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px);
    padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px;
}
.solution:first-of-type { border-top: 0; }
.solution .num { font-family: var(--mono); color: var(--warm); font-size: 0.85rem; margin-bottom: 10px; }
.solution h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.solution .proof-box {
    margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, var(--surface));
    border: 1px solid var(--line); font-size: 0.94rem;
}
.solution .proof-box .badge { margin-bottom: 8px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; margin: 0; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4fd8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
@media (max-width: 820px) { .solution { grid-template-columns: 1fr; } }

/* Steps / principles */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--ink); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 0.8rem; color: var(--accent); display: block; margin-bottom: 8px; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.94rem; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.principle h3 { font-size: 1.02rem; margin-bottom: 6px; }
.principle p { font-size: 0.95rem; color: var(--muted); margin: 0; }

.problem-grid { display: grid; gap: 16px; }
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.problem > div { padding: 22px 24px; }
.problem > div:first-child { background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.problem p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 700px) { .problem { grid-template-columns: 1fr; } }

/* Engagements */
.engagement .badge { align-self: flex-start; margin-bottom: 14px; }
.engagement .duration { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 6px; }

/* Tools strip */
.tool-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-strip span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.9rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.portrait { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1; background: var(--surface-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-caption { margin-top: 16px; font-size: 0.92rem; color: var(--muted); }
.portrait-caption strong { color: var(--ink); display: block; font-size: 1.02rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 300px; } }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline .when { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.timeline h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.timeline p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* FAQ */
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: 16px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative;
    font-weight: 600; color: var(--ink); font-size: 1.02rem; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; font-weight: 400; color: var(--accent);
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 22px 20px; color: var(--text); }
.faq-answer p:last-child, .faq-answer ul:last-child { margin-bottom: 0; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink);
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.form-status.success { background: var(--ok-soft); color: var(--ok); }
.form-status.error { background: #fde8e8; color: #9b1c1c; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.side-card h3 { font-size: 1rem; }
.side-card p, .side-card li { font-size: 0.95rem; color: var(--muted); }

/* Assistant page */
.chat-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.chat-shell > * { min-width: 0; }
@media (max-width: 900px) { .chat-shell { grid-template-columns: 1fr; } .chat-panel { order: -1; min-height: 480px; } }
.prompt-group { margin-bottom: 20px; }
.prompt-group h3 { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.prompt-btn {
    display: block; width: 100%; text-align: left; margin-bottom: 8px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    border-radius: 10px; padding: 11px 14px; font: 500 0.93rem/1.35 var(--font); cursor: pointer;
}
.prompt-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.chat-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 560px; box-shadow: var(--shadow); }
.chat-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-panel-head strong { color: var(--ink); }
.chat-panel-head .live-dot { color: var(--ok); }
.chat-panel-head .live-dot::before { background: var(--ok); }
.chat-head-actions { display: flex; align-items: center; gap: 12px; }
.chat-reset { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 500 0.82rem/1 var(--font); cursor: pointer; min-height: 32px; }
.chat-reset:hover { border-color: var(--ink); }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; max-height: 60vh; min-height: 360px; }
.chat-message { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.chat-message.user { flex-direction: row-reverse; }
.chat-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; background: var(--surface-2); color: var(--ink); }
.chat-message.assistant .chat-avatar { background: var(--accent); color: var(--accent-ink); }
.chat-bubble { padding: 12px 15px; border-radius: 14px; background: var(--surface-2); color: var(--text); max-width: 78ch; white-space: pre-wrap; font-size: 0.97rem; }
.chat-message.user .chat-bubble { background: var(--accent); color: var(--accent-ink); }
.chat-form { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
.chat-form textarea {
    flex: 1; min-width: 0; resize: none; min-height: 48px; max-height: 160px; font: 400 1rem/1.4 var(--font);
    border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); color: var(--ink);
}
.chat-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-status { padding: 0 20px 12px; font-size: 0.85rem; color: var(--muted); min-height: 1.4em; }
.chat-status.error { color: #b42318; }
.chat-disclaimer { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* Legal */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; }
.prose .last-updated { color: var(--muted); font-size: 0.92rem; }

/* CTA band */
.cta-band { background: radial-gradient(600px 300px at 90% 0%, rgba(99, 102, 241, 0.5), transparent 60%), linear-gradient(135deg, var(--hero-bg), var(--hero-bg-2)); color: var(--hero-text); border-radius: 22px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: var(--hero-muted); margin: 0; }
.cta-band .btn-primary { background: var(--warm); color: #1a1200; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 0; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-about p { color: var(--muted); max-width: 340px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.footer-bottom a { color: var(--muted); }

/* Utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Work page ===== */
:root {
    --cat-agents: #4f46e5; --cat-voice: #0d9488; --cat-crm: #c026d3;
    --cat-reporting: #ea7a0c; --cat-web: #16a34a; --cat-products: #475569;
    --cat-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
    :root {
        --cat-agents: #8f96ff; --cat-voice: #4fd1c5; --cat-crm: #c792f9;
        --cat-reporting: #f2b25c; --cat-web: #62d394; --cat-products: #a9b6ca;
        --cat-ink: #0b1320;
    }
}
.case--agents, .cat--agents { --cat: var(--cat-agents); }
.case--voice, .cat--voice { --cat: var(--cat-voice); }
.case--crm, .cat--crm { --cat: var(--cat-crm); }
.case--reporting, .cat--reporting { --cat: var(--cat-reporting); }
.case--web, .cat--web { --cat: var(--cat-web); }
.case--products, .cat--products { --cat: var(--cat-products); }

.work-hero { padding-bottom: clamp(48px, 7vw, 88px); }
.work-hero .lead strong { color: #fff; }
.work-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .work-hero-grid { grid-template-columns: 1fr; } }
.status-key { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.88rem; color: var(--hero-muted); }
.status-key li { display: flex; align-items: center; gap: 8px; margin: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.dot-live, .dot-shipped { background: #3ecf8e; }
.dot-pilot { background: #38bdf8; }
.dot-tested { background: #a5b4fc; }
.dot-delivered { background: #94a3b8; }
.work-index { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; padding: 18px 10px 10px; }
.work-index-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hero-muted); margin: 0 12px 8px; }
.work-index ol { list-style: none; padding: 0; margin: 0; }
.work-index li { margin: 0; }
.work-index a { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #e8ecf3; text-decoration: none; font-size: 0.95rem; line-height: 1.3; }
.work-index a:hover { background: rgba(255, 255, 255, 0.07); }
.toc-num { font-family: var(--mono); font-size: 0.78rem; color: #8ea2c8; }

.filters-bar {
    position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); z-index: 50;
    margin: 0 calc(-1 * var(--gutter)) 28px; padding: 12px var(--gutter);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.filters-bar .filters { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.filters-bar .filters::-webkit-scrollbar { display: none; }
.filter { white-space: nowrap; }

.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 8px 0 22px; }
.group-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.group-head p { margin: 0; }

/* Case study */
.case-list { gap: 40px; }
.case { display: block; padding: 0; overflow: hidden; border-radius: 22px; scroll-margin-top: 150px; box-shadow: var(--shadow); }
.case-cover {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
    padding: clamp(24px, 4vw, 44px);
    background:
        radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--cat) 22%, transparent) 1px, transparent 0) 0 0 / 18px 18px,
        color-mix(in srgb, var(--cat) 7%, var(--surface));
    border-bottom: 1px solid color-mix(in srgb, var(--cat) 18%, var(--line));
}
.case:nth-of-type(even) .case-figure { order: -1; }
@media (max-width: 860px) {
    .case-cover { grid-template-columns: 1fr; }
    .case:nth-of-type(even) .case-figure { order: 0; }
}
.case-head { position: relative; }
.case-num {
    display: block; font-family: var(--mono); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em;
    color: var(--cat); margin-bottom: 14px;
}
.case-num::after { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 10px; opacity: 0.6; }
.case-head h3 { font-size: clamp(1.45rem, 2.8vw, 2rem); letter-spacing: -0.025em; text-wrap: balance; margin-bottom: 12px; }
.case-head .tag { color: var(--muted); }
.case-outcome { font-size: 1.08rem; color: var(--text); margin: 0; }

.case-figure { margin: 0; background: var(--surface); border: 1px solid color-mix(in srgb, var(--cat) 20%, var(--line)); border-radius: 16px; padding: 14px 14px 10px; box-shadow: 0 10px 30px color-mix(in srgb, var(--cat) 10%, transparent); }
.case-figure figcaption { font-size: 0.8rem; color: var(--muted); padding: 8px 4px 2px; line-height: 1.45; }
.diagram { width: 100%; height: auto; display: block; }
.diagram .n rect { fill: var(--surface); stroke: color-mix(in srgb, var(--cat) 45%, var(--line)); stroke-width: 1.2; }
.diagram .n.out rect { fill: color-mix(in srgb, var(--cat) 10%, var(--surface)); }
.diagram .n.core rect { fill: var(--cat); stroke: var(--cat); }
.diagram text { text-anchor: middle; font-family: var(--font); }
.diagram .t { font-size: 12px; font-weight: 600; fill: var(--ink); }
.diagram .s { font-size: 10px; fill: var(--muted); }
.diagram .n.core .t, .diagram .n.core .s { fill: var(--cat-ink); }
.diagram .n.core .s { opacity: 0.85; }
.diagram .e { fill: none; stroke: color-mix(in srgb, var(--cat) 70%, var(--muted)); stroke-width: 1.4; stroke-dasharray: 4 3; animation: flow 1.2s linear infinite; }
.diagram .ah { fill: color-mix(in srgb, var(--cat) 70%, var(--muted)); }
@keyframes flow { to { stroke-dashoffset: -14; } }

.case .case-stats { margin: 0; padding: 0; gap: 0; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.case .case-stats div { background: none; border-radius: 0; padding: 22px clamp(18px, 2.5vw, 28px); border-right: 1px solid var(--line); }
.case .case-stats div:last-child { border-right: 0; }
.case .case-stats strong { font-size: clamp(1.45rem, 2.6vw, 1.9rem); color: var(--cat); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
    .case .case-stats { grid-template-columns: repeat(2, 1fr); }
    .case .case-stats div:nth-child(2) { border-right: 0; }
    .case .case-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px clamp(24px, 4vw, 56px); padding: clamp(22px, 3.5vw, 40px); }
.case-body > div { min-width: 0; }
@media (max-width: 820px) { .case-body { grid-template-columns: 1fr; } }
.case-body h4 { color: var(--cat); }
.case-body ul:not(.chips) { padding-left: 0; list-style: none; }
.case-body ul:not(.chips) li { position: relative; padding-left: 20px; }
.case-body ul:not(.chips) li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--cat); opacity: 0.8; }
.case-body .chips li { background: color-mix(in srgb, var(--cat) 8%, var(--surface)); border-color: color-mix(in srgb, var(--cat) 25%, var(--line)); }

/* Supporting work cards */
.work-grid { align-items: stretch; }
.work-card { position: relative; overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--cat) 45%, var(--line)); }
.work-card .tag { color: var(--cat); font-weight: 600; }
.work-card .proof { color: var(--ink); font-weight: 600; border-top-color: color-mix(in srgb, var(--cat) 30%, var(--line)); }
.work-card .shot { margin: -26px -26px 18px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.case-cover .case-head { grid-column: auto; }

/* ===== Display type ===== */
:root { --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif; }
h1, h2, .cta-band h2, .case-head h3, .feature-main h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.08; }

/* ===== Home ===== */
.home-hero { padding-bottom: 0; }
.home-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(48px, 7vw, 80px); }
.home-hero-copy { max-width: 640px; }
@media (max-width: 900px) { .home-hero-grid { grid-template-columns: 1fr; } }

.ledger {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--hero-line);
}
.ledger li { margin: 0; padding: 22px 22px 24px 0; border-right: 1px solid var(--hero-line); margin-right: 22px; }
.ledger li:last-child { border-right: 0; margin-right: 0; }
.ledger strong { display: block; color: var(--warm); font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ledger span { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--hero-muted); line-height: 1.4; }
@media (max-width: 960px) {
    .ledger { grid-template-columns: repeat(2, 1fr); border-top: 0; }
    .ledger li { border-right: 0; margin-right: 0; border-top: 1px solid var(--hero-line); padding-right: 0; }
    .ledger li:last-child { grid-column: 1 / -1; }
}

.index-grid, .rules-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.index-intro { position: sticky; top: 100px; }
.index-intro h2 { margin-bottom: 14px; }
@media (max-width: 900px) { .index-grid, .rules-grid { grid-template-columns: 1fr; } .index-intro { position: static; } }

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list li { margin: 0; }
.index-list a {
    display: grid; grid-template-columns: 56px 1fr 40px; align-items: start; gap: 16px;
    padding: 22px 8px 22px 0; border-bottom: 1px solid var(--line);
    color: inherit; text-decoration: none; transition: padding-left 0.2s ease, background 0.2s ease;
}
.index-list a:hover { background: color-mix(in srgb, var(--cat) 6%, transparent); padding-left: 12px; }
.index-list .idx { font-family: var(--mono); font-size: 0.82rem; color: var(--cat); padding-top: 6px; }
.index-list .idx-body strong { display: block; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.index-list .idx-body span { display: block; color: var(--muted); font-size: 0.97rem; max-width: 52ch; }
.idx-arrow { font-size: 1.3rem; color: var(--cat); padding-top: 4px; text-align: right; transition: transform 0.2s ease; }
.index-list a:hover .idx-arrow { transform: translateX(4px); }

.section-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; max-width: none; }
.section-head.split .lead { margin: 0 0 6px; }
@media (max-width: 800px) { .section-head.split { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-main {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    border: 1px solid color-mix(in srgb, var(--cat) 22%, var(--line)); border-radius: 22px; overflow: hidden;
    background:
        radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--cat) 22%, transparent) 1px, transparent 0) 0 0 / 18px 18px,
        color-mix(in srgb, var(--cat) 7%, var(--surface));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-main .case-figure { margin: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 28px) 0; }
.feature-main-copy { padding: clamp(18px, 3vw, 28px); }
.feature-main h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 10px 0 8px; }
.feature-main p { color: var(--muted); }
.feature-main .proof, .feature-row .proof { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--cat) 35%, var(--line)); font-size: 0.88rem; color: var(--ink); font-weight: 600; }
.feature-side { display: flex; flex-direction: column; }
.feature-row {
    display: block; text-decoration: none; color: inherit; padding: 20px 0; border-top: 1px solid var(--line);
    transition: padding-left 0.2s ease;
}
.feature-side .feature-row:first-child { border-top: 0; padding-top: 4px; }
.feature-row:hover { padding-left: 10px; }
.feature-row h3 { font-size: 1.12rem; margin: 8px 0 6px; }
.feature-row p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.feature-row .tag { color: var(--cat); font-weight: 600; }
.feature-more { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ink); font-weight: 600; text-decoration: none; color: var(--ink); }
.feature-more:hover { color: var(--accent); }

.objections { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 860px) { .objections { grid-template-columns: 1fr; } }
.objection { border-top: 2px solid rgba(255,255,255,0.25); padding-top: 18px; }
.objection blockquote { margin: 0 0 14px; font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.objection blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: 0.6; color: var(--warm); margin-bottom: 14px; }
.objection p { color: var(--hero-muted); margin: 0; }

.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.rules li { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 22px; border-bottom: 1px solid var(--line); }
.rules li:nth-child(odd) { border-right: 1px solid var(--line); }
.rules li:nth-last-child(-n+2) { border-bottom: 0; }
.rules .idx { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); padding-top: 4px; }
.rules h3 { font-size: 1.02rem; margin-bottom: 4px; }
.rules p { font-size: 0.93rem; color: var(--muted); margin: 0; }
@media (max-width: 640px) { .rules { grid-template-columns: 1fr; } .rules li:nth-child(odd) { border-right: 0; } .rules li:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

.timeline-h { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.timeline-h::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.timeline-h li { margin: 0; position: relative; padding-top: 28px; }
.tl-dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
}
.timeline-h li:nth-child(even) .tl-dot { background: var(--warm); box-shadow: 0 0 0 4px var(--bg); }
.timeline-h h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-h p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 860px) {
    .timeline-h { grid-template-columns: 1fr; gap: 22px; padding-left: 28px; }
    .timeline-h::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
    .timeline-h li { padding-top: 0; }
    .tl-dot { left: -28px; top: 4px; }
}

/* ===== FAQ ===== */
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-side { position: sticky; top: 100px; }
@media (max-width: 900px) { .faq-side { position: static; } .faq-side nav { display: flex; flex-wrap: wrap; gap: 8px; } }
.faq-side nav { margin-bottom: 20px; }
.faq-side nav a { display: block; padding: 8px 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
@media (max-width: 900px) { .faq-side nav a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 0.9rem; } .faq-side .work-index-label { display: none; } }
.faq-side nav a:hover { color: var(--accent); }
.faq-side .work-index-label { color: var(--muted); }
.faq-main { min-width: 0; }
.faq-group { scroll-margin-top: 100px; }
.faq-group h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.faq-cols { columns: 2; column-gap: 18px; }
.faq-cols .faq-item { break-inside: avoid; display: block; margin-bottom: 18px; }
@media (max-width: 760px) { .faq-cols { columns: 1; } }

/* ===== Assistant page ===== */
.assistant-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .assistant-hero-grid { grid-template-columns: 1fr; } }
.assistant-facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 0.93rem; color: var(--hero-muted); }
.assistant-facts li { display: flex; align-items: center; gap: 10px; margin: 0; }
@media (max-width: 560px) { .assistant-facts { grid-template-columns: 1fr; } }
.how-steps { list-style: none; margin: 0; padding: 6px 0 0; display: grid; gap: 0; border-top: 1px solid var(--hero-line); }
.how-steps li { margin: 0; display: grid; grid-template-columns: 44px 150px 1fr; gap: 12px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--hero-line); }
.how-steps .idx { font-family: var(--mono); font-size: 0.8rem; color: var(--warm); }
.how-steps strong { color: #fff; font-family: var(--display); font-size: 1.15rem; }
.how-steps span:last-child { color: var(--hero-muted); font-size: 0.93rem; }
@media (max-width: 560px) { .how-steps li { grid-template-columns: 36px 1fr; } .how-steps span:last-child { grid-column: 2; } }

.assistant-section { padding-top: clamp(32px, 5vw, 56px); }
.prompt-side-title { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.prompt-group { margin-bottom: 18px; padding: 14px 14px 6px; border-radius: 14px; background: color-mix(in srgb, var(--cat) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--cat) 22%, var(--line)); }
.prompt-group h3 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cat); margin-bottom: 10px; }
.prompt-btn { border-color: color-mix(in srgb, var(--cat) 25%, var(--line)); }
.prompt-btn:hover { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, var(--surface)); }
.chat-panel { border-radius: 20px; border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 24px 60px color-mix(in srgb, var(--accent) 16%, transparent); }
.chat-panel-head { background: linear-gradient(135deg, var(--hero-bg), var(--hero-bg-2)); color: #fff; border-radius: 19px 19px 0 0; padding: 14px 18px; }
.chat-panel-head strong { color: #fff; }
.chat-panel-head span { color: var(--hero-muted); font-size: 0.85rem; }
.chat-panel-head .live-dot { color: #7ee2b8; }
.chat-panel-head .live-dot::before { background: #7ee2b8; }
.chat-panel-id { display: flex; align-items: center; gap: 12px; }
.chat-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--warm), #ff7a59); color: #1a1200; font: 700 0.85rem/1 var(--font); }
.chat-reset { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); }
.chat-reset:hover { border-color: #fff; }
.chat-message.assistant .chat-avatar { background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff; }
.chat-form .btn-primary { background: var(--accent); }
.section-dark .objection blockquote { color: #fff; }
.chat-panel-head .chat-mark { color: #1a1200; font-size: 0.85rem; }
.chat-shell { align-items: stretch; }
.chat-panel { min-height: 0; }
.chat-log { max-height: none; min-height: 320px; }
@media (min-width: 901px) { .chat-log { max-height: calc(100vh - 300px); } }

/* Forward Deployed Engineer mark */
.fde { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--warm-soft); color: color-mix(in srgb, var(--warm) 60%, var(--ink)); font-weight: 600; white-space: nowrap; }
.hero .fde { background: rgba(240, 163, 58, 0.18); color: #ffd48a; }
.fde-link { color: inherit; font-weight: 600; text-decoration-color: var(--warm); text-decoration-thickness: 2px; }
.hero .fde-link { color: #fff; }
.fde-link:hover { color: var(--warm); }
.fde-note { margin: 22px 0; padding: 18px 20px; border-left: 3px solid var(--warm); background: linear-gradient(90deg, var(--warm-soft), transparent 80%); border-radius: 0 12px 12px 0; }
.fde-note .eyebrow { margin-bottom: 8px; }
.fde-note p:last-child { margin: 0; }

/* Key facts (About) */
.key-facts { margin: 22px 0; border-top: 1px solid var(--line); }
.key-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.key-facts dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.key-facts dd { margin: 0; color: var(--text); font-size: 0.97rem; }
@media (max-width: 480px) { .key-facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* ===== Solutions page ===== */
.sol-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .sol-hero-grid { grid-template-columns: 1fr; } }
.sol-index { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 8px; }
.sol-index ul { list-style: none; margin: 0; padding: 0; }
.sol-index li { margin: 0; }
.sol-index a { display: grid; grid-template-columns: 40px 1fr 24px; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #fff; text-decoration: none; transition: background 0.15s ease; }
.sol-index a:hover { background: rgba(255,255,255,0.08); }
.sol-index a + a, .sol-index li + li a { border-top: 1px solid rgba(255,255,255,0.07); }
.sol-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--cat); color: #fff; flex: none; }
.sol-ico svg { width: 20px; height: 20px; }
.sol-txt strong { display: block; font-size: 1rem; line-height: 1.25; }
.sol-txt span { display: block; font-size: 0.82rem; color: var(--hero-muted); line-height: 1.35; }
.sol-index .idx-arrow { color: var(--hero-muted); }

.subnav { position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.subnav-track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.subnav-track::-webkit-scrollbar { display: none; }
.subnav-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.subnav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); }
.subnav-link:hover { background: var(--surface-2); }
.subnav-link.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.subnav-link.is-active .subnav-dot { box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }

.sol-list { display: grid; gap: 28px; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.solution { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: 0; border: 1px solid color-mix(in srgb, var(--cat) 22%, var(--line)); border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 140px; }
.solution:first-of-type { border-top: 1px solid color-mix(in srgb, var(--cat) 22%, var(--line)); }
.sol-head { padding: clamp(24px, 4vw, 44px); background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--cat) 22%, transparent) 1px, transparent 0) 0 0 / 18px 18px, color-mix(in srgb, var(--cat) 7%, var(--surface)); border-right: 1px solid color-mix(in srgb, var(--cat) 18%, var(--line)); }
.sol-head .case-num { color: var(--cat); }
.sol-ico-lg { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px; }
.sol-ico-lg svg { width: 24px; height: 24px; }
.sol-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.sol-head > p { color: var(--text); }
.sol-head .proof-box { background: var(--surface); border-color: color-mix(in srgb, var(--cat) 30%, var(--line)); }
.sol-checks { padding: clamp(24px, 4vw, 44px); }
.sol-checks-title { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cat); margin-bottom: 16px; }
.sol-checks .check-list li::before { background: color-mix(in srgb, var(--cat) 12%, var(--surface)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; border: 1px solid color-mix(in srgb, var(--cat) 35%, var(--line)); }
@media (max-width: 860px) { .solution { grid-template-columns: 1fr; } .sol-head { border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--cat) 18%, var(--line)); } }

.pattern-card { border-top: 4px solid var(--cat); }
.pattern-card h3 { font-size: 1.02rem; }
.engagement { border-top: 4px solid var(--accent); }
.eng-2 { border-top-color: var(--warm); }
.eng-3 { border-top-color: var(--teal); }
.eng-4 { border-top-color: var(--cat-crm); }
.engagement .duration { color: var(--muted); }

.sol-figure { margin-top: 20px; }
.sol-figure figcaption { font-size: 0.78rem; }
.fde-figure { margin-top: 16px; background: var(--surface); }
.fde-figure .diagram .n.core rect { fill: var(--warm); stroke: var(--warm); }
.fde-figure .diagram .n.core .t, .fde-figure .diagram .n.core .s { fill: #1a1200; }
.fde-figure .diagram .n.out rect { fill: color-mix(in srgb, var(--warm) 18%, var(--surface)); stroke: var(--warm); }

/* ===== Insights ===== */
.insight-card h2 { font-size: 1.25rem; margin: 10px 0 8px; }
.insight-card { border-top: 4px solid var(--cat); }
.insight-card .tag:first-child { color: var(--cat); font-weight: 600; }
.article-hero .container { position: relative; }
.article-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); text-wrap: balance; max-width: 22ch; }
.article-hero .eyebrow a { color: inherit; text-decoration: none; }
.article-hero .eyebrow a:hover { text-decoration: underline; }
.article-hook { color: #fff; font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: -0.01em; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--hero-muted); margin: 18px 0 0; }
.article-meta img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.article-body { padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(48px, 6vw, 80px); font-size: 1.08rem; line-height: 1.75; }
.article-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2em 0 0.6em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.article-body p, .article-body li { color: var(--text); }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: 0.5em; }
.article-short { background: color-mix(in srgb, var(--cat) 8%, var(--surface)); border-left: 4px solid var(--cat); border-radius: 0 12px 12px 0; padding: 16px 20px; font-size: 1.02rem; }
.article-stats { grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 18px; }
.article-stats div { background: var(--surface); border: 1px solid color-mix(in srgb, var(--cat) 25%, var(--line)); border-radius: 12px; padding: 14px; }
.article-stats strong { color: var(--cat); font-family: var(--display); font-size: 1.4rem; display: block; line-height: 1.1; }
.article-stats span { font-size: 0.8rem; color: var(--muted); display: block; margin-top: 4px; line-height: 1.35; }
@media (max-width: 700px) { .article-stats { grid-template-columns: repeat(2, 1fr); } }
.article-figure { margin: 0 0 28px; }
.article-cta { margin: 36px 0; padding: 20px 22px; border-radius: 14px; background: linear-gradient(135deg, var(--hero-bg), var(--hero-bg-2)); color: var(--hero-text); }
.article-cta p { margin: 0; color: var(--hero-text); }
.article-cta a { color: var(--warm); font-weight: 600; }
.article-more-title { font-size: 1.1rem !important; border-top: 1px solid var(--line); }
.article-more { list-style: none; padding: 0; }
.article-more li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.article-more a { text-decoration: none; font-weight: 600; color: var(--ink); }
.article-more a:hover { color: var(--accent); }
.article-body .faq-item summary { font-size: 1rem; }

/* ===== AI Readiness Checklist ===== */
.score-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 26px; }
.score-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hero-muted); margin: 0 0 6px; }
.score-value { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 4.5rem); line-height: 1; color: var(--warm); margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.score-of { font-size: 1.4rem; color: var(--hero-muted); font-weight: 600; margin-left: 4px; }
.score-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.score-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--warm), #7ee2b8); transition: width 0.35s ease; }
.score-text { margin: 14px 0 0; color: var(--hero-text); font-size: 0.97rem; }
.checklist { display: grid; gap: 22px; }
.check-area { border: 1px solid color-mix(in srgb, var(--cat) 25%, var(--line)); border-radius: 18px; overflow: hidden; background: var(--surface); }
.check-area-head { padding: 18px 22px; background: color-mix(in srgb, var(--cat) 8%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--cat) 20%, var(--line)); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.check-area-head h2 { font-size: 1.25rem; margin: 0; }
.check-area-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.check-items { padding: 8px 10px; }
.check-item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 10px; cursor: pointer; }
.check-item:hover { background: color-mix(in srgb, var(--cat) 6%, var(--surface)); }
.check-item input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cat); cursor: pointer; }
.check-item span { color: var(--text); line-height: 1.5; }
.check-item:has(input:checked) span { color: var(--ink); }
.score-bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .score-bands { grid-template-columns: 1fr; } }
.score-band { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; border-top: 4px solid var(--warm); }
.score-band:nth-child(2) { border-top-color: var(--teal); }
.score-band:nth-child(3) { border-top-color: var(--accent); }
.score-band strong { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); display: block; margin-bottom: 8px; }
.score-band h3 { font-size: 1.08rem; margin-bottom: 6px; }
.score-band p { margin: 0; color: var(--muted); font-size: 0.95rem; }
