:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-1: #f4f4f4;
  --gray-2: #d9d9d9;
  --gray-3: #6b6b6b;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.site-header { border-bottom: 1px solid var(--gray-2); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.site-header .logo img { height: 32px; width: auto; }
.btn {
  display: inline-block;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  padding: 14px 22px;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.btn-solid { background: var(--black); color: var(--white); }
.btn-solid:hover { background: var(--white); color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.btn-invert { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-invert:hover { background: transparent; color: var(--white); }

/* Type */
.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 20px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(42px, 7vw, 84px); max-width: 14ch; }
h2 { font-size: clamp(30px, 4vw, 46px); max-width: 20ch; }
h3 { font-size: 24px; margin-bottom: 10px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: #333; max-width: 56ch; margin-top: 28px; }

section { padding: clamp(64px, 10vw, 120px) 0; }

/* Hero: centered, black band with the animated particle field behind the copy */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #000;
  color: var(--white);
  min-height: min(86vh, 820px);
  display: flex; align-items: center;
  padding: clamp(88px, 14vw, 168px) 0;
}
.hero-field { position: absolute; inset: 0; pointer-events: none; }
.hero::after {
  /* soft dark scrim behind the copy so text stays readable over the particles */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 50% at center, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { margin: 0 auto; font-size: clamp(44px, 8vw, 96px); letter-spacing: -.035em; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--sans);
  padding: 8px 14px;
  border: 1px solid var(--gray-2);
  border-radius: 999px;
  background: var(--white);
  margin-bottom: 28px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--black); }
.hero .lede { color: #c9c9c9; }
.hero .badge { background: rgba(0,0,0,.5); border-color: #3a3a3a; color: var(--white); }
.hero .badge .dot { background: var(--white); }
.hero .btn-solid { background: var(--white); color: var(--black); border-color: var(--white); }
.hero .btn-solid:hover { background: transparent; color: var(--white); }
.hero .btn-ghost { color: var(--white); border-color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--black); }

/* Services */
.services { background: var(--gray-1); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-2);
  border: 1px solid var(--gray-2);
  margin-top: 48px;
}
.card { background: var(--white); padding: 36px 32px; }
.card .num { font: 600 13px/1 var(--sans); color: var(--gray-3); margin-bottom: 28px; }
.card p { color: #333; }

/* Approach */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps { list-style: none; border-top: 1px solid var(--black); }
.steps li { display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-bottom: 1px solid var(--gray-2); }
.steps .n { font-weight: 600; color: var(--gray-3); }
.steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: #444; }

/* CTA */
.cta { background: var(--black); color: var(--white); }
.cta h2 { max-width: 18ch; }
.cta p { color: #bdbdbd; max-width: 52ch; margin: 20px 0 36px; font-size: 19px; }

/* Footer */
.site-footer { background: var(--black); color: #bdbdbd; border-top: 1px solid #262626; padding: 40px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer img { height: 24px; width: auto; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* Legal page */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.legal .meta { color: var(--gray-3); margin-bottom: 48px; }
.legal h2 { font-size: 26px; margin: 48px 0 14px; max-width: none; }
.legal p, .legal ul { margin-bottom: 16px; color: #222; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

@media (max-width: 860px) {
  .grid, .split { grid-template-columns: 1fr; }
  .site-header .btn { padding: 11px 16px; font-size: 14px; }
}

/* Header nav */
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-link { font-weight: 600; font-size: 15px; text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Blog */
.blog { padding: clamp(48px, 8vw, 96px) 0; }
.blog h1 { font-size: clamp(36px, 5.5vw, 64px); max-width: 18ch; }
.blog .lede { margin-top: 18px; color: #444; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 32px 0 8px; }
.cat-pill { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.cat-pill-label {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--sans);
  padding: 11px 18px; border-radius: 999px;
  background: var(--cat, var(--gray-1)); color: var(--black);
  border: 1px solid transparent; transition: border-color .15s, transform .15s;
}
.cat-pill:hover .cat-pill-label { border-color: var(--black); transform: translateY(-1px); }
.cat-pill-tag { font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gray-3); }
.cat-icon { flex: none; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font: 600 12px/1 var(--sans); letter-spacing: .04em;
  padding: 7px 11px; border-radius: 999px;
  background: var(--cat, var(--gray-1)); color: var(--black); text-decoration: none;
}
a.cat-chip:hover { box-shadow: inset 0 0 0 1px var(--black); }
.cat-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15em; height: 1.15em; margin-right: .35em; vertical-align: -0.12em;
  border-radius: 10px; background: var(--cat, var(--gray-1));
}
.cat-mark .cat-icon { width: .6em; height: .6em; }
.blog-cat { padding: 48px 0 8px; border-top: 1px solid var(--gray-2); margin-top: 40px; scroll-margin-top: 24px; }
.blog-cat .empty { background: color-mix(in srgb, var(--cat, var(--gray-1)) 35%, white); border-color: var(--cat, var(--gray-2)); }
.blog-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.blog-cat-head h2 { font-size: 32px; }
.blog-cat-head p { color: var(--gray-3); max-width: 52ch; }
.empty { color: var(--gray-3); padding: 28px; background: var(--gray-1); border: 1px dashed var(--gray-2); }

/* HubSpot form embed (discovery call request) */
.meetings-card { background: #fff; color: #000; border-radius: 12px; overflow: hidden; max-width: 760px; padding: 32px; min-height: 360px; }
/* HubSpot's plan locks the embed's brand color. The iframe is cross-origin, so we
   can't style inside it; grayscale keeps it on-palette. */
.meetings-card iframe { display: block; width: 100%; filter: grayscale(1) contrast(1.6); }
@media (max-width: 640px) { .meetings-card { padding: 20px; } }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border: 1px solid var(--gray-2); text-decoration: none;
  transition: border-color .15s;
}
.post-card { border-top: 4px solid var(--cat, var(--gray-2)); }
.post-card:hover { border-color: var(--black); border-top-color: var(--cat, var(--black)); }
.post-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.post-card-img { aspect-ratio: 16 / 9; object-fit: cover; width: calc(100% + 56px); margin: -28px -28px 8px; max-width: none; }
.post-card h3 { font-size: 22px; margin: 0; }
.post-card p { color: #444; font-size: 15px; }
.post-meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--gray-3); }
.read-all { display: inline-block; margin-top: 20px; font-weight: 600; }
.blog-featured { margin-top: 40px; }
.blog-cat-head h2 a { text-decoration: none; }
.blog-cat-head h2 a:hover { text-decoration: underline; }
.blog-cat-list { margin-top: 40px; }
.blog:has(.cat-band) { padding-top: 0; }
.cat-band { background: var(--cat, var(--gray-1)); padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px); }
.cat-band .eyebrow { color: rgba(0,0,0,.6); }
.cat-band .lede { color: #222; }
.cat-band-tag { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: 14px; color: rgba(0,0,0,.6); }
.cat-band .cat-mark { background: rgba(255,255,255,.6); }
.eyebrow a { color: inherit; }

/* Article */
.article { padding: clamp(48px, 8vw, 96px) 0; }
.article .wrap { max-width: 760px; }
.article .cat-chip { margin-bottom: 18px; }
.article h1 { font-size: clamp(36px, 5.5vw, 60px); max-width: none; }
.prose blockquote { border-left-color: var(--cat, var(--black)) !important; }
.article-meta { color: var(--gray-3); margin: 18px 0 40px; }
.article-hero { width: 100%; margin-bottom: 40px; }
.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; margin-top: 1.8em; max-width: none; }
.prose h3 { font-size: 23px; margin-top: 1.5em; }
.prose a { text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { border-left: 3px solid var(--black); padding-left: 20px; font-family: var(--serif); font-size: 22px; }
.prose code { background: var(--gray-1); padding: 2px 6px; font-size: .9em; }
.prose figure img { width: 100%; }
.prose figcaption { color: var(--gray-3); font-size: 14px; margin-top: 8px; }
.article-cta { margin-top: 64px; padding: 40px; background: var(--black); color: var(--white); }
.article-cta h2 { font-size: 28px; margin-bottom: 20px; }
.article-cta .btn-solid { background: var(--white); color: var(--black); border-color: var(--white); }
.article-cta .btn-solid:hover { background: transparent; color: var(--white); }

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

/* ===================== Homepage: dark, particle-driven ("chaos to order") ===================== */
body.home { background: #000; }
.home .site-header { background: #000; border-bottom-color: #1c1c1c; color: var(--white); }
.home .site-header .btn-solid { background: var(--white); color: var(--black); border-color: var(--white); }
.home .site-header .btn-solid:hover { background: transparent; color: var(--white); }

.dark-section { position: relative; overflow: hidden; background: #000; color: var(--white); }
.dark-section .eyebrow { color: #8a8a8a; }
.dark-section .lede { color: #c9c9c9; }
.dark-section .wrap { position: relative; z-index: 1; }

/* Brands: the only colour on the page */
.brands { background: #f6f5f1; padding: 44px 0 48px; border-block: 1px solid #e6e4dc; }
.brands-title {
  text-align: center; margin-bottom: 26px;
  font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #6b6b6b;
}
.marquee {
  display: flex; overflow: hidden; gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; align-items: center; flex: none; gap: clamp(48px, 7vw, 96px);
  padding-right: clamp(48px, 7vw, 96px); list-style: none;
  will-change: transform;
}
.marquee-track li { flex: none; display: flex; align-items: center; height: 44px; }
.marquee-track img { height: 30px; width: auto; max-width: 150px; object-fit: contain; }
/* Driven by js/marquee.js: vertical swipes still scroll the page, horizontal ones move the band */
.marquee { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; padding: 6px 0; }
.marquee.is-dragging { cursor: grabbing; }
.marquee-track img { pointer-events: none; -webkit-user-drag: none; }

/* What we do: each card resolves its own formation when it scrolls into view */
.services.dark-section { background: #000; }
.services .grid { background: #1c1c1c; border-color: #1c1c1c; }
.services .card { background: #050505; padding: 0 32px 36px; position: relative; transition: background .2s; }
.services .card:hover { background: #0b0b0b; }
.services .card p { color: #b5b5b5; }
.services .card .num { color: #6f6f6f; }
.card-field { height: 210px; margin: 0 -32px 8px; border-bottom: 1px solid #161616; }

/* How we work: the field morphs scatter -> sphere -> catenoid -> mobius as you scroll the steps */
.approach.dark-section { padding: clamp(72px, 10vw, 120px) 0; }
.approach .split { align-items: stretch; }
.approach-visual { position: relative; min-height: 420px; }
.approach-field { position: sticky; top: 12vh; height: 76vh; max-height: 640px; }
.approach-caption {
  position: absolute; left: 0; bottom: 0;
  font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #6f6f6f;
}
.approach .steps { border-top-color: #333; margin-top: 40px; }
.approach .steps li { border-bottom-color: #1e1e1e; padding: 28px 0; opacity: .38; transition: opacity .35s; }
.approach .steps li.is-active, .approach .steps li.is-done { opacity: 1; }
.approach .steps li.is-active strong { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.approach .steps .n { color: #6f6f6f; }
.approach .steps span { color: #b5b5b5; }
.approach .steps strong { font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .approach .steps li { opacity: 1; } }

/* Contact: a faint field resolving behind the scheduler */
.cta.dark-section { background: #000; border-top: 1px solid #141414; }
.cta-field { position: absolute; inset: 0; opacity: .45; pointer-events: none; }
.home .site-footer { border-top-color: #141414; }

@media (max-width: 860px) {
  .approach-visual { min-height: 0; order: 2; }
  .approach-field { position: relative; top: auto; height: 340px; }
  .approach-caption { position: static; margin-top: 8px; }
  .approach-copy { order: 1; }
  .card-field { height: 180px; }
}
/* optical sizing: some logo files carry extra padding or are wide and short */
.marquee-track img[src*="strikegraph"] { height: 46px; max-width: 210px; }
.marquee-track img[src*="landid"] { height: 40px; }
.marquee-track img[src*="airbnb"] { height: 32px; }
.marquee-track img[src*="organifi"] { height: 34px; }
