/* =========================================================
   Ezhevika AI — landing styles (v3, enterprise tone)
   Editorial paper × calm B2B dossier
   ========================================================= */

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--juice); color: var(--paper); }

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

/* ---------- Design tokens ---------- */
:root {
  --ink:        #0E0B0C;
  --ink-soft:   #3E3A37;
  --ink-mute:   #6D655E;
  --paper:      #F4EFE5;
  --paper-2:    #ECE4D3;
  --paper-3:    #E3D9C3;
  --blackberry: #2A0E26;
  --berry-deep: #4A1A3D;
  --juice:      #C82C50;
  --juice-2:    #A82342;
  --sage:       #5C6E55;
  --ice:        #B9C5D2;
  --line:       rgba(14, 11, 12, .12);
  --line-2:     rgba(14, 11, 12, .22);

  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);

  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm:  0 1px 0 rgba(14,11,12,.04), 0 1px 4px rgba(14,11,12,.03);
  --shadow-md:  0 1px 0 rgba(14,11,12,.04), 0 8px 24px -16px rgba(14,11,12,.16);
  --shadow-lg:  0 20px 48px -28px rgba(14,11,12,.28), 0 8px 18px -14px rgba(14,11,12,.14);
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--juice);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-num::after {
  content: "";
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  line-height: 1.06;
}

h1 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; letter-spacing: -0.032em; }
h2 { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.028em; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 58ch;
  font-weight: 500;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.mono { font-family: var(--font-mono); font-feature-settings: "ss02"; }

/* underline / scribble — used ONCE in Hero only */
.mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.mark svg {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.15em;
  width: 108%;
  height: 0.4em;
  overflow: visible;
  pointer-events: none;
}
.mark path {
  fill: none;
  stroke: var(--juice);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s cubic-bezier(.7,.1,.3,1);
}
.mark.is-in path { stroke-dashoffset: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(auto, 1fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head > .left { display: flex; flex-direction: column; gap: 20px; }
.section-head > .right .lead { max-width: 54ch; }

/* ---------- Grain overlay ---------- */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  mix-blend-mode: multiply;
  opacity: .3;
  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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.04 0 0 0 0 0.05 0 0 0 0.65 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  --bd: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px 18px 28px;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--bd);
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--juice);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.5,.1,.2,1);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn .arrow { display: inline-flex; align-items: center; line-height: 1; font-size: .95em; transform: translateY(-1px); transition: transform .35s; }
.btn:hover .arrow { transform: translate(4px, -1px); }

.btn--primary { --bg: var(--juice); --bd: var(--juice); }
.btn--primary::before { background: var(--ink); }

.btn--cream {
  --bg: var(--paper);
  --fg: var(--ink);
  --bd: var(--paper);
}
.btn--cream::before { background: var(--juice); }
.btn--cream:hover { color: var(--paper); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  --bd: var(--line-2);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }

.btn--lg { padding: 22px 32px; font-size: 17px; }
.btn--block { width: 100%; justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  font-weight: 600;
  transition: gap .3s, color .3s, border-color .3s;
}
.text-link .arrow { transition: transform .3s; }
.text-link:hover { color: var(--juice); border-color: var(--juice); gap: 14px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(244, 239, 229, .82);
  border-bottom: 1px solid transparent;
  transition: padding .25s, border-color .25s, background .25s;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 239, 229, .94);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 22px 0;
  transition: padding .25s;
}
.nav.is-scrolled .nav__inner { padding: 14px 0; }
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.nav__logo .berry-mark { width: 28px; height: 28px; color: var(--juice); }
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: 24px;
  list-style: none;
  padding: 0;
}
.nav__links a {
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .25s;
  position: relative;
  padding: 4px 2px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--juice);
  transition: right .3s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__cta { margin-left: auto; }
.nav__cta .label-short { display: none; }

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  margin-left: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(244, 239, 229, .6);
  transition: background .25s, border-color .25s;
}
.nav__burger:hover { background: var(--paper); border-color: var(--ink); }
.nav__burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .2s, top .3s;
}
.nav__burger span:nth-child(1) { top: 13px; }
.nav__burger span:nth-child(2) { top: 19px; }
.nav__burger span:nth-child(3) { top: 25px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(72px, 9vw, 120px);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero__copy { position: relative; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(244, 239, 229, .7);
  margin-bottom: 22px;
}
.hero__eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--juice);
  box-shadow: 0 0 0 0 rgba(200, 44, 80, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 44, 80, .45); }
  70% { box-shadow: 0 0 0 12px rgba(200, 44, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 44, 80, 0); }
}

.hero h1 {
  margin-bottom: 22px;
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 1.04;
}

.hero__sub {
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero__microcopy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  margin-top: 12px;
}
.hero__microcopy::before {
  content: "↳ ";
  color: var(--juice);
}

.hero__proofs {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero__proof {
  padding: 4px 18px 4px 0;
  position: relative;
}
.hero__proof + .hero__proof { border-left: 1px solid var(--line); padding-left: 22px; }
.hero__proof .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 2.8vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.hero__proof .num--mono {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.1vw, 28px);
  letter-spacing: -0.005em;
  color: var(--ink);
}
.hero__proof .num .unit {
  font-size: .58em;
  font-weight: 700;
  color: var(--juice);
  letter-spacing: 0;
}
.hero__proof .label {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 10px;
  line-height: 1.45;
  max-width: 26ch;
}

/* hero stage = pipeline schema */
.hero__stage {
  position: relative;
  width: 100%;
}

/* ---------- PIPELINE schema (vertical tiers) ---------- */
.pipeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.pipeline::before {
  content: "";
  position: absolute;
  inset: auto -20% -50% auto;
  width: 280px; height: 280px;
  background: radial-gradient(closest-side, rgba(200, 44, 80, .08), transparent 70%);
  pointer-events: none;
}
.pipeline__tier {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  position: relative;
}
.pipeline__tier--ai {
  background: rgba(14, 11, 12, .04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.pipeline__head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.pipeline__head--juice {
  color: var(--juice);
  border-bottom-color: rgba(200, 44, 80, .35);
}
.pipeline__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.pipeline__chips li {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  white-space: nowrap;
}
.pipeline__chips--juice li {
  color: var(--ink);
  font-weight: 600;
  border-color: rgba(200, 44, 80, .35);
  background: #fff;
  box-shadow: 0 1px 0 rgba(200, 44, 80, .04);
}
.pipeline__flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-mute);
  padding: 2px 0;
}
.pipeline__flow-line {
  width: 1px;
  height: 18px;
  background: var(--line);
}
.pipeline__flow-arrow {
  width: 14px;
  height: 14px;
  display: block;
  transform: rotate(90deg);
  opacity: .55;
  overflow: visible;
}

/* ---------- PROBLEMS / §3 ---------- */
.problems { background: var(--paper-2); }

.pains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
}
.pain {
  background: var(--paper-2);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .35s;
}
.pain:hover { background: var(--paper); }
.pain__check {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  background: var(--paper);
}
.pain__check svg { width: 18px; height: 18px; color: var(--juice); }
.pain__check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .6s ease .15s;
}
.pain.is-in .pain__check path { stroke-dashoffset: 0; }
.pain h3 { font-size: 20px; line-height: 1.2; }
.pain p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; max-width: 56ch; }

/* ---------- BRIDGE (used in problems + scenarios) ---------- */
.bridge {
  margin-top: 32px;
  max-width: 820px;
}
.bridge--center { margin-left: auto; margin-right: auto; text-align: left; }
.bridge h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.35;
  color: var(--ink);
}
.bridge .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 6px 10px;
  border: 1px solid var(--juice);
  color: var(--juice);
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- SOLUTION / §4 — 4 features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--paper);
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .3s;
}
.feature:hover { background: var(--paper-2); }
.feature__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--juice);
}
.feature h3 { font-size: 22px; line-height: 1.22; letter-spacing: -0.018em; }
.feature p { color: var(--ink-soft); font-size: 15.5px; max-width: 56ch; }

/* ---------- TRUST / §5 «AI не заменяет» ---------- */
.trust { background: var(--paper-2); }

/* shared principles grid (used in §5, §8) */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  margin-bottom: 56px;
}
.principles--3 { grid-template-columns: repeat(3, 1fr); }
.principle {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trust .principle { background: var(--paper); }
.principle__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--juice);
  text-transform: uppercase;
}
.principle h3 { font-size: 19px; line-height: 1.28; letter-spacing: -0.012em; }
.principle p { color: var(--ink-soft); font-size: 15px; max-width: 38ch; }

/* pull-quote */
.pull-quote {
  margin: 32px 0 0;
  padding: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 64px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--juice);
  border-radius: var(--radius);
  background: var(--paper);
  max-width: 920px;
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}

/* ---------- SCENARIOS / §6 — 3 role columns ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.role {
  background: var(--paper);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .3s;
}
.role:hover { background: var(--paper-2); }
.role__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-3);
  border-radius: 999px;
}
.role h3 { font-size: 21px; line-height: 1.22; letter-spacing: -0.015em; }
.role > p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; max-width: 40ch; }
.role__deltas {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.role__delta-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--juice);
  margin-bottom: 12px;
}
.role__deltas ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.role__deltas li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}
.role__deltas li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 2px;
  background: var(--juice);
}

/* ---------- PILOT / §7 — 4 phases timeline ---------- */
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  position: relative;
}
.phase {
  background: var(--paper);
  padding: 32px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.phase__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--juice);
  margin-bottom: 6px;
}
.phase__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.phase__dur {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.phase p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 30ch;
}

.commitments {
  list-style: none;
  margin: 0 0 36px;
  padding: 28px clamp(20px, 3vw, 36px);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 28px;
  background: var(--paper);
}
.commitments li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.45;
}
.commitments li svg {
  width: 20px; height: 20px;
  color: var(--juice);
  margin-top: 2px;
}
.commitments li svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pilot__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.pilot__cta-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-mute);
}

/* ---------- INTEGRATION / §8 ---------- */
.tech-strip {
  margin-top: 12px;
  padding: 22px clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(20px, 3vw, 40px);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.tech-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .02em;
}
.tech-strip span + span::before {
  content: "·";
  margin-right: clamp(8px, 1.5vw, 20px);
  color: var(--juice);
  font-weight: 700;
}

/* ---------- METRICS / §9 ---------- */
.metrics { background: var(--paper-2); }
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
}
.metric {
  background: var(--paper);
  padding: 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 156px;
}
.metric__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.metric__value .unit {
  font-size: .55em;
  font-weight: 700;
  color: var(--juice);
  letter-spacing: 0;
}
.metric__label {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.4;
  max-width: 28ch;
}

.metrics__bridge {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-soft);
  max-width: 80ch;
  margin: 0 0 64px;
  line-height: 1.55;
}

.cases-head {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cases-head .eyebrow { color: var(--juice); }
.cases-head h3 { margin-top: 10px; font-size: clamp(22px, 2vw, 28px); }

/* ---------- CASES ---------- */
.case {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) 1.5fr;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.case:last-of-type { border-bottom: 0; padding-bottom: 24px; }
.case__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(56px, 7vw, 100px);
  line-height: 1;
  color: var(--berry-deep);
  letter-spacing: -.06em;
}
.case__num .of {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 12px;
  font-style: normal;
}
.case__client { margin-top: 16px; }
.case__client .eyebrow { color: var(--juice); }
.case__client h3 {
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.22;
  margin-top: 4px;
  font-weight: 700;
  letter-spacing: -0.018em;
}
.case__nda-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 4px 12px;
  border: 1px solid var(--juice);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--juice);
}
.case__nda-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--juice);
}

.case__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.case__qa {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 24px;
  align-items: baseline;
  margin: 0;
}
.case__qa dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--juice);
  padding-top: 4px;
}
.case__qa dd { margin: 0; color: var(--ink-soft); font-size: 16px; max-width: 62ch; }
.case__qa dd b { color: var(--ink); font-weight: 700; }

.case__results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
.case__results .r {
  background: var(--paper-2);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 124px;
}
.case__results .r .v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--ink);
}
.case__results .r .v em { color: var(--juice); font-style: normal; }
.case__results .r .k {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}

.cases__cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ---------- WHY / §10 ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.why__cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px clamp(20px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  transition: background .3s;
}
.why__cell:hover { background: var(--paper-2); }
.why__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--paper-2);
  display: grid; place-items: center;
  color: var(--juice);
  flex: none;
}
.why__icon svg { width: 22px; height: 22px; }
.why__cell h3 {
  font-size: 20px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.018em;
}
.why__cell p { color: var(--ink-soft); font-size: 15px; max-width: 48ch; }

/* ---------- SECURITY / §11 ---------- */
.security { background: var(--paper-2); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.sec {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 28px clamp(20px, 2.4vw, 32px) 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .3s;
}
.sec:hover { background: var(--paper-2); }
.sec b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.sec span {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 36ch;
}

/* ---------- DEMO / §13 ---------- */
.demo {
  background: #ffffff;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.demo .section-num { color: var(--juice); }
.demo .lead { color: var(--ink-soft); }

.demo__grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.demo__intro h3 {
  font-size: clamp(22px, 1.9vw, 26px);
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}
.deliverables {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
}
.deliverables li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.deliverables li:last-child { border-bottom: 0; }
.deliverables li svg {
  width: 20px; height: 20px;
  margin-top: 2px;
  color: var(--juice);
}
.deliverables li svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-mute);
}
.demo__trust span {
  display: inline-flex;
  align-items: center;
}
.demo__trust span + span::before {
  content: "·";
  margin-right: 18px;
  color: var(--juice);
  font-weight: 700;
}

.demo__form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px);
  position: relative;
  box-shadow: 0 24px 56px -32px rgba(0,0,0,.22);
  border: 1px solid var(--line);
}
.demo__form-card h3 {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.012em;
}
.demo__form-card .small { color: var(--ink-mute); font-size: 13.5px; margin-bottom: 22px; }

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input,
.field select {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  padding: 10px 0 11px;
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .3s;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.field input::placeholder { color: var(--ink-mute); opacity: .7; }
.field input:focus,
.field select:focus { border-color: var(--juice); outline: 0; }
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%230E0B0C' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right .3em center; padding-right: 22px; }

.check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
  cursor: pointer;
}
.check input { width: 22px; height: 22px; accent-color: var(--juice); margin-top: -1px; }

.form-grid .submit-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.privacy-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* ---------- Form success overlay ---------- */
.form-success {
  position: fixed;
  inset: 0;
  background: rgba(14, 11, 12, .65);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 9999;
  padding: 24px;
}
.form-success.is-open { display: grid; }
.form-success__card {
  max-width: 440px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.form-success__card svg { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--juice); }
.form-success__card h3 { font-size: 26px; margin-bottom: 8px; }
.form-success__card p { color: var(--ink-soft); }
.form-success.is-error .form-success__card svg { color: var(--ink-mute); }
.form-success.is-error .form-success__card .form-success__icon-ok { display: none; }
.form-success.is-error .form-success__card .form-success__icon-err { display: block; }
.form-success.is-error .form-success__card .form-success__msg-ok { display: none; }
.form-success.is-error .form-success__card .form-success__msg-err { display: block; }
.form-success__card .form-success__icon-err,
.form-success__card .form-success__msg-err { display: none; }
.form-success__close {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- FAQ ---------- */
.faq__head .right .lead { max-width: 48ch; }
.faq__list { border-top: 1.5px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0 26px;
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  gap: 20px;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.35;
  letter-spacing: -.018em;
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--juice);
  padding-top: 8px;
}
.faq__summary .plus {
  justify-self: end;
  width: 28px; height: 28px;
  position: relative;
  align-self: center;
}
.faq__summary .plus::before,
.faq__summary .plus::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .3s;
}
.faq__summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__summary .plus::after { transform: translate(-50%, -50%) rotate(0); }

.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq__item[open] .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; }
.faq__body p {
  padding: 0 32px 28px 76px;
  max-width: 72ch;
  font-size: 16px;
  color: var(--ink-soft);
}

/* ---------- FOOTER ---------- */
footer.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 36px;
  position: relative;
}
.foot__cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: 36px 0 64px;
  border-bottom: 1px solid rgba(244, 239, 229, .12);
  align-items: center;
}
.foot__cta h3 {
  color: var(--paper);
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 24ch;
}
.foot__cta h3 em {
  color: var(--juice);
  font-style: italic;
  font-weight: 600;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-top: 48px;
}
.foot__brand .nav__logo { color: var(--paper); }
.foot__brand .nav__logo .berry-mark { color: var(--juice); }
.foot__brand p { color: rgba(244, 239, 229, .65); font-size: 14px; margin-top: 14px; max-width: 32ch; }
.foot__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: rgba(244, 239, 229, .55);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot__col a {
  color: rgba(244, 239, 229, .85);
  font-size: 14.5px;
  transition: color .2s;
}
.foot__col a:hover { color: var(--juice); }
.foot__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 239, 229, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(244, 239, 229, .5);
  letter-spacing: .04em;
}
.foot__bottom a:hover { color: var(--juice); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .mark path { stroke-dashoffset: 0 !important; }
  .pain.is-in .pain__check path { stroke-dashoffset: 0 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__stage { max-width: 720px; margin: 0 auto; width: 100%; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .demo__grid { grid-template-columns: minmax(0, 1fr); }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case__results { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .pipeline {
    gap: 12px;
  }
  .principles, .principles--3 { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .roles { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__cta .label-long { display: none; }
  .nav__cta .label-short { display: inline; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px var(--pad-x) 22px;
    background: rgba(244, 239, 229, .98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 10;
  }
  .nav__links li { list-style: none; }
  .nav__links a {
    display: block;
    padding: 14px 4px;
    font-size: 17px;
    color: var(--ink);
    border-bottom: 1px dashed var(--line);
  }
  .nav__links a::after { display: none; }
  .nav__links li:last-child a { border-bottom: 0; }
  .nav.is-open .nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 720px) {
  .principles, .principles--3 { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .metrics__grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .case__results { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .foot__cta { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .hero__proofs { grid-template-columns: 1fr; gap: 16px; }
  .hero__proof + .hero__proof { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
  .faq__summary { grid-template-columns: 36px 1fr 28px; gap: 14px; }
  .faq__body p { padding: 0 0 24px 50px; }
  .tech-strip { gap: 8px 16px; font-size: 12px; }
  .tech-strip span + span::before { margin-right: 12px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .foot__grid { grid-template-columns: 1fr; }
  .case__results { grid-template-columns: 1fr; }
  .pull-quote { padding: 28px 24px; }
}
