@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #14171F;
  --cream: #FAF8F4;
  --cream-dim: #F1EEE6;
  --accent: #D8612F;
  --accent-dim: #BC4F22;
  --sage: #7A8B7F;
  --graphite: #6B6F76;
  --line: rgba(20, 23, 31, 0.12);
  --line-light: rgba(250, 248, 244, 0.18);

  --display: 'Fraunces', serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--graphite);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-dim); }

.nav-toggle { display: none; }

/* ---------- Pipeline thread (signature element) ---------- */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 auto;
}

.pipeline-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--graphite);
  white-space: nowrap;
}

.pipeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
  position: relative;
}

.pipeline-dot.lit {
  background: var(--accent);
}

.pipeline-dot.lit::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

.pipeline-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 24px;
  position: relative;
  overflow: hidden;
}

.pipeline-line::after {
  content: '';
  position: absolute;
  top: 0; left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: travel 3.2s ease-in-out infinite;
}

@keyframes travel {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 84px;
  border-bottom: 1px solid var(--line);
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: block;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.hero-sub {
  font-size: 19px;
  color: var(--graphite);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.hero-pipeline-wrap {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.hero-pipeline-wrap .pipeline { max-width: 640px; }

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }

.section-border { border-bottom: 1px solid var(--line); }

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 16.5px;
  color: var(--graphite);
  line-height: 1.65;
}

.dark {
  background: var(--ink);
  color: var(--cream);
}

.dark .section-eyebrow { color: var(--accent); }
.dark .section-head p { color: rgba(250, 248, 244, 0.68); }

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.dark .grid-3 { background: var(--line-light); border-color: var(--line-light); }

.card {
  background: var(--cream);
  padding: 36px 32px;
}

.dark .card { background: var(--ink); }

.card-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}

.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: var(--graphite);
  line-height: 1.6;
}

.dark .card p { color: rgba(250, 248, 244, 0.68); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--graphite);
  text-transform: uppercase;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 100px 0;
}

.cta-band h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 auto 36px;
}

.cta-band .btn { margin: 0 auto; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(250, 248, 244, 0.6);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-light);
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  color: var(--cream);
  margin-bottom: 10px;
}

.footer-logo span { color: var(--accent); }

.footer-cols {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.4);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: rgba(250, 248, 244, 0.75);
  margin-bottom: 11px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(250, 248, 244, 0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 780px;
}

.page-header p {
  font-size: 17px;
  color: var(--graphite);
  max-width: 560px;
  margin-top: 20px;
  line-height: 1.6;
}

/* ---------- Two-col layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.team-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
}

.team-card .role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.team-card h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card p { color: var(--graphite); font-size: 14.5px; line-height: 1.6; }

/* ---------- Form (Contact page) ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--body);
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  outline: none;
}

.field textarea { min-height: 130px; resize: vertical; }

.contact-info-block {
  background: var(--ink);
  color: var(--cream);
  padding: 44px;
  border-radius: 4px;
}

.contact-info-block h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 18px;
}

.contact-info-block p {
  color: rgba(250, 248, 244, 0.7);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-detail-row span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.contact-detail-row span:last-child {
  font-size: 15px;
  color: var(--cream);
}

/* ---------- Chat widget styling override (keeps it consistent w/ brand) ---------- */
#chat-widget-container { z-index: 999; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 40px; }
  .hero-pipeline-wrap .pipeline-stage span:not(.pipeline-dot) { display: none; }
}
