/* WeBuild — design DNA: BCG X spine (dark, bold display, pill CTAs) × Slalom body (light, humanist, 300-weight headlines)
   Palette: WeBuild purple primary + electric violet accent, WB orange micro-accent. */

:root {
  --ink: #16121d;            /* purple-tinted near-black */
  --ink-2: #1e1828;          /* raised dark surface */
  --paper: #ffffff;
  --paper-soft: #f5f3f8;     /* soft lilac-gray alt background */
  --text-dark: #292929;      /* slalom body ink */
  --text-light: #f3eefb;
  --text-dim: #a99fc0;       /* dim text on dark */
  --purple: #5f2167;         /* official brand purple (from weBuild-logo-v2.svg) */
  --violet: #b06ce8;         /* electric accent (the “neon” role) — brand-hue lightened */
  --violet-soft: #d3a6f2;
  --orange: #dc4405;         /* WB legacy orange — micro-accent only */
  --container: 1096px;       /* bcgx container */
  --font-display: "Archivo", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;
  --radius-pill: 30px;
  --radius-card: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;            /* slalom 16/28 */
  color: var(--text-dark);
  background: var(--ink);
}

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

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); }

h1 {
  font-size: clamp(44px, 6.5vw, 86px);   /* bcgx 86/86 */
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.section-dark h2 {
  font-size: clamp(36px, 4vw, 52px);     /* bcgx h2 52 bold */
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
}

.h-light {
  font-size: clamp(34px, 4.2vw, 56px);   /* slalom large light headline */
  line-height: 1.15;
  font-weight: 300;
  color: var(--text-dark);
}
.h-light .muted { color: #8b80a8; }

.lead {
  font-size: 20px;                        /* bcgx lead 20/26 */
  line-height: 1.5;
  font-weight: 300;
  max-width: 56ch;
}
.section-dark .lead, .hero .lead { color: var(--text-dim); }

.eyebrow {
  font-size: 14px;                        /* slalom eyebrow: bold caps, tracked */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--violet);
  margin-bottom: 18px;
}
.eyebrow-dark { color: var(--purple); }

.accent-text { color: var(--violet); }

/* ---------- buttons (bcgx pill) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--violet); color: #16121d; }
.btn-accent:hover { background: var(--violet-soft); box-shadow: 0 8px 30px rgba(155, 108, 255, 0.35); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-soft); }
.btn-big { font-size: 18px; padding: 18px 40px; text-transform: none; letter-spacing: 0; }

.text-link { color: var(--purple); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--orange); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { background: rgba(22, 18, 29, 0.92); backdrop-filter: blur(12px); padding: 12px 0; box-shadow: 0 1px 0 rgba(155,108,255,0.15); }
.nav-inner { display: flex; align-items: center; gap: 36px; }
.nav-logo { text-decoration: none; }
.nav-logo img { height: 32px; display: block; }
.nav-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: #fff; }
.nav-wordmark::after { content: "."; color: var(--orange); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-light); text-decoration: none; font-size: 15px; font-weight: 600; opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--violet-soft); }
.nav-cta { padding: 10px 22px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.orb-a {
  width: 56vw; height: 56vw; right: -18vw; top: -22vw;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  animation: drift-a 14s ease-in-out infinite alternate;
}
.orb-b {
  width: 40vw; height: 40vw; left: -14vw; bottom: -18vw;
  background: radial-gradient(circle, #2c1a4d 0%, transparent 70%);
  animation: drift-b 18s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate(0,0) scale(1); } to { transform: translate(-6vw, 5vw) scale(1.12); } }
@keyframes drift-b { from { transform: translate(0,0) scale(1); } to { transform: translate(5vw, -4vw) scale(1.08); } }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(155,108,255,0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(155,108,255,0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero-inner { position: relative; padding-top: 120px; padding-bottom: 80px; }
.hero h1 { max-width: 13ch; margin-bottom: 28px; }
.hero .lead { margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.3); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--violet); animation: scrollhint 1.8s ease-in-out infinite; }
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { background: var(--purple); overflow: hidden; padding: 14px 0; }
.marquee-track {
  display: inline-flex; align-items: center; gap: 32px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff;
}
.marquee-track i { font-style: normal; color: var(--violet-soft); font-size: 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; }                /* slalom-scale air */
.section-light { background: var(--paper); }
.section-soft { background: var(--paper-soft); }
.section-dark { background: var(--ink); color: var(--text-light); }
.section h2 { margin-bottom: 56px; }

/* ---------- cards (what we do) ---------- */
.wwd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.wwd-head h2 { margin-bottom: 0; }
.wwd-photo { flex: 0 0 400px; border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 18px 50px rgba(95, 33, 103, 0.18); }
.wwd-photo img { display: block; width: 100%; height: 280px; object-fit: cover; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--paper);
  border: 1px solid #e9e4f2;
  border-radius: var(--radius-card);
  padding: 36px 30px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(75, 46, 114, 0.12); border-color: var(--violet-soft); }
.card-icon { font-size: 26px; color: var(--violet); margin-bottom: 18px; }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.card p { color: #5a5468; }

/* ---------- allteam band ---------- */
.allteam { position: relative; overflow: hidden; }
.allteam::before {
  content: ""; position: absolute; width: 50vw; height: 50vw; right: -20vw; bottom: -28vw;
  background: radial-gradient(circle, rgba(75,46,114,0.55) 0%, transparent 70%);
  filter: blur(80px);
}
.allteam-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.allteam h2 { margin-bottom: 24px; }
.allteam .lead { margin-bottom: 36px; }

.chat-window {
  background: var(--ink-2);
  border: 1px solid rgba(155,108,255,0.25);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  font-weight: 700; font-size: 14px; color: var(--text-light);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.chat-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px; line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
}
.bubble.shown { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.4s ease; }
.bubble-user { align-self: flex-end; background: rgba(255,255,255,0.1); color: var(--text-light); border-bottom-right-radius: 4px; }
.bubble-agent { align-self: flex-start; background: var(--violet); color: #16121d; font-weight: 600; border-bottom-left-radius: 4px; }

/* ---------- work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  border-top: 4px solid var(--purple);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(75, 46, 114, 0.14); }
.work-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.work-card p { color: #5a5468; font-size: 15px; margin-bottom: 18px; }
.work-tag {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--purple);
}
.work-card-more { border-top-color: var(--orange); background: linear-gradient(160deg, #fff 60%, #fdf1ea 100%); }

/* ---------- stats ---------- */
.stats { padding: 80px 0; border-top: 1px solid rgba(155,108,255,0.18); border-bottom: 1px solid rgba(155,108,255,0.18); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 800;
  color: var(--violet);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-dim); }

/* ---------- agentic commerce ---------- */
.commerce-lead { font-size: 20px; font-weight: 300; max-width: 62ch; margin: -28px 0 56px; color: #5a5468; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { border-top: 3px solid var(--violet); padding-top: 22px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--orange); letter-spacing: 1px; }
.step h3 { font-size: 22px; font-weight: 700; margin: 8px 0 10px; }
.step p { font-size: 15px; color: #5a5468; }
.commerce-loop { margin-top: 56px; font-size: 19px; font-weight: 300; color: #5a5468; }
.accent-strong { color: var(--purple); font-weight: 700; }

/* ---------- founders ---------- */
.founders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; align-items: start; }
.founder-wide { align-self: center; }
.founder-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(150deg, var(--purple), var(--ink));
  margin-bottom: 18px;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-photo.photo-pending img { display: none; }
.founder h3 { font-size: 20px; font-weight: 700; }
.founder-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--purple); margin-top: 4px; }
.founder-blurb { font-size: 19px; font-weight: 300; line-height: 1.6; color: #5a5468; margin-bottom: 20px; }

/* ---------- contact ---------- */
.contact { text-align: center; padding: 140px 0; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(75,46,114,0.5) 0%, transparent 65%);
  filter: blur(70px);
}
.contact-inner { position: relative; }
.contact-h { font-size: clamp(52px, 8vw, 110px); font-weight: 800; font-family: var(--font-display); color: #fff; margin-bottom: 16px; }
.contact .lead { margin: 0 auto 40px; }

/* ---------- footer ---------- */
.footer { background: #0e0b14; padding: 36px 0; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-mark { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #fff; }
.footer-mark::after { content: "."; color: var(--orange); }
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--violet-soft); }
.footer-copy { color: #564d6b; font-size: 13px; width: 100%; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb-a, .orb-b, .marquee-track, .scroll-hint span { animation: none; }
  .bubble { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- legal pages ---------- */
.legal-page { background: var(--paper); }
.legal { padding: 160px 0 110px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; color: var(--text-dark); margin-bottom: 8px; }
.legal-meta { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--purple); margin-bottom: 40px; }
.legal h2 { font-size: 24px; font-weight: 700; color: var(--text-dark); margin: 44px 0 14px; }
.legal p { margin-bottom: 16px; color: #44404e; }
.legal a { color: var(--purple); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cards, .work-grid { grid-template-columns: 1fr 1fr; }
  .wwd-head { flex-direction: column; align-items: flex-start; }
  .wwd-photo { flex: none; width: 100%; max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .allteam-inner { grid-template-columns: 1fr; gap: 44px; }
  .founders { grid-template-columns: 1fr 1fr; }
  .founder-wide { grid-column: 1 / -1; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 44px; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .cards, .work-grid, .founders, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { min-height: 86vh; }
  .hero-inner { padding-top: 110px; }
  .lead { font-size: 18px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
