/* ============================================================
   SIXFLOW — AI CONSULTING REDESIGN
   "Modern Consultancy" : warm paper, ink, one electric-violet accent
   Display: Fraunces (serif)  ·  Body: Hanken Grotesk  ·  Labels: JetBrains Mono
   Scoped to the homepage only — legal pages still use styles.css.
   ============================================================ */

:root {
  /* Surfaces — warm paper, not flat white */
  --paper:        #F6F2EB;
  --paper-raised: #FCFAF5;
  --paper-sunk:   #EFEAE0;

  /* Ink — warm near-black */
  --ink:          #16130F;
  --ink-2:        #2C2620;
  --ink-3:        #4A4138;

  /* Text (muted tuned to >=4.5:1 contrast on the paper surfaces) */
  --text:         #1B1712;
  --text-soft:    #5A5147;
  --text-muted:   #6E6557;
  --text-muted-on-dark: #9A9080;
  --text-on-dark: #EFE9DF;
  --text-on-dark-soft: #B3A998;

  /* Accent — electric violet, used with restraint (no washy gradients) */
  --accent:        #6D34F2;
  --accent-deep:   #4F1FC9;
  --accent-bright: #8B5CF6;
  --accent-tint:   rgba(109, 52, 242, 0.08);
  --accent-line:   rgba(109, 52, 242, 0.22);

  /* Lines & shadows */
  --line:        rgba(22, 19, 15, 0.12);
  --line-soft:   rgba(22, 19, 15, 0.07);
  --line-dark:   rgba(239, 233, 223, 0.14);
  --shadow-sm:   0 1px 2px rgba(22, 19, 15, 0.04);
  --shadow-md:   0 14px 40px -22px rgba(22, 19, 15, 0.28);
  --shadow-lg:   0 40px 80px -40px rgba(22, 19, 15, 0.45);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius:   14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grain so surfaces have atmosphere, never flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Keyboard focus: visible, on-brand */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper-raised);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; z-index: 1; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-line);
}
.eyebrow--center::before { display: none; }
.eyebrow--ondark { color: var(--accent-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-optical-sizing: auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-top: 1.1rem;
}
.section-head p {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 60ch;
}
.section-head.center p { margin-inline: auto; }

.accent { color: var(--accent-deep); }
.serif-italic { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 0.9em; transition: transform 0.3s var(--ease); }

/* ---------- Inline SVG icon set (replaces the icon font in content) ---------- */
.ic {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.12em;
}
.btn .ic { font-size: 0.95em; transition: transform 0.3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.hero-reassure .ic { color: var(--accent); }

.btn-primary {
  background: var(--ink);
  color: var(--paper-raised);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:hover i { transform: translateX(3px); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(109, 52, 242, 0.7);
}
.btn-accent:hover { transform: translateY(-2px); background: var(--accent-deep); box-shadow: 0 16px 40px -14px rgba(109, 52, 242, 0.8); }
.btn-accent:hover i { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-on-dark {
  background: var(--paper-raised);
  color: var(--ink);
}
.btn-on-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-on-dark:hover i { transform: translateX(3px); }

.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(246, 242, 235, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line-soft);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-brand .logo-container { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo { width: 38px; height: 38px; border-radius: 9px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--text-muted);
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { margin-left: 0.4rem; }
.nav-cta .btn { padding: 0.7rem 1.3rem; font-size: 0.92rem; }

/* Mobile nav */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.hamburger-line { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(22, 19, 15, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  z-index: 105;
}
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(86vw, 360px);
  background: var(--paper-raised);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  z-index: 106;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.mobile-nav-brand { display: flex; align-items: center; gap: 0.6rem; }
.mobile-nav-logo { width: 34px; height: 34px; border-radius: 8px; }
.mobile-nav-close { width: 40px; height: 40px; font-size: 1.2rem; color: var(--ink); border-radius: 50%; transition: background 0.25s; }
.mobile-nav-close:hover { background: var(--paper-sunk); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 1.5rem; }
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav-cta { margin-top: auto; padding-top: 1.5rem; }
.mobile-nav-cta .btn { width: 100%; }

body.mobile-nav-active .mobile-nav { transform: translateX(0); }
body.mobile-nav-active .mobile-nav-overlay { opacity: 1; visibility: visible; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(8rem, 16vh, 11rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  max-width: 120vw;
  background: radial-gradient(closest-side, var(--accent-tint), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 940px; }

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 0.98;
  margin-top: 1.6rem;
  letter-spacing: -0.025em;
}
.hero-title em {
  font-style: italic;
  color: var(--accent-deep);
}
.hero-subtitle {
  margin-top: 1.8rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-soft);
  max-width: 62ch;
  line-height: 1.55;
}
.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-reassure {
  margin-top: 1.3rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-reassure i { color: var(--accent); }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
/* Editorial ledger: oversized serif numerals instead of icon cards */
.problem-ledger { border-top: 1px solid var(--line); }
.problem-row {
  display: grid;
  grid-template-columns: clamp(84px, 10vw, 128px) 1fr;
  gap: 1.2rem 1.5rem;
  align-items: start;
  padding-block: clamp(1.6rem, 3.2vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}
.problem-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.9;
  color: var(--accent);
  opacity: 0.3;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.problem-row:hover .problem-num { opacity: 1; transform: translateX(5px); }
.problem-copy h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 0.45rem; }
.problem-copy p { color: var(--text-soft); font-size: 1rem; max-width: 60ch; }
.problem-pivot {
  margin-top: 2.4rem;
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 62ch;
}
.problem-pivot strong { color: var(--ink); }
.problem-pivot a {
  color: var(--accent-deep);
  font-weight: 600;
  white-space: nowrap;
}
.problem-pivot a:hover { text-decoration: underline; }
.problem-pivot a i { font-size: 0.85em; }

/* ============================================================
   STATS TICKER — audience and delivery numbers, Morningside-style
   ============================================================ */
.statsbar {
  border-block: 1px solid var(--line);
  background: var(--paper-sunk);
  padding-block: clamp(1.8rem, 3.5vw, 2.6rem);
  overflow: hidden;
}
.marquee-track--stats { animation-duration: 40s; }
.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  min-width: 200px;
  padding: 0 1.5rem;
  flex-shrink: 0;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-cap {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   INTEGRATIONS — logo marquee inside Services
   ============================================================ */
.integrations {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.integrations-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper-sunk); /* gives mix-blend-mode logos a backdrop to multiply against */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
/* gap stays 0: flex gaps count n-1 times, which makes the -50% loop point land
   mid-gap and visibly jump. Each chip carries its own symmetric spacing instead. */
.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 45s linear infinite;
}
/* Equal-width slots: every logo gets the same column, so spacing stays even
   regardless of how each logo is scaled. */
.logo-chip {
  display: grid;
  place-items: center;
  width: 152px;
  height: 52px;
  flex-shrink: 0;
}
/* brightness(0) flattens every logo to a single uniform color (a silhouette),
   so the clashing brand colors disappear. Sits as soft ink-grey on the light bar. */
.logo-chip img {
  height: 28px;
  width: auto;
  max-width: 118px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.45;
  transition: opacity 0.35s var(--ease);
}
.logo-chip:hover img { opacity: 0.8; }
/* A few source files (Anthropic, Stripe) have heavy built-in padding,
   so the mark renders small. Scale just those up to match the others. */
.logo-chip img.pad { transform: scale(2.5); }
/* Logos that ship on a solid (non-transparent) background: multiply drops the
   white, grayscale + opacity grey it to match the other silhouettes. */
.logo-chip img.on-white {
  filter: grayscale(1);
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.logo-chip:hover img.on-white { opacity: 0.85; }
/* Per-logo optical tuning so heavy wordmarks and light marks read at a similar size. */
.logo-chip img.pad-xl { transform: scale(3); }      /* very padded + thin (Anthropic) */
.logo-chip img.s-sm   { height: 22px; }             /* bold/heavy wordmarks (Vercel) */
.logo-chip img.s-lg   { height: 34px; }             /* small/light marks (n8n) */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVICES
   ============================================================ */
/* Plain paper: the dark Process section directly above already separates
   'What we build', and the sunk Testimonials below provides the next contrast. */
#services { background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--paper-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 0;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line); }
.service-card:hover::after { width: 100%; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.service-card p { color: var(--text-soft); font-size: 1rem; }

/* ============================================================
   PROCESS (dark band) — the free audit
   ============================================================ */
.process {
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(109,52,242,0.22), transparent 70%);
  pointer-events: none;
}
.process .section-head h2 { color: var(--text-on-dark); }
.process .section-head p { color: var(--text-on-dark-soft); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.step {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.9rem;
  background: rgba(255,255,255,0.02);
  position: relative;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.step:hover { transform: translateY(-6px); background: rgba(255,255,255,0.04); }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 1.3rem;
  display: block;
}
.step h3 { color: var(--text-on-dark); font-size: 1.45rem; margin-bottom: 0.7rem; }
.step p { color: var(--text-on-dark-soft); font-size: 1rem; }
.step .keep-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  text-transform: uppercase;
}
/* What's inside the roadmap: concretizes the lead magnet */
.roadmap-strip {
  display: flex;
  align-items: center;
  gap: 1.2rem 1.8rem;
  flex-wrap: wrap;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  margin-bottom: 2.4rem;
  background: rgba(255, 255, 255, 0.02);
}
.roadmap-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  flex-shrink: 0;
}
.roadmap-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.8rem;
  list-style: none;
  margin: 0; padding: 0;
  flex: 1;
}
.roadmap-items li {
  color: var(--text-on-dark-soft);
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.roadmap-items li i, .roadmap-items li .ic { color: var(--accent-bright); font-size: 0.8rem; }

.process-cta { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.process-cta .note { color: var(--text-on-dark-soft); font-size: 0.95rem; }

/* ============================================================
   PROOF / COMMUNITY
   ============================================================ */
.proof-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.proof-text h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.proof-lede {
  margin-top: 1.4rem;
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 56ch;
}
.proof-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
/* Community sits in a tinted band so the about -> community -> FAQ stretch
   alternates surfaces instead of reading as one long page */
#proof { background: var(--paper-sunk); border-block: 1px solid var(--line); }

/* Community card */
.community-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.community-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line-soft); }
.community-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--ink); }
.community-logo i, .community-logo .ic { color: var(--accent-deep); font-size: 1.1em; }
.community-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-tint);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
}
.community-metric { padding: 1.5rem 0; text-align: center; border-bottom: 1px solid var(--line-soft); }
.community-metric .big {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.community-metric .cap { font-size: 0.95rem; color: var(--text-soft); margin-top: 0.4rem; }
.community-list { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.4rem 0; }
.community-list .row { display: flex; gap: 0.75rem; align-items: center; color: var(--text-soft); font-size: 0.97rem; }
.community-list .row i { color: var(--accent-deep); width: 18px; text-align: center; }
.community-list .row .ic { color: var(--accent-deep); width: 18px; height: 18px; }
.community-card .btn { width: 100%; }

/* ============================================================
   PORTFOLIO SHOWCASE — a live window into portfolio.sixflowautomations.com
   The preview image pans slowly; one click swaps in the real site (iframe),
   scaled down so it reads as a working miniature.
   ============================================================ */
.showcase { background: var(--paper-sunk); border-block: 1px solid var(--line); }

.showcase-head {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.showcase-intro h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: 1.1rem; }
.showcase-intro p { margin-top: 1.25rem; font-size: 1.15rem; color: var(--text-soft); max-width: 54ch; }
.showcase-stats {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
.showcase-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--ink);
  line-height: 1;
  display: block;
}
.showcase-stat .cap {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: 0.4rem;
}

.showcase-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  box-shadow: var(--shadow-lg);
}
.showcase-chrome {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-raised);
}
.showcase-dots { display: flex; gap: 6px; }
.showcase-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-line); }
.showcase-dots span:first-child { background: var(--accent); }
.showcase-url {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--paper-sunk);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 0.32rem 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.showcase-open {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.showcase-open:hover { text-decoration: underline; }

.showcase-viewport {
  position: relative;
  height: clamp(360px, 44vw, 600px);
  overflow: hidden;
  background: #FAFAF7;
}
.showcase-pan {
  width: 100%;
  height: auto;
  animation: showcase-pan 38s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes showcase-pan {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-100% + clamp(360px, 44vw, 600px))); }
}
.showcase-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(22, 19, 15, 0.55);
  background: linear-gradient(180deg, rgba(22,19,15,0.06), rgba(22,19,15,0.44));
  transition: opacity 0.45s var(--ease), background 0.3s var(--ease);
}
.showcase-overlay:hover { background: linear-gradient(180deg, rgba(22,19,15,0.14), rgba(22,19,15,0.56)); }
.showcase-play {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 18px 44px -12px rgba(109, 52, 242, 0.85);
  margin-bottom: 0.7rem;
  transition: transform 0.3s var(--ease);
}
.showcase-play .ic { margin-left: 3px; }
.showcase-overlay:hover .showcase-play { transform: scale(1.08); }
.showcase-overlay-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); }
.showcase-overlay-sub { font-size: 0.95rem; opacity: 0.9; }
/* the live miniature: real site, scaled so it reads as a model of itself */
.showcase-viewport iframe {
  position: absolute;
  inset: 0;
  width: 125%;
  height: 125%;
  border: 0;
  transform: scale(0.8);
  transform-origin: top left;
  background: #FAFAF7;
}
.showcase-viewport.live .showcase-pan,
.showcase-viewport.live .showcase-overlay { opacity: 0; pointer-events: none; }
.showcase-viewport.live .showcase-pan { animation-play-state: paused; }

.showcase-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-head { text-align: center; max-width: 760px; margin-inline: auto; }
.about-head h2 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.about-sub {
  margin-top: 1.2rem;
  color: var(--text-soft);
  font-size: 1.12rem;
  max-width: 56ch;
  margin-inline: auto;
}
.star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--accent-deep);
  font-size: 0.7rem;
}
.star-divider span { width: 64px; height: 1px; background: var(--line); }

.founders-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.founders-label span { width: 56px; height: 1px; background: var(--line); }

/* Founder profiles: open editorial layout, no boxes, a center rule between them */
.founder-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2.6rem;
}
.founder-profile {
  text-align: center;
  padding: 0 clamp(1.2rem, 4vw, 3.5rem);
}
.founder-profile + .founder-profile { border-left: 1px solid var(--line); }
.founder-medallion {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 1.3rem;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, var(--paper-sunk) 100%);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
}
.founder-name { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }
.founder-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-block;
  margin: 0.55rem 0 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
}
.founder-bio { font-size: 0.95rem; color: var(--text-soft); line-height: 1.6; text-align: left; }
.founder-bio + .founder-bio { margin-top: 0.8rem; }

/* Our Story: full-width block under the founders, centered heading, single readable column */
.our-story {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.our-story-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 1.9rem;
}
/* Full-width to match the founders row: a centered serif lead that spans the
   width, then the body in two columns sitting under each founder column. */
.our-story-text {
  columns: 2;
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
  text-align: left;
}
.our-story-text p {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
  break-inside: avoid;
}
.our-story-text p:first-child {
  column-span: all;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 2.2rem;
}

/* ============================================================
   FAQ
   ============================================================ */
/* FAQ runs dark to break up the long light stretch before the light booking section */
.faq { background: var(--ink); }
.faq .section-head h2 { color: var(--text-on-dark); }
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
}
.faq-question h3 { font-size: 1.2rem; font-weight: 500; color: var(--text-on-dark); transition: color 0.25s; }
.faq-question:hover h3 { color: var(--accent-bright); }
.faq-question i, .faq-question .ic { color: var(--text-muted-on-dark); transition: transform 0.35s var(--ease), color 0.25s; flex-shrink: 0; width: 1.05em; height: 1.05em; }
.faq-item.active .faq-question i, .faq-item.active .faq-question .ic { transform: rotate(180deg); color: var(--accent-bright); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer p { padding-bottom: 1.5rem; color: var(--text-on-dark-soft); max-width: 68ch; }
.faq-item.active .faq-answer { max-height: 420px; }

/* ============================================================
   FINAL CTA + BOOKING
   ============================================================ */
/* Booking runs light so the white calendar embed sits naturally on the page */
.final-cta { background: var(--paper); }
.final-cta .section-head { margin-inline: auto; text-align: center; margin-bottom: 1.8rem; }
.final-cta .section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
/* What happens on the call: de-risks the booking decision */
.book-reassure {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 2.2rem;
  margin-bottom: 2.2rem;
}
.book-reassure span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.book-reassure i { color: var(--accent-deep); font-size: 0.9rem; }
.book-direct {
  text-align: center;
  margin-top: 1.6rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}
.calendar-widget {
  background: var(--paper-raised);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 1000px;
  margin-inline: auto;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.4s var(--ease);
}
.calendar-header { text-align: center; margin-bottom: 1rem; }
.calendar-header h3 { font-size: 1.5rem; }
.calendar-header p { color: var(--text-soft); margin-top: 0.3rem; }
#my-cal-inline-website { width: 100%; min-height: 600px; border-radius: var(--radius); overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0F0D0A; color: var(--text-on-dark-soft); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-logo { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.footer-logo-img { width: 38px; height: 38px; border-radius: 9px; }
.footer-logo .brand-name { color: var(--text-on-dark); }
.footer-logo .brand-subtitle { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: none; color: var(--text-muted); }
.footer-description { font-size: 0.95rem; max-width: 36ch; margin-bottom: 0.8rem; line-height: 1.6; }
.footer-location { font-size: 0.85rem; color: var(--text-muted-on-dark); margin-bottom: 1.3rem; }
.footer-contact .contact-item { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-size: 0.92rem; }
.footer-contact .contact-item i, .footer-contact .contact-item .ic { color: var(--accent-bright); }
.footer-contact a:hover { color: var(--text-on-dark); }
.social-links { display: flex; gap: 0.7rem; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.social-link:hover { background: var(--accent); color: #fff; transform: translateY(-3px); border-color: var(--accent); }
.footer-column h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-on-dark); margin-bottom: 1.1rem; font-weight: 600; }
.footer-column ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-column a { font-size: 0.93rem; transition: color 0.25s; }
.footer-column a:hover { color: var(--text-on-dark); }
.footer-bottom { padding-top: 2rem; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copyright p { font-size: 0.85rem; color: var(--text-muted-on-dark); }
.footer-legal-links { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; }
.footer-legal-sep { color: var(--text-muted-on-dark); }

/* ============================================================
   NOTIFICATION MODAL
   ============================================================ */
.notification-modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(22,19,15,0.5); backdrop-filter: blur(4px); padding: 1.5rem; }
.notification-modal.active { display: grid; }
.notification-modal-content { background: var(--paper-raised); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 420px; text-align: center; box-shadow: var(--shadow-lg); }
.notification-modal-icon { font-size: 2.2rem; margin-bottom: 1rem; color: var(--accent-deep); }
.notification-modal-content h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.notification-modal-content p { color: var(--text-soft); margin-bottom: 1.5rem; }
.notification-modal-btn { background: var(--ink); color: var(--paper-raised); padding: 0.8rem 1.8rem; border-radius: var(--radius-pill); font-weight: 600; }

/* ============================================================
   MOBILE STICKY CTA
   Social traffic is mobile-heavy; keeps the one action reachable
   after the hero scrolls away. Hidden on desktop and near #book.
   ============================================================ */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(246, 242, 235, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
  display: none;
}
.mobile-cta-bar .btn { width: 100%; }
.mobile-cta-bar.visible { transform: translateY(0); }
body.mobile-nav-active .mobile-cta-bar { transform: translateY(110%); }
@media (max-width: 760px) {
  .mobile-cta-bar { display: block; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .services-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .showcase-head { grid-template-columns: 1fr; align-items: start; gap: 1.8rem; }
  .showcase-stats {
    grid-template-columns: repeat(3, auto);
    gap: 1rem 2.4rem;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }
  .proof-grid { grid-template-columns: 1fr; }
  .founder-profiles { grid-template-columns: 1fr; }
  .founder-profile + .founder-profile {
    border-left: none;
    border-top: 1px solid var(--line);
    margin-top: 2.5rem;
    padding-top: 2.5rem;
  }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }
  .services-grid, .steps { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .roadmap-strip { flex-direction: column; align-items: flex-start; }
  .roadmap-items { grid-template-columns: 1fr; width: 100%; }
  .problem-row { grid-template-columns: 64px 1fr; }
  .showcase-stats { grid-template-columns: 1fr 1fr; }
  .showcase-viewport { height: 440px; }
  .showcase-cta .btn { flex: 1; }
  .our-story-text { columns: 1; }
  .our-story-text p:first-child { text-align: left; max-width: none; }
  .book-reassure { flex-direction: column; align-items: center; gap: 0.7rem; }
  /* leave room for the sticky CTA bar */
  .footer { padding-bottom: 6.5rem; }
}

@media (max-width: 440px) {
  .stat-chip { min-width: 160px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
