/* ThinkStacks — clean, mobile-first design system (2026-09).
   Base styles are for phones; min-width queries add layout for larger screens.
   Light by default, dark via the system setting or the header toggle. */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg:          #ffffff;
  --bg-alt:      #f6f7fb;
  --surface:     #ffffff;
  --surface-2:   #f2f3f8;
  --ink:         #0c1024;
  --ink-2:       #2b3146;
  --muted:       #586074;
  --muted-2:     #858c9e;
  --border:      #e6e8f0;
  --border-2:    #d6d9e4;
  --primary:     #4f46e5;
  --primary-ink: #ffffff;
  --primary-2:   #4338ca;
  --primary-3:   #5b46e0;
  --primary-soft:#eef0ff;
  --gradient:    linear-gradient(120deg, #4f46e5 0%, #8b3fe6 100%);
  --success:     #0f9f6e;
  --danger:      #d93b52;
  --whatsapp:    #1fb356;
  --shadow-sm:   0 1px 2px rgba(15, 20, 40, .05);
  --shadow:      0 1px 2px rgba(15, 20, 40, .04), 0 10px 28px rgba(15, 20, 40, .07);
  --header-bg:   rgba(255, 255, 255, .86);
  --radius:      14px;
  --radius-lg:   20px;
  --font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bar-h:       0px;           /* mobile action bar height, set below */

  /* names used by inline styles in the page HTML */
  --bg-dark-2:   var(--bg-alt);
  --card-bg:     var(--surface);
  --card-hover:  var(--surface);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0d14; --bg-alt: #0f121b; --surface: #131725; --surface-2: #1a1f2f;
    --ink: #eef0f7; --ink-2: #cfd3e1; --muted: #a2a9bb; --muted-2: #767e92;
    --border: #232839; --border-2: #30374b;
    --primary: #7c83f7; --primary-2: #959bf9; --primary-3: #a794fa; --primary-soft: rgba(124, 131, 247, .13);
    --gradient: linear-gradient(120deg, #7c83f7 0%, #b27cf8 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
    --header-bg: rgba(11, 13, 20, .84);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d14; --bg-alt: #0f121b; --surface: #131725; --surface-2: #1a1f2f;
  --ink: #eef0f7; --ink-2: #cfd3e1; --muted: #a2a9bb; --muted-2: #767e92;
  --border: #232839; --border-2: #30374b;
  --primary: #7c83f7; --primary-2: #959bf9; --primary-3: #a794fa; --primary-soft: rgba(124, 131, 247, .13);
  --gradient: linear-gradient(120deg, #7c83f7 0%, #b27cf8 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  --header-bg: rgba(11, 13, 20, .84);
}

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -0.022em; font-weight: 750; }
h1 { font-size: clamp(34px, 8.6vw, 60px); font-weight: 800; letter-spacing: -0.032em; }
h2 { font-size: clamp(26px, 6vw, 40px); letter-spacing: -0.028em; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p  { margin: 0 0 12px; color: var(--muted); }
strong { color: var(--ink); font-weight: 650; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-3);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section   { padding: 52px 0; position: relative; }
.section-tight { padding: 40px 0; }

.section-title { max-width: 720px; margin: 0 0 32px; }
.section-title h2 { margin: 12px 0 12px; }
.section-title p  { font-size: 16.5px; margin: 0; }
[style*="text-align:center"] .eyebrow, .section-title.center, .cs-related-h { text-align: center; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border-radius: 12px; border: 1px solid transparent;
  font: 650 15.5px/1 var(--font);
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn span { transition: transform .15s; }
.btn:hover span { transform: translateX(3px); }
.btn.primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 28%, transparent); }
.btn.primary:hover { background: var(--primary-2); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--border-2); }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn:active { transform: scale(.98); }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 12px; height: 64px; }
.nav .brand { display: flex; align-items: center; margin-right: auto; }
.nav .brand-mark img { height: 30px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark  { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark  { display: block; }
}
.nav > ul { display: none; }
.nav .cta { display: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--ink); cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

/* mobile menu sheet */
.mobile-menu {
  position: fixed; inset: 64px 0 0 0; z-index: 55;
  background: var(--bg);
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.mobile-menu.open { visibility: visible; opacity: 1; transform: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 4px;
  border-bottom: 1px solid var(--border);
  font-size: 18px; font-weight: 650; color: var(--ink);
}
.mobile-menu li a::after { content: "→"; color: var(--muted-2); font-weight: 500; }
.mobile-menu li a.active { color: var(--primary-3); }
.mobile-menu .menu-label { margin: 22px 4px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.mobile-menu .cta { display: flex; margin-top: 24px; width: 100%; }
.mobile-menu .menu-contact { margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.mobile-menu .menu-contact a { color: var(--ink); font-weight: 600; }
body.menu-open { overflow: hidden; }

/* mobile bottom action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; border-radius: 12px;
  font-size: 14.5px; font-weight: 650; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border);
}
.action-bar a svg { width: 18px; height: 18px; }
.action-bar .wa svg { color: var(--whatsapp); }
.action-bar .book { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
:root { --bar-h: calc(69px + env(safe-area-inset-bottom)); }
.wa-float { display: none; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { padding: 36px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero + .section { padding-top: 0; }
.hero h1 { margin: 14px 0 16px; }
.hero h1 br { display: none; }
.hero .lead, .lead { font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 620px; margin: 0 0 26px; }
.hero .buttons, .buttons { display: grid; gap: 10px; }
.hero-visual img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.founder-hint {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.founder-avatar { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.founder-avatar svg { width: 100%; height: 100%; display: block; }
.founder-line { font-size: 14.5px; color: var(--ink-2); }
.founder-link { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 650; color: var(--primary-3); }

/* ── Stats ─────────────────────────────────────────────────────────── */
.stat-strip { padding: 8px 0 40px; }
.stat-strip .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px;
}
.stat .n { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.stat .l { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ── Logo bar + trust ──────────────────────────────────────────────── */
.logo-bar { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logo-bar-label, .tech-strip-label {
  margin: 0 0 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2);
}
.logo-strip {
  display: flex; gap: 28px; align-items: center;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 -20px; padding: 4px 20px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
          mask: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}
.logo-strip::-webkit-scrollbar { display: none; }
.client-logo { height: 38px; width: auto; flex-shrink: 0; opacity: .72; filter: grayscale(1) brightness(0); }
:root[data-theme="dark"] .client-logo { filter: grayscale(1) brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .client-logo { filter: grayscale(1) brightness(0) invert(1); } }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 13.5px; color: var(--muted);
}
.trust-badge strong { color: var(--ink); }
.trust-badge svg { width: 16px; height: 16px; }
.trust-badge .stars { color: #e9a400; }
.trust-note { display: none; }

/* ── Cards ─────────────────────────────────────────────────────────── */
.card, .value-card, .case-card, .quote-card, .blog-card, .cs-feature, .cs-outcome, .ind,
.group-card, .member, .plan, .proj-card, .cs-related-card, .faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card:hover, .blog-card:hover, .group-card:hover, .proj-card:hover, .cs-related-card:hover, .case-card:hover {
  border-color: var(--border-2); box-shadow: var(--shadow);
}

.card-grid { display: grid; gap: 12px; }
.card {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start;
  padding: 18px;
}
.card .icon-tile {
  grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center;
  font-size: 18px !important; font-weight: 800; color: var(--primary-3) !important;
}
.card .icon-tile img, .card .icon-tile picture { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin: 2px 0 4px; font-size: 17px; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; }
.card > :not(.icon-tile):only-child, .card:not(:has(.icon-tile)) { grid-column: 1 / -1; }
.card:not(:has(.icon-tile)) { display: block; }

/* feature list (BizOS, case studies) */
.cs-features { display: grid; gap: 12px; }
.cs-feature { padding: 18px; }
.cs-feature h4 { margin: 0 0 6px; }
.cs-feature p { margin: 0; font-size: 15px; line-height: 1.55; }

/* tech pills */
.tech-strip-section { padding-top: 0 !important; }
.tech-strip, .stack, .cs-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-pill, .stack span {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 13.5px; font-weight: 550; color: var(--ink-2);
}
.stack span { min-height: 28px; font-size: 12.5px; background: var(--surface-2); border-color: transparent; }

/* outcome numbers */
.value-grid { display: grid; gap: 12px; }
.value-card { padding: 20px; }
.value-num { font-size: 36px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--primary-3); margin-bottom: 12px; }
.value-num span { font-size: 22px; margin-left: 2px; }
.value-card h4 { margin: 0 0 6px; }
.value-card p { margin: 0; font-size: 15px; line-height: 1.55; }

/* industries: swipe row on phones */
.ind-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -20px; padding: 2px 20px 8px; scroll-padding: 0 20px;
}
.ind-grid::-webkit-scrollbar { display: none; }
.ind { overflow: hidden; scroll-snap-align: start; }
.ind-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.ind-body { padding: 14px 16px 16px; }
.ind h4 { margin: 0 0 4px; }
.ind p { margin: 0; font-size: 14px; line-height: 1.5; }

/* case studies */
.case-grid { display: grid; gap: 14px; }
.case-card { padding: 22px 20px; display: flex; flex-direction: column; }
.case-tag, .cs-related-tag, .proj-card .meta, .member .role, .blog-meta, .post-hero .meta {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-3);
}
.case-tag { margin-bottom: 10px; }
.case-card h3 { font-size: 21px; margin: 0 0 8px; }
.case-card > p { font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--border); }
.case-metric b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.case-metric span { display: block; font-size: 12px; color: var(--muted-2); line-height: 1.35; margin-top: 2px; }
.case-link, .proj-card .link, .founder-link { color: var(--primary-3); font-weight: 650; font-size: 14.5px; }
.case-link { margin-top: 14px; }

/* group companies */
.group-grid { display: grid; gap: 12px; }
.group-card { display: block; padding: 20px; }
.group-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.group-h h3 { font-size: 19px; }
.pill {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-3); font-size: 12px; font-weight: 700;
}
.group-nums { display: flex; gap: 24px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.group-nums > div { display: flex; flex-direction: column; }
.group-nums b { font-size: 20px; font-weight: 800; color: var(--ink); }
.group-nums span { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }
.group-card p { margin: 0; font-size: 15px; line-height: 1.55; }

/* testimonials: swipe row on phones */
.quote-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -20px; padding: 2px 20px 8px; scroll-padding: 0 20px;
}
.quote-grid::-webkit-scrollbar { display: none; }
.quote-card { margin: 0; padding: 22px 20px; scroll-snap-align: start; display: flex; flex-direction: column; }
.quote-mark { color: var(--primary-3); opacity: .5; margin-bottom: 8px; }
.quote-body { font-size: 16.5px; line-height: 1.6; color: var(--ink); margin: 0 0 18px; }
.quote-attr { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-style: normal; }
.quote-avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.quote-attr strong { display: block; font-size: 14px; }
.quote-attr span { display: block; font-size: 13px; color: var(--muted-2); }
.quote-footnote { font-size: 13px; color: var(--muted-2); margin: 16px 0 0; }

/* FAQ */
.faq-list { display: grid; gap: 8px; }
.faq-item { box-shadow: none; }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  min-height: 58px; padding: 16px 52px 16px 18px;
  font-size: 16px; font-weight: 650; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2); font-size: 20px; font-weight: 500; line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 18px 18px; margin: 0; font-size: 15px; line-height: 1.65; }
.faq-item a { color: var(--primary-3); font-weight: 650; }

/* ask AI */
.ask-ai-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 20px; }
.ask-ai-h h2 { margin: 12px 0 8px; font-size: clamp(24px, 5.4vw, 32px); }
.ask-ai-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ask-ai-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 8px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 14.5px; font-weight: 650; color: var(--ink);
}
.ai-mark { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ── Inner pages ───────────────────────────────────────────────────── */
.cs-hero, .sol-hero, .post-hero { padding: 36px 0 24px; }
.cs-hero h1, .sol-hero h1, .post-hero h1 { font-size: clamp(30px, 7.6vw, 52px); margin: 14px 0 16px; }
.cs-hero .back { width: fit-content;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.cs-hero .eyebrow { margin-top: 4px; }
.sol-badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; margin-bottom: 14px;
  border-radius: 999px; background: var(--primary-soft); color: var(--primary-3);
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.cs-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0 0;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.cs-meta > div { background: var(--surface); padding: 14px 16px; }
.cs-meta dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.cs-meta dd { margin: 0; font-size: 15px; font-weight: 650; color: var(--ink); }
.cs-block { padding: 36px 0; }
.cs-block h2 { font-size: clamp(22px, 5vw, 30px); margin-bottom: 14px; }
.cs-block > .container > p { max-width: 760px; font-size: 16.5px; }
.cs-two-col { display: grid; gap: 24px; }
.cs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cs-list li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.cs-list li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b46e0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cs-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cs-outcome { padding: 18px 14px; }
.cs-outcome b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--primary-3); margin-bottom: 4px; }
.cs-outcome span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.cs-pullquote { margin: 16px 0; padding: 22px 20px; border-left: 3px solid var(--primary); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.cs-pullquote p { font-size: 18px; line-height: 1.55; color: var(--ink); margin: 0 0 10px; font-weight: 550; }
.cs-pullquote footer { font-size: 14px; color: var(--muted-2); font-style: normal; }
.cs-cta { padding: 48px 0 64px; }
.cs-cta h2 { margin-bottom: 12px; }
.cs-cta .btn { margin-top: 16px; }
.cs-related { padding: 40px 0 56px; border-top: 1px solid var(--border); }
.cs-related-h { margin-bottom: 20px; }
.cs-related-grid { display: grid; gap: 12px; }
.cs-related-card { display: block; padding: 18px; }
.cs-related-card h4 { margin: 4px 0 4px; }
.cs-related-card p { margin: 0; font-size: 14.5px; }

/* projects */
.proj-grid { display: grid; gap: 16px; }
.proj-card { overflow: hidden; display: flex; flex-direction: column; }
.proj-card .thumb { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.proj-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-card .body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.proj-card h3 { font-size: 20px; margin: 6px 0 8px; }
.proj-card p { font-size: 15px; line-height: 1.55; margin: 0 0 12px; flex: 1; }
.proj-card .stack { margin: 4px 0 12px; }

/* services list */
.svc-item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--border); }
.svc-item:last-child { border-bottom: 0; }
.svc-item .img { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.svc-item .img img { width: 100%; height: 100%; object-fit: cover; }
.svc-item h3 { font-size: 20px; margin: 0 0 6px; }
.svc-item p { font-size: 15.5px; line-height: 1.6; margin: 0; }
.svc-item .stack { margin-top: 12px; }

/* team */
.team-grid { display: grid; gap: 12px; }
.member { padding: 20px; display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; align-items: center; }
.member .avatar {
  grid-row: span 3; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px;
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 18px; margin: 2px 0 8px; }
.member:not(:has(.avatar)) { display: block; }
.member:not(:has(.avatar)) h3 { margin: 6px 0 12px; }
.member .linkedin {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--ink);
}
.member .linkedin svg { width: 14px; height: 14px; color: #0a66c2; }

/* pricing */
.pricing-grid { display: grid; gap: 14px; }
.plan { padding: 24px 20px; position: relative; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan .popular-badge {
  position: absolute; top: -12px; left: 20px; padding: 4px 10px; border-radius: 999px;
  background: var(--primary); color: var(--primary-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.plan h3 { font-size: 20px; margin: 0 0 4px; }
.plan .plan-audience { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--ink-2); }
.plan li:last-child { border-bottom: 0; }
.plan li svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }
.plan .btn { width: 100%; }
.bz-price { font-size: 30px; font-weight: 800; color: var(--ink); margin: 6px 0 4px; }
.bz-price small { font-size: 13px; font-weight: 500; color: var(--muted); }

/* blog */
.blog-list { display: grid; gap: 14px; }
.blog-card { display: block; overflow: hidden; }
.blog-cover { aspect-ratio: 16 / 8; background: var(--gradient); }
.blog-body { padding: 18px; }
.blog-body h3 { font-size: 18.5px; line-height: 1.35; margin: 6px 0 6px; }
.blog-body p { margin: 0; font-size: 15px; }
.post-body { padding: 8px 0 56px; }
.post-body .container { max-width: 720px; }
.post-body h2 { font-size: clamp(22px, 5.2vw, 28px); margin: 36px 0 12px; }
.post-body h3 { font-size: 19px; margin: 26px 0 10px; }
.post-body p, .post-body ul, .post-body ol { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin-bottom: 18px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--primary-3); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post-body code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.post-body blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--primary); color: var(--ink); font-size: 18px; }

/* forms */
.contact-grid { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 650; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--muted-2); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface);
  font: 16px/1.4 var(--font); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft);
}
.form-row { display: grid; gap: 0 14px; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 16px; }
.alert.success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.alert.error { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0 24px; font-size: 15px; color: var(--muted); }
.site-footer .row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-bottom: 28px; }
.site-footer .row > div:first-child { grid-column: 1 / -1; }
.site-footer .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.site-footer .brand img { height: 30px; width: auto; }
.site-footer .tagline { font-size: 15px; margin: 0; max-width: 380px; }
.site-footer h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer li { min-height: 32px; display: flex; align-items: center; }
.site-footer a:hover { color: var(--ink); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted-2); }

/* ── Motion ────────────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .fade-in { opacity: 1; transform: none; }
}

/* ── ≥ 640px ───────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .container { padding: 0 28px; }
  .hero .buttons, .buttons { display: flex; flex-wrap: wrap; }
  .stat-strip .row { grid-template-columns: repeat(4, 1fr); }
  .card-grid, .cs-features, .value-grid, .group-grid, .case-grid, .blog-list, .cs-related-grid, .team-grid, .proj-grid { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-auto-columns: 44%; margin: 0 -28px; padding: 2px 28px 8px; }
  .quote-grid { grid-auto-columns: 60%; margin: 0 -28px; padding: 2px 28px 8px; }
  .logo-strip { margin: 0 -28px; padding: 4px 28px; }
  .cs-meta { grid-template-columns: repeat(4, 1fr); }
  .cs-outcomes { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .svc-item { grid-template-columns: 96px 1fr; gap: 24px; }
  .svc-item .img { width: 96px; height: 96px; }
  .ask-ai-card { padding: 36px 32px; }
}

/* ── ≥ 900px ───────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .section { padding: 84px 0; }
  .nav .brand-mark img { height: 34px; }
  .client-logo { height: 44px; }
  .section-title { margin-bottom: 44px; }
  .hero { padding: 72px 0 72px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .hero h1 br { display: inline; }
  .cs-hero, .sol-hero, .post-hero { padding: 72px 0 32px; }
  .cs-two-col { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .site-footer .row { grid-template-columns: 2fr repeat(3, 1fr); }
  .site-footer .row > div:first-child { grid-column: auto; }
}

/* ── ≥ 1024px: desktop navigation ─────────────────────────────────── */
@media (min-width: 1024px) {
  :root { --bar-h: 0px; }
  .action-bar { display: none; }
  .wa-float {
    display: grid; place-items: center; position: fixed; right: 24px; bottom: 24px; z-index: 40;
    width: 52px; height: 52px; border-radius: 50%; background: var(--whatsapp); color: #fff;
    box-shadow: 0 10px 26px rgba(31, 179, 86, .35);
  }
  .wa-float svg { width: 26px; height: 26px; }
  .nav { height: 72px; gap: 20px; }
  .mobile-toggle, .mobile-menu { display: none !important; }
  .nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .nav > ul > li > a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
  .nav > ul > li > a:hover { color: var(--ink); background: var(--surface-2); }
  .nav > ul > li > a.active { color: var(--ink); }
  .nav .cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 11px; background: var(--primary); color: var(--primary-ink); font-size: 14.5px; font-weight: 650; }
  .nav .cta:hover { background: var(--primary-2); }
  .nav .has-sub { position: relative; }
  .nav .has-sub > .sub {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 8px; list-style: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
  }
  .nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
  .nav .has-sub > .sub a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
  .nav .has-sub > .sub a:hover { background: var(--surface-2); color: var(--ink); }
  .card-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .card-grid .card { display: block; padding: 22px; }
  .card-grid .card .icon-tile { width: 64px; height: 64px; margin-bottom: 16px; }
  .cs-features { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .value-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .ind-grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .quote-grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .logo-strip { flex-wrap: wrap; justify-content: space-between; overflow: visible; margin: 0; padding: 0; -webkit-mask: none; mask: none; }
  .blog-list, .cs-related-grid, .team-grid { grid-template-columns: repeat(3, 1fr); }
  .bz-plans { grid-template-columns: repeat(5, 1fr) !important; }
}

/* ── 3D + motion layer ─────────────────────────────────────────────── */
/* hero 3D stack (three.js); the image stays underneath as the no-WebGL fallback */
.hero-visual[data-hero3d] { position: relative; aspect-ratio: 1 / .92; max-height: 460px; width: 100%; }
.hero-visual[data-hero3d] > img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: opacity .6s; }
.hero-visual.is-3d > img { opacity: 0; pointer-events: none; }
.hero3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.hero3d-canvas:active { cursor: grabbing; }
.hero-visual[data-hero3d]::after {
  content: "Drag to rotate"; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted-2); opacity: 0; transition: opacity .6s;
}
.hero-visual.is-3d::after { opacity: 1; }
@media (hover: none) { .hero-visual[data-hero3d]::after { content: "Swipe to rotate"; } }

/* headline words rise in */
.split .w { display: inline-block; opacity: 0; transform: translateY(.55em) rotateX(-55deg); transform-origin: 50% 100%;
  animation: word-in .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 55ms + 80ms); }
.split { perspective: 800px; }
.gradient-text .w, .split .gradient-text .w { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes word-in { to { opacity: 1; transform: none; } }

/* reveal with a little depth */
.fade-in { transform: perspective(900px) translateY(18px) rotateX(9deg); transform-origin: 50% 0; }
.fade-in.visible { transform: none; }
.eyebrow::before { transition: width .6s .2s ease; }
.fade-in:not(.visible) .eyebrow::before, .fade-in.eyebrow:not(.visible)::before { width: 0; }

/* pointer tilt + glare on cards (fine pointers only, set up in site.js) */
.tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 14%, transparent), transparent 45%);
}
.tilt:hover::after { opacity: 1; }
.tilt.tilting { transition: transform .08s linear, box-shadow .2s, border-color .2s; }
.tilt:not(.tilting) { transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s, opacity .5s; }

/* scroll progress under the header */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 70; transform-origin: 0 50%; transform: scaleX(0); background: var(--gradient); pointer-events: none; }

/* client logo marquee */
.logo-strip.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 44px; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.logo-strip.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 22px)); } }
@media (min-width: 1024px) {
  .logo-strip.marquee { -webkit-mask: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent); mask: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent); }
}

/* touch feedback */
@media (hover: none) {
  .card:active, .case-card:active, .group-card:active, .blog-card:active, .proj-card:active, .cs-related-card:active, .ind:active { transform: scale(.985); }
}

@media (prefers-reduced-motion: reduce) {
  .split .w { opacity: 1; transform: none; animation: none; }
  .fade-in { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .scroll-progress { display: none; }
}
