:root {
  --ink: #0B0E14;
  --navy: #141B26;
  --slate: #2E3A52;
  --ivory: #F6F3EC;
  --white: #FFFFFF;
  --muted: #5B6472;
  --muted-dark: rgba(255,255,255,0.55);
  --line: #D8D4C9;
  --line-dark: rgba(255,255,255,0.12);
  --accent: #3F6FB0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, .display {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- HEADER / NAV (dark, matches logo) ---------- */
header.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 20;
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  letter-spacing: 0.4px;
  color: var(--muted-dark);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }

.nav-cta {
  font-size: 13px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 3px;
}
.nav-cta:hover { background: var(--white); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line-dark);
  }
}

/* ---------- HERO (dark) ---------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 120px 0 100px;
  text-align: center;
}

.hero img.hero-logo {
  height: 130px;
  width: auto;
  margin: 0 auto 40px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto;
}

.hero p.lede {
  margin: 26px auto 0;
  max-width: 560px;
  color: var(--muted-dark);
  font-size: 18px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 15px 28px;
  font-size: 14px;
  letter-spacing: 0.4px;
  border-radius: 3px;
}
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { background: var(--accent); color: var(--white); }
.btn-secondary { border: 1px solid rgba(255,255,255,0.35); color: var(--white); }
.btn-secondary:hover { border-color: var(--white); }

section.on-dark .btn-primary { background: var(--white); color: var(--ink); }

/* ---------- SECTION SHARED ---------- */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 52px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-head h2 { font-size: 30px; }
.section-head .count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-intro {
  color: var(--muted);
  max-width: 620px;
  font-size: 16px;
  margin-bottom: 52px;
  margin-top: -28px;
}

/* ---------- CARD GRID (services) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--ivory);
  padding: 40px;
}

.card .card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 22px;
}

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card ul { margin-top: 14px; }
.card ul li {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
  margin-bottom: 6px;
}
.card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- PROCESS (how it works) ---------- */
.process-list { display: flex; flex-direction: column; }
.process-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.process-row:first-child { border-top: 1px solid var(--line); }
.process-row .step-num {
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 1px;
}
.process-row h3 { font-size: 19px; margin-bottom: 6px; }
.process-row p { color: var(--muted); font-size: 15px; max-width: 520px; }

@media (max-width: 640px) {
  .process-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- WHY BLACKWELL ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-item .k { font-size: 13px; color: var(--accent); letter-spacing: 1px; margin-bottom: 10px; }
.why-item h3 { font-size: 18px; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 14.5px; }

@media (max-width: 780px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- PROJECTS ---------- */
.project-card {
  border: 1px solid var(--line);
  padding: 36px;
  margin-bottom: 24px;
}
.project-card .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 18px;
}
.project-card h3 { font-size: 22px; margin-bottom: 14px; }
.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 22px 0;
}
.project-meta .k { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; }
.project-meta .v { font-size: 14.5px; }
.project-card .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.project-card .stack span {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .project-meta { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 16.5px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
}
.faq-q .plus { font-size: 20px; color: var(--accent); transition: transform 0.2s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--muted);
  font-size: 15px;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 24px; }

/* ---------- FORM ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
  color: var(--muted);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  border-radius: 3px;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
input[type="file"] { padding: 10px 14px; }

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}
.cta-band h2 { color: var(--white); font-size: 32px; max-width: 560px; margin: 0 auto 16px; }
.cta-band p { color: var(--muted-dark); max-width: 480px; margin: 0 auto 34px; }

/* ---------- FOOTER ---------- */
footer.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding: 56px 0 32px;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid img { height: 26px; margin-bottom: 14px; }
.footer-grid p { font-size: 14px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; color: var(--muted-dark); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- LEGAL ---------- */
.legal-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.legal-section h2 { font-size: 26px; margin-bottom: 20px; }
.legal-section h3 { font-size: 17px; margin: 24px 0 8px; }
.legal-section p, .legal-section li { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.legal-section ul { padding-left: 4px; }
.legal-section li { list-style: disc; margin-left: 20px; }
.legal-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.legal-nav a { color: var(--accent); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .faq-a { transition: none; }
}

/* ---------- PAGE HEADER (non-home pages) ---------- */
.page-header {
  background: linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 80px 0 64px;
}
.page-header .eyebrow { margin-bottom: 14px; }
.page-header h1 { color: var(--white); font-size: clamp(30px, 4.5vw, 44px); max-width: 700px; }
.page-header p { color: var(--muted-dark); max-width: 560px; margin-top: 16px; font-size: 16px; }

.commitment-box {
  border: 1px solid var(--line);
  padding: 44px;
  text-align: center;
}
.commitment-box h3 { font-size: 20px; margin-bottom: 14px; }
.commitment-box p { color: var(--muted); max-width: 560px; margin: 0 auto; }
