/* ===================================================
   DESIGN TOKENS — ClickHouse Design System
   Primary: #e1e723 (electric green)
   Canvas: #0a0a0a (near-pure black)
=================================================== */
:root {
  /* ── Core palette ─────────────────────────────── */
  --primary:           #e1e723;
  --primary-active:    #c8ce1f;
  --primary-disabled:  #3a3a1f;
  --on-primary:        #0a0a0a;
  --ink:               #ffffff;
  --body:              #cccccc;
  --body-strong:       #e6e6e6;
  --muted:             #888888;
  --muted-soft:        #5a5a5a;
  --hairline:          #2a2a2a;
  --hairline-strong:   #3a3a3a;
  --canvas:            #0a0a0a;
  --surface-soft:      #121212;
  --surface-card:      #1a1a1a;
  --surface-elevated:  #242424;
  --accent-emerald:    #22c55e;
  --accent-rose:       #ef4444;
  --accent-blue:       #3b82f6;
  --accent-warning:    #f59e0b;

  /* ── Legacy aliases so existing HTML compiles ─── */
  --dark:        var(--canvas);
  --dark-2:      var(--surface-soft);
  --dark-card:   var(--surface-card);
  --dark-border: var(--hairline);
  --white:       #ffffff;
  --bg:          var(--canvas);
  --bg-soft:     var(--surface-soft);
  --bg-warm:     var(--surface-card);
  --text:        var(--ink);
  --text-2:      var(--body-strong);
  --text-muted:  var(--body);
  --text-light:  var(--muted);
  --border:      var(--hairline);
  --green:       var(--accent-emerald);
  --red:         var(--accent-rose);
  --purple:      #a78bfa;     /* kept for SVG agent diagram */
  --teal:        #14b8a6;

  /* ── Typography ───────────────────────────────── */
  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* ── Border radius — ClickHouse scale ────────── */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  12px;   /* capped at 12 per spec */
  --r-2xl: 12px;
  --r-full: 9999px;  /* badges/pills only */

  /* ── No shadows in ClickHouse ────────────────── */
  --shadow-sm:     none;
  --shadow-md:     none;
  --shadow-lg:     none;
  --shadow-xl:     none;
  --shadow-blue:   none;
  --shadow-orange: none;

  /* ── Motion ───────────────────────────────────── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Atmosphere (subtle depth on the flat canvas) ── */
  --glow-primary: rgba(225, 231, 35, 0.07);
  --glow-blue:    rgba(59, 130, 246, 0.06);
  --grid-line:    rgba(255, 255, 255, 0.035);
}

/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;   /* clear the fixed nav on anchor jumps */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ===================================================
   TYPOGRAPHY — Inter system, ClickHouse scale
=================================================== */
.display-1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.15rem;
  color: var(--ink);
}
.display-2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.125rem;
  color: var(--ink);
}
.h2 {
  font-family: var(--font-head);
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.0625rem;
  color: var(--ink);
}
.h3 {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.0188rem;
  color: var(--ink);
}
.h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.body-lg { font-size: clamp(0.9375rem, 1.5vw, 1.0625rem); line-height: 1.55; }
.body-md { font-size: 1rem; line-height: 1.55; }
.body-sm { font-size: 0.875rem; line-height: 1.55; }
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Green accent text (replaces gradient-text) */
.grad-text {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: var(--primary);
}
.grad-text-blue {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: var(--primary);
}

/* ===================================================
   LAYOUT
=================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.flex           { display: flex; }
.flex-col       { display: flex; flex-direction: column; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.text-center { text-align: center; }
.mt-2  { margin-top:  8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mb-2  { margin-bottom:  8px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

/* ===================================================
   BUTTONS — ClickHouse spec: 8px radius, 40px height
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  border-radius: var(--r-md);    /* 8px — not pill */
  padding: 0 20px;
  height: 40px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}

/* Primary: green bg, black text — the signature CTA */
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 0 0 rgba(225, 231, 35,0);
  overflow: hidden;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
/* Sheen sweep on hover — one pass, subtle */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover {
  background: var(--primary-active);
  box-shadow: 0 0 24px rgba(225, 231, 35,0.25);
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:active { background: var(--primary-active); transform: scale(0.98); }

/* Dark / secondary: surface-card bg, white text */
.btn-dark {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-dark:hover { background: var(--surface-elevated); }

/* Outline (for dark sections) */
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn-outline:hover { border-color: var(--muted); }

/* Outline dark (for light surfaces — now light gray) */
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn-outline-dark:hover { border-color: var(--muted); }

.btn-lg { height: 44px; padding: 0 24px; font-size: 0.9375rem; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.8125rem; }

/* No lift on hover — ClickHouse is flat */
.btn-icon {
  width: 18px; height: 18px;
  transition: transform 0.15s ease;
}
.btn:hover .btn-icon { transform: translateX(2px); }

/* Text arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s;
}
.link-arrow:hover { color: var(--ink); }
.link-arrow svg   { transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(2px); }

/* On green band — link arrows are dark */
.link-arrow-light        { color: rgba(10,10,10,0.55); }
.link-arrow-light:hover  { color: var(--on-primary); }

/* ===================================================
   BADGES / PILLS — ClickHouse: pill shape, sparse use
=================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);  /* pill — only place pills appear */
}

/* Standard dark pill */
.badge-blue, .badge-purple {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
/* Green pill — "NEW", highlights */
.badge-orange, .badge-green {
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid transparent;
}
/* Emerald semantic */
.badge-green {
  background: rgba(34,197,94,0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(34,197,94,0.2);
}
/* On-dark (for dark hero sections) */
.badge-white {
  background: rgba(255,255,255,0.07);
  color: var(--body-strong);
  border: 1px solid var(--hairline-strong);
}

/* ===================================================
   CARDS — surface-card dark, hairline border, no shadow
=================================================== */
.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.3s var(--ease-out);
  position: relative;
}
.card:hover {
  border-color: var(--hairline-strong);
  box-shadow: none;
  transform: none;
}

/* Cursor spotlight — JS sets --mx/--my; a faint glow follows the mouse */
.spotlight {
  overflow: hidden;
}
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(225, 231, 35,0.05), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

.card-dark {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px;
}

/* Green feature card (ClickHouse "feature-card-green") */
.card-featured {
  background: var(--primary);
  border: none;
  color: var(--on-primary);
  position: relative;
  overflow: hidden;
}
.card-featured::before { display: none; }

/* ===================================================
   NAVIGATION
=================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 24px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
/* Always starts transparent on canvas */
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Scrolled state: surface-soft with hairline */
.nav.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
/* Dark variant — same behavior */
.nav-dark.scrolled {
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid var(--hairline);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-mark img { width: 34px; height: auto; display: block; }
.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
/* scrolled variants — stays dark always now */
.nav.scrolled .nav-logo-text  { color: var(--ink); }
.nav-dark .nav-logo-text      { color: var(--ink); }
.nav-dark.scrolled .nav-logo-text { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--r-md);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover          { color: var(--ink); background: var(--surface-card); }
.nav-link.active         { color: var(--ink); }
/* scrolled — same dark */
.nav.scrolled .nav-link,
.nav-dark .nav-link,
.nav-dark.scrolled .nav-link { color: var(--muted); }
.nav.scrolled .nav-link:hover,
.nav-dark.scrolled .nav-link:hover { color: var(--ink); background: var(--surface-card); }
.nav.scrolled .nav-link.active,
.nav-dark.scrolled .nav-link.active { color: var(--ink); }

.nav-cta { margin-left: 8px; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 96px; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,0.99);
  backdrop-filter: blur(12px);
  padding: 32px 24px;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  display: block;
  transition: color 0.15s;
}
.nav-mobile-link:hover { color: var(--ink); }
.nav-mobile-cta { margin-top: 28px; }
.nav-mobile-cta .btn { width: 100%; }

/* ===================================================
   HERO — flat canvas, no atmospheric glow
=================================================== */
.hero {
  min-height: 100vh;
  background: var(--canvas);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 96px;
}
/* Atmosphere: faint engineering grid + a single green bloom.
   Depth without abandoning the flat, technical aesthetic. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background:
    radial-gradient(ellipse at center, var(--glow-primary) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, var(--glow-blue) 0%, transparent 55%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0;
}
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.hero-title   { color: var(--ink); margin-bottom: 24px; }
.hero-sub {
  color: var(--body);
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.hero-visual  { display: flex; align-items: center; justify-content: center; }
.hero-svg-wrap {
  width: 100%;
  max-width: 500px;
  /* flat — no drop-shadow filter in ClickHouse */
  animation: float 6s ease-in-out infinite;
}

/* ===================================================
   PROBLEM SECTION
=================================================== */
.problem {
  background: var(--surface-soft);
  padding: 96px 0;
}
.problem-inner   { max-width: 800px; margin: 0 auto; text-align: center; }
.problem-question {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 20px;
}
.problem-body {
  font-size: clamp(0.9375rem, 1.25vw, 1rem);
  line-height: 1.7;
  color: var(--body);
}

/* ===================================================
   VALUE ICON
=================================================== */
.value-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.value-icon-blue   { background: rgba(59,130,246,0.12);  }
.value-icon-orange { background: rgba(225, 231, 35,0.12); }
.value-icon-green  { background: rgba(34,197,94,0.12);   }
.value-icon-purple { background: rgba(167,139,250,0.12); }

/* ===================================================
   GUIDE / AUTHOR SECTION
=================================================== */
.guide {
  background: var(--canvas);
  padding: 96px 0;
}
.guide-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
.guide-body {
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  line-height: 1.75;
  color: var(--body);
}
.guide-photo-wrap {
  position: sticky;
  top: 88px;
}
.guide-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-lg);
  display: block;
  border: 1px solid var(--hairline);
}
.testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 88px;
}
.quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--primary);
  font-family: Georgia, serif;
  margin-bottom: 4px;
  display: block;
}
.quote-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--body);
  font-style: italic;
  margin-bottom: 20px;
}
.quote-author  { display: flex; align-items: center; gap: 12px; }
.quote-avatar  {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.quote-name  { font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.quote-title { font-size: 0.8125rem; color: var(--muted); }

/* ===================================================
   STEPS SECTION
=================================================== */
.steps {
  background: var(--surface-soft);
  padding: 96px 0;
  position: relative;
}
.steps::before { display: none; }   /* no atmospheric glow */
.steps-header  { }
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.step-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.step-card:hover {
  border-color: var(--hairline-strong);
  transform: none;       /* flat — no lift */
  background: var(--surface-card);
}
.step-num {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,0.03);
  position: absolute;
  bottom: 12px; right: 16px;
  letter-spacing: -0.04em;
  pointer-events: none;
}
.step-badge {
  width: 36px; height: 36px;
  background: var(--primary);        /* green numbered badge */
  color: var(--on-primary);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.step-title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.step-body { font-size: 0.875rem; color: var(--body); line-height: 1.65; }

/* ===================================================
   EXPLAINER
=================================================== */
.explainer { background: var(--canvas); padding: 96px 0; }
.explainer-inner { max-width: 800px; margin: 0 auto; text-align: center; }

/* ===================================================
   BEFORE / AFTER COMPARISON — dark mode
=================================================== */
.comparison { padding: 96px 0; background: var(--surface-soft); }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.comparison-card { border-radius: var(--r-lg); padding: 36px; }
.comparison-without {
  background: var(--surface-card);
  border: 1px solid rgba(239,68,68,0.2);
}
.comparison-with {
  background: var(--surface-card);
  border: 1px solid rgba(34,197,94,0.2);
}
.comparison-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.comparison-without .comparison-title { color: var(--accent-rose); }
.comparison-with    .comparison-title { color: var(--accent-emerald); }
.comparison-list  { display: flex; flex-direction: column; gap: 12px; }
.comparison-item  {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--body);
}
.comparison-dot {
  width: 6px; height: 6px;
  border-radius: 1px;
  margin-top: 6px;
  flex-shrink: 0;
}
.comparison-without .comparison-dot { background: var(--accent-rose); }
.comparison-with    .comparison-dot { background: var(--accent-emerald); }

/* ===================================================
   CTA BAND — ClickHouse "cta-band-green"
   Full green fill, black type, dark button
=================================================== */
.cta-section {
  background: var(--primary);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before { display: none; }  /* no gradient overlay */
.cta-watermark {
  position: absolute;
  right: -48px;
  bottom: -64px;
  width: 380px;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 768px) {
  .cta-watermark { width: 220px; right: -36px; bottom: -36px; }
}

.cta-inner        { text-align: center; }
.cta-title        { color: var(--on-primary); margin-bottom: 16px; }
.cta-sub {
  color: rgba(10,10,10,0.65);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
/* Primary button on green band = dark button */
.cta-section .btn-primary {
  background: var(--canvas);
  color: var(--primary);
}
.cta-section .btn-primary:hover { background: var(--surface-card); }
/* Outline button on green band = dark outline */
.cta-section .btn-outline {
  color: var(--on-primary);
  border-color: rgba(10,10,10,0.35);
}
.cta-section .btn-outline:hover { border-color: rgba(10,10,10,0.55); }
/* Badge on green band */
.cta-section .badge-white {
  background: rgba(10,10,10,0.08);
  color: rgba(10,10,10,0.65);
  border-color: rgba(10,10,10,0.12);
}

/* ===================================================
   PAGE HERO (inner pages) — flat canvas
=================================================== */
.page-hero {
  background: var(--canvas);
  padding: 144px 0 96px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, black 0%, transparent 75%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 70%;
  background: radial-gradient(ellipse at center, var(--glow-primary) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.page-hero-inner  { position: relative; z-index: 1; }
.page-hero-title  { color: var(--ink); margin-bottom: 16px; }
.page-hero-sub {
  color: var(--body);
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* ===================================================
   SERVICES PAGE
=================================================== */
.service-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 36px;
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  opacity: 0;
  transition: opacity 0.2s;
}
.service-card-lead::before    { background: var(--primary); }
.service-card-support::before { background: var(--accent-blue); }
.service-card-sched::before   { background: var(--teal); }
.service-card-ops::before     { background: var(--accent-emerald); }
.service-card:hover { border-color: var(--hairline-strong); transform: none; }
.service-card:hover::before   { opacity: 1; }

/* ===================================================
   PRICING PAGE
=================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 48px;
}
.pricing-card     { border-radius: var(--r-lg); padding: 36px 32px; position: relative; overflow: hidden; }
.pricing-card-base {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}
/* Featured tier = green fill (ClickHouse spec: pricing-tier-card-featured) */
.pricing-card-featured {
  background: var(--primary);
  border: none;
  transform: none;
  box-shadow: none;
}
.pricing-card-premium {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}
.pricing-recommended {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--canvas);
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.pricing-name {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pricing-card-base .pricing-name     { color: var(--muted); }
.pricing-card-featured .pricing-name { color: rgba(10,10,10,0.55); }
.pricing-card-premium .pricing-name  { color: var(--muted); }
.pricing-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.pricing-card-base .pricing-title     { color: var(--ink); }
.pricing-card-featured .pricing-title { color: var(--on-primary); }
.pricing-card-premium .pricing-title  { color: var(--ink); }
.pricing-price {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 20px 0 6px;
}
.pricing-card-base .pricing-price     { color: var(--primary); }  /* green stat number */
.pricing-card-featured .pricing-price { color: var(--on-primary); }
.pricing-card-premium .pricing-price  { color: var(--primary); }
.pricing-per { font-size: 0.8125rem; color: var(--muted); margin-bottom: 20px; }
.pricing-card-featured .pricing-per   { color: rgba(10,10,10,0.5); }
.pricing-divider {
  height: 1px;
  background: var(--hairline);
  margin: 20px 0;
}
.pricing-card-featured .pricing-divider { background: rgba(10,10,10,0.12); }
.pricing-features      { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-feature       { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; line-height: 1.5; }
.pricing-card-base .pricing-feature     { color: var(--body); }
.pricing-card-featured .pricing-feature { color: rgba(10,10,10,0.7); }
.pricing-card-premium .pricing-feature  { color: var(--body); }
.pricing-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.pricing-card-base .pricing-check     { background: rgba(34,197,94,0.1); }
.pricing-card-featured .pricing-check { background: rgba(10,10,10,0.1); }
.pricing-desc { font-size: 0.875rem; line-height: 1.65; margin-bottom: 16px; }
.pricing-card-base .pricing-desc     { color: var(--muted); }
.pricing-card-featured .pricing-desc { color: rgba(10,10,10,0.55); }

/* Buttons inside pricing cards */
.pricing-card-featured .btn-outline-dark {
  background: var(--canvas);
  color: var(--primary);
  border-color: rgba(10,10,10,0.2);
}
.pricing-card-featured .btn-outline-dark:hover { background: var(--surface-card); }
.pricing-card-featured .btn-primary {
  background: var(--canvas);
  color: var(--primary);
  border-color: transparent;
}
.pricing-card-featured .btn-primary:hover { background: var(--surface-card); }

/* ===================================================
   APPROACH / RESPONSIBLE AI
=================================================== */
.method-card {
  display: flex;
  gap: 20px;
  padding: 32px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  transition: border-color 0.2s;
}
.method-card:hover { border-color: var(--hairline-strong); }
.method-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  text-align: right;
  padding-top: 4px;
}
.commitment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.commitment-item {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--surface-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
}
.commitment-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===================================================
   ABOUT PAGE
=================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.creds-list { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--surface-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
}
.cred-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--primary);        /* green icon bg */
  color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.9375rem;
}
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===================================================
   CONTACT PAGE
=================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
.contact-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 36px;
}
.cal-embed {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 48px 36px;
  text-align: center;
  min-height: 400px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
}
.cal-embed-icon {
  width: 56px; height: 56px;
  background: var(--primary);        /* green icon */
  color: var(--on-primary);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.contact-info         { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.contact-info-item    {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--body);
}
.contact-info-icon {
  width: 36px; height: 36px;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===================================================
   HOW IT WORKS PAGE
=================================================== */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step  {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 40px;
  padding: 52px 0;
  border-bottom: 1px solid var(--hairline);
}
.process-step:last-child { border-bottom: none; }
.process-step-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.process-step-circle {
  width: 48px; height: 48px;
  background: var(--primary);        /* green circle */
  color: var(--on-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.process-step-line   { width: 1px; flex: 1; background: var(--hairline); margin-top: 0; }
.process-step:last-child .process-step-line { display: none; }
.process-step-content { padding-top: 8px; }
.process-step-title {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.process-step-body { font-size: 0.9375rem; line-height: 1.7; color: var(--body); }
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 48px;
}
.guarantee-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  background: var(--surface-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
}

/* ===================================================
   TESTIMONIALS
=================================================== */
.testimonials-section    { background: var(--surface-soft); padding: 96px 0; }
.testimonials-carousel   {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.t-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s ease;
}
.t-card:hover { border-color: var(--hairline-strong); box-shadow: none; transform: none; }
.t-stars { color: var(--primary); display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.t-stars svg { width: 12px; height: 12px; flex-shrink: 0; }
.t-text  { font-size: 0.875rem; line-height: 1.7; color: var(--body); font-style: italic; margin-bottom: 18px; }
.t-author { display: flex; align-items: center; gap: 10px; }
.t-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.t-name { font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.t-role { font-size: 0.75rem; color: var(--muted); }

/* ===================================================
   SCORE BAR (shared: AI Readiness Quiz progress)
=================================================== */
.score-bar-wrap {
  background: var(--surface-elevated);
  border-radius: var(--r-full);
  height: 8px;
  overflow: hidden;
  margin: 8px 0;
}
.score-bar {
  height: 100%;
  background: var(--primary);         /* green score bar */
  border-radius: var(--r-full);
  transition: width 0.4s var(--ease-out);
}

/* ===================================================
   AI READINESS QUIZ
=================================================== */
.quiz-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.quiz-progress { padding: 28px 36px 0; }
.quiz-progress[hidden] { display: none; }
.quiz-progress-top { margin-bottom: 8px; }
.quiz-progress-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.quiz-body { padding: 36px; }
.quiz-panel { display: none; }
.quiz-panel.active { display: block; }
.quiz-intro { text-align: center; padding: 12px 0; }
.quiz-back {
  display: inline-block;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--muted-soft);
  cursor: pointer;
  padding: 0 0 20px;
  transition: color 0.15s;
}
.quiz-back:hover { color: var(--body); }
.quiz-question {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 28px;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--body-strong);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-option:hover { border-color: var(--primary); background: var(--surface-card); }
.quiz-option-unsure { color: var(--muted); font-weight: 500; }

.quiz-results { text-align: center; }
.quiz-score-line { font-size: 0.875rem; color: var(--muted); margin-bottom: 20px; }
.quiz-score-line strong { color: var(--primary); }
.quiz-band { margin-bottom: 8px; }
.quiz-note {
  display: block;
  margin: 20px 0 0;
  padding: 16px 20px;
  background: var(--surface-elevated);
  border-left: 2px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.6;
  text-align: left;
}
.quiz-note:not([hidden]) ~ .quiz-note:not([hidden]) { margin-top: 12px; }
.quiz-result-actions { margin-top: 28px; }
.quiz-secondary-cta { margin-top: 18px; font-size: 0.8125rem; color: var(--muted-soft); }
.quiz-secondary-cta a { color: var(--muted); border-bottom: 1px solid var(--hairline-strong); }
.quiz-secondary-cta a:hover { color: var(--ink); }
.quiz-restart { margin-top: 10px; }
.quiz-restart button {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--muted-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.quiz-restart button:hover { color: var(--body); }

/* ===================================================
   FOOTER
=================================================== */
.footer {
  background: var(--canvas);
  padding: 80px 0 40px;
  border-top: 1px solid var(--hairline);
}
.footer-top {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
}
.footer-brand      { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-text { font-size: 0.8125rem; color: var(--muted); line-height: 1.65; }
/* Wordmark lockup (brand guidelines 02-C) — footers use the wordmark-only lockup */
.footer-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  align-self: flex-start;
}
.footer-wordmark .wm-dot { color: var(--primary); }
.footer-col-title  {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 14px;
}
.footer-links  { display: flex; flex-direction: column; gap: 10px; }
.footer-link   { font-size: 0.875rem; color: var(--muted); transition: color 0.15s; }
.footer-link:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal       { font-size: 0.8125rem; color: var(--muted-soft); }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-link  { font-size: 0.8125rem; color: var(--muted-soft); transition: color 0.15s; }
.footer-legal-link:hover { color: var(--muted); }

/* ===================================================
   SECTION HEADER
=================================================== */
.section-header          { margin-bottom: 48px; }
.section-header-centered { text-align: center; }
.section-header-centered .section-sub { max-width: 580px; margin: 0 auto; }
.section-eyebrow  { margin-bottom: 12px; }
.section-title    { color: var(--ink); margin-bottom: 14px; }
.section-title-white { color: var(--ink); }
.section-sub      { font-size: clamp(0.875rem, 1.25vw, 1rem); line-height: 1.7; color: var(--body); }
.section-sub-light { color: var(--body); }

/* dot row decorative */
.dot-row { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.dot-row span { display: block; width: 5px; height: 5px; border-radius: 1px; background: var(--primary); }
.dot-row span:nth-child(2) { background: var(--muted); }
.dot-row span:nth-child(3) { background: var(--muted-soft); }

/* ===================================================
   SCROLL ANIMATIONS
=================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in {
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
}
.fade-in.visible { opacity: 1; }
.stagger-1 { transition-delay: 0.07s; }
.stagger-2 { transition-delay: 0.14s; }
.stagger-3 { transition-delay: 0.21s; }
.stagger-4 { transition-delay: 0.28s; }

/* ===================================================
   SVG / ANIMATION
=================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes flow {
  0%   { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulse-ring {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.15; transform: scale(1.1); }
}

/* (The old hero .flow-line/.agent-ring SVG classes were retired when the
   agent network moved to its own full-bleed #network section — see the
   "THE NETWORK" layer at the end of this file.) */

/* ===================================================
   RESPONSIVE
=================================================== */
/* ===================================================
   V2 POLISH LAYER
   Scroll progress · portrait treatment · stats ·
   marquee · lead magnet · forms · motion
=================================================== */

/* ── Scroll progress bar ─────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--primary);
  z-index: 1001;
  pointer-events: none;
}

/* ── Portrait treatment ──────────────────────────────
   Blends the studio-gray photo into the black canvas:
   duotone-leaning filter, edge fade, viewfinder corner
   brackets, and a live "supervision" chip. */
.portrait-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  isolation: isolate;
}
.portrait-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 0;
  border-radius: 0;
  filter: grayscale(0.25) contrast(1.06) brightness(0.96);
  transition: filter 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.portrait-frame:hover img {
  filter: grayscale(0) contrast(1.04) brightness(1);
  transform: scale(1.015);
}
/* Edge blend: melts the gray studio backdrop into the canvas */
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 32%),
    radial-gradient(ellipse 120% 90% at 50% 30%, transparent 55%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}
/* Faint green rim light along one edge */
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(225, 231, 35,0.10) 0%, transparent 28%);
  mix-blend-mode: screen;
  pointer-events: none;
}
/* Viewfinder corner brackets */
.portrait-corners span {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--primary);
  opacity: 0.85;
  z-index: 3;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}
.portrait-corners span:nth-child(1) { top: 14px; left: 14px; border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.portrait-corners span:nth-child(2) { top: 14px; right: 14px; border-left: none; border-bottom: none; border-top-right-radius: 4px; }
.portrait-corners span:nth-child(3) { bottom: 14px; left: 14px; border-right: none; border-top: none; border-bottom-left-radius: 4px; }
.portrait-corners span:nth-child(4) { bottom: 14px; right: 14px; border-left: none; border-top: none; border-bottom-right-radius: 4px; }
.portrait-frame:hover .portrait-corners span { width: 28px; height: 28px; }
/* Status chip pinned inside the frame */
.portrait-chip {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  white-space: nowrap;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--body-strong);
  text-transform: uppercase;
}
.portrait-chip .live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: live-pulse 2s infinite;
  flex-shrink: 0;
}
.guide-photo-name {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .875rem;
  color: var(--ink);
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ── Stats band ──────────────────────────────────── */
.stats-band {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item { text-align: center; padding: 0 12px; }
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat-value .stat-suffix { font-size: 0.6em; margin-left: 2px; }
.stat-label {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Marquee ("who I help" ticker) ───────────────── */
.marquee-band {
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.marquee-band::before,
.marquee-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.marquee-band::before { left: 0;  background: linear-gradient(to right, var(--surface-soft), transparent); }
.marquee-band::after  { right: 0; background: linear-gradient(to left,  var(--surface-soft), transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 36s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-item::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--primary);
  opacity: 0.6;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Lead magnet band + subscribe form ───────────── */
.magnet {
  background: var(--canvas);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.magnet::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, black 0%, transparent 75%);
  pointer-events: none;
}
.magnet-card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  padding: 56px 48px;
  text-align: center;
  overflow: hidden;
}
.magnet-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.magnet-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.magnet-bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 24px 0 32px;
}
.magnet-bullet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--body);
}
.magnet-bullet svg { color: var(--accent-emerald); flex-shrink: 0; }

.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.subscribe-input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.subscribe-input::placeholder { color: var(--muted-soft); }
.subscribe-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 231, 35,0.12);
}
.subscribe-form .btn { height: 48px; flex-shrink: 0; }
.subscribe-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted-soft);
}
.subscribe-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--r-md);
  color: var(--accent-emerald);
  font-weight: 600;
  font-size: 0.9375rem;
}
.subscribe-form.submitted { display: none; }
.subscribe-form.submitted + .subscribe-success,
.subscribe-success.show { display: flex; }

/* ── FAQ (shared component) ──────────────────────── */
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--hairline-strong); }
.faq-item summary {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { transition: transform 0.25s var(--ease-out); flex-shrink: 0; color: var(--muted); }
.faq-item[open] summary svg { transform: rotate(180deg); color: var(--primary); }
.faq-item p {
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.7;
  margin-top: 16px;
}

/* ── Hero visual: orbit + pulse dots ─────────────── */
.orbit-ring {
  transform-origin: 260px 220px;
  animation: orbit-spin 24s linear infinite;
}
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-svg-wrap, .net-flowline, .net-pulse, .net-orbit, .net-floor,
  .net-live-dot, .net-disc-human, .net-coin,
  .marquee-track, .portrait-chip .live-dot { animation: none !important; }
  .net-coin { transform: rotateY(180deg); }
  .net-packet { display: none; }
  .net-scene, .net-scene * { transform-style: flat; }
  .btn-primary::after { display: none; }
  .scroll-progress { display: none; }
}

/* ── V2 responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .magnet-card { padding: 40px 24px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form .btn { width: 100%; }
}

@media (max-width: 1024px) {
  .hero-inner      { grid-template-columns: 1fr; gap: 48px; }
  .hero-svg-wrap   { max-width: 400px; margin: 0 auto; }
  .guide-inner     { grid-template-columns: 1fr; gap: 48px; }
  .testimonial-card { position: static; }
  .about-grid      { grid-template-columns: 1fr; gap: 48px; }
  .about-photo     { aspect-ratio: 16/9; max-height: 280px; }
  .contact-grid    { grid-template-columns: 1fr; gap: 48px; }
  .footer-top      { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand    { grid-column: 1/-1; }
}
@media (max-width: 768px) {
  .section    { padding: 72px 0; }
  .section-lg { padding: 96px 0; }
  .page-hero  { padding: 120px 0 72px; }
  .grid-2     { grid-template-columns: 1fr; }
  .grid-3     { grid-template-columns: 1fr; }
  .grid-4     { grid-template-columns: 1fr 1fr; }
  .step-grid  { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-featured { transform: none; }
  .comparison-grid       { grid-template-columns: 1fr; }
  .testimonials-carousel { grid-template-columns: 1fr; }
  .commitment-grid       { grid-template-columns: 1fr; }
  .guarantee-grid        { grid-template-columns: 1fr; }
  .testimonials-grid     { grid-template-columns: 1fr; }
  .process-step          { grid-template-columns: 48px 1fr; gap: 20px; }
  .nav-links   { display: none; }
  .nav-cta     { display: none; }
  .nav-mobile-toggle { display: flex; }
  .footer-top  { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
  .cta-actions   { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .grid-4       { grid-template-columns: 1fr; }
  .container    { padding: 0 16px; }
  .pricing-card { padding: 24px 20px; }
  .service-card { padding: 24px 20px; }
  .method-card  { flex-direction: column; gap: 10px; }
  .method-num   { width: auto; text-align: left; font-size: 2rem; }
}

/* ===================================================
   ONE-PAGER LAYER (v3)
   Single-page site: anchor nav, sequential reveals,
   pinned scrollytelling. Modeled on 72hoursites.com.
=================================================== */

/* ── Sequential reveal (progressive disclosure) ────
   Content is in the DOM from first render; only
   opacity/transform animate — no display toggling. */
.seq-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.seq-item.visible { opacity: 1; transform: none; }
/* Featured entrance (recommended pricing tier) */
.seq-pop { transform: translateY(26px) scale(0.955); }
.seq-pop.visible { transform: none; }

/* ── Centered hero (72h-style) ───────────────────── */
.hero-c {
  min-height: 0;
  display: block;
  padding: 148px 0 40px;
}
.hero-c-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-c-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-c-kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 22px 0 10px;
}
.hero-c-title { margin: 0 0 20px; }
.hero-c-sub {
  color: var(--body);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-c-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Social-proof chip above the headline */
.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px 7px 8px;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-full);
}
.proof-avatars { display: flex; }
.proof-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 2px solid var(--surface-card);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.5625rem;
  color: var(--ink);
}
.proof-avatar + .proof-avatar { margin-left: -8px; }
.proof-chip .t-stars { margin: 0; gap: 2px; }
.proof-chip .t-stars svg { width: 11px; height: 11px; }
.proof-text {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--body);
  white-space: nowrap;
}

/* Noelani payoff quote — a slim standalone band after "What you get".
   Reuses the .payoff-card look (same as the closing quotes in How-it-works
   and My approach) since it's the first/only element in the band, its
   top margin is zeroed out. */
.hero-quote-band {
  padding: 0 0 56px;
  text-align: center;
}
.hero-quote-band .payoff-card { margin-top: 0; }

/* ── Section shell for the one-pager ─────────────── */
.op-section { padding: 104px 0; border-top: 1px solid var(--hairline); }
.op-alt     { background: var(--surface-soft); }

/* #what follows the hero's .marquee-band, whose own border-bottom
   already separates the two — an extra border-top here would double it */
#what { border-top: none; }

/* ── Scrollytelling: How it works ────────────────── */
.hiw-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 24px;
}
.hiw-rail {
  position: sticky;
  top: 128px;
  padding-top: 8px;
}
.hiw-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(6rem, 9vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.hiw-num.swap { animation: hiw-num-in 0.4s var(--ease-out); }
@keyframes hiw-num-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.hiw-rail-titles {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hiw-rail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted-soft);
  transition: color 0.25s ease;
}
.hiw-rail-title::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--hairline-strong);
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.hiw-rail-title.active { color: var(--ink); }
.hiw-rail-title.active::before { background: var(--primary); }
.hiw-progress {
  margin-top: 28px;
  width: 120px; height: 2px;
  background: var(--hairline);
  overflow: hidden;
}
.hiw-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.4s var(--ease-out);
}

.hiw-steps { display: flex; flex-direction: column; }
.hiw-step {
  min-height: clamp(300px, 42vh, 460px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
}
.hiw-step:last-child { border-bottom: none; }
.hiw-step-badge { display: none; }   /* mobile only */
.hiw-step-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.hiw-step-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 16px;
}
.hiw-step-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  max-width: 520px;
}
.hiw-step-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hiw-step-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--body-strong);
}
.hiw-step-list svg { color: var(--accent-emerald); margin-top: 2px; flex-shrink: 0; }

/* Payoff testimonial at the end of the sequence */
.payoff-card {
  max-width: 720px;
  margin: 72px auto 0;
  text-align: center;
  position: relative;
}
.payoff-card.is-boxed {
  max-width: 820px;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  padding: 44px 48px;
  overflow: hidden;
}
.payoff-card.is-boxed::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.payoff-card .t-stars { justify-content: center; }
.payoff-quote {
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 14px 0 24px;
}
.payoff-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ── About (one-pager) ───────────────────────────── */
.about-op {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: start;
}
.about-op-body p {
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  line-height: 1.75;
  color: var(--body);
}
.about-op-body p + p { margin-top: 16px; }
.creds-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.cred-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--body-strong);
}
.cred-chip svg { color: var(--primary); flex-shrink: 0; }

/* ── Contact row inside the green CTA band ──────── */
.cta-contact-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(10,10,10,0.65);
}
.cta-contact-row a { color: var(--on-primary); border-bottom: 1px solid rgba(10,10,10,0.35); transition: border-color 0.15s; }
.cta-contact-row a:hover { border-color: var(--on-primary); }

/* ── Contact form (contact.html page hero) ──────── */
.contact-form {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.contact-form-row { display: flex; gap: 10px; }
.contact-form-row .subscribe-input { height: 48px; }
.contact-textarea {
  padding: 14px 18px;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 96px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-textarea::placeholder { color: var(--muted-soft); }
.contact-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 231, 35,0.12);
}
.contact-form .btn { align-self: flex-start; }
.contact-form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
.contact-form.submitted { display: none; }
.contact-form.submitted + .contact-form-success,
.contact-form-success.show { display: flex; }
@media (max-width: 768px) {
  .contact-form-row { flex-direction: column; }
}

/* ── Footer (one-pager: 3 columns) ───────────────── */
.footer-top-3col { grid-template-columns: 260px 1fr 1fr; }

/* ── Photo avatars (client headshots) ────────────── */
.proof-avatar, .quote-avatar, .t-avatar { overflow: hidden; }
.proof-avatar img, .quote-avatar img, .t-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Reviews wall (full-bleed CSS grid, permanently clipped) ──── */
/* Full width of the viewport (breaks out of .container). Clipped to a
   fixed height so the last visible row (row 5) is permanently faded into
   the background, 72hoursites-style — 4 full rows plus a 5th that fades,
   not a full unclipped listing. */
.reviews-wall {
  position: relative;
  width: 100%;
  max-height: 1298px; /* = bottom edge of row 5 at 5 columns (see breakpoints below) */
  overflow: hidden;
  padding: 0 48px;
  /* Alpha mask (not a background overlay) so the card content itself —
     text, avatars, borders — dissolves into the background. A gradient
     drawn on top wouldn't visibly dim light text against a near-black
     card; masking the whole wall's opacity does. Percentages are tuned
     per breakpoint below so the fade starts right at row 5's top edge,
     not partway through row 4. */
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 99%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 99%);
}
/* Real grid (not CSS-columns masonry) so rows line up across the full
   width — required for the fade to land cleanly on the last row only.
   Columns are a FIXED width (not 1fr/auto-fill) and centered — so a card's
   height, and therefore each row's height, stays constant across an
   entire breakpoint instead of drifting with viewport width. That's what
   lets max-height pin exactly to a row's bottom edge instead of an
   arbitrary percentage cut. */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(5, 340px);
  justify-content: center;
  gap: 16px;
}
@media (max-width: 1859px) {
  .reviews-grid { grid-template-columns: repeat(4, 340px); }
  .reviews-wall {
    max-height: 1298px; /* row 5 bottom at 4 columns */
    mask-image: linear-gradient(180deg, #000 0%, #000 79%, transparent 99%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 79%, transparent 99%);
  }
}
@media (max-width: 1503px) {
  .reviews-grid { grid-template-columns: repeat(3, 340px); }
  .reviews-wall {
    max-height: 1251px; /* row 5 bottom at 3 columns */
    mask-image: linear-gradient(180deg, #000 0%, #000 81%, transparent 99%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 81%, transparent 99%);
  }
}
@media (max-width: 1147px) {
  .reviews-grid { grid-template-columns: repeat(2, 340px); }
  .reviews-wall {
    max-height: 1227px; /* row 5 bottom at 2 columns */
    mask-image: linear-gradient(180deg, #000 0%, #000 81%, transparent 99%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 81%, transparent 99%);
  }
}
@media (max-width: 791px) {
  /* A tall vertically-clipped wall doesn't work as a touch pattern —
     swap to a single horizontally swipeable row instead. */
  .reviews-grid {
    display: flex;
    width: max-content;
    justify-content: flex-start;
  }
  .reviews-grid .t-card {
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .reviews-wall {
    padding: 0 20px;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  }
  .reviews-wall::-webkit-scrollbar { display: none; }
}
/* 72h-style card: avatar + name on top, quote below */
.reviews-grid .t-author { margin-bottom: 14px; }
.reviews-grid .t-text { margin-bottom: 0; }

/* ── Mid-page CTA (after the How-it-works payoff) ── */
.midpage-cta {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── One-pager responsive + reduced motion ───────── */
@media (max-width: 960px) {
  .footer-top-3col { grid-template-columns: 1fr; }
  .hiw-wrap { display: block; }
  .hiw-rail { display: none; }
  .hiw-step { min-height: 0; padding: 44px 0; }
  .hiw-step-badge {
    display: flex;
    width: 40px; height: 40px;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: var(--r-md);
    align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .about-op { grid-template-columns: 1fr; gap: 44px; }
  .about-op .portrait-frame { max-width: 420px; }
}
@media (max-width: 768px) {
  .hero-c { padding: 120px 0 72px; }
  .op-section { padding: 76px 0; }
  .proof-text { white-space: normal; text-align: left; }
  .payoff-card.is-boxed { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .seq-item, .seq-pop { opacity: 1; transform: none; transition: none; }
  .hiw-num.swap { animation: none; }
  .hiw-progress-fill, .hiw-rail-title, .hiw-rail-title::before { transition: none; }
}

/* ===================================================
   THE NETWORK — full-bleed 3D agent network (#network)
   The site's signature animation, folded back into the
   hero it grew from. A perspective floor grid, mouse-tilt
   parallax, nodes layered at different Z depths, glowing
   handoff beams, and a live handoff log. Green = the
   human supervisor.
=================================================== */
/* ── Stage: full-bleed viewport with 3D perspective ─ */
.net-stage {
  position: relative;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 104px;
}
.net-viewport {
  position: relative;
  width: min(100%, 1720px);
  margin: 0 auto;
  perspective: 1300px;
}
.net-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 760;
  transform-style: preserve-3d;
  transform: rotateX(8deg);   /* resting tilt; JS layers mouse parallax on top */
  will-change: transform;
}

/* ── Floor: receding engineering grid, drifting ──── */
.net-floor {
  position: absolute;
  left: -30%;
  top: 4%;
  width: 160%;
  height: 130%;
  transform: rotateX(72deg) translateZ(-110px);
  transform-origin: 50% 42%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, black 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, black 0%, transparent 78%);
  animation: net-floor-drift 14s linear infinite;
  pointer-events: none;
}
@keyframes net-floor-drift {
  from { background-position: 0 0; }
  to   { background-position: 0 72px; }
}
.net-bloom {
  position: absolute;
  left: 50%;
  top: 50.66%;
  width: 46%;
  aspect-ratio: 1.6 / 1;
  transform: translate(-50%, -50%) translateZ(-40px);
  background:
    radial-gradient(ellipse at center, rgba(225, 231, 35, 0.09) 0%, transparent 62%),
    radial-gradient(ellipse at 38% 62%, var(--glow-blue) 0%, transparent 55%);
  filter: blur(28px);
  pointer-events: none;
}

/* ── Beams (SVG shares the nodes' coordinate space) ─ */
.net-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: translateZ(12px);
  pointer-events: none;
}
.net-flowline {
  stroke-width: 2;
  stroke-opacity: 0.55;
  stroke-dasharray: 10 8;
  stroke-dashoffset: 216;
  animation: net-flow 2.4s linear infinite;
}
.net-flowline-2 { animation-delay: 0.5s; }
.net-flowline-3 { animation-delay: 1s; }
.net-flowline-4 { animation-delay: 1.5s; }
@keyframes net-flow {
  from { stroke-dashoffset: 216; }
  to   { stroke-dashoffset: 0; }
}

/* ── Nodes ──────────────────────────────────────── */
.net-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) translateZ(var(--z, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.net-disc {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1.5px solid var(--ac);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 7px var(--canvas),
    0 0 44px var(--ac-soft);
}
.net-disc::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
}
.net-disc svg {
  width: 46px;
  height: 46px;
  display: block;
}
.net-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.net-name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.net-status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--ac);
  line-height: 1;
}

/* Human supervisor — bigger, green, breathing */
.net-human { z-index: 2; }
.net-disc-human {
  width: 196px;
  height: 196px;
  flex-direction: column;
  gap: 6px;
  background: #0d0d0d;
  border: 2px solid var(--primary);
  box-shadow:
    0 0 0 8px var(--canvas),
    0 0 64px rgba(225, 231, 35, 0.18);
  animation: net-breathe 3.4s ease-in-out infinite;
  perspective: 1200px;
}
.net-disc-human::before { inset: 9px; border-color: rgba(225, 231, 35, 0.22); z-index: 1; pointer-events: none; }
.net-disc-human svg { width: 52px; height: 52px; }

/* Coin flip: HUMAN/icon face <-> supervisor's photo face */
.net-coin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: net-coin-flip 6s linear infinite;
}
.net-coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.net-coin-front, .net-coin-back { background: #0d0d0d; }
.net-coin-back {
  transform: rotateY(180deg);
  overflow: hidden;
}
.net-coin-back img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}
/* Constant-speed coin spin, permanently turning. */
@keyframes net-coin-flip {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
/* Human's name/status tag sits permanently below the disc, like the
   other nodes — positioned absolutely so it doesn't grow the node's box
   and throw off the pulse/orbit rings or beam endpoints keyed to the
   196px disc's center. */
.net-tag-human {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 16px;
  white-space: nowrap;
}
@keyframes net-breathe {
  0%, 100% { box-shadow: 0 0 0 8px var(--canvas), 0 0 64px rgba(225, 231, 35, 0.18); }
  50%      { box-shadow: 0 0 0 8px var(--canvas), 0 0 96px rgba(225, 231, 35, 0.3); }
}

/* Expanding pulse rings from the supervisor */
.net-pulse {
  position: absolute;
  left: 50%;
  top: 98px;               /* center of the 196px disc */
  width: 196px;
  height: 196px;
  border-radius: 50%;
  border: 1.5px solid rgba(225, 231, 35, 0.5);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  animation: net-pulse 3.6s var(--ease-out) infinite;
  pointer-events: none;
}
.net-pulse-2 { animation-delay: 1.8s; }
@keyframes net-pulse {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  70%  { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}

/* Slow orbit ring with a single satellite node */
.net-orbit {
  position: absolute;
  left: 50%;
  top: 98px;
  width: 268px;
  height: 268px;
  margin: -134px 0 0 -134px;
  border-radius: 50%;
  border: 1px dashed rgba(225, 231, 35, 0.18);
  animation: net-orbit-spin 26s linear infinite;
  pointer-events: none;
}
.net-orbit span {
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--primary);
  opacity: 0.75;
}
@keyframes net-orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Flat overlays (outside the tilting scene) ───── */
.net-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(225, 231, 35, 0.55);
  pointer-events: none;
}
.net-corner-tl { left: clamp(14px, 3vw, 44px);  top: 6px;    border-right: none;  border-bottom: none; }
.net-corner-tr { right: clamp(14px, 3vw, 44px); top: 6px;    border-left: none;   border-bottom: none; }
.net-corner-bl { left: clamp(14px, 3vw, 44px);  bottom: 6px; border-right: none;  border-top: none; }
.net-corner-br { right: clamp(14px, 3vw, 44px); bottom: 6px; border-left: none;   border-top: none; }

.net-chip-status {
  position: absolute;
  top: 21.7%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--body-strong);
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 9px 13px;
  backdrop-filter: blur(4px);
}
.net-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: net-live 2s ease-in-out infinite;
}
@keyframes net-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* Handoff log — control-room readout, centered under the human
   supervisor circle (the status chip mirrors it, centered on top) */
.net-log {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(340px, 42vw);
  font-family: var(--font-mono);
  background: rgba(10, 10, 10, 0.78);
  border-radius: var(--r-md);
  padding: 14px 16px 12px;
  backdrop-filter: blur(4px);
}
.net-log-head {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--hairline);
}
.net-log-lines { display: flex; flex-direction: column; gap: 7px; }
.net-log-lines li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.71875rem;
  line-height: 1.45;
  color: var(--body);
  opacity: 1;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.net-log-lines li.net-log-in {
  opacity: 0;
  transform: translateY(-6px);
}
.net-log-lines li:nth-child(2) { opacity: 0.62; }
.net-log-lines li:nth-child(3) { opacity: 0.38; }
.net-log-lines li:nth-child(4) { opacity: 0.18; }
.net-log-time { color: var(--muted); flex: none; }
.net-log-dot {
  flex: none;
  width: 6px;
  height: 6px;
  align-self: center;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1100px) {
  .net-disc { width: 108px; height: 108px; }
  .net-disc svg { width: 38px; height: 38px; }
  .net-disc-human { width: 164px; height: 164px; }
  .net-pulse { width: 164px; height: 164px; top: 82px; }
  .net-orbit { width: 224px; height: 224px; top: 82px; margin: -112px 0 0 -112px; }
}
@media (max-width: 900px) {
  .net-scene { aspect-ratio: 1 / 1; transform: none; }
  .net-floor { animation: none; }
  .net-disc { width: 88px; height: 88px; box-shadow: 0 0 0 5px var(--canvas), 0 0 28px var(--ac-soft); }
  .net-disc::before { inset: 5px; }
  .net-disc svg { width: 30px; height: 30px; }
  .net-disc-human { width: 128px; height: 128px; box-shadow: 0 0 0 6px var(--canvas), 0 0 40px rgba(225, 231, 35, 0.18); }
  .net-disc-human svg { width: 32px; height: 32px; }
  .net-pulse { width: 128px; height: 128px; top: 64px; }
  .net-orbit { width: 172px; height: 172px; top: 64px; margin: -86px 0 0 -86px; }
  .net-node { gap: 10px; }
  .net-name { font-size: 0.875rem; }
  .net-status { font-size: 0.5625rem; }
  .net-chip-status { display: none; }
  .net-corner { display: none; }
  .net-log {
    position: static;
    transform: none;
    width: calc(100% - 48px);
    margin: 4px 24px 0;
  }
  .net-viewport { display: flex; flex-direction: column; }
  .net-stage { margin-top: 16px; margin-bottom: 76px; }
}
@media (max-width: 520px) {
  .net-scene { aspect-ratio: 4 / 5; }
  .net-disc { width: 72px; height: 72px; }
  .net-disc svg { width: 26px; height: 26px; }
  .net-status { display: none; }
}

/* ===================================================
   AI CHAT WIDGET — homepage demo (scripted, no backend)
=================================================== */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chat-fab {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--r-full);
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  transition: transform 0.2s var(--ease-out);
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab-icon-close { display: none; }
.chat-widget.is-open .chat-fab-icon-open { display: none; }
.chat-widget.is-open .chat-fab-icon-close { display: block; }
.chat-fab-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 10px;
  height: 10px;
  background: var(--accent-emerald, #22c55e);
  border: 2px solid var(--canvas);
}
.chat-widget.is-open .chat-fab-dot { display: none; }

.chat-panel {
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100vh - 120px);
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }

.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline);
  flex: none;
}
.chat-panel-brand { display: flex; align-items: center; gap: 10px; }
.chat-panel-title { font-family: var(--font-head); font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.chat-panel-badge { font-size: 0.6875rem; color: var(--text-muted); letter-spacing: 0.02em; }
.chat-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  transition: color 0.2s;
}
.chat-panel-close:hover { color: var(--ink); }

.chat-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.55;
}
.chat-msg-bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
  border: 1px solid var(--hairline);
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 500;
}

.chat-panel-quick {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}
.chat-chip {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-full);
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-align: left;
}
.chat-chip:hover { border-color: var(--primary); color: var(--primary); }

.chat-panel-footer {
  flex: none;
  padding: 14px 18px;
  border-top: 1px solid var(--hairline);
}
.chat-cta { width: 100%; justify-content: center; }

@media (max-width: 520px) {
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-panel { width: calc(100vw - 32px); height: calc(100vh - 140px); }
}
