/* spndly — design tokens */
:root {
  --bg: #ffffff;
  --bg-2: #fafaf9;
  --bg-3: #f5f5f4;
  --bg-code: #0a0a0a;
  --fg: #0a0a0a;
  --fg-2: #404040;
  --fg-3: #737373;
  --fg-4: #a3a3a3;
  --fg-5: #d4d4d4;
  --border: #e7e5e4;
  --border-2: #d6d3d1;
  --accent: #6a4cf0;
  --accent-2: #5a3ee0;
  --accent-soft: #efedfe;
  --accent-text: #5b3fd6;
  --red: #dc2626;
  --amber: #d97706;
  --maxw: 1180px;
  --pad: 28px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 18px;
}

/* dark theme tokens — toggled via .dark on <html>; JS clears its inline
   light overrides in dark mode so these win deterministically */
.dark {
  --bg: #0b0b0f;
  --bg-2: #131318;
  --bg-3: #1b1b22;
  --fg: #f5f5f6;
  --fg-2: #cfcfd6;
  --fg-3: #9a9aa6;
  --fg-4: #6b6b78;
  --fg-5: #3a3a44;
  --border: #26262f;
  --border-2: #3a3a46;
  --accent-soft: #1c1640;
  --accent-text: #b9adff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: default; border: 0; background: none; color: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 112px 0; border-top: 1px solid var(--border); position: relative; }
.section-tight { padding: 80px 0; }
.section:first-of-type { border-top: 0; }

/* type */
.h1 { font-family: 'Manrope', ui-sans-serif, sans-serif; font-size: clamp(40px, 6.2vw, 82px); line-height: 1.0; font-weight: 800; letter-spacing: -0.04em; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; font-weight: 700; letter-spacing: -0.028em; }
.h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: 15px; color: var(--fg-2); max-width: 58ch; line-height: 1.65; }
.muted { color: var(--fg-3); }
.dim { color: var(--fg-4); }
.green { color: var(--accent); }
.red { color: var(--red); }
.mono-xs { font-family: 'Geist Mono', ui-monospace, 'SF Mono', 'Menlo', monospace; font-size: 11px; letter-spacing: 0.02em; color: var(--fg-3); }
.label-eye { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; display: inline-flex; align-items: center; gap: 12px; }
.label-eye::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); animation: kicker-radar 2.8s ease-out infinite; }
@keyframes kicker-radar { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 42%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.kbd { font-size: 11px; padding: 2px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--bg-2); color: var(--fg-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; color: var(--fg-2); background: var(--bg); }
.tag-green { border-color: color-mix(in oklab, var(--accent) 30%, transparent); color: var(--accent-text); background: var(--accent-soft); }
.tag-red { border-color: color-mix(in oklab, var(--red) 30%, transparent); color: var(--red); background: #fef2f2; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-word { font-family: 'Manrope', ui-sans-serif, sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; color: var(--fg); }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--fg-3); font-size: 13px; }
.nav-links a:hover { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; transition: transform .12s, background .12s, border-color .12s; white-space: nowrap; cursor: default; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fg); color: #fff; border: 1px solid var(--fg); }
.btn-primary:hover { background: #1f1f1f; }
.btn-accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-accent:hover { background: var(--accent-2); }
.btn-secondary { background: var(--bg); color: var(--fg); border: 1px solid var(--border-2); }
.btn-secondary:hover { border-color: var(--fg-3); background: var(--bg-2); }
.btn-ghost { background: transparent; color: var(--fg-2); padding: 8px 12px; }
.btn-ghost:hover { color: var(--fg); background: var(--bg-2); }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }

/* hero */
.hero { padding: 72px 0 112px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin: 22px 0 26px; }
.hero h1 .strike { color: var(--fg-4); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 22px; }
.hero-eyebrow .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cta-row { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); }
.proof-num { font-family: 'Manrope', ui-sans-serif, sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.proof-num .unit { color: var(--accent); margin-left: 2px; }
.proof-lbl { font-size: 11px; color: var(--fg-3); margin-top: 8px; letter-spacing: 0.04em; }

/* terminal */
.terminal { background: var(--bg-code); color: #e5e5e5; border-radius: 16px; border: 1px solid #1f1f1f; box-shadow: 0 1px 0 #2a2a2a inset, 0 24px 60px -20px rgba(0,0,0,.35); font-size: 12.5px; line-height: 1.6; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid #1f1f1f; background: #0a0a0a; }
.term-dot { width: 11px; height: 11px; border-radius: 999px; background: #2a2a2a; }
.term-dot.r { background: #5a2424; }
.term-dot.y { background: #5a4a18; }
.term-dot.g { background: #1f4a2a; }
.term-title { font-size: 11px; color: #737373; margin-left: 10px; }
.term-body { padding: 18px 18px 22px; min-height: 380px; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line.dim { color: #737373; }
.term-line.ok { color: var(--accent); }
.term-line.warn { color: #d97706; }
.term-line.err { color: #ef4444; }
.term-line.prompt { color: #e5e5e5; }
.term-line.prompt .ps { color: var(--accent); margin-right: 8px; }
.term-line .key { color: #a3a3a3; }
.term-line .val { color: #e5e5e5; }
.term-line .num { color: var(--accent); }
.term-line .bad { color: #ef4444; text-decoration: line-through; text-decoration-color: #ef4444; }
.term-cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(2) infinite; }
.term-bar-chart { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.term-bar-chart .bar-row { display: grid; grid-template-columns: 60px 1fr 50px; gap: 10px; align-items: center; font-size: 11.5px; }
.term-bar-chart .bar-track { height: 8px; background: #1f1f1f; border-radius: 1px; overflow: hidden; }
.term-bar-chart .bar-fill { height: 100%; background: var(--accent); }
.term-bar-chart .bar-fill.red { background: #7a3030; }

/* ── hero paperflow — yellow pad + sticky notes → clean data ── */
.paperflow { display: flex; flex-direction: column; gap: 12px; cursor: pointer; user-select: none; }

.pf-pad {
  position: relative;
  background: linear-gradient(#fdf2b8, #fbe98f);
  border: 1px solid #e7cf6b; border-radius: 16px;
  padding: 16px 18px 18px 32px; min-height: 212px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 44px -22px rgba(140,110,20,.5);
  overflow: hidden;
}
.pf-pad::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 1.5px; background: #ee3366; opacity: .35; }
.pf-pad::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0 26px, rgba(60,90,150,.15) 26px 27px); }
.pf-pad-head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #9a7a1e; letter-spacing: .04em; margin-bottom: 10px; }
.pf-pad-count { color: #b08515; transition: color .3s; }

.pf-notes { position: relative; min-height: 152px; z-index: 1; }
.pf-note {
  position: absolute; box-sizing: border-box; padding: 8px 24px 9px 11px; border-radius: 2px;
  font-family: 'Caveat', 'Geist Mono', cursive; font-size: 17px; line-height: 1.12; color: #2a2a2a;
  box-shadow: 2px 4px 9px -3px rgba(0,0,0,.28);
  transform: rotate(var(--rot)) scale(.72); opacity: 0;
  transition: opacity .35s ease, transform .4s cubic-bezier(.2,1.2,.4,1);
}
.pf-note.in { opacity: 1; transform: rotate(var(--rot)) scale(1); }
.pf-note.gone { opacity: 0; transform: rotate(var(--rot)) translateY(-16px) scale(.85); }
.pf-yellow { background: #fff3a8; }
.pf-pink   { background: #ffc2d4; }
.pf-blue   { background: #b8dcff; }
.pf-green  { background: #b7f0c6; }
.pf-note-tick {
  position: absolute; top: 4px; right: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 10px; font-family: 'Geist Mono';
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.3); transition: opacity .25s, transform .25s cubic-bezier(.2,1.4,.4,1);
}
.pf-note.done .pf-note-tick { opacity: 1; transform: scale(1); }

.pf-scan {
  position: absolute; left: 0; right: 0; height: 30px; top: -36px; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--accent) 30%, transparent), transparent);
  border-top: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
}
.pf-pad.scanning .pf-scan { animation: pf-sweep 1.15s ease-in-out; }
@keyframes pf-sweep { 0% { top: -36px; opacity: 1; } 100% { top: 100%; opacity: 0; } }

.pf-link { font-size: 11.5px; color: var(--fg-4); text-align: center; transition: color .3s; }
.pf-link.on { color: var(--accent-text); }
.pf-link-mark { color: var(--accent); font-weight: 600; }

.pf-out { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px -28px rgba(0,0,0,.3); }
.pf-out-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); font-size: 11px; color: var(--fg-3); }
.pf-live { color: var(--accent); font-size: 10px; letter-spacing: .06em; }
.pf-row { display: grid; grid-template-columns: 70px 1fr 18px; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px dashed var(--border); font-size: 12px; opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s; }
.pf-row.in { opacity: 1; transform: none; }
.pf-k { color: var(--fg-3); font-size: 11px; }
.pf-v { color: var(--fg); font-weight: 500; }
.pf-ck { color: var(--accent); text-align: right; }
.pf-summary { padding: 11px 14px; font-size: 12px; color: var(--accent-text); background: var(--accent-soft); opacity: 0; transition: opacity .4s; }
.pf-summary.in { opacity: 1; }
.pf-summary b { font-weight: 600; }

/* problem stats */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.stat-cell { padding: 32px; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: 0; }
.stat-num { font-size: 56px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--fg); }
.stat-num .unit { color: var(--accent); font-size: 32px; margin-left: 2px; }
.stat-title { margin-top: 16px; font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.stat-desc { margin-top: 18px; color: var(--fg-2); font-size: 13px; line-height: 1.55; max-width: 28ch; }
.stat-meta { margin-top: 18px; font-size: 11px; color: var(--fg-4); letter-spacing: 0.04em; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.step { background: var(--bg); padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.step-num { font-size: 12px; color: var(--fg-4); letter-spacing: 0.02em; display: flex; justify-content: space-between; align-items: center; }
.step-num .nm { color: var(--accent); }
.step h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.step p { color: var(--fg-2); font-size: 13px; line-height: 1.6; }
.step-list { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px dashed var(--border); }
.step-list li { font-size: 12px; color: var(--fg-3); display: flex; gap: 8px; }
.step-list li::before { content: '→'; color: var(--accent); }

/* services / checklist */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.service { padding: 24px 26px; display: flex; gap: 16px; border-bottom: 1px solid var(--border); }
.service:nth-child(odd) { border-right: 1px solid var(--border); }
.service:nth-last-child(-n+2) { border-bottom: 0; }
.service:nth-last-child(2):nth-child(even) { border-bottom: 1px solid var(--border); }
.service:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.service-check { width: 18px; height: 18px; flex-shrink: 0; border-radius: 4px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 2px; border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.service-body h3 { font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.service-body p { color: var(--fg-3); font-size: 12.5px; line-height: 1.55; }

/* body of work — industry picker (each card themed via --ind / --ind-soft) */
.verticals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vc { font: inherit; color: inherit; text-align: left; cursor: pointer; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; padding: 28px 28px 22px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.vc::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); opacity: 0; transition: opacity .2s; }
.vc:hover { border-color: color-mix(in oklab, var(--accent) 32%, var(--border)); transform: translateY(-3px); box-shadow: 0 20px 46px -26px color-mix(in oklab, var(--accent) 26%, rgba(0,0,0,.14)); }
.vc:hover::before { opacity: 1; }

/* case study cover motif (used in the article reader) */
.cs-motif-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ind); opacity: .22; }

/* established editorial work card */
.vc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.vc-overline { display: inline-flex; align-items: baseline; gap: 13px; min-width: 0; }
.vc-index { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.vc-cat { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
.vc-read { font-size: 11.5px; color: var(--fg-4); letter-spacing: 0.02em; white-space: nowrap; flex-shrink: 0; }
.vc-name { font-size: 22px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.22; color: var(--fg); }
.vc-client { font-size: 12.5px; color: var(--fg-3); margin-top: 9px; }
.vc-quote { font-size: 16px; line-height: 1.5; color: var(--fg); letter-spacing: -0.01em; margin: 20px 0 22px; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.vc-tag { font-size: 11px; letter-spacing: 0.01em; color: var(--fg-2); background: var(--bg-2); border: 1px solid var(--border); padding: 5px 11px; border-radius: 7px; white-space: nowrap; }
.vc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); margin-top: auto; }
.vc-nda { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--fg-3); letter-spacing: 0.02em; }
.vc-nda svg { color: var(--fg-4); }
.vc-cta { flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; }
.vc-cta .arr { display: inline-block; transition: transform .2s; }
.vc:hover .vc-cta .arr { transform: translateX(4px); }

/* industry group (2 studies per vertical) */
.vc-group + .vc-group { margin-top: 44px; }
.vc-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.vc-group-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--ind-soft); color: var(--ind); border: 1px solid color-mix(in oklab, var(--ind) 22%, transparent); display: inline-flex; align-items: center; justify-content: center; }
.vc-group-icon svg { width: 17px; height: 17px; }
.vc-group-name { font-size: 15px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.vc-group-count { font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em; }
.vc-group-head::after { content: ''; flex: 1; height: 1px; background: var(--border); margin-left: 4px; }

/* case study — full-screen Medium-style reader */
.cs-reader { position: fixed; inset: 0; z-index: 300; overflow-y: auto; background: var(--bg); animation: cs-rise .28s cubic-bezier(.2,.7,.2,1); }
.cs-avatar { flex-shrink: 0; border-radius: 999px; background: var(--ind); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; letter-spacing: 0.02em; width: 40px; height: 40px; font-size: 13px; }
.cs-avatar.lg { width: 48px; height: 48px; font-size: 15px; }

/* sticky top bar + reading progress */
.cs-topbar { position: sticky; top: 0; z-index: 2; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.cs-progress { height: 3px; background: var(--ind); width: 0; transition: width .1s linear; }
.cs-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.cs-topbar-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; text-transform: capitalize; color: var(--ind); }
.cs-close { font: inherit; font-size: 12px; letter-spacing: 0.04em; color: var(--fg-3); background: none; border: 1px solid var(--border-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: border-color .15s, color .15s; }
.cs-close:hover { color: var(--fg); border-color: var(--fg-3); }

/* the article */
.cs-article { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }
.cs-art-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ind); }
.cs-art-title { font-family: 'Newsreader', Georgia, serif; font-size: clamp(34px, 5vw, 52px); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 18px 0 0; color: var(--fg); }
.cs-art-deck { font-family: 'Newsreader', Georgia, serif; font-size: clamp(18px, 2.4vw, 23px); font-weight: 400; font-style: italic; line-height: 1.45; color: var(--fg-3); margin-top: 18px; }
.cs-byline { display: flex; align-items: center; gap: 13px; margin: 32px 0; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.cs-byline-meta .nm { font-size: 14px; font-weight: 600; }
.cs-byline-meta .rl { font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }
.cs-byline-meta .dot { color: var(--fg-5); margin: 0 2px; }
.cs-avatar-icon svg { width: 22px; height: 22px; }
.cs-nda-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); background: var(--bg-2); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.cs-nda-tag svg { color: var(--fg-4); }

.cs-cover { position: relative; height: 220px; border-radius: 16px; overflow: hidden; margin-bottom: 8px; border: 1px solid var(--border); background: linear-gradient(135deg, var(--ind-soft), color-mix(in oklab, var(--ind-soft) 40%, var(--bg))); }
.cs-cover .cs-motif-svg { opacity: .3; }
.cs-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0%, transparent 50%, color-mix(in oklab, var(--ind) 8%, transparent)); }

/* prose — serif reading column */
.cs-prose { margin-top: 30px; }
.cs-pp { font-family: 'Newsreader', Georgia, serif; font-size: 20px; line-height: 1.75; color: var(--fg-2); margin-top: 24px; }
.cs-pp:first-child { margin-top: 0; }
.cs-pp.dropcap::first-letter { float: left; font-size: 4em; line-height: .76; font-weight: 600; padding: 6px 12px 0 0; color: var(--ind); }
.cs-h2 { font-family: 'Newsreader', Georgia, serif; font-size: 27px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); margin: 44px 0 4px; }
.cs-bq { margin: 40px 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--ind); }
.cs-bq p { font-family: 'Newsreader', Georgia, serif; font-size: 25px; font-style: italic; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; color: var(--fg); }
.cs-bq cite { display: block; margin-top: 14px; font-family: 'Geist Mono', monospace; font-style: normal; font-size: 12px; letter-spacing: 0.02em; color: var(--fg-3); }
.cs-bq cite::before { content: '— '; color: var(--ind); }
.cs-statline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 40px 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.cs-statcell { padding: 24px 20px; text-align: center; border-right: 1px solid var(--border); }
.cs-statcell:last-child { border-right: 0; }
.cs-statcell .n { display: block; font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.cs-statcell .l { display: block; font-size: 11.5px; color: var(--fg-3); margin-top: 8px; letter-spacing: 0.02em; }

/* article end — author card + CTA */
.cs-art-end { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.cs-author { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; }
.cs-author .nm { font-size: 14px; font-weight: 600; }
.cs-author .nm .dim { color: var(--fg-4); font-weight: 400; }
.cs-author .rl { font-size: 12.5px; color: var(--fg-3); margin-top: 3px; }
.cs-art-end .btn { align-self: flex-start; }
.cs-illus { font-size: 10.5px; color: var(--fg-4); letter-spacing: 0.02em; }
@keyframes cs-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* pricing */
.pricing-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 20px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { border: 1px solid var(--border); border-radius: 12px; padding: 28px 26px; background: var(--bg); display: flex; flex-direction: column; gap: 14px; position: relative; }
.tier.featured { border-color: var(--fg); background: var(--bg); }
.tier-rec { position: absolute; top: -1px; right: 20px; transform: translateY(-50%); background: var(--accent); color: #fff; padding: 3px 10px; font-size: 10px; border-radius: 999px; letter-spacing: 0.06em; }
.tier-name { font-size: 12px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; }
.tier-price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 6px; }
.tier-price .num { font-size: 44px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.tier-price .unit { font-size: 13px; color: var(--fg-3); }
.tier-desc { font-size: 13px; color: var(--fg-2); line-height: 1.55; min-height: 60px; }
.tier-cta { margin-top: 4px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 14px; padding-top: 18px; border-top: 1px dashed var(--border); }
.tier li { font-size: 12.5px; color: var(--fg-2); display: flex; gap: 10px; line-height: 1.5; }
.tier li::before { content: '+'; color: var(--accent); font-weight: 600; }
.tier li.off { color: var(--fg-4); }
.tier li.off::before { content: '−'; color: var(--fg-4); }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; cursor: default; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.faq-q .qt { font-size: 14px; font-weight: 500; }
.faq-q .ic { color: var(--fg-4); font-size: 13px; transition: transform .2s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; color: var(--fg-2); font-size: 13px; line-height: 1.65; }
.faq-item.open .faq-a { max-height: 400px; padding-top: 14px; }

/* book / contact */
.book { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.book-form { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); overflow: hidden; }
.book-form-head { padding: 14px 18px; background: var(--bg-2); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--fg-3); }
.book-form-body { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em; display: flex; justify-content: space-between; }
.field label .req { color: var(--accent); }
.field label .err { color: var(--red); }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 6px; background: var(--bg); font-size: 13px; transition: border-color .12s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--fg); }
.field input.invalid, .field textarea.invalid { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.check-chip { padding: 7px 12px; border: 1px solid var(--border-2); border-radius: 999px; font-size: 12px; color: var(--fg-2); cursor: default; transition: all .12s; user-select: none; }
.check-chip:hover { border-color: var(--fg-3); }
.check-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.form-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--bg-2); border-top: 1px solid var(--border); }
.form-status { font-size: 11px; color: var(--fg-3); }
.book-side h2 { margin-bottom: 18px; }
.book-side p { color: var(--fg-2); font-size: 14px; line-height: 1.65; max-width: 42ch; }
.book-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.book-meta .v { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.book-meta .v .green { color: var(--accent); }
.book-meta .l { font-size: 11px; color: var(--fg-3); margin-top: 4px; letter-spacing: 0.04em; }

/* "speak with a founder" — discovery-call CTA alongside the intake form */
.book-talk { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.book-talk p { font-size: 13.5px; color: var(--fg-2); line-height: 1.6; max-width: 42ch; margin: 0; }
.book-talk strong { color: var(--fg); font-weight: 600; }

/* footer / status */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--border); background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-col h4 { font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-col a { color: var(--fg-2); font-size: 13px; }
.foot-col a:hover { color: var(--fg); }
.foot-brand .logo { font-size: 16px; }
.foot-tag { margin-top: 14px; color: var(--fg-3); font-size: 12.5px; line-height: 1.55; max-width: 38ch; }
.status-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; margin-top: 40px; border-top: 1px dashed var(--border); flex-wrap: wrap; gap: 14px; }
.status-pills { display: flex; gap: 14px; flex-wrap: wrap; }
.status-pills .tag { font-size: 11px; }
.foot-legal { font-size: 11px; color: var(--fg-4); display: flex; gap: 16px; flex-wrap: wrap; }

/* code block reusable */
.code { background: var(--bg-code); color: #e5e5e5; border-radius: 10px; padding: 18px 20px; font-size: 12.5px; line-height: 1.65; overflow-x: auto; }
.code .com { color: #737373; }
.code .kw { color: #c084fc; }
.code .str { color: #a3e635; }
.code .num { color: var(--accent); }
.code .fn { color: #60a5fa; }
.code .var { color: #e5e5e5; }

/* section header */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 32px; flex-wrap: wrap; }
.sec-head-left { max-width: 640px; }
.sec-head h2 { margin: 14px 0 12px; }
.sec-head-aside { color: var(--fg-3); font-size: 12px; text-align: right; line-height: 1.6; }
.sec-head-aside .k { color: var(--fg-4); }

/* ascii flourish */
.ascii-rule { color: var(--fg-5); font-size: 10px; letter-spacing: 0; user-select: none; overflow: hidden; white-space: nowrap; margin: 0 0 8px; }

/* ── spndly logo mark (pipeline nodes) — resting static, runs on hover ── */
.spndly-mark { height: 19px; width: auto; overflow: visible; display: block; transform: translateY(1px); }
.spndly-mark .sp-wire { stroke: var(--fg); stroke-width: 2.4; }
.spndly-mark .sp-track { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.spndly-mark .sp-node { fill: var(--fg); transform-box: fill-box; transform-origin: center; }
.spndly-mark .sp-out { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.spndly-mark .sp-ring { fill: none; stroke: var(--accent); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; opacity: 0; }
.spndly-mark .sp-pulse { fill: var(--accent); opacity: 0; }

.logo:hover .sp-track { animation: sp-track 1.25s ease both; }
.logo:hover .sp-pulse { animation: sp-pulse 1.25s ease both; }
.logo:hover .sp-ring  { animation: sp-ring 1.25s ease both; }
.logo:hover .sp-out   { animation: sp-pop 1.25s ease both; }
@keyframes sp-track { 0% { stroke-dashoffset: 22; } 58%,100% { stroke-dashoffset: 0; } }
@keyframes sp-pulse { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 58% { transform: translateX(22px); opacity: 1; } 66%,100% { transform: translateX(22px); opacity: 0; } }
@keyframes sp-ring  { 0%,52% { transform: scale(.5); opacity: 0; } 58% { opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes sp-pop   { 0%,52% { transform: scale(1); } 64% { transform: scale(1.4); } 80%,100% { transform: scale(1); } }

/* footer logo a touch larger */
.foot-brand .spndly-mark { height: 22px; }
.foot-brand .logo-word { font-size: 19px; }

/* ── hero: mature agency treatment ── */
.hero .h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .type-caret {
  display: inline-block; width: 0.07em; height: 0.86em; margin-left: 0.06em;
  background: currentColor; border-radius: 1px; vertical-align: -0.04em;
  animation: blink 1s steps(1, end) infinite;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); background: none; border: none; padding: 0; margin-bottom: 24px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); animation: kicker-radar 2.8s ease-out infinite; }
.hero .lead { font-size: 16px; line-height: 1.6; max-width: 50ch; color: var(--fg-2); }
.cta-row .btn { padding: 12px 20px; font-size: 14px; }

.proof-item { display: flex; flex-direction: column; gap: 5px; }
.proof-k { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); position: relative; padding-left: 15px; }
.proof-k::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.proof-v { font-size: 12px; color: var(--fg-3); line-height: 1.45; }

/* operations panel — refined, calm */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ''; position: absolute; inset: -16% -10% -22% -8%; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 52% at 72% 36%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 72%);
  filter: blur(6px);
}
.ops {
  position: relative; z-index: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset,
              0 34px 70px -34px rgba(26,19,64,.30),
              0 10px 26px -18px rgba(26,19,64,.20);
}
.ops-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.ops-title { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; color: var(--fg); }
.ops-sub { font-size: 12.5px; color: var(--fg-3); margin-top: 3px; }
.ops-live { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-text); white-space: nowrap; }
.ops-pip { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 45%, transparent); animation: ops-pip 2.6s ease-out infinite; }
@keyframes ops-pip { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

.ops-rows { padding: 6px 0; }
.ops-row { display: grid; grid-template-columns: 116px 1fr auto; gap: 16px; align-items: center; padding: 14px 24px; opacity: 0; transform: translateY(7px); }
.ops-row.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.ops-row + .ops-row { border-top: 1px solid color-mix(in oklab, var(--border) 65%, transparent); }
.ops-k { font-size: 12.5px; color: var(--fg-3); }
.ops-v { font-size: 14px; color: var(--fg); font-weight: 500; }
.ops-v b { font-weight: 700; }
.ops-check { width: 22px; height: 22px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.5); }
.ops-row.in .ops-check { opacity: 1; transform: none; transition: opacity .45s .18s ease, transform .45s .18s cubic-bezier(.2,1.35,.4,1); }

.ops-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; border-top: 1px solid var(--border); background: var(--bg-2); opacity: 0; transition: opacity .8s ease; }
.ops-foot.in { opacity: 1; }
.ops-foot-stat { flex: 1; min-width: 0; }
.ops-foot-label { font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600; color: var(--fg-4); }
.ops-foot-val { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; color: var(--fg); line-height: 1; margin-top: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ops-foot-unit { font-size: 15px; font-weight: 700; color: var(--fg-3); margin-left: 4px; letter-spacing: -0.01em; }
.ops-foot-cap { font-size: 12px; color: var(--fg-3); margin-top: 8px; }
.ops-foot-cap b { font-weight: 700; color: var(--accent-text); }
.ops-foot-spark { width: 96px; height: 46px; flex-shrink: 0; margin-left: 12px; overflow: visible; }
.ops-spark-area { fill: color-mix(in oklab, var(--accent) 15%, transparent); opacity: 0; transition: opacity .6s ease .65s; }
.ops-spark-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 102; stroke-dashoffset: 102; transition: stroke-dashoffset 1.1s cubic-bezier(.4,.6,.2,1) .15s; }
.ops-spark-dot { fill: var(--accent); opacity: 0; transition: opacity .4s ease .95s; }
.ops-foot.in .ops-spark-area { opacity: 1; }
.ops-foot.in .ops-spark-line { stroke-dashoffset: 0; }
.ops-foot.in .ops-spark-dot { opacity: 1; }

/* ── dark-mode toggle (sun ⇆ moon) ── */
.theme-toggle { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--bg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; transition: border-color .15s, background .15s; }
.theme-toggle:hover { border-color: var(--fg-3); background: var(--bg-2); }
.theme-toggle svg { position: absolute; width: 17px; height: 17px; color: var(--fg); transition: opacity .3s ease, transform .45s cubic-bezier(.3,.8,.3,1.2); }
.theme-toggle .tt-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .tt-moon { opacity: 0; transform: rotate(-70deg) scale(.5); }
.dark .theme-toggle .tt-sun  { opacity: 0; transform: rotate(70deg) scale(.5); }
.dark .theme-toggle .tt-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* theme toggle hover tooltip */
.theme-toggle-wrap { position: relative; display: inline-flex; }
.theme-tip { position: absolute; top: calc(100% + 11px); right: 0; white-space: nowrap; background: var(--fg); color: var(--bg); font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 8px 12px; border-radius: 9px; opacity: 0; transform: translateY(-5px); pointer-events: none; transition: opacity .2s ease, transform .2s cubic-bezier(.2,.8,.2,1); box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); z-index: 60; }
.theme-tip::before { content: ''; position: absolute; bottom: 100%; right: 13px; border: 5px solid transparent; border-bottom-color: var(--fg); }
.theme-toggle-wrap:hover .theme-tip { opacity: 1; transform: none; }

/* ── dark-mode component refinements ── */
.dark .btn-primary { background: var(--fg); color: #0b0b0f; border-color: var(--fg); }
.dark .btn-primary:hover { background: #e4e4ea; }
.dark .ops { box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 80px -36px rgba(0,0,0,.7), 0 12px 30px -20px rgba(106,76,240,.35); }
.dark .hero-visual::before { background: radial-gradient(58% 52% at 72% 36%, color-mix(in oklab, var(--accent) 34%, transparent), transparent 72%); }
.dark .term-dot.g { background: #1f4a2a; }


/* responsive */
@media (max-width: 900px) {
  .hero-grid, .book, .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-grid, .steps, .verticals, .tiers { grid-template-columns: 1fr; }
  .stat-cell, .step { border-right: 0; border-bottom: 1px solid var(--border); }
  .services { grid-template-columns: 1fr; }
  .service:nth-child(odd) { border-right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ── mobile: keep everything inside the viewport (phones / small tablets) ──
   The nav's inline links have a min-width wider than a phone, which forces the
   whole page to lay out too wide. Collapsing the nav lets the layout snap back
   to the device width; the rest just stacks. Desktop is untouched. */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { gap: 16px; }
  .sub-nav-inner { padding-left: 20px; padding-right: 20px; }
  .theme-tip { display: none; }            /* tooltip isn't useful on touch + avoids overflow */
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sec-head-aside { text-align: left; }
  .field-row, .book-meta { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cs-statline { grid-template-columns: 1fr; }
  .cs-article { padding-left: 20px; padding-right: 20px; }
  .ops-row { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; padding: 13px 18px; }
  .ops-head, .ops-foot { padding-left: 18px; padding-right: 18px; }
  .ops-v { min-width: 0; }
}

@media (max-width: 380px) {
  .proof { grid-template-columns: 1fr; }
  .btn-sm { padding: 6px 10px; font-size: 11.5px; }
  .ops-row { grid-template-columns: 80px minmax(0, 1fr) auto; }
}

/* ── motion: scroll-reveal, animated dividers, hover polish ──
   Applied below the fold only (the hero animates on load). The .rv class is
   added by JS, so with JS disabled everything is visible; reduced-motion users
   skip it entirely. */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); }
.rv.rv-in { opacity: 1; transform: none; }

/* a thin accent line wipes in under each section header as it reveals */
.sec-head { position: relative; }
.sec-head::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -24px; height: 1px;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 0%, transparent) 62%);
  transform: scaleX(0); transform-origin: left center; opacity: 0;
  transition: transform 1s cubic-bezier(.2,.7,.2,1) .12s, opacity .5s ease .12s;
}
.sec-head.rv-in::after { transform: scaleX(1); opacity: .55; }

/* hover polish — quiet tints + accent pickups, no layout shift */
.stat-cell, .step, .service { transition: background .22s ease; }
.stat-cell:hover { background: var(--bg-3); }
.step:hover, .service:hover { background: var(--bg-2); }
.proof-item .proof-k { transition: color .2s ease; }
.proof-item:hover .proof-k { color: var(--accent-text); }
.faq-item { transition: background .2s ease; }
.faq-item:hover { background: color-mix(in oklab, var(--bg-2) 55%, transparent); }
.foot-col a { transition: color .18s ease; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .sec-head::after { display: none; }
}

/* ── hero workflow deck (3D rotating carousel of flows) ── */
.wf-deck { position: relative; user-select: none; }
.wf-stage { position: relative; perspective: 1700px; transform-style: preserve-3d; }
.wf-face {
  position: absolute; top: 0; left: 0; width: 100%;
  transform-style: preserve-3d; backface-visibility: hidden; will-change: transform, opacity;
  transition: transform .74s cubic-bezier(.42,0,.16,1), opacity .55s ease;
}
.wf-deck-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 0; }
.wf-hint { font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: 0.06em; color: var(--fg-4); text-transform: uppercase; }
.wf-dots { display: flex; align-items: center; gap: 7px; }
.wf-dot-btn { width: 7px; height: 7px; border-radius: 999px; background: var(--border-2); border: 0; padding: 0; cursor: pointer; transition: width .25s ease, background .2s ease; }
.wf-dot-btn.on { width: 19px; background: var(--accent); }

/* ── one flow card ── */
.wf {
  position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset,
              0 30px 64px -34px rgba(26,19,64,.28),
              0 8px 22px -18px rgba(26,19,64,.18);
}

/* toolbar */
.wf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 15px; border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-2) 55%, var(--bg)); }
.wf-bar-l { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.wf-dot { width: 11px; height: 11px; border-radius: 999px; background: var(--border-2); flex-shrink: 0; }
.wf-bar-l .wf-dot:nth-child(1) { background: #ff5f57; }
.wf-bar-l .wf-dot:nth-child(2) { background: #febc2e; }
.wf-bar-l .wf-dot:nth-child(3) { background: #28c840; }
.wf-bar-l .wf-dot { box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.wf-name { margin-left: 9px; font-family: 'Manrope', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); white-space: nowrap; }
.wf-bar-id { margin-left: 8px; font-family: 'Geist Mono', monospace; font-size: 10.5px; color: var(--fg-4); letter-spacing: 0.01em; white-space: nowrap; }
.wf-state { display: inline-flex; align-items: center; gap: 7px; font-family: 'Geist Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-3); flex-shrink: 0; }
.wf-pip { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 45%, transparent); animation: ops-pip 2.6s ease-out infinite; flex-shrink: 0; }
.wf-pip.sm { width: 5px; height: 5px; }

/* canvas */
.wf-canvas { position: relative;
  background-image: radial-gradient(color-mix(in oklab, var(--fg) 7%, transparent) 1px, transparent 1.3px);
  background-size: 22px 22px; background-position: 11px 13px; }
.wf-svg { display: block; width: 100%; height: auto; }

/* edges */
.wf-edge { fill: none; stroke: color-mix(in oklab, var(--fg) 13%, transparent); stroke-width: 1.2; transition: stroke .3s ease, stroke-width .3s ease; }
.wf-edge.is-hot { stroke: color-mix(in oklab, var(--accent) 58%, transparent); stroke-width: 1.7; }

/* packet + radiation */
.wf-packet { fill: var(--accent); }
.wf-ring { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* nodes */
.wf-chip { fill: var(--bg); stroke: var(--border-2); stroke-width: 1; transition: stroke .2s ease; }
.wf-logo-chip { fill: #ffffff; stroke: rgba(17,17,22,.10); filter: drop-shadow(0 2px 5px rgba(20,16,45,.07)); }
.dark .wf-logo-chip { fill: #f6f6f8; stroke: rgba(0,0,0,.16); }
.wf-node.wf-logo:hover .wf-logo-chip { stroke: var(--accent); }
.wf-port { fill: var(--border-2); }
.wf-op-chip { fill: color-mix(in oklab, var(--accent) 9%, var(--bg)); stroke: color-mix(in oklab, var(--accent) 36%, transparent); stroke-width: 1.2; }
.wf-dec-chip { fill: color-mix(in oklab, var(--accent) 16%, var(--bg)); stroke: var(--accent); stroke-width: 1.7; }
.wf-op-glyph { fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wf-label { fill: var(--fg-4); font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; }
.wf-op-label { fill: var(--accent-text); letter-spacing: 0.08em; }

/* status bar */
.wf-statusbar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 15px; border-top: 1px solid var(--border);
  font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: 0.04em; color: var(--fg-4); text-transform: uppercase; }
.wf-statusbar > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.wf-stat b { color: var(--fg-2); font-weight: 600; }

@media (max-width: 600px) {
  .wf-bar, .wf-statusbar { padding-left: 13px; padding-right: 13px; }
  .wf-bar-id { display: none; }
}

/* ── realistic Excel automation card ── */
.wf-xl .xl-body { display: flex; flex-direction: column; min-height: 326px; }
.xl-formula { display: flex; align-items: center; height: 28px; border-bottom: 1px solid var(--border);
  font-family: 'Geist Mono', monospace; font-size: 11px; background: var(--bg); flex-shrink: 0; }
.xl-fx { width: 32px; text-align: center; color: var(--fg-4); border-right: 1px solid var(--border); font-style: italic; }
.xl-ref { width: 46px; text-align: center; color: var(--fg-2); border-right: 1px solid var(--border); }
.xl-eq { padding-left: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; }
.xl-wrap { position: relative; flex: 1; overflow: hidden; background: #ffffff; display: flex; align-items: center; }
.dark .xl-wrap { background: #1a1a1f; }
.xl-zoom { width: 100%; transition: transform .82s cubic-bezier(.4,0,.15,1); }
.xl-table { width: 100%; border-collapse: collapse; font-family: 'Manrope', sans-serif; font-size: 12px; table-layout: fixed; }
.xl-colrow th { height: 17px; background: #f2f3f5; border: 1px solid #e1e3e6; color: #9aa0a6; font-weight: 600; font-size: 9.5px; }
.dark .xl-colrow th { background: #222229; border-color: #2d2d35; color: #76767f; }
.xl-corner, .xl-rownum { width: 24px; }
.xl-rownum { text-align: center; background: #f2f3f5; border: 1px solid #e1e3e6; color: #9aa0a6; font-size: 9.5px; font-family: 'Geist Mono', monospace; }
.dark .xl-rownum { background: #222229; border-color: #2d2d35; color: #76767f; }
.xl-headrow td { background: #f7f8fa; font-weight: 700; color: #3c4043; border: 1px solid #e1e3e6; padding: 5px 9px; font-size: 11px; }
.dark .xl-headrow td { background: #1f1f26; color: #cfcfd6; border-color: #2d2d35; }
.xl-cell { border: 1px solid #e7e8ea; padding: 6px 9px; color: #3c4043; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dark .xl-cell { border-color: #29292f; color: #cdced4; }
.xl-num { text-align: right; font-variant-numeric: tabular-nums; }
.xl-inv { color: #1a73c7; }
.dark .xl-inv { color: #6ab0ff; }
.xl-row td { transition: background .35s ease; }
.xl-row.over td { background: #fdf0f0; }
.dark .xl-row.over td { background: #2c1c1f; }
.xl-days.xl-bad { color: #d23b3b; font-weight: 700; }
.xl-sel { box-shadow: inset 0 0 0 2px #1a7245; position: relative; z-index: 1; }
.xl-status { width: 130px; }
.xl-sent { color: #157347; font-weight: 600; }
.dark .xl-sent { color: #4ec98a; }
.xl-pending { color: #c0863b; font-style: italic; }
.xl-toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 10px); opacity: 0;
  background: #157347; color: #fff; font-family: 'Manrope', sans-serif; font-size: 12.5px; font-weight: 600;
  padding: 9px 15px; border-radius: 9px; box-shadow: 0 12px 28px -10px rgba(21,115,71,.55); white-space: nowrap;
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.xl-toast b { font-weight: 800; }
.xl-toast.in { opacity: 1; transform: translate(-50%, 0); }

/* Excel zoom: spotlight the flagged rows while focused on the action columns */
.xl-zoom.zoomed .xl-row:not(.over) td { opacity: .38; }
.xl-zoom .xl-row td { transition: background .35s ease, opacity .5s ease; }
.xl-mono { font-family: 'Geist Mono', monospace; font-size: 11px; color: #5a6066; }
.dark .xl-mono { color: #9a9aa6; }

/* ── document intelligence card: scan a doc, lift facts into structured fields ── */
.wf-di .di-body { display: flex; min-height: 326px; }
.di-doc { flex: 1.3; padding: 13px; background: var(--bg-2); border-right: 1px solid var(--border); }
.di-paper { position: relative; height: 100%; background: #fff; border: 1px solid #e6e7ea; border-radius: 6px;
  box-shadow: 0 8px 22px -12px rgba(20,16,45,.2); padding: 13px 15px; overflow: hidden; }
.dark .di-paper { background: #16161b; border-color: #2a2a31; }
.di-doc-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid #2a2a2a; padding-bottom: 8px; margin-bottom: 9px; }
.dark .di-doc-head { border-color: #c8c8d0; }
.di-doc-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .02em; color: #222; }
.dark .di-doc-title { color: #e8e8ee; }
.di-doc-meta { font-family: 'Geist Mono', monospace; font-size: 9.5px; color: #9aa0a6; }
.di-field { display: flex; gap: 10px; align-items: baseline; padding: 5px 8px; margin: 1px -8px; border-radius: 5px; transition: background .35s ease, box-shadow .35s ease; }
.di-fl { width: 104px; flex-shrink: 0; color: #9298a0; font-family: 'Geist Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.di-fv { color: #2b2f36; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 12.5px; }
.dark .di-fv { color: #cfcfd6; }
.di-field.lit, .di-lines.lit, .di-total.lit { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.di-field.active, .di-lines.active, .di-total.active { background: color-mix(in oklab, var(--accent) 15%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.di-lines { margin: 8px -8px; padding: 6px 8px; border-radius: 5px; transition: background .35s ease, box-shadow .35s ease; }
.di-line { display: grid; grid-template-columns: 52px 1fr 72px; gap: 8px; font-size: 11.5px; padding: 3px 0; color: #3c4043; }
.dark .di-line { color: #c4c5cc; }
.di-line-h { color: #9aa0a6; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #ededed; padding-bottom: 3px; }
.dark .di-line-h { border-color: #2a2a31; }
.di-cpt { font-family: 'Geist Mono', monospace; color: var(--accent-text); }
.di-amt { font-family: 'Geist Mono', monospace; text-align: right; }
.di-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 12px; color: #222; border-top: 1.5px solid #2a2a2a; margin-top: 8px; padding: 7px 8px 0; }
.dark .di-total { border-color: #c8c8d0; color: #e8e8ee; }
.di-scan { position: absolute; left: 0; right: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px 2px color-mix(in oklab, var(--accent) 55%, transparent);
  transition: top .56s cubic-bezier(.4,0,.2,1); }
.di-shade { position: absolute; left: 0; right: 0; top: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 11%, transparent), color-mix(in oklab, var(--accent) 3%, transparent));
  transition: height .56s cubic-bezier(.4,0,.2,1); }

.di-out { flex: 1; padding: 15px 15px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.di-out-head { font-family: 'Geist Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-4); margin-bottom: 2px; }
.di-card { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-2);
  opacity: 0; transform: translateX(12px); transition: opacity .42s ease, transform .46s cubic-bezier(.2,.8,.2,1); }
.di-card.in { opacity: 1; transform: none; }
.di-ck { font-family: 'Geist Mono', monospace; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-4); width: 78px; flex-shrink: 0; }
.di-cv { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 12.5px; color: var(--fg); flex: 1; }
.di-tick { color: #157347; font-weight: 700; font-size: 12px; }
.dark .di-tick { color: #4ec98a; }
.di-insight { margin-top: auto; display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 10px;
  background: color-mix(in oklab, #d97706 13%, var(--bg)); border: 1px solid color-mix(in oklab, #d97706 42%, transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.di-insight.in { opacity: 1; transform: none; }
.di-flag { font-family: 'Geist Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #b45309; font-weight: 600; }
.dark .di-flag { color: #f0a553; }
.di-itext { font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--fg-2); line-height: 1.4; }

@media (max-width: 600px) { .di-fl { width: 84px; } .di-ck { width: 64px; } }

/* ── workflow execution: per-step narration callout, done-checks, active focus ── */
.wf-callout {
  position: absolute; z-index: 6; max-width: 210px; pointer-events: none;
  background: var(--bg); border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--border)); color: var(--fg-2);
  font-family: 'Manrope', sans-serif; font-size: 11.5px; font-weight: 500; line-height: 1.4;
  padding: 8px 11px; border-radius: 10px; box-shadow: 0 14px 32px -12px rgba(26,19,64,.42);
  transition: left .5s cubic-bezier(.4,0,.2,1), top .5s cubic-bezier(.4,0,.2,1);
}
.wf-callout.above { transform: translate(-50%, calc(-100% - 30px)); }
.wf-callout.below { transform: translate(-50%, 46px); }
.wf-callout-step { display: block; font-family: 'Geist Mono', monospace; font-size: 9px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--accent-text); margin-bottom: 3px; }

/* done check badge (hidden until a node has executed) */
.wf-check { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.wf-check circle { fill: #2bb673; }
.wf-check path { stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf-node.is-done .wf-check { opacity: 1; transform: scale(1); }

/* active step focus */
.wf-node .wf-chip { transition: stroke .25s ease, filter .25s ease; }
.wf-node.is-active .wf-chip { stroke: var(--accent); filter: drop-shadow(0 0 7px color-mix(in oklab, var(--accent) 55%, transparent)); }
.wf-node.is-active.wf-op .wf-op-chip, .wf-node.is-active.wf-decision .wf-dec-chip { fill: color-mix(in oklab, var(--accent) 18%, var(--bg)); }
.wf-node:not(.is-done):not(.is-active) .wf-chip { opacity: .92; }

/* ── workflow run: modern vertical execution stepper ── */
.wr-body { position: relative; padding: 12px 16px; display: flex; flex-direction: column; }
.wr-step { position: relative; display: flex; align-items: center; gap: 13px; padding: 9px 11px; border-radius: 12px; transition: background .35s ease; }
.wr-step.is-run { background: color-mix(in oklab, var(--accent) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 18%, transparent); }
/* timeline connector through the status nodes */
.wr-step:not(:last-child)::before { content: ''; position: absolute; left: 22px; top: 28px; bottom: -14px; width: 2px; background: var(--border-2); z-index: 0; border-radius: 2px; transition: background .4s ease; }
.wr-step.is-done:not(:last-child)::before { background: color-mix(in oklab, var(--accent) 60%, transparent); }

.wr-node { position: relative; z-index: 1; width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.wr-wait { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border-2); background: var(--bg); }
.wr-spin { width: 17px; height: 17px; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--accent) 22%, transparent); border-top-color: var(--accent); animation: wr-spin .7s linear infinite; }
@keyframes wr-spin { to { transform: rotate(360deg); } }
.wr-check { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.wr-check path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.wr-tile { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: #fff; border: 1px solid rgba(17,17,22,.10);
  box-shadow: 0 2px 7px -3px rgba(20,16,45,.18); display: flex; align-items: center; justify-content: center; transition: transform .3s ease; }
.dark .wr-tile { background: #f6f6f8; }
.wr-step.is-run .wr-tile { transform: scale(1.06); }
.wr-tile img { max-width: 24px; max-height: 22px; width: auto; height: auto; object-fit: contain; }
.wr-tile-op { background: color-mix(in oklab, var(--accent) 11%, var(--bg)); border-color: color-mix(in oklab, var(--accent) 32%, transparent); box-shadow: none; }
.wr-glyph { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.wr-text { flex: 1; min-width: 0; }
.wr-title { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 13px; color: var(--fg); letter-spacing: -.01em; }
.wr-step.is-wait .wr-title { color: var(--fg-3); }
.wr-desc { font-family: 'Manrope', sans-serif; font-size: 11.5px; color: var(--fg-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-step.is-wait .wr-desc { opacity: .5; }

.wr-status { font-family: 'Geist Mono', monospace; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-4); flex-shrink: 0; }
.wr-step.is-done .wr-status { color: #2bb673; }
.wr-step.is-run .wr-status { color: var(--accent-text); }
.wr-run i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin-left: 2px; animation: wr-blink 1s infinite; }
.wr-run i:nth-child(2) { animation-delay: .18s; } .wr-run i:nth-child(3) { animation-delay: .36s; }
@keyframes wr-blink { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
.wf-pip.done { background: #2bb673; animation: none; box-shadow: none; }
