  :root {
    --bg: #FFFFFF;
    --bg-raised: #F6F6F4;
    --bg-card: #FAFAF9;
    --ink: #14171C;
    --ink-dim: #55606B;
    --ink-faint: #8890A0;
    --amber: #E8830C;
    --amber-dim: #A8490C;
    --cyan: #0B7268;
    --green: #16803F;
    --line: #E4E6EA;
    --line-bright: #D3D7DC;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
  }

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

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

  a { color: inherit; }

  .wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber-dim);
    margin: 0 0 0.9rem;
  }

  h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }

  section { padding: 5rem 0; border-bottom: 1px solid var(--line); }
  section:last-of-type { border-bottom: none; }

  .section-head { max-width: 620px; margin-bottom: 2.75rem; }
  .section-head h2 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 0.75rem; }
  .section-head p { color: var(--ink-dim); font-size: 1.02rem; line-height: 1.6; }

  /* -------- Nav -------- */
  nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  .brand {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
  }
  .brand span { color: var(--amber-dim); }
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--ink-dim);
    transition: color 0.15s ease;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--amber);
    color: #1A1300;
    padding: 0.55rem 1.05rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
  }
  .nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.4rem; cursor: pointer; }

  @media (max-width: 780px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--bg-raised);
      padding: 1.25rem 1.5rem;
      gap: 1.1rem;
      border-bottom: 1px solid var(--line);
    }
  }

  /* -------- Hero -------- */
  .hero {
    padding: 5.5rem 0 4rem;
    border-bottom: 1px solid var(--line);
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
  }
  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
  }
  .hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
    line-height: 1.12;
    font-weight: 700;
  }
  .hero h1 .dim { color: var(--ink-faint); }
  .hero p.sub {
    margin-top: 1.4rem;
    color: var(--ink-dim);
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 520px;
  }
  .hero-ctas { display: flex; gap: 0.9rem; margin-top: 2.1rem; flex-wrap: wrap; }

  .btn {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    padding: 0.75rem 1.4rem;
    border-radius: 3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: transform 0.12s ease, background 0.15s ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: var(--amber); color: #1A1300; font-weight: 600; }
  .btn-primary:hover { background: #D9750A; }
  .btn-ghost { border: 1px solid var(--line-bright); color: var(--ink); }
  .btn-ghost:hover { border-color: var(--amber-dim); }

  /* Status panel */
  .status-panel {
    background: var(--bg-card);
    border: 1px solid var(--line-bright);
    border-radius: 6px;
    overflow: hidden;
  }
  .status-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    text-transform: uppercase;
  }
  .dot-live {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(22,128,63,0.6);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22,128,63,0.55); }
    70% { box-shadow: 0 0 0 7px rgba(22,128,63,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,128,63,0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .dot-live { animation: none; }
  }
  .status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
  }
  .status-row:last-child { border-bottom: none; }
  .status-row:hover { background: rgba(0,0,0,0.025); }
  .status-text { flex: 1; }
  .status-name { font-family: var(--font-mono); font-size: 0.88rem; }
  .status-desc { color: var(--ink-dim); font-size: 0.82rem; margin-top: 0.15rem; }
  .status-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--green);
    letter-spacing: 0.05em;
  }
  .status-arrow { color: var(--ink-faint); font-size: 1rem; }

  /* -------- Tech strip (wordmark carousel) -------- */
  .stack-strip {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: var(--bg-raised);
  }
  .stack-track {
    display: flex;
    align-items: center;
    gap: 4.5rem;
    width: max-content;
    animation: scroll-left 34s linear infinite;
  }
  .stack-track .wordmark {
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    color: var(--ink-dim);
  }
  @keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  @media (prefers-reduced-motion: reduce) {
    .stack-track { animation: none; }
  }

  /* -------- Differentiators -------- */
  .diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  @media (max-width: 780px) { .diff-grid { grid-template-columns: 1fr; } }
  .diff-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem;
  }
  .diff-num { font-family: var(--font-mono); color: var(--amber-dim); font-size: 0.8rem; margin-bottom: 0.9rem; }
  .diff-card h3 { font-size: 1.08rem; margin-bottom: 0.6rem; }
  .diff-card p { color: var(--ink-dim); font-size: 0.94rem; line-height: 1.55; margin: 0; }

  /* -------- Demos -------- */
  .demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  @media (max-width: 780px) { .demo-grid { grid-template-columns: 1fr; } }
  .demo-card {
    background: var(--bg-card);
    border: 1px solid var(--line-bright);
    border-radius: 8px;
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .demo-card-top { display: flex; align-items: center; justify-content: space-between; }
  .demo-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }
  .live-chip {
    display: flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--green);
    letter-spacing: 0.04em;
  }
  .demo-card h3 { font-size: 1.3rem; }
  .demo-card p.desc { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.6; margin: 0; }
  .demo-meta {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--cyan);
    padding: 0.7rem 0.85rem;
    background: rgba(11,114,104,0.06);
    border: 1px solid rgba(11,114,104,0.35);
    border-radius: 4px;
  }
  .demo-card .btn { align-self: flex-start; margin-top: 0.2rem; }
  .demo-links { display: flex; gap: 0.7rem; flex-wrap: wrap; }

  /* -------- Services / Industries grid -------- */
  .svc-grid, .ind-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  @media (max-width: 780px) { .svc-grid, .ind-grid { grid-template-columns: 1fr; } }
  .svc-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem;
    background: var(--bg-card);
  }
  .svc-card .tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--amber-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.7rem; display: block; }
  .svc-card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
  .svc-card p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55; margin: 0; }

  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  @media (max-width: 900px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } }
  .ind-card {
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .ind-card .name { font-family: var(--font-mono); font-size: 0.92rem; color: var(--ink); }
  .ind-card .line { color: var(--ink-dim); font-size: 0.85rem; line-height: 1.5; }

  /* -------- Selected work -------- */
  .work-grid { display: flex; flex-direction: column; gap: 1.25rem; }
  .work-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.6rem 1.8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-card);
  }
  @media (max-width: 780px) {
    .work-card { grid-template-columns: 1fr; }
  }
  .work-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--amber-dim);
    letter-spacing: 0.03em;
  }
  .work-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
  .work-body p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55; margin: 0; }
  .work-link {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--cyan);
    text-decoration: none;
    white-space: nowrap;
  }
  .work-link:hover { text-decoration: underline; }

  /* -------- About -------- */
  .about-section { padding: 5.5rem 0; }
  .about-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3.5rem; align-items: start; }
  @media (max-width: 780px) { .about-inner { grid-template-columns: 1fr; gap: 1.25rem; } }
  .about-inner h2 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 0.5rem; }
  .about-body p { color: var(--ink); font-size: 1.08rem; line-height: 1.8; margin: 0 0 1.2rem; }
  .about-body p:last-child { margin-bottom: 0; }
  .about-body strong { color: var(--ink); font-weight: 600; }

  /* -------- Final CTA -------- */
  .final-cta { text-align: center; padding: 5.5rem 0; }
  .final-cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); max-width: 640px; margin: 0 auto 1rem; line-height: 1.2; }
  .final-cta p { color: var(--ink-dim); max-width: 480px; margin: 0 auto 2rem; }
  .final-cta .hero-ctas { justify-content: center; }

  /* -------- Footer -------- */
  /* -------- Footer (multi-column) -------- */
  footer { padding: 4rem 0 2.5rem; }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
  }
  @media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
  .footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 1.1rem;
  }
  .footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
  .footer-col a { color: var(--ink-dim); text-decoration: none; font-size: 0.88rem; transition: color 0.15s ease; }
  .footer-col a:hover { color: var(--ink); }
  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
  }
  .footer-bottom .footer-note { color: var(--ink-faint); font-size: 0.82rem; margin: 0.4rem 0 0; }

  /* -------- Reveal on scroll --------
     Content is visible by default. Only once JS confirms the observer is
     running does .reveal get hidden pre-animation -- so a slow script,
     blocked JS, or a no-JS crawler always sees full content. */
  body.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  body.js-reveal .reveal.in { opacity: 1; transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) {
    body.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  }

/* -------- Page hero (sub-pages: About/Services/Platform/Case Studies/Contact) -------- */
.page-hero {
  padding: 5.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: 780px;
}
.page-hero p.sub {
  margin-top: 1.2rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 620px;
}

/* -------- Our Customers (Home) -------- */
.customers { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.customers .eyebrow { text-align: center; justify-content: center; display: flex; margin-bottom: 1.75rem; }

.customer-tabs {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.customer-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  height: 84px;
  padding: 0 1.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  filter: grayscale(1);
  opacity: 0.5;
  position: relative;
  transition: opacity 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.customer-tab:hover { opacity: 0.8; }
.customer-tab img { max-height: 32px; max-width: 150px; object-fit: contain; }
.customer-tab .wordmark-fallback { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.customer-tab.active {
  opacity: 1;
  filter: grayscale(0);
  background: var(--bg-card);
  border-color: var(--line-bright);
}
.customer-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber-dim);
}

.customer-panel-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.5rem;
}
.customer-panel { display: none; grid-template-columns: 190px 1px 1fr; gap: 2.25rem; align-items: start; }
.customer-panel.active { display: grid; }
.customer-stat-col { display: flex; flex-direction: column; gap: 0.9rem; }
.customer-stat { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.customer-stat-label { color: var(--ink-dim); font-size: 0.88rem; margin: 0; }
.customer-case-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber-dim);
  text-decoration: none;
  border-bottom: 2px solid var(--amber-dim);
  padding-bottom: 2px;
  align-self: flex-start;
}
.customer-divider { background: var(--line); width: 1px; }
.customer-desc { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.55; color: var(--ink); margin: 0 0 1.5rem; font-weight: 500; }
.customer-attribution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.customer-attribution .who strong { display: block; color: var(--ink); font-size: 0.95rem; }
.customer-attribution .who span { color: var(--ink-dim); font-size: 0.85rem; }
.customer-attribution img { max-height: 22px; opacity: 0.85; }
.customer-attribution .wordmark-fallback-sm { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink-faint); }

@media (max-width: 700px) {
  .customer-panel { grid-template-columns: 1fr; }
  .customer-divider { display: none; }
}

/* -------- Teaser grid (Home) -------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) { .teaser-grid { grid-template-columns: 1fr; } }
.teaser-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.teaser-card h3 { font-size: 1.08rem; margin: 0; }
.teaser-card p {
  color: var(--ink-dim);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.teaser-link {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--cyan);
  text-decoration: none;
  align-self: flex-start;
}
.teaser-link:hover { text-decoration: underline; }

/* -------- Powered-by badges (Home) -------- */
.powered-by { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.powered-by h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0.5rem 0 1.5rem;
  max-width: 620px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-dim);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }

/* -------- Verticals (Home) -------- */
.verticals { padding: 4.5rem 0 5rem; border-bottom: 1px solid var(--line); }
.verticals .section-head { text-align: center; margin: 0 auto 3rem; }
.verticals .section-head .eyebrow { justify-content: center; display: flex; }
.verticals .section-head p.lede { color: var(--ink-dim); font-size: 1.02rem; max-width: 520px; margin: 0.75rem auto 0; }
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 2.5rem;
}
@media (max-width: 860px) { .vertical-grid { grid-template-columns: 1fr; } }
.vertical-card { padding-top: 1.75rem; border-top: 1px solid var(--line); }
.vertical-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.vertical-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}
.vertical-icon svg { width: 22px; height: 22px; }
.vertical-head h3 { font-size: 1.12rem; flex: 1; margin: 0; }
.vertical-arrow { color: var(--ink-faint); font-size: 1.1rem; }
.vertical-card p { color: var(--ink-dim); font-size: 0.94rem; line-height: 1.6; margin: 0 0 1.1rem; }
.vertical-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--amber-dim);
  padding-bottom: 2px;
}
.vertical-card-cta .vertical-icon {
  background: none;
  border: 1px dashed var(--line-bright);
  color: var(--ink-faint);
  font-size: 1.3rem;
  font-weight: 600;
}

/* -------- Services page: centered headers -------- */
.page-services .page-hero .wrap,
.page-services .section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.page-services .page-hero h1,
.page-services .page-hero p.sub,
.page-services .section-head p {
  margin-left: auto;
  margin-right: auto;
}
