/* ========================================================================
   NIVOS MEDIA — Landing Page Styles
   Palette:   Alabaster #F4F5F1 · Ink #0F1512 · Pine #0F2E28 · Malachite #12A277 · Mint #3EDC9B
   Type:      Bricolage Grotesque (display) · Instrument Sans (body) · DM Mono (data/labels)
   Signature: stacked "levels" performance panel in the hero, mono data labels everywhere
   ======================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #F4F5F1;
  --paper-2: #ECEEE8;
  --white: #FFFFFF;
  --ink: #0F1512;
  --ink-2: #414A45;
  --ink-3: #6B746E;
  --line: #DCE0D8;
  --line-2: #E9ECE5;
  --pine: #0F2E28;
  --pine-2: #143A33;
  --pine-3: #1B4A41;
  --moss: #0B7F5B;
  --malachite: #12A277;
  --mint: #3EDC9B;
  --mint-soft: rgba(62, 220, 155, 0.14);
  --tint: #E4F3EC;
  --tint-2: #CFEADD;
  --gold: #E5B558;
  --danger: #D9534F;

  --font-display: 'Bricolage Grotesque', 'Instrument Sans', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Wordmark: N I V O S — adjust tracking here to match the logo file exactly */
  --logo-tracking: 0.32em;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 21, 18, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(15, 21, 18, 0.18);
  --shadow-lg: 0 24px 48px -24px rgba(15, 21, 18, 0.28);
  --shadow-panel: 0 40px 80px -30px rgba(15, 46, 40, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.2s var(--ease);
  --t-med: 0.45s var(--ease);
  --t-slow: 0.8s var(--ease);
  --max-w: 1200px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

::selection { background: var(--tint-2); color: var(--ink); }

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

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 112px 0; }
.section-tight { padding: 80px 0; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--malachite);
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 600px;
}
.section-head.center .section-lede { margin: 0 auto; }

/* Dark section variants */
.on-dark .eyebrow { color: var(--mint); }
.on-dark .eyebrow::before { background: var(--mint); }
.on-dark .section-title { color: var(--white); }
.on-dark .section-lede { color: rgba(255, 255, 255, 0.66); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--pine); box-shadow: 0 10px 24px -12px rgba(15, 46, 40, 0.5); }

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

.btn-mint { background: var(--mint); color: var(--pine); }
.btn-mint:hover { background: #5AE7AD; }

.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--paper); }

.btn-lg { height: 56px; padding: 0 30px; font-size: 1rem; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 0.875rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ========================================================================
   HEADER
   ======================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--t-med), border-color var(--t-med), box-shadow var(--t-med), height var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  height: 64px;
  background: rgba(244, 245, 241, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Wordmark */
.logo {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: var(--logo-tracking);
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  padding-left: 0.05em; /* optical: compensates trailing tracking */
  margin-right: calc(var(--logo-tracking) * -1); /* trailing letter-space */
  display: inline-block;
  transition: opacity var(--t-fast);
}
.logo:hover { opacity: 0.7; }
.logo.on-dark { color: var(--white); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a:not(.btn) {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast);
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px; width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.nav a:not(.btn):hover, .nav a:not(.btn).is-active { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a:not(.btn).is-active::after { transform: scaleX(1); }
.nav .btn { margin-left: 8px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
}
.menu-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform var(--t-med), background var(--t-fast);
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: var(--ink);
  transition: transform var(--t-med), top var(--t-med);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.is-active span { background: transparent; }
.menu-toggle.is-active span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-active span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-med), transform var(--t-med), visibility 0s linear 0.45s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.mobile-nav .btn { margin-top: 20px; align-self: flex-start; }
.mobile-nav .mobile-contact {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.9;
}

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
}
/* graph-paper field, fading out toward the bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--moss);
}
.hero-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li svg { width: 15px; height: 15px; color: var(--moss); flex: none; }

/* ---- Signature: stacked "levels" performance panel ---- */
.hero-visual { position: relative; }
.stack { position: relative; padding: 26px 0 0 26px; }
.stack-ghost {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--white);
  pointer-events: none;
}
.stack-ghost.g1 { transform: translate(-13px, -13px); opacity: 0.9; }
.stack-ghost.g2 { transform: translate(-26px, -26px); opacity: 0.55; }

.live {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--mint);
}
.live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(62, 220, 155, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 220, 155, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(62, 220, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 220, 155, 0); }
}
.kpi-delta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--mint);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--mint-soft);
  white-space: nowrap;
}
.chart-line {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-area { fill: url(#heroArea); opacity: 0; transition: opacity 1.2s ease 0.9s; }
.is-drawn .chart-area { opacity: 1; }
/* ---- Hero photo composition ---- */
.hero-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 11 / 10;
  background: linear-gradient(135deg, var(--pine-2), var(--pine));
  box-shadow: var(--shadow-panel);
}
.hero-photo img, .about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 46, 40, 0) 55%, rgba(15, 46, 40, 0.42) 100%);
  pointer-events: none;
}
.photo-fallback {
  position: absolute; inset: 0;
  display: none; place-items: center;
  color: rgba(255, 255, 255, 0.35);
}
.photo-fallback svg { width: 56px; height: 56px; }
figure.is-broken img { display: none; }
figure.is-broken .photo-fallback { display: grid; }

.kpi-card {
  position: absolute;
  left: -30px; bottom: 34px;
  width: 256px;
  background: var(--pine);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.kpi-card-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}
.kpi-card-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.kpi-card-row b {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.kpi-spark { width: 100%; height: auto; overflow: visible; }
.kpi-card-foot {
  display: flex; justify-content: space-between;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.float-card {
  position: absolute;
  right: -26px; top: 22px;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 18px 14px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--tint);
  display: grid; place-items: center;
  color: var(--moss);
}
.float-icon svg { width: 20px; height: 20px; }
.float-card .l { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.float-card .v { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
.float-card .v span { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--moss); margin-left: 6px; }

/* ========================================================================
   TRUST BAND / TICKER
   ======================================================================== */
.trust-band {
  padding: 22px 0 28px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--white);
}
.trust-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-item {
  flex: none;
  color: var(--ink);
  opacity: 0.42;
  transition: opacity var(--t-fast);
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.ticker-item:hover { opacity: 1; }
.ticker-item svg { width: 16px; height: 16px; }
/* Placeholder client wordmarks (REPLACE with real logos) */
.wm-1 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.18em; text-transform: uppercase; }
.wm-2 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; }
.wm-3 { font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.06em; }
.wm-4 { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.wm-5 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.03em; font-style: italic; }
.wm-6 { font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.28em; text-transform: uppercase; }
.wm-7 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; text-transform: lowercase; }
.wm-8 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }

/* ========================================================================
   RESULTS / METRICS
   ======================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.metric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.metric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--tint-2); }
.metric-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.platform { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.platform svg { width: 15px; height: 15px; flex: none; }
.metric-head .live { color: var(--moss); }
.metric-head .live::before { background: var(--malachite); box-shadow: none; animation: pulseLight 2s infinite; }
@keyframes pulseLight {
  0% { box-shadow: 0 0 0 0 rgba(18, 162, 119, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(18, 162, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 162, 119, 0); }
}
.metric-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-bottom: 6px;
}
.metric-label { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 18px; }
.metric-chart svg { width: 100%; height: auto; overflow: visible; }
.spark-line { fill: none; stroke: var(--malachite); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark-area { fill: url(#sparkFill); }
.spark-grid { stroke: var(--line-2); stroke-width: 1; }
.spark-dot { fill: var(--white); stroke: var(--malachite); stroke-width: 2; }
.spark-prev { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 3 4; }
.metric-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.trend { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); }
.trend.up, .trend.good { background: var(--tint); color: var(--moss); }
.period { color: var(--ink-3); }

/* ========================================================================
   ABOUT
   ======================================================================== */
.about { background: var(--white); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-copy .section-lede { margin-bottom: 30px; }
.checklist { display: grid; gap: 18px; margin-bottom: 34px; }
.check-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 1rem; font-weight: 500; color: var(--ink);
}
.check-item span.mark {
  flex: none;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--tint);
  color: var(--moss);
  display: grid; place-items: center;
}
.check-item span.mark svg { width: 20px; height: 20px; }
.check-item small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.9rem; margin-top: 2px; }

.about-visual { position: relative; padding: 24px 0 64px 28px; }
.about-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 10 / 11;
  background: linear-gradient(135deg, var(--pine-2), var(--pine));
  box-shadow: var(--shadow-lg);
}
.report-mini {
  position: absolute;
  left: 0; top: 60px;
  width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px 6px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.report-mini-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.report-mini-head svg { width: 15px; height: 15px; color: var(--moss); }
.report-mini-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 10px; align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--line-2);
  font-size: 0.82rem; color: var(--ink-2);
}
.report-mini-row b { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.report-mini-row em { font-style: normal; font-family: var(--font-mono); font-size: 0.66rem; color: var(--moss); }
.note-card {
  position: absolute;
  right: -28px; bottom: 0;
  width: min(340px, 86%);
  background: var(--pine);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
}
.note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.note-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mint); color: var(--pine);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  display: grid; place-items: center;
}
.note-head .n { font-size: 0.85rem; font-weight: 600; }
.note-head .t { font-family: var(--font-mono); font-size: 0.66rem; color: rgba(255,255,255,.5); margin-left: auto; }
.note-card p { font-size: 0.9rem; line-height: 1.5; color: rgba(255,255,255,.86); }
.note-card p b { color: var(--mint); font-weight: 600; }

/* ========================================================================
   CASE STUDIES (dark)
   ======================================================================== */
.cases {
  background: var(--pine);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cases::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  left: -260px; bottom: -320px;
  background: radial-gradient(circle, rgba(62,220,155,.14), transparent 65%);
  pointer-events: none;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.case-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
}
.case-card:hover { transform: translateY(-5px); border-color: rgba(62,220,155,.4); background: rgba(255,255,255,.06); }
.case-chart { padding: 18px 18px 0; }
.case-chart-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}
.case-chart-value {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px;
}
.case-chart-value b {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.case-chart-value span {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--mint);
  background: var(--mint-soft); padding: 3px 8px; border-radius: var(--radius-pill);
}
.case-chart svg { width: 100%; height: auto; overflow: visible; }
.c-line { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-area { fill: url(#caseFill); }
.c-grid { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.c-dot { fill: var(--pine); stroke: var(--mint); stroke-width: 2; }
.c-prev { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1.2; stroke-dasharray: 3 4; }
.c-bar { fill: var(--mint); }
.case-mini {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 12px 0 0;
  padding: 12px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.case-mini .l { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.case-mini .v { font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.case-body { padding: 16px 18px 20px; }
.case-metric {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px;
}
.case-desc { font-size: 0.9rem; color: rgba(255,255,255,.66); line-height: 1.5; margin-bottom: 14px; }
.case-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(62,220,155,.35);
  padding: 5px 10px; border-radius: var(--radius-pill);
}
.case-tag svg { width: 12px; height: 12px; }

/* ========================================================================
   METHOD / SERVICES (staircase)
   ======================================================================== */
.method { background: var(--paper); }
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
  margin-top: 8px;
}
.stage {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  position: relative;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.stage:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--tint-2); }
/* each stage sits one "level" higher — the funnel climbs in value */
.stage:nth-child(1) { padding-top: 28px; }
.stage:nth-child(2) { padding-top: 52px; }
.stage:nth-child(3) { padding-top: 76px; }
.stage-index {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.stage-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--moss);
  margin-bottom: 18px;
}
.stage-icon svg { width: 25px; height: 25px; }
.stage:nth-child(2) .stage-icon { background: var(--tint-2); color: var(--pine); }
.stage:nth-child(3) .stage-icon { background: var(--pine); color: var(--mint); }
.stage-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}
.stage-desc { font-size: 0.97rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 20px; min-height: 6.2em; }
.stage-list { display: grid; gap: 8px; }
.stage-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line-2);
  font-size: 0.93rem; font-weight: 500;
}
.stage-list li svg { width: 17px; height: 17px; color: var(--moss); flex: none; }
.stages-baseline {
  margin-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.stages-baseline .arrow { color: var(--moss); }

/* ========================================================================
   WHY NIVOS (badges + accordion)
   ======================================================================== */
.why { background: var(--white); border-top: 1px solid var(--line-2); }
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.why-side { position: sticky; top: 100px; }
.badges-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 34px 0 14px;
}
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 470px; }
.badge {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  font-size: 0.92rem; font-weight: 500;
}
.badge-logo {
  flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
}
.badge-logo svg { width: 19px; height: 19px; }
.badge small { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin-top: 1px; }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color var(--t-fast);
}
.acc-trigger:hover { color: var(--moss); }
.acc-title { flex: 1; display: flex; align-items: center; }
.acc-ic {
  flex: none;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--tint); color: var(--moss);
  display: grid; place-items: center;
  margin-right: 14px;
  transition: background var(--t-fast), color var(--t-fast);
}
.acc-ic svg { width: 18px; height: 18px; }
.acc-item.is-open .acc-ic { background: var(--pine); color: var(--mint); }
.acc-icon {
  flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform var(--t-med), background var(--t-fast), border-color var(--t-fast);
}
.acc-icon svg { width: 14px; height: 14px; }
.acc-item.is-open .acc-icon { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--white); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height var(--t-med); }
.acc-inner { padding: 0 60px 24px 52px; color: var(--ink-2); font-size: 1rem; line-height: 1.65; }

/* ========================================================================
   TESTIMONIALS
   ======================================================================== */
.testimonials { background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  display: flex; flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 18px; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }
.quote-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 26px;
  flex: 1;
}
.quote-text b { font-weight: 600; color: var(--moss); }
.quote-author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--pine);
  background: var(--tint-2);
}
.avatar.a2 { background: #E8E4F3; color: #3F3572; }
.avatar.a3 { background: #F6E9D3; color: #6E4A0F; }
.quote-name { font-weight: 600; font-size: 0.95rem; }
.quote-role { font-size: 0.82rem; color: var(--ink-3); }

/* ========================================================================
   INTEGRATIONS
   ======================================================================== */
.integrations { background: var(--white); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
}
.tool:hover { transform: translateY(-3px); border-color: var(--tint-2); background: var(--white); }
.tool-mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--line-2);
  flex: none;
}
.tool-mark svg { width: 22px; height: 22px; }
.tool-name { font-weight: 600; font-size: 0.95rem; }
.tool-role { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }

/* ========================================================================
   FAQ
   ======================================================================== */
.faq { background: var(--paper); }
.faq-wrap { max-width: 820px; margin: 0 auto; }

/* ========================================================================
   FINAL CTA
   ======================================================================== */
.cta-band {
  background: var(--pine);
  color: var(--white);
  padding: 112px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(62,220,155,.18);
  pointer-events: none;
}
.cta-band::before { width: 720px; height: 720px; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
.cta-band::after { width: 1100px; height: 1100px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-color: rgba(62,220,155,.1); z-index: 1; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: saturate(0.45); z-index: 0; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,46,40,.72) 0%, rgba(15,46,40,.9) 60%, rgba(15,46,40,.96) 100%); z-index: 0; }
.cta-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.cta-lede { font-size: 1.1rem; color: rgba(255,255,255,.7); margin-bottom: 36px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.cta-phone:hover { color: var(--mint); border-color: var(--mint); }
.cta-phone svg { width: 16px; height: 16px; }
.cta-note { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.cta-note span { display: inline-flex; align-items: center; gap: 8px; }
.cta-note svg { width: 14px; height: 14px; color: var(--mint); }

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 72px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size: 0.95rem; line-height: 1.6; max-width: 340px; margin: 20px 0 22px; }
.footer-contact { display: grid; gap: 8px; font-family: var(--font-mono); font-size: 0.82rem; }
.footer-address { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.55); line-height: 1.5; }
.footer-address svg { width: 15px; height: 15px; opacity: 0.7; flex: none; margin-top: 2px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); transition: color var(--t-fast); }
.footer-contact a:hover { color: var(--mint); }
.footer-contact svg { width: 15px; height: 15px; opacity: 0.7; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.95rem; color: rgba(255,255,255,.72); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.9rem; margin-bottom: 14px; }
.subscribe { display: flex; gap: 8px; }
.subscribe input {
  flex: 1; min-width: 0;
  height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font: inherit; font-size: 0.9rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.subscribe input::placeholder { color: rgba(255,255,255,.4); }
.subscribe input:focus { outline: none; border-color: var(--mint); background: rgba(255,255,255,.09); }
.subscribe button {
  height: 46px; padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink);
  font-weight: 600; font-size: 0.9rem;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.subscribe button:hover { background: var(--mint); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--mint); }

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1080px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-side { position: static; }
  .badges { max-width: none; grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-lede { max-width: none; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .float-card { right: 6px; top: 18px; }
  .kpi-card { left: 12px; bottom: 26px; }
  .metrics-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .stages { grid-template-columns: 1fr; align-items: stretch; }
  .stage:nth-child(n) { padding-top: 28px; }
  .stage-desc { min-height: 0; }
  .quote-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero-title { font-size: clamp(2.35rem, 11vw, 3rem); }
  .hero-actions .btn { width: 100%; }
  .float-card { display: none; }
  .kpi-card { left: 12px; bottom: 12px; width: min(230px, 80%); padding: 12px 12px 10px; }
  .kpi-card-row b { font-size: 1.7rem; }
  .stack { padding: 18px 0 0 18px; }
  .stack-ghost.g1 { transform: translate(-9px, -9px); }
  .stack-ghost.g2 { transform: translate(-18px, -18px); }
  .case-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .note-card { position: static; width: 100%; margin-top: 12px; }
  .report-mini { position: static; width: 100%; margin-top: 12px; }
  .about-visual { padding: 0; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.12em; }
  .acc-trigger { font-size: 1.05rem; padding: 18px 0; }
  .acc-inner { padding: 0 8px 20px 0; }
  .acc-ic { width: 32px; height: 32px; margin-right: 12px; }
  .acc-ic svg { width: 15px; height: 15px; }
  .cta-band { padding: 88px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

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