/* ─────────────────────────────────────────────────────────────────
   Cardinaal — AI Growth Partner
   Dark editorial (near-black canvas) + white accent on .io
   Font: Outfit (display + body) · JetBrains Mono (numbers/meta)
───────────────────────────────────────────────────────────────── */

:root {
  /* Canvas — deep black / charcoal */
  --bg:           #0a0a0a;
  --surface:      #141414;
  --surface-raised: #171717;
  /* Text */
  --text:         #fafafa;
  --text-muted:   #a3a3a3;
  --text-subtle:  #737373;
  /* Brand accent — logo .io */
  --accent:       #ffffff;
  --accent-hover: #ffffff;
  --accent-muted: rgba(255, 255, 255, 0.06);
  --accent-delta: #d4d4d4;
  /* True black for banded sections (not --text) */
  --ink:          #030303;
  /* Borders & shadows */
  --border:       rgba(255, 255, 255, 0.08);
  --border-solid: #262626;
  --shadow-card:  0 24px 48px -20px rgba(0, 0, 0, 0.65);
  --shadow-sm:    0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  /* Radii */
  --r-sm:    8px;
  --r-md:    16px;
  --r-lg:    24px;
  --r-xl:    32px;
  --r-pill:  999px;
  /* Typography */
  --font:    "Outfit", system-ui, sans-serif;
  --mono:    "JetBrains Mono", "Courier New", monospace;
  /* Easing */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Theme-tied surfaces (dark default) */
  --grain-opacity: 0.04;
  --header-bg: #000000;
  --header-border-mobile: rgba(255, 255, 255, 0.06);
  --nav-link-hover-bg: rgba(255, 255, 255, 0.06);
  --mobile-overlay: rgba(10, 10, 10, 0.97);
  --cta-bg: #fafafa;
  --cta-fg: #0a0a0a;
  --cta-hover: #e5e5e5;
  --cta-icon-bg: rgba(0, 0, 0, 0.08);
  --cta-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.55);
  --bezel-outer: rgba(255, 255, 255, 0.04);
  --bezel-inset-top: rgba(255, 255, 255, 0.06);
  --tile-outer: rgba(255, 255, 255, 0.03);
  --tile-hover-border: rgba(255, 255, 255, 0.12);
  --tile-inner-inset: rgba(255, 255, 255, 0.05);
  --icon-wrap-bg: rgba(255, 255, 255, 0.05);
  --service-stat-bg: rgba(0, 0, 0, 0.35);
  --process-step-hover: rgba(255, 255, 255, 0.02);
  --hv-dot: #a3a3a3;
  --hv-dot-accent: #525252;
  --signup-eyebrow-bg: rgba(255, 255, 255, 0.08);
  --signup-eyebrow-fg: rgba(255, 255, 255, 0.65);
  --signup-title: #ffffff;
  --signup-desc: rgba(255, 255, 255, 0.55);
  --signup-shell-outer-bg: rgba(255, 255, 255, 0.06);
  --signup-shell-outer-border: rgba(255, 255, 255, 0.1);
  --signup-shell-inner-bg: rgba(255, 255, 255, 0.04);
  --signup-shell-inner-inset: rgba(255, 255, 255, 0.07);
  --form-label: rgba(255, 255, 255, 0.7);
  --form-input-fg: #ffffff;
  --form-input-bg: rgba(255, 255, 255, 0.07);
  --form-input-border: rgba(255, 255, 255, 0.12);
  --form-placeholder: rgba(255, 255, 255, 0.3);
  --form-input-focus-border: rgba(255, 255, 255, 0.35);
  --form-input-focus-bg: rgba(255, 255, 255, 0.1);
  --submit-bg: #ffffff;
  --submit-fg: #0a0a0a;
  --submit-hover: #e5e5e5;
  --form-note: rgba(255, 255, 255, 0.35);
  --form-error: #ffffff;
  --signup-success-bg: rgba(255, 255, 255, 0.08);
  --signup-success-border: rgba(255, 255, 255, 0.2);
  --signup-success-fg: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-raised: #fafafa;
  --text: #0a0a0a;
  --text-muted: #525252;
  --text-subtle: #737373;
  --accent: #0a0a0a;
  --accent-hover: #171717;
  --accent-muted: rgba(0, 0, 0, 0.06);
  --accent-delta: #404040;
  --ink: #e4e4e7;
  --border: rgba(0, 0, 0, 0.08);
  --border-solid: #e4e4e7;
  --shadow-card: 0 24px 48px -20px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 24px -12px rgba(0, 0, 0, 0.08);
  --grain-opacity: 0.035;
  --header-bg: #ffffff;
  --header-border-mobile: rgba(0, 0, 0, 0.08);
  --nav-link-hover-bg: rgba(0, 0, 0, 0.05);
  --mobile-overlay: rgba(250, 250, 250, 0.97);
  --cta-bg: #0a0a0a;
  --cta-fg: #fafafa;
  --cta-hover: #262626;
  --cta-icon-bg: rgba(255, 255, 255, 0.12);
  --cta-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.2);
  --bezel-outer: rgba(0, 0, 0, 0.06);
  --bezel-inset-top: rgba(255, 255, 255, 0.9);
  --tile-outer: rgba(0, 0, 0, 0.04);
  --tile-hover-border: rgba(0, 0, 0, 0.12);
  --tile-inner-inset: rgba(0, 0, 0, 0.04);
  --icon-wrap-bg: rgba(0, 0, 0, 0.04);
  --service-stat-bg: rgba(0, 0, 0, 0.06);
  --process-step-hover: rgba(0, 0, 0, 0.03);
  --hv-dot: #737373;
  --hv-dot-accent: #a3a3a3;
  --signup-eyebrow-bg: rgba(0, 0, 0, 0.06);
  --signup-eyebrow-fg: rgba(10, 10, 10, 0.65);
  --signup-title: #0a0a0a;
  --signup-desc: rgba(10, 10, 10, 0.6);
  --signup-shell-outer-bg: rgba(255, 255, 255, 0.85);
  --signup-shell-outer-border: rgba(0, 0, 0, 0.1);
  --signup-shell-inner-bg: #ffffff;
  --signup-shell-inner-inset: rgba(0, 0, 0, 0.04);
  --form-label: rgba(10, 10, 10, 0.75);
  --form-input-fg: #0a0a0a;
  --form-input-bg: rgba(255, 255, 255, 0.9);
  --form-input-border: rgba(0, 0, 0, 0.12);
  --form-placeholder: rgba(10, 10, 10, 0.35);
  --form-input-focus-border: rgba(10, 10, 10, 0.35);
  --form-input-focus-bg: #ffffff;
  --submit-bg: #0a0a0a;
  --submit-fg: #fafafa;
  --submit-hover: #262626;
  --form-note: rgba(10, 10, 10, 0.45);
  --form-error: #0a0a0a;
  --signup-success-bg: rgba(0, 0, 0, 0.04);
  --signup-success-border: rgba(0, 0, 0, 0.12);
  --signup-success-fg: rgba(10, 10, 10, 0.9);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--text); }

/* ─── GRAIN OVERLAY (fixed, pointer-events-none) ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 9999;
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out),
              transform 0.75s var(--ease-out);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.fade-up--delay    { transition-delay: 0.12s; }
.fade-up--delay-1  { transition-delay: 0.1s; }
.fade-up--delay-2  { transition-delay: 0.2s; }
.fade-up--delay-3  { transition-delay: 0.3s; }

/* ─── UTILITIES ─── */
.hidden { display: none !important; }
.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: block; } }

/* ─── EYEBROW BADGE ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  background: var(--accent-muted);
  color: var(--text);
  border: 1px solid var(--border-solid);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
  margin-bottom: 1.25rem;
}

/* ─── SECTION HEADER ─── */
.section-header { margin-bottom: 3.5rem; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-top: 0.25rem;
}

/* ─────────────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  pointer-events: all;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.logo {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.logo-tld {
  color: var(--accent);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Desktop: center text links in the bar; CTA stays in .nav-actions on the right */
@media (min-width: 641px) {
  .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-cta--drawer {
    display: none !important;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
  position: relative;
  /* Above mobile drawer overlay so the menu toggle stays usable */
  z-index: 130;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border-solid);
  border-radius: var(--r-pill);
  background: var(--accent-muted);
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              transform 0.2s var(--ease-out);
}
.theme-toggle:hover {
  background: var(--nav-link-hover-bg);
  border-color: var(--border-solid);
}
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle__icon--moon { display: none; }
.theme-toggle.theme-toggle--light .theme-toggle__icon--sun { display: none; }
.theme-toggle.theme-toggle--light .theme-toggle__icon--moon { display: flex; }

.nav-link {
  padding: 0.45rem 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--r-pill);
  transition: color 0.25s var(--ease-out),
              background 0.25s var(--ease-out);
}
.nav-link:hover {
  color: var(--text);
  background: var(--nav-link-hover-bg);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  background: var(--cta-bg);
  color: var(--cta-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--r-pill);
  transition: background 0.25s var(--ease-out),
              transform 0.25s var(--ease-out);
}
.nav-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}
.nav-cta:active { transform: scale(0.97); }

.btn-icon-wrap-sm {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--cta-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-out);
}
.nav-cta:hover .btn-icon-wrap-sm { transform: translateX(2px) translateY(-1px); }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin: 0 -0.25rem 0 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s var(--ease-out),
              opacity 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ─────────────────────────────────────────────────────────────────
   BUTTONS (primary)
───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 0.875rem 0.875rem 1.5rem;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease-out),
              transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--cta-shadow);
}
.btn-primary:active { transform: scale(0.97) translateY(0); box-shadow: none; }

.btn-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--cta-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.btn-primary:hover .btn-icon-wrap { transform: translateX(3px) translateY(-2px); }


/* ─────────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 100dvh;
  padding: 8rem 1.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 520px;
}

.hero-title {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

/* ─── HERO VISUAL (double-bezel dashboard card) ─── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hv-shell {
  width: 100%;
  max-width: 380px;
  background: var(--bezel-outer);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 3px;
  box-shadow: var(--shadow-card);
}

.hv-core {
  background: var(--surface-raised);
  border-radius: calc(var(--r-xl) - 3px);
  box-shadow: inset 0 1px 0 var(--bezel-inset-top);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hv-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}

.hv-number {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.hv-delta {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent-delta);
  margin-top: 0.375rem;
}
.hv-delta-arrow { margin-right: 0.2em; }

.hv-divider {
  height: 1px;
  background: var(--border-solid);
  opacity: 0.5;
}

.hv-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hv-number-sm {
  font-family: var(--mono);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}
.hv-unit {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}

.hv-activity { display: flex; flex-direction: column; gap: 0.625rem; }
.hv-activity-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hv-dot);
  flex-shrink: 0;
  animation: pulse-dot 2.5s var(--ease-out) infinite;
}
.hv-dot--amber { background: var(--hv-dot-accent); animation-delay: 0.8s; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.8); }
}

/* ─────────────────────────────────────────────────────────────────
   LOGOS MARQUEE
───────────────────────────────────────────────────────────────── */
.logos {
  border-top: 1px solid var(--border-solid);
  border-bottom: 1px solid var(--border-solid);
  padding: 2rem 0;
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}

.marquee-track { overflow: hidden; }
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-inner:hover { animation-play-state: paused; }
.marquee-inner span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
  transition: color 0.25s;
}
.marquee-inner span:hover { color: var(--text-muted); }
.marquee-sep { color: var(--border-solid) !important; font-weight: 400 !important; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Anchor offset for fixed nav */
#about,
#case-studies,
#services,
#process,
#reviews,
#lets-talk {
  scroll-margin-top: 6rem;
}

/* ─── CASE STUDIES (nav target + intro) ─── */
.case-studies {
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.5rem 0;
  max-width: 1100px;
  margin: 0 auto;
}
.case-studies-inner { max-width: 640px; }
.case-studies-header { margin-bottom: 0; }
.case-studies-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 52ch;
  margin-top: 1rem;
}

/* ─────────────────────────────────────────────────────────────────
   RESULTS
───────────────────────────────────────────────────────────────── */
.results {
  padding: clamp(5rem, 8vw, 8rem) 1.5rem;
}

.results-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.result-item {
  flex: 1;
  text-align: center;
  padding: 2rem;
}

.result-number {
  font-family: var(--mono);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.result-unit {
  font-size: 1.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-subtle);
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.5;
}

.result-divider {
  width: 1px;
  height: 80px;
  background: var(--border-solid);
  flex-shrink: 0;
  opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────
   SERVICES BENTO
───────────────────────────────────────────────────────────────── */
.services {
  padding: clamp(5rem, 8vw, 8rem) 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.875rem;
}

/* Tile 1 (Lead Gen) spans 7 cols, 2 rows */
.service-tile { grid-column: span 4; }
.service-tile--lead { grid-column: span 7; grid-row: span 2; }

/* row 2: tiles 2+3 fill remaining 5 cols each, then row 3: tiles 4-6 are 4 cols each */
/* CSS auto-placement handles this naturally with the spans defined */

/* Double-bezel architecture */
.service-tile {
  background: var(--tile-outer);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2px;
  transition: transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--tile-hover-border);
}

.service-tile-inner {
  background: var(--surface);
  border-radius: calc(var(--r-lg) - 2px);
  box-shadow: inset 0 1px 0 var(--tile-inner-inset);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-tile--lead .service-tile-inner { padding: 2.25rem; }

.service-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--icon-wrap-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

.service-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.service-tile--lead .service-name { font-size: 1.25rem; }

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 52ch;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.service-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--text-subtle);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  background: var(--service-stat-bg);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  margin-top: auto;
  width: fit-content;
}
.service-stat-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
}

/* ─────────────────────────────────────────────────────────────────
   PROCESS
───────────────────────────────────────────────────────────────── */
.process {
  padding: clamp(5rem, 8vw, 8rem) 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process .section-header { max-width: 1100px; margin-left: auto; margin-right: auto; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--border-solid);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.process-step {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border-solid);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: background 0.25s var(--ease-out);
}
.process-step:hover { background: var(--process-step-hover); }
.process-step:last-child { border-right: none; }

.step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
}

.step-body { display: flex; flex-direction: column; gap: 0.625rem; }

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.6rem;
  background: var(--accent-muted);
  color: var(--text-muted);
  border: 1px solid var(--border-solid);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

/* ─────────────────────────────────────────────────────────────────
   TESTIMONIAL
───────────────────────────────────────────────────────────────── */
.testimonial {
  padding: clamp(5rem, 8vw, 8rem) 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-inner { display: flex; justify-content: center; }

.testimonial-shell {
  width: 100%;
  background: var(--tile-outer);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 3px;
}

.testimonial-core {
  background: var(--surface-raised);
  border-radius: calc(var(--r-xl) - 3px);
  box-shadow: inset 0 1px 0 var(--tile-inner-inset);
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.quote-mark { color: var(--text-subtle); }

.quote-text {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-style: italic;
}

.quote-attribution {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-solid);
}

.quote-avatar {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--accent-muted);
  color: var(--text);
  border: 1px solid var(--border-solid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.quote-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
}
.quote-role {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-top: 0.15rem;
}

/* ─────────────────────────────────────────────────────────────────
   CONTACT / LEAD (LET'S TALK)
───────────────────────────────────────────────────────────────── */
.signup {
  padding: clamp(5rem, 8vw, 8rem) 1.5rem;
  background: var(--ink);
  border-top: 1px solid var(--border);
}

.signup-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.signup-text .eyebrow {
  background: var(--signup-eyebrow-bg);
  color: var(--signup-eyebrow-fg);
}

.signup-text .section-title { color: var(--signup-title); }

.signup-desc {
  font-size: 1rem;
  color: var(--signup-desc);
  line-height: 1.7;
  max-width: 44ch;
  margin-top: 1rem;
}

/* double-bezel form card */
.signup-shell {
  background: var(--signup-shell-outer-bg);
  border: 1px solid var(--signup-shell-outer-border);
  border-radius: var(--r-xl);
  padding: 3px;
}

.signup-core {
  background: var(--signup-shell-inner-bg);
  border-radius: calc(var(--r-xl) - 3px);
  box-shadow: inset 0 1px 0 var(--signup-shell-inner-inset);
  padding: 2.25rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--form-label);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 641px) {
  .form-row {
    flex-direction: row;
    align-items: stretch;
  }
  .form-row .form-input {
    flex: 1;
    min-width: 0;
  }
  .form-row .submit-btn {
    width: auto;
    flex-shrink: 0;
  }
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.125rem;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--form-input-fg);
  background: var(--form-input-bg);
  border: 1px solid var(--form-input-border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.25s var(--ease-out),
              background 0.25s var(--ease-out);
}
.form-input::placeholder { color: var(--form-placeholder); }
.form-input:focus {
  border-color: var(--form-input-focus-border);
  background: var(--form-input-focus-bg);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9rem 0.9rem 0.9rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--submit-fg);
  background: var(--submit-bg);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.25s var(--ease-out),
              transform 0.25s var(--ease-out);
  width: 100%;
}
.submit-btn:hover {
  background: var(--submit-hover);
  transform: translateY(-1px);
}
.submit-btn:active { transform: scale(0.97); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-btn .btn-icon-wrap {
  width: 2rem;
  height: 2rem;
  background: var(--cta-icon-bg);
  color: var(--submit-fg);
}

.form-note {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--form-note);
  line-height: 1.5;
}

.form-error {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--form-error);
  font-family: var(--mono);
}

.signup-success {
  padding: 1.25rem;
  background: var(--signup-success-bg);
  border: 1px solid var(--signup-success-border);
  color: var(--signup-success-fg);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.footer-logo { font-size: 1rem; }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-subtle);
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  font-family: var(--mono);
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────── */

/* Tablet & below */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 1.25rem 4rem;
    min-height: unset;
    gap: 3rem;
  }
  .hero-content { max-width: none; }
  .hero-visual { justify-content: flex-start; }
  .hv-shell { max-width: 100%; }

  .results-inner { flex-direction: column; gap: 0; }
  .result-divider { width: 80px; height: 1px; }

  .services-bento { grid-template-columns: repeat(6, 1fr); }
  .service-tile--lead { grid-column: span 6; grid-row: span 1; }
  .service-tile { grid-column: span 3; }

  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border-solid); }
  .process-step:nth-child(odd) { border-right: 1px solid var(--border-solid); }
  .process-step:nth-last-child(-n+2) { border-bottom: none; }

  .testimonial-core { padding: 2rem 2rem; }

  .signup-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Mobile */
@media (max-width: 640px) {
  .header { border-bottom-color: var(--header-border-mobile); }
  .nav-pill { padding: 0.75rem 1rem; }
  .nav-links { display: none; }
  .nav-cta--drawer {
    display: none;
  }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--mobile-overlay);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 120;
    padding: 2rem;
  }
  .nav-links.is-open .nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
  }
  .nav-links.is-open .nav-cta--drawer {
    display: inline-flex;
    margin-top: 0.5rem;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
  /* Bar CTA is redundant while drawer is open; avoids a floating control above the overlay */
  .nav-links.is-open ~ .nav-actions .nav-cta--bar {
    display: none;
  }
  .nav-toggle { display: flex; z-index: 131; }

  .hero { padding: 6rem 1rem 3rem; }
  .hero-title { font-size: 2.5rem; }

  .services-bento { grid-template-columns: 1fr; gap: 0.75rem; }
  .service-tile,
  .service-tile--lead { grid-column: span 1; grid-row: span 1; }

  .process-steps { grid-template-columns: 1fr; border-radius: var(--r-md); }
  .process-step { border-right: none; border-bottom: 1px solid var(--border-solid); }
  .process-step:last-child { border-bottom: none; }

  .testimonial-core { padding: 1.5rem; }
  .quote-text { font-size: 1.125rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
