/* =============================================================
   dotproduct — Monochrome Design System
   Black / White / Grey only. No gradients. Clean & modern.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Monochrome palette */
  --black:      #0a0a0a;
  --near-black: #141414;
  --ink:        #1a1a1a;
  --grey-900:   #2b2b2b;
  --grey-700:   #4a4a4a;
  --grey-600:   #6b6b6b;
  --grey-500:   #8a8a8a;
  --grey-400:   #b0b0b0;
  --grey-300:   #d4d4d4;
  --grey-200:   #e6e6e6;
  --grey-100:   #f2f2f2;
  --grey-50:    #f8f8f8;
  --white:      #ffffff;
  --soft-white: #ededeb;
  --dark-bg:    #121212;
  --dark-panel: #191919;

  /* Semantic */
  --bg:         var(--white);
  --surface:    var(--grey-50);
  --fg:         var(--black);
  --muted:      var(--grey-600);
  --line:       var(--grey-200);
  --line-strong:var(--grey-300);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", ui-monospace, Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Scale */
  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.10rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.40rem + 0.75vw, 2.05rem);
  --step-3:  clamp(2.00rem, 1.70rem + 1.50vw, 3.10rem);
  --step-4:  clamp(2.60rem, 2.05rem + 2.75vw, 4.60rem);
  --step-5:  clamp(3.10rem, 2.30rem + 4.00vw, 6.00rem);

  /* Shared content hierarchy across pages. */
  --type-page-title: var(--step-4);
  --type-section-title: var(--step-3);
  --type-subtitle: var(--step-1);
  --type-body: var(--step-0);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 0.8rem + 2.2vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul[role="list"] { list-style: none; padding: 0; }

::selection { background: var(--black); color: var(--white); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: var(--type-page-title); letter-spacing: -0.035em; }
h2 { font-size: var(--type-section-title); letter-spacing: -0.03em; }
h3 { font-size: var(--type-subtitle); letter-spacing: -0.02em; line-height: 1.15; }
p  { color: var(--grey-700); }
.lead { font-size: var(--type-subtitle); line-height: 1.5; color: var(--grey-700); font-weight: 400; letter-spacing: -0.01em; }

.mono { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--grey-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--grey-500);
  display: inline-block;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 2.4rem + 3vw, 5rem); }
.section--dark { background: var(--dark-bg); color: var(--soft-white); }
.section--dark p { color: var(--grey-400); }
.section--dark .eyebrow { color: var(--grey-500); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--soft-white); }
.section--surface { background: var(--surface); }
.divider { border: 0; border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.6vw, 1.75rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  background: var(--black); color: var(--white);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              transform 0.2s var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--near-black); color: var(--white); border-color: var(--near-black); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--black); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--grey-100); color: var(--black); border-color: var(--grey-400); }

.section--dark .btn { background: var(--soft-white); color: var(--black); border-color: var(--soft-white); }
.section--dark .btn:hover { background: var(--grey-200); color: var(--black); border-color: var(--grey-200); }
.section--dark .btn--ghost { background: transparent; color: var(--soft-white); border-color: var(--grey-700); }
.section--dark .btn--ghost:hover { background: rgb(255 255 255 / 12%); color: var(--white); border-color: var(--grey-500); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 500; font-size: var(--step--1);
  color: var(--black);
  border-bottom: 1px solid transparent;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow:hover { gap: 0.85rem; border-color: var(--black); }
.section--dark .link-arrow { color: var(--soft-white); }
.section--dark .link-arrow:hover { border-color: var(--soft-white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--grey-200);
}
.site-header .wrap {
  width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem;
}
body:not(.stitch-page) > main { padding-top: 68px; }
@media (min-width: 1024px) {
  .site-header .wrap { padding-inline: 3rem; }
}
.nav {
  display: flex; align-items: center;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand svg { width: auto; height: 22px; }
.brand img { width: auto; height: 28px; max-width: 160px; object-fit: contain; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 0.35rem; margin-left: auto; }
.nav-links a {
  padding: 0.5rem 0.85rem; border-radius: var(--radius);
  font-size: var(--step--1); font-weight: 500; color: var(--grey-700);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--black); background: var(--grey-100); }
.nav-links > a.btn { color: var(--white); background: var(--black); border-color: var(--black); }
.nav-links > a.btn:hover { color: var(--white); background: var(--grey-900); border-color: var(--grey-900); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

/* Dropdown */
.has-menu { position: relative; }
.nav-links .product-nav-link::after { display: inline-block; content: "\25BE"; margin-left: 0.3rem; font-size: 1.05em; line-height: 1; transition: transform 0.2s var(--ease); }
.menu-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.25);
  padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.has-menu:hover .menu-panel, .has-menu:focus-within .menu-panel { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 941px) {
  .has-menu:hover .product-nav-link::after,
  .has-menu:focus-within .product-nav-link::after { transform: rotate(180deg); }
}
.menu-panel a { display: block; padding: 0.65rem 0.8rem; border-radius: var(--radius); background: none; }
.menu-panel a strong { display: block; color: var(--black); font-weight: 600; font-size: var(--step--1); }
.menu-panel a span { display: block; color: var(--grey-600); font-size: 0.78rem; margin-top: 1px; }
.menu-panel a:hover { background: var(--grey-100); }

/* Mobile nav */
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--black); transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4.5px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0.25rem;
    transform: translateY(-120%); transition: transform 0.35s var(--ease);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-links > a, .nav-links .product-nav-link { padding: 1rem 0.65rem; font-size: var(--step-0); border-bottom: 1px solid var(--line); border-radius: 0; }
  .has-menu { width: 100%; }
  .nav-links .product-nav-link { display: flex; width: 100%; align-items: center; justify-content: space-between; }
  .menu-panel { display: block; position: static; max-height: 0; overflow: hidden; opacity: 1; visibility: hidden; transform: none; box-shadow: none; border: 0; padding: 0 0.65rem; min-width: 0; pointer-events: none; transition: max-height 240ms ease, padding 240ms ease, visibility 240ms; }
  .has-menu.submenu-open .menu-panel { max-height: 160px; padding: 0.3rem 0.65rem 0.65rem; visibility: visible; pointer-events: auto; }
  .has-menu.submenu-open { background: var(--grey-100); }
  .has-menu.submenu-open .product-nav-link::after { transform: rotate(180deg); }
  .nav-links .menu-panel a { padding: 0.8rem 0.65rem; border: 0; border-radius: var(--radius); font-size: var(--step-0); }
  .menu-panel a span { display: none; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 940px) {
  .nav-links a:hover,
  .nav-links a[aria-current="page"]:hover { color: var(--grey-700); background: transparent; }
  .nav-links > a.btn:hover { color: var(--white); background: var(--black); border-color: var(--black); }
  .menu-panel a:hover { background: transparent; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 2rem + 7vw, 8rem) clamp(3rem, 2rem + 4vw, 6rem); position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 54ch; margin-top: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.5rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-meta div strong { display: block; font-size: var(--step-2); letter-spacing: -0.03em; }
.hero-meta div span { color: var(--grey-600); font-size: var(--step--1); }

/* Hero visual (SVG on the right) */
.hero .wrap.has-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; display: block; }
@media (min-width: 901px) {
  .hero .wrap.has-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(34%, 360px);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .wrap.has-visual > :not(.hero-visual) { grid-column: 1; max-width: none; }
  .hero-visual {
    grid-column: 2; grid-row: 1 / span 20;
    align-self: center; width: 100%; margin: 0;
  }
}
@media (max-width: 900px) {
  .wrap.has-visual { display: flex; flex-direction: column; align-items: flex-start; }
  .wrap.has-visual .breadcrumb { order: -2; }
  .hero-visual { order: -1; width: 100%; max-width: 300px; margin: 0 0 1.75rem; align-self: center; }
}
@media (max-width: 520px) { .hero-visual { display: none; } }

/* Faint grid backdrop (monochrome, subtle) */
.grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grey-100) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grey-100) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  background: var(--white);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  height: 100%;
  display: flex; flex-direction: column;
}
a.card:hover, .card--hover:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.35); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: var(--type-body); }
.card .card-index { font-family: var(--font-mono); font-size: 0.75rem; color: var(--grey-500); letter-spacing: 0.1em; }
.card .link-arrow { margin-top: auto; padding-top: 1.5rem; }

.section--dark .card { background: var(--dark-panel); border-color: var(--grey-900); }
.section--dark .card h3 { color: var(--soft-white); }
.section--dark .card p { color: var(--grey-400); }
.section--dark a.card:hover { border-color: var(--grey-500); }
.section--dark .tag { color: var(--grey-400); border-color: var(--grey-700); }

/* Icon tile */
.tile-icon {
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 1.25rem;
}
.tile-icon svg { width: 22px; height: 22px; stroke: var(--black); }
.section--dark .tile-icon { border-color: var(--grey-900); }
.section--dark .tile-icon svg { stroke: var(--soft-white); }

/* ---------- Section head ---------- */
.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1rem; }
.section-head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: end; max-width: none; }
@media (max-width: 800px) { .section-head--split { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Feature list ---------- */
.feature-row { display: grid; grid-template-columns: 1fr; }
.feature-item { display: flex; gap: 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.feature-item:last-child { border-bottom: 1px solid var(--line); }
.feature-item .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--grey-500); padding-top: 0.35rem; min-width: 2.5rem; }
.feature-item .body h3 { margin-bottom: 0.4rem; }
.feature-item .body p { font-size: var(--type-body); }

/* ---------- Process / steps ---------- */
.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  padding: 1.75rem 0; border-top: 1px solid var(--line); align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .dot { counter-increment: step; }
.step .dot::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--grey-600);
  border: 1px solid var(--line-strong); border-radius: 50%;
  width: 44px; height: 44px; display: grid; place-items: center;
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.step p { font-size: var(--type-body); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--grey-900); border: 1px solid var(--grey-900); border-radius: var(--radius-lg); overflow: hidden; }
.stats .stat { background: var(--dark-bg); padding: 2rem 1.5rem; }
.stats .stat strong { display: block; font-size: var(--step-3); letter-spacing: -0.04em; color: var(--soft-white); }
.stats .stat span { color: var(--grey-500); font-size: var(--step--1); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Logos / marquee ---------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; opacity: 0.7; }
.trust span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--grey-600); letter-spacing: 0.05em; }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--grey-900); border-radius: var(--radius-lg); background: var(--dark-bg); color: var(--soft-white); padding: clamp(2.5rem, 2rem + 3vw, 5rem); text-align: center; }
.cta-band h2 { color: var(--soft-white); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--grey-400); max-width: 52ch; margin: 1.25rem auto 0; }
.cta-band .hero-actions { justify-content: center; margin-top: 2.5rem; }
.cta-band .btn { background: var(--soft-white); color: var(--dark-bg); border-color: var(--soft-white); }
.cta-band .btn:hover { background: var(--grey-200); color: var(--black); border-color: var(--grey-200); }
.cta-band .btn--ghost { background: transparent; color: var(--soft-white); border-color: var(--grey-700); }
.cta-band .btn--ghost:hover { background: rgb(255 255 255 / 12%); color: var(--white); border-color: var(--grey-500); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.8rem; color: var(--grey-600); font-family: var(--font-mono); padding-top: 1.5rem; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb .sep { color: var(--grey-400); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .thumb { aspect-ratio: 16/10; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--grey-100); display: grid; place-items: center; overflow: hidden; margin-bottom: 1.25rem; }
.post-card .thumb .mono { color: var(--grey-500); }
.post-meta { display: flex; gap: 0.75rem; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.08em; }
.post-card h3 { margin: 0.75rem 0 0.5rem; font-size: var(--step-1); }
.post-card p { font-size: var(--type-body); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-700); border: 1px solid var(--line-strong); border-radius: 100px; padding: 0.2rem 0.7rem; }

/* ---------- Team ---------- */
.member { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.member .avatar { aspect-ratio: 1; background: var(--grey-100); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.member .avatar span { font-family: var(--font-mono); font-size: var(--step-3); color: var(--grey-400); font-weight: 600; }
.member .info { padding: 1.25rem 1.5rem 1.5rem; }
.member .info h3 { font-size: var(--step-1); }
.member .info .role { color: var(--grey-600); font-size: var(--step--1); margin-top: 0.2rem; }
.member .info .bio { font-size: 0.82rem; color: var(--grey-600); margin-top: 0.75rem; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; font-weight: 600; font-size: var(--step-1); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: var(--black); transition: transform 0.3s var(--ease); }
.faq summary .plus::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.faq summary .plus::after { left: 8px; top: 0; width: 1.5px; height: 18px; }
.faq details[open] summary .plus::after { transform: scaleY(0); }
.faq .answer { padding-bottom: 1.5rem; }
.faq .answer p { font-size: var(--step-0); max-width: 68ch; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 500; }
.field input, .field textarea, .field select {
  font: inherit; font-size: var(--step--1); color: var(--black);
  padding: 0.85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); transition: border-color 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--black); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-bg); color: var(--grey-400); padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem) 2.5rem; }
.site-footer .wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 1024px) { .site-footer .wrap { padding-inline: 3rem; } }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .brand svg { height: 24px; }
.site-footer .brand svg [data-ink] { fill: var(--soft-white); }
.site-footer .brand svg [data-dot] { fill: var(--soft-white); }
.footer-blurb { color: var(--grey-500); font-size: var(--step--1); margin-top: 1.25rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-600); font-weight: 500; margin-bottom: 1.1rem; }
.footer-col a { display: block; padding: 0.35rem 0; color: var(--grey-400); font-size: var(--step--1); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--soft-white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--grey-900); font-size: 0.8rem; color: var(--grey-600); }
.footer-bottom .socials { display: flex; gap: 1.25rem; }
.footer-bottom .socials a:hover { color: var(--soft-white); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Tick list ("You get" bullets) ---------- */
.ticks { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.9rem; font-size: var(--step--1); color: var(--grey-700); line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.35em;
  width: 11px; height: 6px; border-left: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black);
  transform: rotate(-45deg);
}
.section--dark .ticks li { color: var(--grey-400); }
.section--dark .ticks li::before { border-color: var(--white); }

/* ---------- NOVA Loop phases ---------- */
.nova { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.5rem); counter-reset: nova; }
.nova-phase {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); background: var(--white);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nova-phase:hover { border-color: var(--line-strong); box-shadow: 0 24px 50px -34px rgba(0,0,0,0.3); }
.nova-letter {
  font-family: var(--font-mono); font-weight: 500;
  width: clamp(58px, 5vw, 76px); height: clamp(58px, 5vw, 76px);
  border: 1px solid var(--black); border-radius: var(--radius);
  display: grid; place-items: center; align-self: start;
  font-size: var(--step-3); letter-spacing: -0.03em; color: var(--black);
}
.nova-phase[data-loop] .nova-letter { border-style: dashed; font-size: var(--step-2); }
.nova-phase .phase-kicker { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--grey-500); }
.nova-phase h3 { margin: 0.45rem 0 0.6rem; font-size: var(--step-2); }
.nova-phase > .phase-body > p { font-size: var(--type-body); }
.nova-subhead { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-600); margin: 1.4rem 0 0.85rem; }
@media (max-width: 620px) { .nova-phase { grid-template-columns: 1fr; } }

/* ---------- Metric / outcome tiles ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.metric { background: var(--white); padding: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); }
.metric .m-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-500); }
.metric h3 { font-size: var(--step-1); margin: 0.7rem 0 0.55rem; }
.metric p { font-size: var(--type-body); }
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .metrics { grid-template-columns: 1fr; } }

/* Placeholder KPI token — value set during Need Discovery */
.ph { font-family: var(--font-mono); color: var(--grey-500); border-bottom: 1px dashed var(--grey-400); padding: 0 0.15em; font-weight: 500; }
.section--dark .ph { color: var(--grey-400); border-color: var(--grey-700); }

/* ---------- Tech stack rows ---------- */
.stack-rows { display: grid; }
.stack-row { display: grid; grid-template-columns: 210px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.stack-row:last-child { border-bottom: 1px solid var(--line); }
.stack-row .sr-label { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-600); }
.section--dark .stack-row { border-color: var(--grey-900); }
.section--dark .stack-row .sr-label { color: var(--grey-500); }
@media (max-width: 620px) { .stack-row { grid-template-columns: 1fr; gap: 0.85rem; } }

/* ---------- Utilities ---------- */
.text-muted { color: var(--grey-600); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white); padding: 0.75rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Homepage rhythm and visual hierarchy ---------- */
.home-page main { overflow: clip; }
.home-page {
  --home-section-space: clamp(4rem, 3rem + 6vw, 8rem);
}
.home-page .section { padding-block: var(--home-section-space); }

.trust-strip {
  position: relative;
  padding-block: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  background: var(--grey-50);
  border-block: 1px solid var(--line);
}
.trust-strip::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 63px, rgba(10,10,10,0.025) 63px 64px);
}

.home-section { position: relative; border-top: 1px solid var(--line); }
.home-section > .wrap { position: relative; z-index: 1; }
.home-section--services { border-top: 0; }
.home-section--framework,
.home-section--industries,
.home-section--reasons,
.home-section--blog { background: var(--white); }
.home-section--outcomes,
.home-section--ai,
.home-section--team,
.home-section--faq { background: var(--grey-50); }

/* Keep neighbouring pale sections distinct without introducing a new colour. */
.home-section--team { border-top: 1px solid var(--line-strong); }
.home-section--faq { border-top: 1px solid var(--line-strong); }
/* All section introductions share the same left-hand content axis. */
.home-section--outcomes .section-head,
.home-section--practices .section-head { max-width: 72ch; }
.home-section--outcomes .section-head h2,
.home-section--practices .section-head h2 { max-width: 15ch; }

/* Services read as two distinct engagement paths instead of generic cards. */
.home-section--services .card { min-height: 360px; border-top: 3px solid var(--black); }
.home-section--services .tile-icon { border-radius: 50%; }

/* NOVA is a single, readable sequence with one continuous guide. */
.home-section--framework { background: var(--white); }
.nova { position: relative; gap: clamp(1rem, 0.6rem + 1.4vw, 1.5rem); }
.nova::before {
  content: ""; position: absolute; left: clamp(28px, 3vw, 38px); top: 2rem; bottom: 2rem;
  width: 1px; background: var(--line-strong);
}
.nova-phase { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none; background: var(--white); }
.nova-phase:nth-child(even), .nova-phase:nth-child(odd) { margin-inline: 0; background: var(--white); }
.nova-phase:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -36px rgba(0,0,0,0.35); background: var(--white); }
.nova-letter { position: relative; z-index: 1; background: var(--white); border-radius: 50%; }

/* Outcome tiles retain breathing room and clear individual boundaries. */
.metrics { grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 0.6rem + 1.6vw, 1.75rem); background: transparent; border: 0; border-radius: 0; }
.metric { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); padding-top: clamp(3.2rem, 2.8rem + 1vw, 3.8rem); }
.metric:nth-child(odd) { border-right: 1px solid var(--line); }
.metric::before {
  content: counter(metric, decimal-leading-zero); counter-increment: metric;
  position: absolute; left: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); top: clamp(1.35rem, 1rem + 0.7vw, 1.8rem);
  font: 0.7rem var(--font-mono); color: var(--grey-500);
}
.metrics { counter-reset: metric; }
.outcome-support {
  position: relative;
  gap: 0;
  margin-top: clamp(3rem, 2.2rem + 3vw, 5rem);
  padding-block: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--white);
  border-block: 1px solid var(--line-strong);
}
.outcome-support::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: clamp(48px, 7vw, 88px); height: 1px;
  background: var(--black);
}
.outcome-support .card {
  min-height: 100%;
  padding-block: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 0;
  border-radius: 0;
  background: transparent !important;
}
.outcome-support .card + .card { border-left: 1px solid var(--line); }

/* Capability areas use different silhouettes instead of repeating identical grids. */
.home-section--industries .grid { align-items: start; }
.home-section--industries .card { border: 0; border-top: 1px solid var(--black); border-radius: 0; padding-inline: 0; }
.home-section--practices .grid { gap: 0; border-block: 1px solid var(--line-strong); }
.home-section--practices .card { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.home-section--practices .card:last-child { border-right: 0; }
.home-section--practices a.card:hover {
  border-color: var(--line);
  border-top: 0;
  border-bottom: 0;
  transform: translateY(-3px);
  background: var(--white);
  box-shadow: 0 18px 40px -34px rgba(0,0,0,0.32);
}
.home-section--practices a.card:last-child:hover { border-right: 0; }
.home-section--ai .grid { gap: 0; border: 1px solid var(--line); }
.home-section--ai .card { border: 0; border-radius: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-section--ai .card:nth-child(3n) { border-right: 0; }
.home-section--ai .card:nth-last-child(-n+3) { border-bottom: 0; }
.home-section--ai .card:nth-child(even) { background: var(--grey-50); }
.home-section--ai .stats {
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--grey-900);
  border-color: var(--grey-900);
}
.home-section--ai .stats .stat { min-height: 155px; display: flex; flex-direction: column; justify-content: flex-end; }
.home-section--ai .stats .stat:nth-child(1) { grid-column: span 7; }
.home-section--ai .stats .stat:nth-child(2) { grid-column: span 5; }
.home-section--ai .stats .stat:nth-child(3) { grid-column: span 4; }
.home-section--ai .stats .stat:nth-child(4) { grid-column: span 8; }

/* Reasons switch from a long list to a more scannable two-column index. */
.home-section--reasons .feature-row { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); }
.home-section--reasons .feature-item { padding: 2rem clamp(1rem, 3vw, 3rem) 2rem 0; }
.home-section--reasons .feature-item:nth-child(even) { padding-left: clamp(1rem, 3vw, 3rem); border-left: 1px solid var(--line); }
.home-section--reasons .feature-item:last-child { grid-column: 1 / -1; padding-right: 25%; border-bottom: 1px solid var(--line); }

/* Placeholder social-proof components remain useful before final assets arrive. */
.home-section--testimonial { background: var(--white); }
.testimonial-card {
  position: relative; max-width: 820px; margin: 0 auto; padding: clamp(2.5rem, 2rem + 4vw, 5rem);
  text-align: left; background: var(--grey-50); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.testimonial-card::before {
  content: "“"; position: absolute; right: clamp(1.5rem, 4vw, 3.5rem); top: 0.25rem;
  font-size: clamp(5rem, 10vw, 8rem); line-height: 1; color: var(--grey-200); font-family: Georgia, serif;
}
.testimonial-card .eyebrow { justify-content: flex-start !important; }
.testimonial-card blockquote { position: relative; max-width: 27ch; }
.home-section--team .member { display: grid; grid-template-columns: minmax(130px, 0.7fr) 1fr; align-items: center; background: var(--white); }
.home-section--team .member .avatar { aspect-ratio: 1; border: 0; border-right: 1px solid var(--line); background-color: var(--grey-100); background-image: radial-gradient(circle at 50% 35%, var(--grey-300) 0 14%, transparent 14.5%), radial-gradient(ellipse at 50% 105%, var(--grey-300) 0 34%, transparent 34.5%); }
.home-section--team .member .avatar span { font-size: 0.7rem; color: var(--grey-500); align-self: end; margin-bottom: 1rem; }
.home-section--team .link-arrow:hover { border-color: transparent; }

.home-section--blog .thumb {
  position: relative; isolation: isolate;
  background-color: var(--grey-100);
  background-image: linear-gradient(135deg, transparent 48%, var(--grey-300) 48% 49%, transparent 49%), radial-gradient(circle at 75% 25%, var(--white) 0 10%, transparent 10.5%);
  background-size: 28px 28px, auto;
}
.home-section--blog .thumb::after { content: ""; position: absolute; inset: 14%; z-index: -1; border: 1px solid var(--grey-300); }
.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; overflow: hidden; margin-bottom: 1.75rem; }
.featured-post__visual { aspect-ratio: auto; border: 0; border-radius: 0; border-right: 1px solid var(--line); min-height: 300px; display: grid; place-items: center; }
.featured-post__body { padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; }

/* Responsive audit for the new compositions and the featured editorial card. */
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .home-section--ai .card:nth-child(3n) { border-right: 1px solid var(--line); }
  .home-section--ai .card:nth-child(2n) { border-right: 0; }
  .home-section--ai .card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .home-section--ai .card:nth-last-child(-n+2) { border-bottom: 0; }
  .home-section--ai .stats { grid-template-columns: repeat(2, 1fr); }
  .home-section--ai .stats .stat:nth-child(n) { grid-column: span 1; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post__visual { min-height: 240px; aspect-ratio: 16 / 7; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .home-section--services .card { min-height: 0; }
  .nova::before { display: none; }
  .nova-phase { padding-inline: clamp(1.25rem, 5vw, 1.75rem); }
  .metrics { grid-template-columns: 1fr; }
  .metric:nth-child(odd) { border-right: 0; }
  .outcome-support { gap: 0; }
  .outcome-support .card + .card { border-left: 0; border-top: 1px solid var(--line); }
  .home-section--practices .grid { border-bottom: 0; }
  .home-section--practices .card { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .home-section--ai .card,
  .home-section--ai .card:nth-child(2n),
  .home-section--ai .card:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-section--ai .card:last-child { border-bottom: 0; }
  .home-section--ai .stats { grid-template-columns: 1fr; }
  .home-section--ai .stats .stat:nth-child(n) { grid-column: 1; min-height: 0; }
  .home-section--reasons .feature-row { grid-template-columns: 1fr; }
  .home-section--reasons .feature-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .home-section--reasons .feature-item:last-child { grid-column: auto; padding-right: 0; }
  .home-section--team .member { grid-template-columns: 110px 1fr; }
  .featured-post__visual { min-height: 190px; aspect-ratio: 4 / 3; }
  .featured-post__body { padding: 1.5rem; }
  .post-meta { flex-wrap: wrap; }
}
