/* Strategy Partners — shared styles */
:root {
  --bg: #0b0e14;
  --surface: #121722;
  --surface-2: #1a2130;
  --border: #232c3f;
  --text: #e8ecf4;
  --text-dim: #9aa5b8;
  --accent: #4f8ef7;
  --accent-2: #35c48d;
  --warn: #f0a848;
  --bad: #e05f5f;
  --radius: 10px;
  --max: 1060px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,20,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: .3px; }
.brand span { color: var(--accent); }
.nav a.link { color: var(--text-dim); font-size: .95rem; }
.nav a.link:hover, .nav a.link.active { color: var(--text); text-decoration: none; }
.nav .cta-mini {
  margin-left: auto; background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: 8px; font-size: .9rem; font-weight: 600;
}
.nav .cta-mini:hover { text-decoration: none; filter: brightness(1.1); }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: 1.7rem; margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
.lede { color: var(--text-dim); font-size: 1.15rem; max-width: 46rem; }
.kicker {
  color: var(--accent); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
}

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero h1 { max-width: 44rem; }
.hero .accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 9px;
  font-weight: 600; font-size: 1rem; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); text-decoration: none; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Cards */
.grid { display: grid; gap: 18px; margin-top: 30px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card p { color: var(--text-dim); font-size: .97rem; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2);
  margin-bottom: 8px;
}
.card .tag.roadmap { color: var(--warn); }

/* Stats */
.stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 40px; }
.stat .num { font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.stat .lbl { color: var(--text-dim); font-size: .88rem; }

/* Case study */
.case { border-left: 3px solid var(--accent); padding-left: 22px; margin-top: 36px; }
.case .meta { color: var(--text-dim); font-size: .9rem; margin-bottom: 6px; }
ul.plain { list-style: none; }
ul.plain li { padding-left: 22px; position: relative; margin-bottom: 8px; color: var(--text-dim); }
ul.plain li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* Audit tool */
.audit-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-top: 28px;
}
.audit-box label { display: block; font-size: .88rem; color: var(--text-dim); margin: 14px 0 4px; }
.audit-box select, .audit-box input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-size: .95rem;
}
.audit-grade {
  font-size: 3.2rem; font-weight: 800; line-height: 1;
}
.audit-result { display: none; margin-top: 26px; border-top: 1px solid var(--border); padding-top: 22px; }
.audit-result.show { display: block; }
.bar-track { background: var(--surface-2); border-radius: 6px; height: 10px; margin: 6px 0 14px; }
.bar-fill { height: 10px; border-radius: 6px; background: var(--accent); transition: width .6s ease; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--text-dim); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Thinking background dots */
.think-bg { position: absolute; inset: 0; z-index: -1; opacity: .35; }

@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  .hero { padding: 64px 0 48px; }
}

/* ===== v2: imagery & case studies ===== */
.frame {
  background: #0d1119; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.frame .chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; background: #161c29; border-bottom: 1px solid var(--border);
}
.frame .chrome i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.frame .chrome i:nth-child(1){ background:#e0645f; } .frame .chrome i:nth-child(2){ background:#e8b93e; } .frame .chrome i:nth-child(3){ background:#43c06a; }
.frame .chrome span { margin-left: 10px; color: var(--text-dim); font-size: .74rem; font-family: monospace; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.frame img { display: block; width: 100%; height: auto; }
.frame.hoverable { transition: transform .25s ease, box-shadow .25s ease; }
.frame.hoverable:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,.6); }

.case-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px){ .case-hero { grid-template-columns: 1fr; } }

.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); margin-top: 34px; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--text-dim); font-size: .86rem; margin-top: 9px; padding-left: 2px; }

.workcard { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.workcard img { width: 100%; height: 260px; object-fit: cover; object-position: top; display: block; transition: transform .4s ease; }
.workcard:hover img { transform: scale(1.04); }
.workcard .label {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(6,9,14,.94) 60%);
}
.workcard .label h3 { margin: 0; color: #fff; }
.workcard .label p { margin: 3px 0 0; color: var(--text-dim); font-size: .88rem; }
.workcard:hover { text-decoration: none; }

.metric-strip { display: flex; gap: 30px; flex-wrap: wrap; margin: 26px 0 6px; }
.metric-strip .m { border-left: 3px solid var(--accent); padding-left: 14px; }
.metric-strip .m b { display: block; font-size: 1.35rem; color: var(--text); }
.metric-strip .m span { color: var(--text-dim); font-size: .84rem; }

/* Animated workflow (home) */
.flow-wrap { margin-top: 40px; overflow-x: auto; }
.flow-svg { min-width: 900px; width: 100%; }
.flow-node { fill: var(--surface); stroke: var(--border); }
.flow-node.hot { stroke: var(--accent); }
.flow-label { fill: var(--text); font: 600 13px "Segoe UI", sans-serif; }
.flow-sub { fill: var(--text-dim); font: 11px "Segoe UI", sans-serif; }
.flow-line { stroke: var(--border); stroke-width: 2; fill: none; }
.pulse { fill: var(--accent); }
.pulse2 { fill: var(--accent-2); }

/* ===== v3: "thinking" system UI ===== */

/* faint grid overlay across the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(79,142,247,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
}

/* terminal status ticker, sits under the nav */
.sys-ticker {
  border-top: 1px solid var(--border);
  background: #0a0d13;
  overflow: hidden;
  white-space: nowrap;
}
.sys-ticker .wrap { padding: 6px 20px; display: flex; align-items: center; gap: 8px; }
.sys-ticker .prompt { color: var(--accent-2); font-family: "Consolas", "SF Mono", monospace; font-size: .78rem; flex-shrink: 0; }
.sys-ticker .line {
  color: var(--text-dim); font-family: "Consolas", "SF Mono", monospace; font-size: .78rem;
  letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis;
}
.sys-ticker .cursor { color: var(--accent-2); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* crosshair corner accents for data-module cards */
.card, .frame { position: relative; }
.card::before, .card::after, .frame::before, .frame::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 1px solid var(--accent); opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.card::before, .frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card::after, .frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.card:hover::before, .card:hover::after,
.frame:hover::before, .frame:hover::after { opacity: .85; }

/* mouse-tracked glare on cards */
.card, .workcard {
  --mx: 50%; --my: 50%;
  background-image: radial-gradient(320px circle at var(--mx) var(--my), rgba(79,142,247,.10), transparent 60%);
  background-color: var(--surface);
  background-blend-mode: normal;
}
.workcard { --mx: 50%; --my: 50%; }
.workcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(79,142,247,.16), transparent 60%);
  opacity: 0; transition: opacity .25s ease; z-index: 1;
}
.workcard:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .sys-ticker .cursor { animation: none; }
  .card, .workcard { background-image: none !important; }
  .workcard::after { display: none; }
  .card::before, .card::after, .frame::before, .frame::after { display: none; }
}
