/* ============================================================
   FLUENCE — Shared Stylesheet
   Warm, minimal, graphic. Workflow-native premium.
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:       #F4F2F0;
  --bg-2:     #FDFCFB;
  --bg-3:     #EDEAE4;

  /* Borders */
  --border:       #E4DFD8;
  --border-hover: #CDC6BA;

  /* Text */
  --text:   #1A1A18;
  --text-2: #6E6E65;
  --text-3: #A29C91;

  /* Green (primary) */
  --green:       #2D5A27;
  --green-2:     #3E7A36;
  --green-light: #EAF1E7;
  --green-mid:   #C5DEC1;
  --green-dim:   rgba(45, 90, 39, 0.08);
  --green-glow:  rgba(45, 90, 39, 0.20);

  /* Warm / orange (accent) */
  --orange:      #C2622C;
  --orange-2:    #D98E5B;
  --warm-1:      #E8B89B;
  --warm-2:      #D89A7E;
  --warm-soft:   #F6E3D6;
  --orange-dim:  rgba(194, 98, 44, 0.10);

  --blue: #2347A0;

  /* Radius */
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Layout */
  --max: 1160px;
  --nav-h: 70px;
  --nav-btn-pad-y: 11px;
  --nav-btn-font: 0.82rem;
  --nav-btn-line: 1.25;
  --nav-btn-height: calc(var(--nav-btn-pad-y) * 2 + var(--nav-btn-font) * var(--nav-btn-line));

  /* Typography */
  --font-display: 'Neue Montreal Bold', 'DM Sans', sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;

  /* Transitions */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain / noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--green); color: #fff; }
::-moz-selection { background: var(--green); color: #fff; }

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

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { color: var(--text-2); line-height: 1.75; font-weight: 300; }

em { font-style: normal; }

/* Eyebrow — mono label with a small node dot, no lopsided line */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.3rem;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.eyebrow.orange { color: var(--orange); }
.eyebrow.orange::before { background: var(--orange); }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 104px 0;
  position: relative;
}

.section-sm { padding: 64px 0; }

/* ── Scroll progress bar ──────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--green);
  z-index: 300;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 12px rgba(45,90,39,0.18);
}

.btn-primary:hover {
  background: var(--green-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--green-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  border-color: var(--text-2);
  background: rgba(26,26,24,0.035);
  transform: translateY(-2px);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft),
              box-shadow 0.3s var(--ease-soft);
}

.nav.scrolled {
  background: rgba(244, 242, 240, 0.96);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

/* Match nav CTA button height */
.nav-logo img {
  height: var(--nav-btn-height);
  width: auto;
  max-width: none;
  max-height: var(--nav-btn-height);
  display: block;
}

.footer-brand .nav-logo img {
  height: var(--nav-btn-height);
  max-height: var(--nav-btn-height);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  border-radius: 6px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn {
  padding: var(--nav-btn-pad-y) 20px;
  font-size: var(--nav-btn-font);
  line-height: var(--nav-btn-line);
}

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  padding: 10px 32px;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--green); }

.mobile-menu-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2rem;
  color: var(--text-2);
  line-height: 1;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 86px) 0 96px;
  position: relative;
  overflow: hidden;
}

/* Blob mesh */
.hero-mesh {
  position: absolute;
  inset: -10% -6% 0 -6%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(74px);
  opacity: 0.62;
}

.blob-wrap { position: absolute; will-change: transform; }

.blob {
  width: 100%; height: 100%;
  border-radius: 50%;
  mix-blend-mode: multiply;
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.blob-wrap-1 { width: 420px; height: 420px; top: -60px;  left: 4%;   animation: drift1 19s ease-in-out infinite; }
.blob-wrap-2 { width: 380px; height: 380px; top: 30px;   right: 2%;  animation: drift2 23s ease-in-out infinite; }
.blob-wrap-3 { width: 320px; height: 320px; bottom: -120px; left: 32%; animation: drift3 27s ease-in-out infinite; }
.blob-wrap-4 { width: 240px; height: 240px; top: 38%;   left: 60%;  animation: drift1 31s ease-in-out infinite reverse; }

.blob-1 { background: var(--green-2); }
.blob-2 { background: var(--warm-1); }
.blob-3 { background: var(--warm-2); }
.blob-4 { background: var(--green-mid); }

@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(54px,38px) scale(1.1); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-48px,30px) scale(0.92); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(40px,-46px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.6rem;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1.03;
}

.hero h1 .accent { color: var(--green); }

/* Headline sketched underline */
.hl { position: relative; display: inline-block; }
.hl-underline {
  position: absolute;
  left: -2%; right: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.36em;
}
.hl-underline path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 680;
  stroke-dashoffset: 680;
  animation: draw-line 1.1s 0.95s var(--ease) forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--text-2);
  margin: 0 auto 2.4rem;
  max-width: 600px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 2.6rem;
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 38px 24px;
  border-right: 1px solid var(--border);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span:last-child { color: var(--green); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── Scroll-drawn flow connector ──────────────────────────── */
#flow-connector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

#flow-connector svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#flow-path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0.1 11;
  opacity: 0.5;
}

.flow-node {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), background 0.35s;
}

.flow-node.active {
  opacity: 1;
  transform: scale(1);
  background: var(--green);
}

.flow-node.flow-end {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  box-shadow: 0 0 0 5px var(--green-light);
}

@media (max-width: 1023px) { #flow-connector { display: none; } }

/* ── Flow divider (animated workflow edge) ────────────────── */
.flow-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.flow-divider .fd-line {
  flex: 1;
  height: 0;
  border-top: 1px dashed var(--border-hover);
  transform: scaleX(0);
  transition: transform 1.3s var(--ease);
}
.flow-divider .fd-line:first-child { transform-origin: right center; }
.flow-divider .fd-line:last-child  { transform-origin: left center; }
.flow-divider.visible .fd-line { transform: scaleX(1); }

.flow-divider .fd-node {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--green);
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.4s 0.9s, transform 0.5s 0.9s var(--ease);
}
.flow-divider.visible .fd-node { opacity: 1; transform: scale(1); }

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .eyebrow { justify-content: center; }
.section-header h2 { margin-bottom: 16px; }

.section-header p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.04rem;
}

/* ── Cards (services) ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 34px;
  box-shadow: 0 1px 4px rgba(20,20,18,0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.3s var(--ease-soft);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(20,20,18,0.09);
}

/* node accent that wires in on hover */
.card::after {
  content: '';
  position: absolute;
  top: 22px; right: 22px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--green-mid);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.card:hover::after { opacity: 1; transform: scale(1); }

.card-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg { width: 21px; height: 21px; color: var(--green); }

.card h3 { margin-bottom: 10px; }
.card > p { font-size: 0.95rem; }

/* ── ICP / Who it's for ───────────────────────────────────── */
.icp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.icp-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(20,20,18,0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}

.icp-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(20,20,18,0.09);
}

.icp-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 7px;
}
.icp-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.icp-name { font-size: 1.3rem; }

.icp-pain {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  border-left: 2px solid var(--warm-2);
  padding-left: 14px;
}

.icp-want {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-top: auto;
}
.icp-want strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 5px;
}

/* ── Steps ────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}

/* dotted connector edge between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 0;
  border-top: 1.5px dashed var(--green-mid);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 26px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1.5px solid var(--green-mid);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.step:hover .step-number {
  transform: scale(1.08);
  background: var(--green);
  color: #fff;
}

.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.93rem; }

/* ── Featured case study ──────────────────────────────────── */
.case-feature {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(20,20,18,0.05);
}

.case-feature-main { padding: 46px 44px; }

.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.case-feature-main h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 16px;
}

.case-feature-main p { font-size: 0.97rem; margin-bottom: 14px; }

.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.case-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  padding: 5px 11px;
  border-radius: 6px;
}

.case-feature-side {
  background:
    radial-gradient(circle at 80% 15%, var(--green-light) 0%, transparent 55%),
    radial-gradient(circle at 15% 95%, var(--warm-soft) 0%, transparent 55%),
    var(--green);
  color: #fff;
  padding: 46px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.case-feature-side .cs-big {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #fff;
}

.case-feature-side .cs-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
}

.case-feature-side .cs-note {
  margin-top: 16px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

/* ── Features / Why split ─────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 3px rgba(20,20,18,0.04);
  transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(20,20,18,0.08);
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg { width: 18px; height: 18px; color: var(--green); }

.feature h4 { margin-bottom: 5px; font-size: 1.02rem; }
.feature p { font-size: 0.88rem; }

/* ── CTA Block ────────────────────────────────────────────── */
.cta-block {
  background: var(--green);
  border-radius: var(--r-xl);
  padding: 84px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(216,154,126,0.34) 0%, transparent 48%),
    radial-gradient(circle at 14% 88%, rgba(62,122,54,0.55) 0%, transparent 52%);
  pointer-events: none;
}

.cta-block .eyebrow { color: var(--warm-1); justify-content: center; }
.cta-block .eyebrow::before { background: var(--warm-1); }

.cta-block h2 { color: #fff; margin-bottom: 16px; position: relative; z-index: 1; }

.cta-block p {
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 1.04rem;
  color: rgba(255,255,255,0.84);
  position: relative;
  z-index: 1;
}

.cta-block .btn { position: relative; z-index: 1; }

.cta-block .btn-primary {
  background: #fff;
  color: var(--green);
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
}
.cta-block .btn-primary:hover { background: var(--warm-soft); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.88rem;
  max-width: 260px;
  color: var(--text-2);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-2);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.footer-bottom a { color: var(--text-3); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--green); }

/* ── Badge / Tag ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-green {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--green-mid);
}

.badge-green::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Divider ──────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); border: none; }

/* ── Checklist ────────────────────────────────────────────── */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.checklist-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checklist-item .check {
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-item .check svg { width: 10px; height: 10px; color: var(--green); }

.checklist-item p { font-size: 0.92rem; margin: 0; color: var(--text-2); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  letter-spacing: -0.01em;
  transition: background 0.2s;
}

.faq-question:hover { background: rgba(26,26,24,0.02); }

.faq-question svg {
  width: 18px; height: 18px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.faq-item.open .faq-question svg { transform: rotate(45deg); color: var(--green); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-item.open .faq-answer { max-height: 320px; }

.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.75;
}

/* ── Scroll reveal ────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* ── Page hero (inner pages) ──────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 88px) 0 70px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero .hero-mesh { inset: -20% -6% -40% -6%; opacity: 0.62; }

.page-hero .eyebrow { justify-content: center; }

.page-hero-glow { display: none; }

.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.page-hero p {
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-weight: 300;
}

.page-hero .container { position: relative; z-index: 2; }

/* ── Prose (legal pages) ──────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }

.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.8rem; color: var(--text); }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; margin-bottom: 0.6rem; color: var(--text); }
.prose p { margin-bottom: 1rem; font-size: 0.95rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { color: var(--text-2); font-size: 0.95rem; margin-bottom: 6px; }
.prose a { color: var(--green); }
.prose a:hover { text-decoration: underline; }

/* ── Problem / Pain section ───────────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pain-item {
  padding: 26px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(20,20,18,0.04);
}

.pain-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.pain-item h4 { margin-bottom: 6px; font-size: 1rem; }
.pain-item p { font-size: 0.88rem; }

/* ── Transformation ───────────────────────────────────────── */
.transform-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
}

.transform-col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.transform-col.before h3 { color: var(--text-3); }
.transform-col.after h3 { color: var(--green); }

.transform-divider { display: flex; align-items: center; justify-content: center; padding-top: 36px; }

.transform-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.transform-arrow svg { width: 16px; height: 16px; color: var(--green); }

.transform-list { display: flex; flex-direction: column; gap: 10px; }

.transform-row {
  padding: 13px 16px;
  border-radius: var(--r);
  font-size: 0.92rem;
  line-height: 1.5;
}

.transform-col.before .transform-row {
  background: rgba(180,60,60,0.05);
  border: 1px solid rgba(180,60,60,0.12);
  color: var(--text-2);
}

.transform-col.after .transform-row {
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  color: var(--text);
}

/* ── Success Story Cards ──────────────────────────────────── */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.story-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 1px 3px rgba(20,20,18,0.04);
  transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(20,20,18,0.08);
}

.story-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.story-result {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.04em;
  line-height: 1;
}

.story-card h3 { font-size: 1.02rem; }
.story-card p { font-size: 0.87rem; }

.story-placeholder {
  border: 1px dashed var(--border-hover);
  background: var(--bg-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 240px;
  gap: 12px;
}

.story-placeholder svg { width: 28px; height: 28px; color: var(--text-3); }
.story-placeholder p { font-size: 0.85rem; color: var(--text-3); }

/* ── Contact embed ────────────────────────────────────────── */
.cal-embed {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  min-height: 720px;
}

.cal-embed iframe { width: 100%; height: 900px; border: none; display: block; }

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .blob-wrap { animation: none; }
  .blob { transition: none; }
  .deco-spin, .deco-float { animation: none; }
  .hl-underline path { animation: none; stroke-dashoffset: 0; }
  .fade-up { transition-duration: 0.3s; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid,
  .stories-grid,
  .icp-grid { grid-template-columns: repeat(2, 1fr); }

  .icp-grid > :last-child { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .transform-grid { grid-template-columns: 1fr; gap: 24px; }
  .transform-divider { display: none; }

  .case-feature { grid-template-columns: 1fr; }
  .split { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }

  .container { padding: 0 20px; }
  .section { padding: 76px 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .services-grid,
  .features-grid,
  .stories-grid,
  .icp-grid,
  .pain-grid { grid-template-columns: 1fr; }

  .icp-grid > :last-child { grid-column: auto; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }

  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid::before { display: none; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .cta-block { padding: 56px 24px; }
  .case-feature-main { padding: 34px 26px; }
  .case-feature-side { padding: 34px 26px; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .stat-number { font-size: 2rem; }
}

/* ── Cookie consent ───────────────────────────────────────── */
#cookie-consent-root {
  position: relative;
  z-index: 9999;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(26, 26, 24, 0.08);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.cookie-banner-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 260px;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.cookie-banner-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 640px;
}

.cookie-banner-desc a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-banner-actions .btn {
  white-space: nowrap;
}

.cookie-btn-reject,
.cookie-btn-manage {
  min-width: 120px;
}

.cookie-btn-accept {
  min-width: 120px;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 24, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10000;
}

.cookie-modal-overlay[hidden] {
  display: none !important;
}

body.cookie-modal-open {
  overflow: hidden;
}

.cookie-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  box-shadow: 0 24px 64px rgba(26, 26, 24, 0.12);
}

.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-3);
  border-radius: var(--r);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cookie-modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 10px;
  padding-right: 40px;
}

.cookie-modal-intro {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.55;
}

.cookie-category {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-category h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.cookie-category p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}

.cookie-category a {
  color: var(--green);
}

.cookie-always-on {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 10px;
  border-radius: var(--r);
}

.cookie-toggle {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 26px;
  transition: background 0.2s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--bg-2);
  border-radius: 50%;
  transition: transform 0.2s var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--green);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(22px);
}

.cookie-toggle input:focus-visible + .cookie-toggle-slider {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 8px;
}

.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-3);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.cookie-settings-link:hover {
  color: var(--green);
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal-actions {
    flex-direction: column;
  }

  .cookie-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
