:root {
    --onyx: #111111;
    --slate: #6E6E6E;
    --slate-soft: #8f8f8f;
    --paper: #FDFDFD;
    --white: #FFFFFF;
    --line: rgba(17,17,17,.14);
    --line-soft: rgba(17,17,17,.09);
    --panel: #F6F6F4;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --head: 'Montserrat', var(--sans);
    --wrap: 1180px;

    /* the entire site uses exactly four type sizes */
    --fs-1: clamp(34px, 6vw, 64px);   /* display: hero headlines */
    --fs-2: clamp(22px, 3.4vw, 36px); /* section headings */
    --fs-3: 16px;                      /* body copy, component headings, quotes */
    --fs-4: 12px;                      /* labels, nav, buttons, captions, fine print */
}

* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
    background: var(--paper);
    color: var(--onyx);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    font-size: var(--fs-3);
}
img, svg { display: block; max-width: 100% }
a { color: inherit; text-decoration: none }

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

section { padding: 108px 0; border-bottom: 1px solid var(--line-soft) }
section.tight { padding: 72px 0 }
section.panel { background: var(--panel) }
section.onyx { background: var(--onyx); color: var(--paper); border-bottom: none }
section.onyx .slate { color: rgba(253,253,253,.68) }
[id] { scroll-margin-top: 88px }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; color: var(--onyx); letter-spacing: -.01em; line-height: 1.14 }
section.onyx h1, section.onyx h2, section.onyx h3 { color: var(--paper) }
h1 { font-size: var(--fs-1) }
h2 { font-size: var(--fs-2) }
h3, h4 { font-size: var(--fs-3); font-weight: 600 }
p { font-weight: 300; color: #2b2b2b; font-size: var(--fs-3); line-height: 1.7 }
section.onyx p { color: rgba(253,253,253,.85) }
em { font-style: italic; color: var(--onyx) }
section.onyx em { color: var(--paper) }
b, strong { font-weight: 600 }
.prod { font-weight: 600; color: var(--onyx) }
section.onyx .prod { color: var(--paper) }

/* split text: a pulled-out statement beside the full paragraphs,
   used to break up long single-column prose */
.split-text { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: start }
.split-text .pq { font-family: var(--head); font-weight: 700; font-size: var(--fs-2); line-height: 1.22; color: var(--onyx) }
section.onyx .split-text .pq { color: var(--paper) }
@media (max-width: 860px) { .split-text { grid-template-columns: 1fr; gap: 24px } }

.slate { color: var(--slate) }
.max { max-width: 42em }

/* long-form editorial text: fills the width as two balanced columns
   on wide viewports, one column when there isn't room for two */
.essay p { margin-bottom: 1.4em }
.essay p:last-child { margin-bottom: 0 }

/* legal / policy documents */
.legal-doc { max-width: 54em }
.legal-doc .updated { color: var(--slate); font-size: var(--fs-4); margin-bottom: 44px }
.legal-doc h3 { margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--line-soft) }
.legal-doc h3:first-child { margin-top: 0; padding-top: 0; border-top: none }
.legal-doc p { margin-bottom: 16px }
.legal-doc ul { margin: 0 0 16px 0; padding-left: 22px }
.legal-doc li { margin-bottom: 8px; padding-left: 4px; font-size: var(--fs-3); line-height: 1.7 }
.legal-doc strong { font-weight: 600 }
.essay .pq-inline { font-family: var(--head); font-weight: 700; font-size: var(--fs-2); line-height: 1.25; color: var(--onyx); margin: 6px 0 22px; }

/* wordmark & tagline, per brand spec */
.mark { display: inline-block; width: 60px; height: auto; object-fit: contain; vertical-align: middle }
.mark.invert { filter: invert(1); opacity: .92; width: 60px; height: auto; }
.wordmark {
    font-family: var(--head);
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: .15em;
    color: var(--onyx);
    font-size: var(--fs-3);
}
section.onyx .wordmark { color: var(--paper) }
.tagline {
    font-family: var(--head);
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: .08em;
    color: var(--slate);
    font-size: var(--fs-4);
}

/* kicker label */
.label {
    font-family: var(--head);
    font-size: var(--fs-4);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--onyx);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-weight: 600;
}
section.onyx .label { color: var(--paper) }
.label::before { content: ""; width: 24px; height: 1px; background: var(--onyx); opacity: .5 }
section.onyx .label::before { background: var(--paper) }
.label.center { justify-content: center }

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--head);
    font-size: var(--fs-4);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--onyx);
    color: var(--paper);
    padding: 15px 26px;
    border: 1px solid var(--onyx);
    cursor: pointer;
    transition: .2s ease;
}
.btn:hover { background: #333; border-color: #333 }
.btn.ghost { background: transparent; color: var(--onyx) }
.btn.ghost:hover { background: var(--onyx); color: var(--paper) }
section.onyx .btn { background: var(--paper); color: var(--onyx); border-color: var(--paper) }
section.onyx .btn:hover { background: #ddd; border-color: #ddd }
section.onyx .btn.ghost { color: var(--paper); border-color: rgba(253,253,253,.4) }
section.onyx .btn.ghost:hover { background: rgba(253,253,253,.1) }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--onyx);
    outline-offset: 3px;
}
section.onyx :focus-visible { outline-color: var(--paper) }

/* header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253,253,253,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px;
}
.brandlink { display: flex; align-items: center; gap: 10px }
.navlinks {
    display: flex;
    gap: 24px;
    align-items: center;
    font-family: var(--head);
    font-size: var(--fs-4);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--slate);
}
.navlinks a { transition: .15s; text-align: center; }
.navlinks a:hover, .navlinks a.on { color: var(--onyx) }
.navcta { display: flex; align-items: center; gap: 14px }
.navcta .btn { padding: 11px 20px; text-align: center; }
.navlogin { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 600 }
.navlogin:hover, .navlogin.on { color: var(--onyx) }
.burger { display: none; width: 28px; height: 20px; position: relative; cursor: pointer; border: none; background: none; flex: 0 0 auto }
.burger span { position: absolute; left: 0; right: 0; height: 1px; background: var(--onyx) }
.burger span:nth-child(1) { top: 0 } .burger span:nth-child(2) { top: 9px } .burger span:nth-child(3) { top: 18px }

.navmobile { display: none; flex-direction: column; gap: 2px }
.navmobile.show { display: flex }

@media (max-width: 980px) {
    .navlinks { display: none }
    .burger { display: block }
    .navmobile {
        padding: 10px 40px 22px;
        border-top: 1px solid var(--line-soft);
        font-family: var(--head);
        font-size: var(--fs-4);
        letter-spacing: .08em;
        text-transform: uppercase;
        font-weight: 600;
    }
    .navmobile a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--slate) }
    .navmobile a.btn {
        display: inline-flex;
        justify-content: center;
        margin-top: 16px;
        padding: 15px 26px;
        border: 1px solid var(--onyx);
        background: var(--onyx);
        color: var(--paper);
    }
}

/* smallest screens: just the mark and the burger in the bar,
   log in and the CTA move into the mobile menu */
@media (max-width: 500px) {
    .navcta { display: none }
}

/* hero, left-aligned */
.hero { padding: 132px 0 96px; border-bottom: 1px solid var(--line-soft) }
.hero h1 { max-width: 17em; margin-bottom: 26px }
.hero .lede { font-size: var(--fs-3); max-width: 38em; color: #3a3a3a; margin-bottom: 34px }
.hero .sub { font-family: var(--head); font-size: var(--fs-3); font-weight: 600; letter-spacing: .01em; color: var(--onyx); max-width: 34em; padding-left: 16px; border-left: 2px solid var(--onyx); margin-bottom: 22px }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap }

.head { margin-bottom: 52px }
.head.center { text-align: center; margin-left: auto; margin-right: auto }
.head.wide { max-width: none }
.head p { font-size: var(--fs-3); color: var(--slate) }

/* capture panel: flat tint, no border, no shadow */
.capture { background: var(--panel); padding: 52px 48px }
.capture-form { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px }
.capture-form input, .capture-form select {
    flex: 1 1 200px;
    font-family: var(--sans);
    font-size: var(--fs-3);
    padding: 15px 16px;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--onyx);
    border-radius: 0;
}
.capture-form input::placeholder { color: var(--slate) }
.capture-form input:focus, .capture-form select:focus { outline: none; border-color: var(--onyx) }
.capture-form .btn { flex: 0 0 auto }
.capture-form select { color: var(--onyx) }
section.onyx .capture-form input, section.onyx .capture-form select { color: var(--paper); border-color: rgba(253,253,253,.35) }
section.onyx .capture-form input::placeholder { color: rgba(253,253,253,.55) }
section.onyx .capture-form select option { color: var(--onyx) }
section.onyx .capture-form input:focus, section.onyx .capture-form select:focus { border-color: var(--paper) }
.capture .fine { font-size: var(--fs-4); color: var(--slate) }
.ok { display: none; font-family: var(--head); font-size: var(--fs-3); padding: 20px 0 4px }
.ok.show { display: block }
.err { display: none; font-size: var(--fs-4); color: var(--slate); padding: 10px 0 0 }
section.onyx .err { color: rgba(253,253,253,.7) }
.err.show { display: block }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }

/* bridges: signal -> read, flat divider rows */
.bridge {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    gap: 18px;
    align-items: center;
    padding: 26px 0;
    border-top: 1px solid var(--line-soft);
}
.bridge:last-child { border-bottom: 1px solid var(--line-soft) }
.bridge .sig, .bridge .read { font-size: var(--fs-3) }
.bridge .t { display: block; font-family: var(--head); font-size: var(--fs-4); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; font-weight: 600 }
.bridge .read { font-weight: 400 }
.bridge .arrow { text-align: center; color: var(--slate-soft); font-size: var(--fs-3) }
@media (max-width: 720px) {
    .bridge { grid-template-columns: 1fr; gap: 10px }
    .bridge .arrow { display: none }
}

/* convergence animation: signals left, node centre, synthesised read right */
.converge { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; gap: 0; margin-top: 12px; min-height: 380px }
.conv-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; pointer-events: none }
.conv-signals { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-right: 22px }
.conv-sig {
    position: relative;
    padding: 13px 16px;
    background: var(--white);
    border-left: 2px solid var(--onyx);
    opacity: 0; transform: translateX(-16px);
    transition: opacity .5s ease, transform .5s ease;
}
.conv-sig.show { opacity: 1; transform: translateX(0) }
.conv-sig .cs-src { display: block; font-family: var(--head); font-size: var(--fs-4); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-bottom: 6px }
.conv-sig .cs-body { font-size: var(--fs-3); line-height: 1.5 }
.conv-anc {
    position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px; border-radius: 50%; background: var(--onyx);
    opacity: 0; transition: opacity .3s .2s;
}
.conv-sig.show .conv-anc { opacity: 1 }
.conv-center { display: flex; align-items: center; justify-content: center; position: relative; z-index: 3 }
.conv-node {
    width: 12px; height: 12px; border-radius: 50%; background: var(--onyx);
    opacity: .25; transition: opacity .3s;
}
.conv-node.active { opacity: 1; animation: corepulse 1.8s ease-in-out infinite }
.conv-read { display: flex; flex-direction: column; justify-content: center; padding-left: 22px }
.conv-read-tag { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .18em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-bottom: 14px; opacity: 0; transition: opacity .4s }
.conv-read-tag.show { opacity: 1 }
.conv-read-item {
    padding: 10px 0; border-top: 1px solid var(--line-soft);
    font-size: var(--fs-3); line-height: 1.5;
    opacity: 0; transform: translateY(6px);
    transition: opacity .5s ease, transform .5s ease;
}
.conv-read-item.show { opacity: 1; transform: translateY(0) }
.conv-read-item:last-child { border-bottom: 1px solid var(--line-soft) }
.conv-path { fill: none; stroke: var(--onyx); stroke-width: 1.2; stroke-linecap: round; opacity: .55 }
@media (max-width: 780px) {
    .converge { grid-template-columns: 1fr; min-height: 0; gap: 24px }
    .conv-svg { display: none }
    .conv-center { display: none }
    .conv-signals, .conv-read { padding: 0 }
    .conv-sig, .conv-read-item, .conv-read-tag { opacity: 1 !important; transform: none !important }
}

/* value levers: plain spaced row under a rule, no boxes */
.levers { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-soft) }
.levers .lv { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .04em; font-weight: 600; text-transform: uppercase; color: var(--onyx) }
.levers .lv.risk { color: var(--slate) }

/* phases: flat columns, top rule only */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 8px }
.phase { border-top: 1px solid var(--line-soft); padding-top: 26px }
.phase .pn { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; font-weight: 600 }
.phase h3 { margin-bottom: 12px }
.phase p { font-size: var(--fs-3); margin-bottom: 16px }
.phase .out { border-top: 1px solid var(--line-soft); padding-top: 14px }
.phase .out .ot { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .16em; text-transform: uppercase; color: var(--onyx); margin-bottom: 6px; font-weight: 600 }
.phase .out p { font-size: var(--fs-3); margin-bottom: 0 }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr } }

.loopline { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; font-family: var(--head); font-weight: 700; font-size: var(--fs-2); text-align: center }
.loopicon { font-size: var(--fs-3); display: inline-block; animation: spin 16s linear infinite }
.loopnote { text-align: center; max-width: 40em; margin: 16px auto 0; color: var(--slate); font-size: var(--fs-4) }

.readgrid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center }
@media (max-width: 900px) { .readgrid { grid-template-columns: 1fr } }

/* proof-point card: a real extract from a sample read, framed like the
   Kestrel Analytics mock but holding a static screenshot */
.proof { width: 70%; margin: 32px auto 0 auto }
.proof .frame-outer {
    border: 1px solid rgba(253,253,253,.1);
    background: var(--onyx);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(17,17,17,.22);
}
.proof .bar { position: relative; height: 34px; background: rgba(253,253,253,.04); border-bottom: 1px solid rgba(253,253,253,.08); display: flex; align-items: center; gap: 6px; padding: 0 14px }
.proof .bar .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(253,253,253,.3) }
.proof .bar span { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .16em; text-transform: uppercase; color: rgba(253,253,253,.6) }
.proof img { display: block; width: 100%; height: auto }
.proof .cap { margin-top: 16px; font-family: var(--head); font-style: italic; font-weight: 500; font-size: var(--fs-3); color: var(--slate); text-align: center; max-width: 36em; margin-left: auto; margin-right: auto }

/* mock report frame: a live document window, dark against the page */
.frame {
    border: 1px solid rgba(253,253,253,.1);
    background: var(--onyx);
    border-radius: 10px;
    overflow: hidden;
    height: 440px;
    position: relative;
    box-shadow: 0 30px 70px rgba(17,17,17,.22);
}
.frame::before, .frame::after { content: ""; position: absolute; left: 0; right: 0; height: 60px; z-index: 2; pointer-events: none }
.frame::before { top: 34px; background: linear-gradient(var(--onyx), transparent) }
.frame::after { bottom: 0; background: linear-gradient(transparent, var(--onyx)) }
.frame .bar { position: absolute; top: 0; left: 0; right: 0; height: 34px; background: rgb(36, 36, 36); border-bottom: 1px solid rgba(253,253,253,.08); display: flex; align-items: center; gap: 6px; padding: 0 14px; z-index: 3 }
.frame .bar .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(253,253,253,.3) }
.frame .bar span { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .16em; text-transform: uppercase; color: rgba(253,253,253,.6) }
.frame .scroll { position: absolute; top: 34px; left: 0; right: 0; padding: 24px 22px; animation: scrollup 20s linear infinite alternate }
.frame .rdoc h4 { font-size: var(--fs-4); color: rgba(253,253,253,.55); margin: 20px 0 8px; letter-spacing: .16em; text-transform: uppercase }
.frame .rdoc h4:first-child { margin-top: 0 }
.frame .rdoc .tx { font-size: var(--fs-4); color: rgba(253,253,253,.68); margin-bottom: 6px; line-height: 1.5 }
.frame .rdoc .prov { border: 1px solid rgba(253,253,253,.16); background: rgba(253,253,253,.05); border-radius: 6px; padding: 12px 14px; margin: 12px 0 }
.frame .rdoc .prov b { display: block; font-size: var(--fs-3); font-weight: 500; color: var(--paper); margin-bottom: 6px }
.frame .rdoc .conf { display: inline-block; font-family: var(--head); font-size: var(--fs-4); letter-spacing: .1em; text-transform: uppercase; color: rgba(253,253,253,.65); border: 1px solid rgba(253,253,253,.22); border-radius: 20px; padding: 3px 9px }
@keyframes scrollup { from { transform: translateY(0) } to { transform: translateY(-46%) } }

/* constellation, thirteen lenses */
.const-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; margin-top: 8px }
.const { position: relative; width: 100%; aspect-ratio: 1; max-width: 480px; margin: 0 auto }
.const::before { content: ""; position: absolute; inset: 6%; border: 1px dashed var(--line); border-radius: 50%; animation: spin 50s linear infinite }
.const svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1 }
.const svg .mesh line { stroke: rgba(17,17,17,.08); stroke-width: .18; vector-effect: non-scaling-stroke }
.const svg .spokes line { stroke: rgba(17,17,17,.05); stroke-width: .18; vector-effect: non-scaling-stroke; stroke-dasharray: 2 3; animation: dashmove 9s linear infinite }
.const svg .msg { fill: var(--onyx) }
.core {
    position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px;
    border-radius: 50%; background: var(--onyx); z-index: 3;
    box-shadow: 0 0 0 6px rgba(17,17,17,.08), 0 0 0 13px rgba(17,17,17,.04);
    animation: corepulse 3.5s ease-in-out infinite;
}
@keyframes corepulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(17,17,17,.08), 0 0 0 13px rgba(17,17,17,.04) }
    50% { box-shadow: 0 0 0 9px rgba(17,17,17,.12), 0 0 0 19px rgba(17,17,17,.05) }
}
.node { position: absolute; transform: translate(-50%, -50%); z-index: 3; text-align: center; cursor: pointer; animation: float 6s ease-in-out infinite }
.node .d { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 1px solid var(--onyx); margin: 0 auto 6px; transition: .2s; animation: nodeglow 3.6s ease-in-out infinite }
.node .nm { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); white-space: nowrap; transition: .2s; font-weight: 600 }
.node:hover .d, .node.active .d { background: var(--onyx) }
.node:hover .nm, .node.active .nm { color: var(--onyx) }
@keyframes float { 0%, 100% { margin-top: 0 } 50% { margin-top: -6px } }
@keyframes nodeglow { 0%, 100% { box-shadow: 0 0 4px rgba(17,17,17,.1) } 50% { box-shadow: 0 0 10px rgba(17,17,17,.3) } }
.constcap { text-align: center; margin-top: 24px; font-family: var(--head); font-size: var(--fs-4); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 600 }
.constcap b { color: var(--onyx); font-variant-numeric: tabular-nums }

/* lens detail panel, populated on click */
.ldetail { padding-top: 26px; border-top: 1px solid var(--line-soft); min-height: 220px }
.ldetail .role { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; font-weight: 600 }
.ldetail h3 { margin-bottom: 12px }
.ldetail .reads { font-style: italic; color: var(--slate); margin-bottom: 22px }
.qb .qt { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; font-weight: 600 }
.qb p { margin-bottom: 0 }
@media (max-width: 900px) { .const-wrap { grid-template-columns: 1fr } }

/* loops, the spiral */
.loopsgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center }
.orbit { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto }
.loopsvg { width: 100%; height: 100%; overflow: visible }
.loopsvg .ring { fill: none; stroke: rgba(17,17,17,.1); stroke-width: .4 }
.loopsvg .scan { fill: none; stroke: rgba(17,17,17,.45); stroke-width: .7; stroke-linecap: round; transform-box: fill-box; transform-origin: center }
.loopsvg .scan.s1 { animation: spin 9s linear infinite }
.loopsvg .scan.s2 { animation: spin 15s linear infinite reverse }
.loopsvg .scan.s3 { animation: spin 24s linear infinite }
.loopsvg .ripple { fill: none; stroke: rgba(17,17,17,.5); stroke-width: .5 }
.loopsvg .lcore { fill: var(--onyx) }
.loopsvg .pulse { fill: var(--onyx) }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes dashmove { to { stroke-dashoffset: -30 } }
.looppass { border-top: 1px solid var(--line-soft); padding: 16px 0 }
.looppass .ln { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .18em; color: var(--slate); font-weight: 600 }
.looppass b { display: block; font-family: var(--head); font-weight: 700; font-size: var(--fs-3); margin: 5px 0 6px }
.looppass p { font-size: var(--fs-3); color: var(--slate) }
@media (max-width: 900px) { .loopsgrid { grid-template-columns: 1fr; gap: 34px } }

/* flat content grid: top-rule cards, no borders, no fills */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 8px }
.cards.two { grid-template-columns: repeat(2, 1fr) }
.cards.four { grid-template-columns: repeat(4, 1fr) }
.card { border-top: 1px solid var(--line-soft); padding-top: 22px }
.card h3 { margin-bottom: 10px }
.card p { margin-bottom: 0 }
@media (max-width: 900px) { .cards, .cards.four { grid-template-columns: 1fr 1fr } }
@media (max-width: 600px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr } }

/* quotes: flat columns, top rule only */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; margin-top: 8px }
.quote { border-top: 1px solid var(--line-soft); padding-top: 24px }
.quote p { font-family: var(--head); font-style: italic; font-size: var(--fs-3); color: var(--onyx); line-height: 1.45; margin-bottom: 16px; font-weight: 400 }
.quote span { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .06em; color: var(--slate); text-transform: uppercase; font-weight: 600 }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr } }

/* agent chat demo: flat panel, internal rules only */
.agentgrid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center }
.chat { background: var(--white) }
section.onyx .chat { background: rgba(253,253,253,.06) }
.chat-top { display: flex; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--head); font-size: var(--fs-4); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); font-weight: 600 }
section.onyx .chat-top { border-color: rgba(253,253,253,.15) }
.chat-top .cd { width: 7px; height: 7px; border-radius: 50%; background: currentColor }
.chat-body { height: 230px; overflow-y: auto; padding: 18px 0; display: flex; flex-direction: column; gap: 12px }
.chat-body .msg { max-width: 84%; padding: 11px 14px; font-size: var(--fs-4); line-height: 1.5 }
.chat-body .msg.a { background: var(--panel); align-self: flex-start }
section.onyx .chat-body .msg.a { background: rgba(253,253,253,.1); color: var(--paper) }
.chat-body .msg.u { background: var(--onyx); color: var(--paper); align-self: flex-end }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 14px }
.chips button { font-family: var(--sans); font-size: var(--fs-4); border: 1px solid var(--line); background: transparent; padding: 8px 12px; cursor: pointer; color: var(--onyx) }
section.onyx .chips button { color: var(--paper); border-color: rgba(253,253,253,.3) }
.chips button:hover { border-color: currentColor }
.chat-input { display: flex; gap: 10px; padding: 14px 0 0; border-top: 1px solid var(--line-soft) }
section.onyx .chat-input { border-color: rgba(253,253,253,.15) }
.chat-input input { flex: 1; border: none; border-bottom: 1px solid var(--line); padding: 11px 4px; font-family: var(--sans); font-size: var(--fs-3); background: transparent; color: inherit }
section.onyx .chat-input input { border-color: rgba(253,253,253,.3) }
.chat-input input:focus { outline: none; border-color: currentColor }
.chat-input button { width: 40px; flex: 0 0 40px; border: 1px solid currentColor; background: transparent; color: inherit; font-size: var(--fs-3); cursor: pointer }
@media (max-width: 900px) { .agentgrid { grid-template-columns: 1fr; gap: 34px } }

/* modal / entry overlay: flat panel, separated by the scrim behind it */
.overlay {
    display: none; position: fixed; inset: 0; z-index: 90;
    background: rgba(17,17,17,.6); align-items: center; justify-content: center; padding: 24px;
}
.overlay.show { display: flex }
.modal { background: var(--paper); max-width: 460px; width: 100%; position: relative }
.modal .body { padding: 44px 40px }
.modal .x { position: absolute; top: 18px; right: 20px; background: none; border: none; font-size: var(--fs-3); cursor: pointer; color: var(--slate) }
.modal .k { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; font-weight: 600 }
.modal p.lead { font-family: var(--head); font-size: var(--fs-2); font-weight: 700; margin-bottom: 18px; line-height: 1.2 }
.modal .fine { font-size: var(--fs-4); color: var(--slate); margin-top: 12px }
.modal .capture-form { margin: 0 0 12px }
.modal .capture-form input { flex: 1 1 100% }

/* faq accordion, flat dividers */
.faqlist { border-top: 1px solid var(--line-soft) }
.faqlist details { border-bottom: 1px solid var(--line-soft); padding: 20px 0 }
.faqlist summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: var(--fs-3); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px }
.faqlist summary::-webkit-details-marker { display: none }
.faqlist summary::after { content: "+"; font-size: var(--fs-3); color: var(--slate); flex: 0 0 auto }
.faqlist details[open] summary::after { content: "\2212" }
.faqlist details p { margin-top: 14px; font-size: var(--fs-3); max-width: 44em }

/* footer */
footer { background: var(--onyx); color: rgba(253,253,253,.75); padding: 64px 0 34px }
.footgrid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px 32px; margin-bottom: 48px }
.footgrid .fcol { min-width: 0 }
.footgrid .fcol .ft { font-family: var(--head); font-size: var(--fs-4); letter-spacing: .16em; text-transform: uppercase; color: rgba(253,253,253,.5); margin-bottom: 16px; font-weight: 600 }
.footgrid .fcol a { display: block; font-size: var(--fs-4); padding: 6px 0; color: rgba(253,253,253,.8) }
.footgrid .fcol a:hover { color: var(--paper) }
.footgrid .fbrand { display: flex; flex-direction: column }
.footgrid .fbrand .wordmark { display: block }
.footgrid .fbrand .tagline { color: rgba(253,253,253,.55); margin-top: 12px }
.footbottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; border-top: 1px solid rgba(253,253,253,.15); font-size: var(--fs-4); color: rgba(253,253,253,.5) }
.footbottom .legal { display: flex; gap: 20px }
@media (max-width: 980px) { .footgrid { grid-template-columns: 1fr 1fr; gap: 40px 28px } .fbrand { grid-column: 1 / -1 } }
@media (max-width: 560px) { .footgrid { grid-template-columns: 1fr } .fbrand { grid-column: auto } }

/* generic utilities */
.center { text-align: center }
.mt { margin-top: 40px }

@media (max-width: 640px) {
    .wrap { padding: 0 22px }
    section { padding: 72px 0 }
    .hero { padding: 100px 0 64px }
}

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