/* =========================================================
   Pinnakl — design tokens
   Brand: charcoal wordmark + coral dot. Warm, editorial, data-led.
   ========================================================= */
:root {
  /* Brand */
  --coral: #ee4250;          /* decorative + large display only */
  --coral-strong: #d9323f;   /* button fill — 4.5:1 with white */
  --coral-strong-hover: #c22a36;
  --coral-ink: #c0303c;      /* small coral text on light bg */
  --coral-on-dark: #ff6b76;  /* small coral text on dark bg */
  --coral-tint: #fdecec;

  /* Neutrals (warm) */
  --ink: #2c2b29;
  --ink-deep: #1c1b1a;
  --bg: #f7f5f2;
  --bg-alt: #efebe5;
  --card: #ffffff;
  --line: #e4dfd8;
  --muted: #5e5b57;
  --on-dark: #f3f0eb;
  --muted-on-dark: #aaa59e;
  --line-on-dark: #34322f;

  --success: #1f7a4d;

  /* Type */
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  /* Space (spacious scale) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(28 27 26 / .06);
  --shadow: 0 1px 2px rgb(28 27 26 / .05), 0 12px 32px -12px rgb(28 27 26 / .18);
  --shadow-lg: 0 2px 4px rgb(28 27 26 / .04), 0 30px 60px -20px rgb(28 27 26 / .28);

  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral-strong); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 64px, var(--container)); } }

.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink-deep); color: var(--on-dark); }
@media (max-width: 767px) { .section { padding-block: var(--s-8); } }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-ink);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.section--dark .eyebrow { color: var(--coral-on-dark); }
.display { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: var(--muted-on-dark); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.accent { color: var(--coral-ink); }
.section--dark .accent { color: var(--coral-on-dark); }
.muted { color: var(--muted); }
.section--dark .muted { color: var(--muted-on-dark); }
.section-head { display: grid; gap: var(--s-4); max-width: 760px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--coral-strong); color: #fff; box-shadow: 0 8px 20px -8px rgb(217 50 63 / .55); }
.btn--primary:hover { background: var(--coral-strong-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost { background: transparent; border-color: var(--line-on-dark); color: var(--on-dark); }
.section--dark .btn--ghost:hover { border-color: var(--on-dark); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none;
  color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; min-height: 44px;
  justify-self: start; width: fit-content;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.section--dark .link-arrow { color: var(--on-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--ink-deep); color: var(--on-dark);
  font-size: 14px; text-align: center; padding: 10px 16px;
}
.announce a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.announce .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-right: 8px; vertical-align: 1px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 245 242 / .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgb(247 245 242 / .95); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--ink);
  transition: background-color .2s;
}
.nav-links a:hover { background: var(--bg-alt); }
.nav-links a[aria-current="page"] { background: var(--card); box-shadow: var(--shadow-sm); }
.nav-cta { display: flex; align-items: center; gap: var(--s-3); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; padding: 16px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.mobile-menu nav { display: grid; gap: 4px; margin-top: var(--s-6); }
.mobile-menu nav a { font-size: 1.6rem; font-weight: 700; text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--line); letter-spacing: -0.02em; }
.mobile-menu .btn { margin-top: auto; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s-8); padding-bottom: var(--s-8); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: var(--s-8); align-items: center; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); } }
.hero-copy { display: grid; gap: var(--s-5); }
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.75rem); line-height: 1.06; }
.hero h1 .quote { display: block; color: var(--muted); font-weight: 500; }
.hero h1 .quote .serif { color: var(--ink); }
.hero h1 .turn { display: block; margin-top: .25em; }
.hero h1 mark { background: linear-gradient(transparent 62%, rgb(238 66 80 / .22) 62%); color: inherit; padding: 0 .04em; }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.hero-note svg { width: 18px; height: 18px; color: var(--success); flex: none; }

.dash__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #e7f4ec; color: var(--success); white-space: nowrap; }
.chip--coral { background: var(--coral-tint); color: var(--coral-ink); }

/* Hero founder portrait with floating proof tiles (real case-study numbers only) */
.portrait { position: relative; width: min(100%, 400px); margin: 0 auto; padding: 28px 0; }
.portrait::before {
  content: ""; position: absolute; inset: 0 -6% 8% 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(238 66 80 / .16), transparent); z-index: -1;
}
.portrait__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-alt); box-shadow: var(--shadow-lg); }
.portrait__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.portrait__tag { position: absolute; right: 14px; bottom: 14px; text-align: right; background: rgb(255 255 255 / .92); backdrop-filter: blur(8px); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; color: var(--muted); line-height: 1.3; }
.portrait__tag b { display: block; font-size: 15px; color: var(--ink); }
.float-tile {
  position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.35; color: var(--muted);
  animation: float 6s ease-in-out infinite;
}
.float-tile b { display: block; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.float-tile .before { color: var(--ink); }
.float-tile .after { color: var(--coral-ink); }
.float-tile__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.float-tile--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.float-tile--dark b { color: var(--coral-on-dark); }
.float-tile--profit { top: 12%; left: -18%; animation-delay: -1s; }
.float-tile--tacos { top: 46%; right: -20%; animation-duration: 7s; animation-delay: -3s; }
.float-tile--growth { bottom: 4%; left: -12%; animation-duration: 6.5s; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (min-width: 1025px) and (max-width: 1240px) {
  .portrait { width: min(100%, 340px); }
  .float-tile--tacos { right: -14%; }
}
@media (max-width: 1024px) { .portrait { width: min(100%, 360px); } }
@media (max-width: 560px) {
  .portrait { width: 68%; padding: 20px 0; }
  .float-tile { padding: 8px 11px; font-size: 11.5px; }
  .float-tile b { font-size: 1rem; }
  .float-tile__label { font-size: 10px; }
  .float-tile--profit { left: -22%; }
  .float-tile--tacos { right: -24%; max-width: 140px; }
  .float-tile--growth { left: -24%; bottom: 3%; max-width: 138px; }
  .float-tile--growth b { white-space: nowrap; }
  .portrait__tag { right: 8px; bottom: 8px; padding: 6px 9px; font-size: 11.5px; }
  .portrait__tag b { font-size: 13px; }
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: var(--s-8); }
.stat { padding: var(--s-5) var(--s-4) 0 0; }
.stat + .stat { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 767px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .stat { padding-right: var(--s-3); }
}

/* ---------- Pain cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start;
}
.section--dark .card { background: #252321; border-color: var(--line-on-dark); }
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--coral-tint); color: var(--coral-ink); margin-bottom: var(--s-2);
}
.icon-badge svg { width: 24px; height: 24px; }
.section--dark .icon-badge { background: rgb(238 66 80 / .14); color: var(--coral-on-dark); }
.pain-stat { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--coral-ink); line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- Case study cards ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
.case-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6d0c8; }
.case-card__img { aspect-ratio: 1400 / 939; overflow: hidden; background: var(--bg-alt); }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.case-card:hover .case-card__img img { transform: scale(1.03); }
.case-card__body { padding: var(--s-5) var(--s-6) var(--s-6); display: grid; gap: var(--s-3); align-content: start; }
.case-card__meta { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-card__metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-pill { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.metric-pill--hot { background: var(--coral-tint); border-color: transparent; color: var(--coral-ink); }

/* ---------- Case-study data graphics ----------
   Before = charcoal, After = coral. Every value is labelled directly. */
.viz {
  container-type: inline-size;
  background:
    radial-gradient(circle at 92% 8%, rgb(238 66 80 / .12), transparent 42%),
    radial-gradient(circle, rgb(44 43 41 / .07) 1px, transparent 1.2px) 0 0 / 18px 18px,
    #fbf9f6;
  border-bottom: 1px solid var(--line);
}
.case-detail__img .viz { border-bottom: 0; }
.viz__inner {
  aspect-ratio: 3 / 2;
  padding: 6cqi 6.5cqi;
  display: grid; grid-template-rows: auto 1fr; gap: 4cqi;
  color: var(--ink);
}
.viz__kicker { display: block; font-size: max(11px, 2.5cqi); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.viz__hero { display: block; font-size: 11cqi; font-weight: 700; letter-spacing: -0.045em; line-height: .95; margin-top: 1.6cqi; font-variant-numeric: tabular-nums; }
.viz__hero .accent, .viz__hero span { color: var(--coral); }
.viz__hero--sm { font-size: 7.6cqi; letter-spacing: -0.035em; line-height: 1.02; }
.viz__sub { display: block; font-size: max(12px, 2.9cqi); color: var(--muted); margin-top: 1.8cqi; }
.viz__legend { display: flex; gap: 4cqi; font-size: max(11px, 2.5cqi); color: var(--muted); font-weight: 500; }
.viz__legend span { display: inline-flex; align-items: center; gap: 1.4cqi; }
.viz__legend i { width: 2.4cqi; height: 2.4cqi; min-width: 9px; min-height: 9px; border-radius: 50%; display: inline-block; }
.viz__legend .lg-before { border: 2px solid var(--ink); background: #fff; }
.viz__legend .lg-after { background: var(--coral); }

/* 1 — before/after columns */
.viz--split { grid-template-rows: none; grid-template-columns: 1fr 1fr; align-items: stretch; }
.viz--split .viz__copy { align-self: center; }
.vbars { display: grid; grid-template-columns: 1fr 1fr; align-items: end; height: 100%; }
.vbar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 1.4cqi; padding: 0 2cqi; }
.vbar__val { font-weight: 700; font-size: max(13px, 4cqi); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vbar__val--after { color: var(--coral-ink); }
.vbar__col { width: 100%; height: calc(var(--h) * .78); border-radius: 2cqi 2cqi 0 0; transform-origin: bottom; transition: transform 1s var(--ease) .25s; }
.vbar__col--before { background: var(--ink); }
.vbar__col--after { background: linear-gradient(180deg, #ff6b76, var(--coral) 60%, var(--coral-strong)); box-shadow: 0 2cqi 5cqi -2cqi rgb(238 66 80 / .5); }
.vbar__lab { align-self: stretch; text-align: center; margin: -1.4cqi -2cqi 0; padding-top: 1.6cqi; border-top: 2px solid var(--ink); font-size: max(11px, 2.5cqi); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* 2 — bullet chart vs ceiling */
.bullet { align-self: end; display: grid; gap: 2cqi; padding-top: 7cqi; }
.bullet__track { position: relative; height: 9cqi; min-height: 30px; background: #ece7e0; border-radius: 1.6cqi; }
.bullet__zone { position: absolute; inset: 0 auto 0 0; width: var(--w); background: #e0dad2; border-radius: 1.6cqi 0 0 1.6cqi; }
.bullet__bar { position: absolute; left: 0; top: 22%; bottom: 22%; width: var(--w); background: var(--coral); border-radius: 1.2cqi; transform-origin: left; transition: transform 1s var(--ease) .25s;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 2cqi; color: #fff; font-weight: 700; font-size: max(11px, 2.6cqi); white-space: nowrap; }
.bullet__mark { position: absolute; left: var(--x); top: -18%; bottom: -18%; width: 3px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); }
.bullet__mark span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 1cqi; white-space: nowrap; font-size: max(11px, 2.5cqi); font-weight: 700; color: var(--ink); }
.bullet__scale { display: flex; justify-content: space-between; font-size: max(10px, 2.3cqi); color: var(--muted); font-variant-numeric: tabular-nums; }

/* 3 — dumbbell, before → after */
.db { display: grid; gap: 3.2cqi; align-content: end; }
.db__row { display: grid; grid-template-columns: 17cqi 1fr 15cqi; align-items: center; gap: 2.6cqi; }
.db__lab { font-size: max(12px, 2.9cqi); font-weight: 700; }
.db__val { font-size: max(12px, 3.2cqi); font-weight: 700; text-align: right; color: var(--coral-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.db__track { position: relative; height: 5cqi; min-height: 16px; }
.db__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, #cfc8bf 0 4px, transparent 4px 8px); }
.db__line { position: absolute; top: 50%; height: .9cqi; min-height: 3px; transform: translateY(-50%); left: var(--l); width: calc(var(--r) - var(--l)); background: linear-gradient(90deg, var(--ink), var(--coral)); border-radius: 2px; transition: opacity .6s var(--ease) .5s; }
.db__line--rev { background: linear-gradient(90deg, var(--coral), var(--ink)); }
.db__dot { position: absolute; top: 50%; left: var(--x); width: 4.2cqi; height: 4.2cqi; min-width: 13px; min-height: 13px; border-radius: 50%; transform: translate(-50%, -50%); transition: left 1s var(--ease) .25s; }
.db__dot--before { background: #fff; border: 2.5px solid var(--ink); }
.db__dot--after { background: var(--coral); box-shadow: 0 0 0 1cqi rgb(238 66 80 / .18); }

/* 4 — 100% stacked: share of each $1 */
.stack-rows { display: grid; gap: 3cqi; align-content: end; }
.stack-row { display: grid; grid-template-columns: 13cqi 1fr; align-items: center; gap: 2.6cqi; }
.stack-row > span { font-size: max(11px, 2.5cqi); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stack { display: flex; height: 9cqi; min-height: 30px; border-radius: 1.6cqi; overflow: hidden; font-weight: 700; font-size: max(11px, 2.8cqi); font-variant-numeric: tabular-nums; }
.stack > div { display: flex; align-items: center; padding: 0 2.2cqi; white-space: nowrap; }
.stack__ads { width: var(--w); color: #fff; transform-origin: left; transition: width 1s var(--ease) .25s; }
.stack__ads--before { background: var(--ink); }
.stack__ads--after { background: var(--coral); }
.stack__rest { flex: 1; background: #e7e1d9; color: var(--ink); justify-content: flex-end; }

/* Grow-in when the card scrolls into view */
.js .reveal:not(.is-in) .vbar__col { transform: scaleY(0); }
.js .reveal:not(.is-in) .bullet__bar { transform: scaleX(0); }
.js .reveal:not(.is-in) .db__dot--after { left: var(--from); }
.js .reveal:not(.is-in) .db__line { opacity: 0; }
.js .reveal:not(.is-in) .stack__ads--after { width: var(--from); }

@container (max-width: 420px) {
  .viz__inner { aspect-ratio: auto; min-height: 66cqi; }
}

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-on-dark); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc__inputs { background: #252321; padding: var(--s-7) var(--s-6); display: grid; gap: var(--s-5); align-content: start; }
.calc__out { background: var(--card); color: var(--ink); padding: var(--s-7) var(--s-6); display: grid; gap: var(--s-4); align-content: start; }
.section--dark .calc__out .muted, .calc__out .calc__note { color: var(--muted); }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 700; font-size: 15px; }
.field .hint { font-size: 13.5px; color: var(--muted); }
.section--dark .field .hint { color: var(--muted-on-dark); }
.input-wrap { position: relative; }
.input-wrap .prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted-on-dark); font-weight: 700; pointer-events: none; }
.calc input[type="text"] {
  width: 100%; min-height: 54px; padding: 0 16px 0 34px; border-radius: 12px;
  background: var(--ink-deep); border: 1.5px solid var(--line-on-dark); color: var(--on-dark);
  font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.calc input[type="text"]:focus { border-color: var(--coral-on-dark); outline: none; box-shadow: 0 0 0 3px rgb(255 107 118 / .25); }
.range-row { display: flex; justify-content: space-between; align-items: baseline; }
.range-row output { font-weight: 700; font-size: 1.15rem; color: var(--coral-on-dark); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--coral); height: 44px; cursor: pointer; }
.calc__big { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--coral-ink); font-variant-numeric: tabular-nums; }
.calc__rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.calc__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.calc__rows b { font-variant-numeric: tabular-nums; }
.calc__note { font-size: 13px; color: var(--muted); }
.bar-compare { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 74px 1fr 52px; align-items: center; gap: 10px; font-size: 13.5px; }
.bar__track { height: 12px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; transition: width .5s var(--ease); }
.bar__fill--now { background: var(--ink); }
.bar__fill--target { background: var(--coral); }

/* ---------- Services list ---------- */
.service-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; }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }
.service { background: var(--card); padding: var(--s-6) var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
.service svg { width: 26px; height: 26px; color: var(--coral-ink); margin-bottom: var(--s-2); }
.service h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
.service p { color: var(--muted); font-size: 15.5px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-on-dark) 0 8px, transparent 8px 14px); }
.step { position: relative; display: grid; gap: var(--s-3); align-content: start; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-deep); border: 2px solid var(--line-on-dark); font-weight: 700; font-size: 1.05rem; position: relative; z-index: 1;
  font-variant-numeric: tabular-nums;
}
.step:last-child .step__num { background: var(--coral-strong); border-color: var(--coral-strong); color: #fff; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted-on-dark); font-size: 15px; }
@media (max-width: 1024px) {
  .process { grid-template-columns: 1fr; gap: var(--s-6); }
  .process::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-on-dark) 0 8px, transparent 8px 14px); }
  .step { grid-template-columns: 56px 1fr; column-gap: var(--s-5); }
  .step__num { grid-row: span 2; }
}

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: center; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; gap: var(--s-6); } }
.founder__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-alt); box-shadow: var(--shadow); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.founder__tag { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgb(255 255 255 / .92); backdrop-filter: blur(8px); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; }
.founder__tag b { display: block; font-size: 16px; }
.pull-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
.pull-quote::before { content: "\201C"; color: var(--coral); }
.pull-quote::after { content: "\201D"; color: var(--coral); }
.prose { display: grid; gap: var(--s-4); font-size: 1.08rem; color: #3d3b38; max-width: 66ch; }
.prose p:first-child::first-letter { }
.signature { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; }

/* ---------- Fit ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 900px) { .fit { grid-template-columns: 1fr; } }
.fit__col { border-radius: var(--radius-lg); padding: var(--s-7) var(--s-6); display: grid; gap: var(--s-5); align-content: start; }
.fit__col--yes { background: var(--card); border: 1px solid var(--line); }
.fit__col--no { background: transparent; border: 1.5px dashed #cfc8bf; }
.checklist { display: grid; gap: var(--s-3); }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 22px; height: 22px; margin-top: 2px; }
.checklist--yes svg { color: var(--success); }
.checklist--no svg { color: var(--coral-ink); }
.section--dark .checklist--yes svg { color: #5fd29a; }

/* ---------- Phases ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr; } }
.phase { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-6); display: grid; gap: var(--s-4); align-content: start; position: relative; overflow: hidden; }
.phase__n { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-ink); }
.phase__sub { color: var(--muted); font-style: italic; }
.phase .checklist { font-size: 15.5px; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; }
.final-cta__inner { display: grid; gap: var(--s-5); justify-items: center; text-align: center; max-width: 860px; margin-inline: auto; }
.final-cta .big-dot { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgb(238 66 80 / .35), rgb(238 66 80 / 0) 65%); right: -160px; top: -200px; pointer-events: none; }
.scarcity { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted-on-dark); }
.scarcity .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: pulse 2s infinite; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--muted-on-dark); padding-top: var(--s-8); border-top: 1px solid var(--line-on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-7); padding-bottom: var(--s-7); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); } }
.footer-brand img { height: 26px; width: auto; margin-bottom: var(--s-4); }
.footer-brand p { max-width: 38ch; font-size: 15.5px; }
.site-footer h3 { color: var(--on-dark); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s-3); }
.site-footer ul a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; color: var(--muted-on-dark); transition: color .2s; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-on-dark); padding-block: var(--s-5); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: 14px; }
/* Minimal footer (apply, thank-you): just the bottom line */
.site-footer:has(.container > .footer-bottom:only-child) { padding-top: 0; }
.container > .footer-bottom:only-child { border-top: 0; }
.footer-cta { background: #252321; border: 1px solid var(--line-on-dark); border-radius: var(--radius-lg); padding: var(--s-6); display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-7); }
.footer-cta p { color: var(--on-dark); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Sticky availability bar ---------- */
.sticky-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 40; transform: translate(-50%, 140%);
  width: min(100% - 24px, 720px);
  background: var(--ink); color: #fff; border-radius: 999px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px;
  transition: transform .35s var(--ease);
}
.sticky-bar.is-visible { transform: translate(-50%, 0); }
.sticky-bar p { flex: 1; font-size: 15px; line-height: 1.3; }
.sticky-bar .close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted-on-dark); cursor: pointer; display: grid; place-items: center; flex: none; }
.sticky-bar .close:hover { color: #fff; background: rgb(255 255 255 / .08); }
.sticky-bar .close svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .sticky-bar { border-radius: 18px; padding: 12px 8px 12px 16px; }
  .sticky-bar p { font-size: 14px; }
  .sticky-bar .btn { --h: 44px; padding: 0 14px; font-size: 14px; }
}

/* ---------- Exit-intent modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgb(28 27 26 / .6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__card { background: var(--card); border-radius: var(--radius-lg); max-width: 520px; width: 100%; padding: var(--s-7) var(--s-6) var(--s-6); position: relative; display: grid; gap: var(--s-4); box-shadow: var(--shadow-lg); transform: translateY(10px) scale(.98); transition: transform .25s var(--ease); }
.modal.is-open .modal__card { transform: none; }
.modal__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.modal__close:hover { background: var(--bg); color: var(--ink); }
.modal__close svg { width: 20px; height: 20px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: var(--s-8); padding-bottom: var(--s-7); }
.page-hero__inner { display: grid; gap: var(--s-5); max-width: 900px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Case study detail ---------- */
.case-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.case-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 500; font-size: 15px; }
.case-nav a:hover { border-color: var(--ink); }
.case-detail { padding-block: var(--s-8); border-top: 1px solid var(--line); }
.case-detail__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; margin-bottom: var(--s-7); }
@media (max-width: 900px) { .case-detail__head { grid-template-columns: 1fr; gap: var(--s-5); } }
.case-detail__img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.meta-list { display: grid; grid-template-columns: repeat(3, auto); gap: var(--s-5); justify-content: start; font-size: 14.5px; }
@media (max-width: 600px) { .meta-list { grid-template-columns: 1fr; gap: var(--s-2); } }
.meta-list dt { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.meta-list dd { margin: 2px 0 0; font-weight: 500; }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); }
@media (max-width: 900px) { .case-body { grid-template-columns: 1fr; gap: var(--s-6); } }
.case-body h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s-3); }
.case-body h3.problem { color: var(--coral-ink); }
.case-body h3.solution { color: var(--ink); }
.case-body .prose { font-size: 1.02rem; }
.results { margin-top: var(--s-7); background: var(--ink-deep); color: var(--on-dark); border-radius: var(--radius-lg); padding: var(--s-6); display: grid; gap: var(--s-5); }
.results h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #5fd29a; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
@media (min-width: 1025px) { .results-grid:has(> :nth-child(6)) { grid-template-columns: repeat(3, 1fr); } }
.result { background: #252321; border-radius: var(--radius-sm); padding: var(--s-5); display: grid; gap: 6px; align-content: start; }
.result b { font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.result span { font-size: 13.5px; color: var(--muted-on-dark); }
.result--hot b { color: var(--coral-on-dark); }
.results p { color: var(--muted-on-dark); max-width: 80ch; }

/* ---------- Forms ---------- */
.apply { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-7); align-items: start; }
@media (max-width: 960px) { .apply { grid-template-columns: 1fr; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-7) var(--s-6); box-shadow: var(--shadow); display: grid; gap: var(--s-5); }
.form-card .field input, .form-card .field select, .form-card .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); font-size: 16px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-card .field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.form-card .field input:focus, .form-card .field select:focus, .form-card .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgb(44 43 41 / .12); }
.form-card .field.has-error input, .form-card .field.has-error select, .form-card .field.has-error textarea { border-color: var(--coral-strong); background: #fff8f8; }
.field .error { display: none; color: var(--coral-ink); font-size: 14px; font-weight: 500; }
.field.has-error .error { display: block; }
.req { color: var(--coral-ink); }
.spend-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .spend-options { grid-template-columns: 1fr; } }
.spend-options label { position: relative; cursor: pointer; }
.spend-options input { position: absolute; opacity: 0; pointer-events: none; }
.spend-options span { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 500; transition: border-color .15s, background-color .15s; }
.spend-options input:checked + span { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.spend-options input:focus-visible + span { outline: 3px solid var(--coral-strong); outline-offset: 2px; }
.field.has-error .spend-options span { border-color: var(--coral-strong); }
.form-foot { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.form-foot svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.side-steps { display: grid; gap: var(--s-5); }
.side-step { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); }
.side-step__n { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.side-step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.side-step p { color: var(--muted); font-size: 15.5px; }
.mini-proof { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); display: grid; gap: var(--s-3); }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

/* Calendly */
.calendly-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.calendly-inline-widget { min-width: 320px; height: 760px; }
@media (max-width: 600px) { .calendly-inline-widget { height: 1000px; } }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.chart-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .chart-line.animate { stroke-dashoffset: 1; animation: draw 1.6s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .chart-line.animate { stroke-dashoffset: 0; }
  .float-tile { animation: none; }
}
