/* Lemniscate Growth — design system v3
   Type: Inter Tight (display) · Inter (text) · Geist Mono (labels, numbers)
   Colour: white paper, near-black ink, grey "second voice", cobalt accent from the capabilities deck. */

:root {
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --paper-3: #eef1f5;
  --ink: #0b0d12;
  --ink-2: #3b4150;
  --ink-3: #6b7180;
  --quiet: #9aa0ac;
  /* grey second voice in headlines */
  --line: #e6e8ee;
  --line-2: #d6dae2;
  --blue: #1b17ff;
  /* sampled from the Lemniscate logo file */
  --blue-deep: #110dc4;
  --blue-soft: #ebeaff;
  --blue-wash: #f6f6ff;
  --blue-2: #5855ff;
  --green: #0f9d58;
  --amber: #c77700;

  --f-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --w: 1120px;
  /* framed column: ~half the viewport on wide screens */
  --w-prose: 700px;
  --gut: clamp(20px, 4vw, 40px);
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 13, 18, .04), 0 8px 24px -12px rgba(11, 13, 18, .12);
  --shadow-lg: 0 2px 4px rgba(11, 13, 18, .04), 0 24px 60px -24px rgba(11, 13, 18, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-text);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--blue-soft);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

/* ---------- Frame: centred column with hairline rails (Mintlify-style) ---------- */
.wrap {
  width: min(100% - 2 * var(--gut), var(--w));
  margin-inline: auto;
}

.rails {
  position: relative;
}

.rails::before,
.rails::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  left: max(var(--gut) - 1px, calc(50% - var(--w) / 2 - 1px));
  pointer-events: none;
  z-index: 0;
}

.rails::after {
  left: auto;
  right: max(var(--gut) - 1px, calc(50% - var(--w) / 2 - 1px));
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}

.section.tight {
  padding-block: clamp(44px, 6vw, 72px);
}

.section.flush {
  border-top: 0;
}

.section.alt {
  background: var(--paper-2);
}

.section>.wrap {
  position: relative;
  z-index: 1;
}

.cross {
  position: absolute;
  width: 9px;
  height: 9px;
  z-index: 2;
  pointer-events: none;
}

.cross::before,
.cross::after {
  content: "";
  position: absolute;
  background: var(--line-2);
}

.cross::before {
  left: 4px;
  top: 0;
  width: 1px;
  height: 9px;
}

.cross::after {
  top: 4px;
  left: 0;
  height: 1px;
  width: 9px;
}

/* ---------- Type ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

.h-hero {
  font-size: clamp(40px, 6.2vw, 76px);
  letter-spacing: -0.045em;
  line-height: .98;
}

.h1 {
  font-size: clamp(36px, 5vw, 60px);
}

.h2 {
  font-size: clamp(30px, 3.8vw, 46px);
}

.h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.h4 {
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.q {
  color: var(--quiet);
}

/* the grey second voice */
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.lede b,
.lede strong {
  color: var(--ink);
  font-weight: 600;
}

.muted {
  color: var(--ink-3);
}

.eyebrow {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue);
}

.eyebrow.plain::before {
  display: none;
}

.mono {
  font-family: var(--f-mono);
  letter-spacing: -0.01em;
}

.num {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.stack>*+* {
  margin-top: var(--s, 16px);
}

.center {
  text-align: center;
  margin-inline: auto;
}

.center .lede {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  --bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  font: 500 15px/1 var(--f-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn.blue {
  --bg: var(--blue);
  --bd: var(--blue);
}

.btn.blue:hover {
  --bg: var(--blue-deep);
}

.btn.ghost {
  color:#000 !important;
  --bg: #fff;
  --fg: var(--ink);
  --bd: var(--line-2);
}

.btn.ghost:hover {
  --bd: var(--ink-3);
}

.btn.sm {
  color: #fff;
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.btn .arr {
  transition: transform .2s var(--ease);
}

.btn:hover .arr {
  transform: translateX(3px);
}

.link {
  color: var(--blue);
  font-weight: 500;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.link:hover {
  color: var(--blue-deep);
}

.link .arr {
  transition: transform .2s var(--ease);
}

.link:hover .arr {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand img {
  height: 45px;
  width: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.menu>li {
  list-style: none;
  position: relative;
}

.menu>li>a,
.menu>li>button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  background: none;
  border: 0;
  cursor: pointer;
}

.menu>li>a:hover,
.menu>li>button:hover,
.menu>li.open>button {
  color: var(--ink);
  background: var(--paper-3);
}

.menu ul {
  padding: 0;
  margin: 0;
}

.chev {
  width: 10px;
  height: 10px;
  transition: transform .2s;
}

.menu>li.open .chev {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 560px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}

.mega.wide {
  min-width: 720px;
  grid-template-columns: 1fr 1fr 1fr;
}

.menu>li.open .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega-head {
  grid-column: 1 / -1;
  padding: 8px 12px 6px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mega a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 12px;
  padding: 10px 12px;
  border-radius: 10px;
}

.mega a:hover {
  background: var(--paper-2);
}

.mega a .ico {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #fff;
}

.mega a .ico svg {
  width: 17px;
  height: 17px;
}

.mega a b {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.mega a span {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.35;
}

.mega .foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding: 10px 12px 4px;
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.burger {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 1080px) {

  .menu,
  .nav-cta .ghost {
    display: none;
  }

  .burger {
    display: grid;
    place-items: center;
  }

  .nav-cta {
    margin-left: auto;
  }

  body.menu-open .menu {
    display: block;
    position: fixed;
    inset: 64px 0 0 0;
    background: #fff;
    overflow: auto;
    padding: 12px var(--gut) 40px;
  }

  body.menu-open .menu>li>a,
  body.menu-open .menu>li>button {
    width: 100%;
    height: 48px;
    font-size: 17px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  body.menu-open .mega {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 4px 0 12px;
  }

  body.menu-open .menu>li.open .mega {
    display: grid;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px);
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero .h-hero {
  max-width: 15ch;
}

.hero .lede {
  margin-top: 24px;
}

.hero .actions {
  margin-top: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(26, 86, 219, .10), transparent 70%),
    linear-gradient(to bottom, transparent 60%, #fff),
    repeating-linear-gradient(90deg, rgba(11, 13, 18, .035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(11, 13, 18, .035) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(80% 90% at 70% 10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 90% at 70% 10%, #000 30%, transparent 75%);
}

.crumbs {
  flex-wrap: wrap;
  gap: 6px;
  font: 400 13px/1 var(--f-mono);
  color: var(--ink-3);
  margin-bottom: 22px;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs span[aria-hidden] {
  color: var(--line-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-2);
}

.pill b {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .04em;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 5px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ---------- Logo wall ---------- */
.logos {
  border-top: 1px solid var(--line);
}

.logos-label {
  text-align: center;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 28px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding-block: 22px 30px;
}

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 56s linear infinite;
  align-items: center;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee img {
  height: 34px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15);
  opacity: .72;
  transition: filter .25s, opacity .25s;
  mix-blend-mode: multiply;
}

.marquee img:hover {
  filter: none;
  opacity: 1;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.logo-grid>* {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: 18px;
}

.logo-grid img {
  max-height: 44px;
  width: auto;
  filter: grayscale(1);
  opacity: .7;
  mix-blend-mode: multiply;
}

@media (max-width: 800px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: var(--g, 20px);
}

.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {

  .g3,
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr;
  }
}

.cells {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cells>* {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 2.6vw, 32px);
  background: #fff;
}

.cells.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cells.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cells.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {

  .cells.g3,
  .cells.g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .cells.g2,
  .cells.g3,
  .cells.g4 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}

a.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card .ico,
.cells .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--blue);
  margin-bottom: 18px;
  background: #fff;
}

.ico svg {
  width: 20px;
  height: 20px;
}

.card h3,
.cells h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card p,
.cells p {
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink-2);
  font: 500 12px/1 var(--f-mono);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tag.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.split.even {
  grid-template-columns: 1fr 1fr;
}

.split.rev {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

@media (max-width: 900px) {

  .split,
  .split.even,
  .split.rev {
    grid-template-columns: 1fr;
  }
}

.sticky {
  position: sticky;
  top: 96px;
}

.head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 52px);
  flex-wrap: wrap;
}

.head .lede {
  margin-top: 14px;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.list-check li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .32em;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-5' fill='none' stroke='%231a56db' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stats>div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px clamp(18px, 2.4vw, 28px);
}

.stats .num {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1;
}

.stats .num sup {
  font-size: .5em;
  top: -.75em;
  color: var(--blue);
  margin-left: 2px;
}

.stats p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.45;
}

@media (max-width: 800px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Interactive funnel ---------- */
.funnel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .funnel {
    grid-template-columns: 1fr;
  }
}

.funnel-viz {
  --step: 12%;
  padding: 26px 22px 24px;
  border-right: 1px solid var(--line);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 900px) {
  .funnel-viz {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.funnel-cap {
  margin: 0 0 14px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
}

.funnel-cap span {
  color: var(--blue);
}

.funnel-stages {
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: 5px;
}

/* Each stage is a trapezoid slice; the bottom edge of one layer matches the top edge of the next */
.stage {
  --t: calc(100% - var(--i) * var(--step));
  --b: calc(100% - (var(--i) + 1) * var(--step));
  position: relative;
  isolation: isolate;
  height: 86px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.stage .layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #ecebff;
  clip-path: polygon(calc(50% - var(--t) / 2) 0, calc(50% + var(--t) / 2) 0, calc(50% + var(--b) / 2) 100%, calc(50% - var(--b) / 2) 100%);
  transition: background .25s, filter .2s;
}

.stage:nth-child(2) .layer {
  background: #e1dfff;
}

.stage:nth-child(3) .layer {
  background: #d5d2ff;
}

.stage:nth-child(4) .layer {
  background: #c9c5ff;
}

.stage:hover .layer {
  filter: brightness(.96);
}

.stage:focus-visible {
  outline: none;
}

.stage:focus-visible .layer {
  filter: brightness(.9);
}

.stage[aria-selected="true"] {
  color: #fff;
}

.stage[aria-selected="true"] .layer {
  background: var(--blue);
}

.stage .k {
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: .08em;
  color: var(--blue);
}

.stage b {
  font: 600 15.5px/1.15 var(--f-display);
  letter-spacing: -0.015em;
  max-width: calc(var(--b) - 8%);
}

.stage .s {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink-3);
  max-width: calc(var(--b) - 8%);
}

.stage[aria-selected="true"] .k {
  color: rgba(255, 255, 255, .72);
}

.stage[aria-selected="true"] .s {
  color: rgba(255, 255, 255, .85);
}

.funnel-spout {
  position: relative;
  margin-top: 5px;
  width: 30%;
  min-width: 128px;
  max-width: 150px;
  padding: 11px 8px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 12px 12px;
  text-align: center;
  font: 500 10.5px/1.25 var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.funnel-spout::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 22px;
  transform: translateX(-50%);
  background: linear-gradient(var(--ink), transparent);
}

.funnel-out {
  margin: 28px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 15px/1.2 var(--f-display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.funnel-out::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12a150;
  box-shadow: 0 0 0 4px rgba(18, 161, 80, .16);
}

.funnel-cmo {
  margin-top: 18px;
  padding-top: 14px;
  width: 100%;
  max-width: 460px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue);
  text-align: center;
}

.funnel-cmo:hover {
  color: var(--blue-deep);
}

@media (max-width: 640px) {
  .funnel-viz {
    --step: 8.5%;
    padding: 20px 14px;
  }

  .stage {
    height: 76px;
  }

  .stage b {
    font-size: 14.5px;
    max-width: calc(var(--b) - 6%);
  }

  .stage .s {
    font-size: 11.5px;
    max-width: calc(var(--b) - 6%);
  }
}

.funnel-panel {
  padding: clamp(22px, 3vw, 36px);
  position: relative;
  min-height: 440px;
}

.funnel-panel [data-panel] {
  display: none;
  animation: fadeUp .45s var(--ease) both;
}

.funnel-panel [data-panel].on {
  display: block;
}

.funnel-panel h3 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.skill-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 560px) {
  .skill-list {
    grid-template-columns: 1fr;
  }
}

.skill {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: flex-start;
}

.skill .ico {
  width: 32px;
  height: 32px;
  margin: 0;
  flex: none;
}

.skill .ico svg {
  width: 17px;
  height: 17px;
}

.skill b {
  font-weight: 500;
  font-size: 14.5px;
  display: block;
  letter-spacing: -0.01em;
}

.skill small {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.4;
  display: block;
  margin-top: 2px;
}

.kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.panel-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- Pipeline calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

@media (max-width: 900px) {
  .calc {
    grid-template-columns: 1fr;
  }
}

.calc-in {
  padding: clamp(22px, 3vw, 32px);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 20px;
  align-content: start;
}

.calc-in label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

.calc-in label output {
  font: 600 15px/1 var(--f-mono);
  color: var(--ink);
}

.calc-in .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue) var(--p, 50%), var(--paper-3) var(--p, 50%));
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  cursor: grab;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-2);
  cursor: grab;
}

.calc-out {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper-2);
}

.calc-steps {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.calc-step {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.calc-step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  background: var(--blue-wash);
  transition: width .5s var(--ease);
}

.calc-step>* {
  position: relative;
}

.calc-step span {
  font-size: 14px;
  color: var(--ink-2);
}

.calc-step b {
  font: 600 18px/1 var(--f-mono);
  letter-spacing: -0.02em;
}

.calc-note {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 14px;
}

/* ---------- Fragments (abstract, product-like storytelling panels) ---------- */
.frag {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.frag-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  font: 500 12px/1 var(--f-mono);
  color: var(--ink-3);
}

.frag-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.frag-bar .sp {
  margin-left: auto;
}

.frag-body {
  padding: 16px;
}

.frag-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.frag-row:last-child {
  border-bottom: 0;
}

.frag-row .dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--paper-3);
  display: grid;
  place-items: center;
  font: 600 10px/1 var(--f-mono);
  color: var(--ink-3);
}

.frag-row .blur {
  color: transparent;
  text-shadow: 0 0 7px rgba(11, 13, 18, .55);
  user-select: none;
}

.frag .chip {
  font: 500 11px/1 var(--f-mono);
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--paper-3);
  color: var(--ink-2);
}

.frag .chip.hot {
  background: #fdecec;
  color: #b42318;
}

.frag .chip.warm {
  background: #fff4e5;
  color: var(--amber);
}

.frag .chip.ok {
  background: #e7f6ee;
  color: var(--green);
}

.frag .chip.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.answer {
  padding: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.answer mark {
  background: var(--blue-soft);
  color: var(--blue-deep);
  padding: 1px 4px;
  border-radius: 4px;
}

.answer .cite {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font: 600 10px/1 var(--f-mono);
  vertical-align: 2px;
  margin-left: 2px;
}

.float {
  position: absolute;
}

.stagebox {
  position: relative;
  min-height: 360px;
}

.stagebox .frag {
  position: absolute;
}

/* ---------- Case study cards (Mintlify customers) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.filter {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}

.filter:hover {
  border-color: var(--line-2);
  color: var(--ink);
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cs-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

@media (max-width: 860px) {
  .cs-feature {
    grid-template-columns: 1fr;
  }
}

.cs-feature .art {
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.cs-feature .body {
  padding: clamp(24px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
}

.cs-feature .metric {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.cs-feature .metric .num {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.cs-feature .metric small {
  display: block;
  color: var(--ink-3);
  font-size: 13.5px;
  margin-top: 8px;
}

.cs-logo {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left;
  mix-blend-mode: multiply;
}

.cs-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.cs-card .cs-logo {
  height: 30px;
  margin-bottom: auto;
}

.cs-card .num {
  font-size: 32px;
  font-weight: 600;
  margin-top: 36px;
  line-height: 1;
}

.cs-card p {
  margin-top: 8px;
}

.cs-card .more {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--ink-2);
}

.cs-card:hover .more .arr {
  transform: translateX(3px);
}

.cs-card .more .arr {
  transition: transform .2s var(--ease);
  color: var(--blue);
}

/* ---------- Case study detail ---------- */
.cs-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 40px;
}

.cs-hero-metrics>div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cs-hero-metrics .num {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1;
}

.cs-hero-metrics p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 700px) {
  .cs-hero-metrics {
    grid-template-columns: 1fr;
  }
}

.cs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

@media (max-width: 900px) {
  .cs-layout {
    grid-template-columns: 1fr;
  }
}

.facts {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  align-self: start;
}

.facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.facts dd {
  margin: 7px 0 0;
  font-size: 14.5px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .facts {
    position: static;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
}

/* ---------- Prose (blogs, case study body) ---------- */
.prose {
  max-width: var(--w-prose);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
}

.prose>*+* {
  margin-top: 1.1em;
}

.prose h2 {
  font-size: clamp(26px, 2.8vw, 32px);
  color: var(--ink);
  margin-top: 2.1em;
  scroll-margin-top: 90px;
}

.prose h3 {
  font-size: 21px;
  color: var(--ink);
  margin-top: 1.8em;
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 90px;
}

.prose h4 {
  font-size: 17px;
  color: var(--ink);
  margin-top: 1.5em;
}

.prose p {
  margin-block: 0;
}

.prose p+p {
  margin-top: 1.05em;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(26, 86, 219, .3);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--blue);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li+li {
  margin-top: .45em;
}

.prose li::marker {
  color: var(--quiet);
}

.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--blue);
  font: 500 clamp(19px, 2vw, 23px)/1.45 var(--f-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
}

.prose th {
  font: 500 12px/1.3 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-3);
}

.prose code {
  font: 500 .88em var(--f-mono);
  background: var(--paper-3);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--ink);
}

.prose pre {
  background: var(--ink);
  color: #e6e8ee;
  padding: 18px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose img {
  border-radius: 12px;
  border: 1px solid var(--line);
}

.prose .answer-box,
.tldr {
  border: 1px solid var(--line);
  background: var(--blue-wash);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--ink);
  font-size: 16px;
}

.tldr b {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(28px, 5vw, 64px);
}

@media (max-width: 1000px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 13.5px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.toc b {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink-3);
  line-height: 1.35;
}

.toc a:hover,
.toc a.on {
  color: var(--ink);
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-3);
}

.byline img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.byline b {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Blog cards (Mintlify blog) ---------- */
.post-feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

@media (max-width: 860px) {
  .post-feature {
    grid-template-columns: 1fr;
  }
}

.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.cover svg {
  width: 100%;
  height: 100%;
  display: block;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-card .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 400 13px/1 var(--f-mono);
  color: var(--ink-3);
}

.post-card h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color .2s;
}

.post-card:hover h3 {
  color: var(--blue);
}

.post-card:hover .cover {
  box-shadow: var(--shadow);
}

.post-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.5;
}

.search {
  position: relative;
  max-width: 360px;
  width: 100%;
}

.search input {
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 16px 0 38px;
  background: #fff;
  font-size: 14.5px;
}

.search svg {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}

/* ---------- Testimonial ---------- */
.quote {
  position: relative;
}

.quote blockquote {
  margin: 0;
  font: 500 clamp(21px, 2.6vw, 30px)/1.35 var(--f-display);
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: pretty;
}

.quote blockquote .q {
  color: var(--quiet);
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.quote figcaption img,
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.avatar {
  display: grid;
  place-items: center;
  font: 600 16px/1 var(--f-display);
  color: var(--blue);
  background: var(--blue-soft);
  border: 0;
}

.quote figcaption b {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

.quote figcaption span {
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font: 500 17px/1.4 var(--f-display);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: linear-gradient(var(--ink-3), var(--ink-3)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) center / 1.5px 12px no-repeat;
  transition: transform .25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .a {
  padding: 0 40px 22px 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}

.faq .a p {
  margin: 0;
}

.faq .a p+p {
  margin-top: .8em;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  font-size: 22px;
}

.form-card>p {
  margin: 6px 0 20px;
  color: var(--ink-3);
  font-size: 15px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fields .full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .fields {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field>span,
.field legend {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.field>span i,
.field legend i {
  color: var(--blue);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}

.field textarea {
  height: auto;
  min-height: 96px;
  padding: 11px 13px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.field input[type="file"] {
  height: auto;
  padding: 10px;
  font-size: 14px;
  border-style: dashed;
  background: var(--paper-2);
}

.field small {
  font-size: 12.5px;
  color: var(--ink-3);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choice span {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  font-size: 14.5px;
  color: var(--ink-2);
  background: #fff;
  transition: border-color .15s, background .15s;
  line-height: 1.3;
}

.choice span::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 5px;
  background: #fff;
}

.choice input[type="radio"]+span::before {
  border-radius: 50%;
}

.choice input:checked+span {
  border-color: var(--blue);
  background: var(--blue-wash);
  color: var(--ink);
}

.choice input:checked+span::before {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.choice input[type="radio"]:checked+span::before {
  background: radial-gradient(circle, var(--blue) 40%, #fff 45%);
}

.choice input:focus-visible+span {
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.choice.big span {
  font-weight: 500;
  color: var(--ink);
}

.consent {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 12px;
}

.form-slot:empty {
  display: none;
}

/* Growth audit wizard */
.wizard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .wizard {
    grid-template-columns: 1fr;
  }
}

.wizard-side {
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  padding: 26px 22px;
}

@media (max-width: 900px) {
  .wizard-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .wizard-steps {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }

  .wizard-steps li span {
    display: none;
  }
}

.wizard-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.wizard-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 12px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink-3);
  font-size: 14.5px;
}

.wizard-steps li i {
  font: 600 11px/1 var(--f-mono);
  font-style: normal;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: #fff;
}

.wizard-steps li.on {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.wizard-steps li.on i {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.wizard-steps li.done i {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.wizard-main {
  padding: clamp(22px, 3.4vw, 40px);
}

.wizard-step {
  display: none;
  animation: fadeUp .4s var(--ease) both;
}

.wizard-step.on {
  display: block;
}

.wizard-step h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}

.wizard-step>p {
  color: var(--ink-3);
  margin: 8px 0 24px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.progress {
  height: 4px;
  background: var(--paper-3);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 18px;
}

.progress i {
  display: block;
  height: 100%;
  width: var(--p, 12%);
  background: var(--blue);
  transition: width .4s var(--ease);
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}

.fieldset legend {
  margin-bottom: 10px;
  padding: 0;
}

.field-error {
  color: #b42318;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.invalid .field-error {
  display: block;
}

.invalid input,
.invalid select {
  border-color: #f1a7a0;
}

/* Scheduler */
.scheduler {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.scheduler-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 14px;
  color: var(--ink-2);
}

.scheduler-head .live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 157, 88, .15);
}

.scheduler iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: 22px;
  padding: clamp(32px, 5vw, 64px);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 100% 0%, rgba(26, 86, 219, .55), transparent 60%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 56px);
  pointer-events: none;
}

.cta>* {
  position: relative;
}

.cta .q {
  color: #7f8696;
}

.cta .lede {
  color: #c4c8d2;
}

.cta .btn.ghost {
  --bg: transparent;
  --fg: #fff;
  --bd: rgba(255, 255, 255, .28);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 64px 32px;
  background: #fff;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid> :first-child {
    grid-column: 1 / -1;
  }
}

.footer h4 {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer a {
  color: var(--ink-2);
}

.footer a:hover {
  color: var(--ink);
}

.footer .addr {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
}

.footer-geo {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}

.footer-geo a {
  color: var(--ink-3);
  white-space: nowrap;
}

.footer-geo a:hover {
  color: var(--ink);
}

html,
body {
  overflow-x: clip;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

.social {
  display: flex;
  gap: 8px;
}

.social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.social svg {
  width: 16px;
  height: 16px;
}

/* ---------- Gate (gated PDF) ---------- */
.gate {
  position: relative;
}

.gate-fade {
  position: relative;
  max-height: 420px;
  overflow: hidden;
}

.gate-fade::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(transparent, #fff);
}

.book {
  aspect-ratio: 3 / 4;
  border-radius: 6px 14px 14px 6px;
  background: var(--ink);
  color: #fff;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 18px 24px 60px -24px rgba(11, 13, 18, .5), inset 6px 0 0 rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
}

.book svg.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .9;
}

.book>* {
  position: relative;
}

.book h3 {
  font-size: clamp(24px, 3vw, 34px);
  margin-top: auto;
}

/* ---------- Misc ---------- */
.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  font-size: 14.5px;
}

.kv dt {
  color: var(--ink-3);
}

.kv dd {
  margin: 0;
  text-align: right;
  color: var(--ink);
  font-weight: 500;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 32px 0;
}

.note {
  font-size: 13px;
  color: var(--ink-3);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 640px;
}

.table th,
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  font: 500 11.5px/1.2 var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-2);
}

.table tr:last-child td {
  border-bottom: 0;
}

.chips-link {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips-link a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  background: #fff;
}

.chips-link a:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.chips-link a.vendor-chip {
  gap: 8px;
  padding-left: 10px;
}

.vendor-chip img {
  height: 16px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cs-person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.cs-person img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.cs-person b {
  display: block;
  font: 500 14px/1.2 var(--f-body, inherit);
  color: var(--ink);
}

.cs-person>span {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink-3);
}

.steps {
  counter-reset: s;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.steps>div {
  counter-increment: s;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.steps>div::before {
  content: counter(s, decimal-leading-zero);
  font: 500 13px/1.8 var(--f-mono);
  color: var(--blue);
}

.steps h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 6px 0 0;
  color: var(--ink-3);
}

/* ---------- Motion ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.load>* {
  animation: fadeUp .8s var(--ease) both;
}

.load>*:nth-child(2) {
  animation-delay: .06s;
}

.load>*:nth-child(3) {
  animation-delay: .12s;
}

.load>*:nth-child(4) {
  animation-delay: .18s;
}

.load>*:nth-child(5) {
  animation-delay: .24s;
}

.load>*:nth-child(6) {
  animation-delay: .3s;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -40;
  }
}

.flow-line {
  stroke-dasharray: 4 6;
  animation: flow 1.6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }
}

@media print {

  .nav,
  .footer,
  .cta,
  .form-card,
  .scheduler {
    display: none !important;
  }
}

/* ---------- Mobile hardening: grid children must never force a column wider than the viewport ---------- */
.split>*,
.hero-grid>*,
.article-layout>*,
.cs-layout>*,
.funnel>*,
.calc>*,
.wizard>*,
.cs-feature>*,
.post-feature>* {
  min-width: 0;
}

@media (max-width: 1000px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {

  .g3,
  .g4,
  .cells.g3,
  .cells.g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {

  .hero-grid,
  .split,
  .split.even,
  .split.rev,
  .funnel,
  .calc,
  .wizard,
  .cs-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {

  .cs-feature,
  .post-feature,
  .cta-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {

  .g2,
  .g3,
  .g4,
  .cells.g2,
  .cells.g3,
  .cells.g4,
  .skill-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .stats .num {
    font-size: 30px;
  }

  .cs-hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .stagebox {
    min-height: 520px !important;
  }
}

.prose p,
.prose li,
.prose td,
.tldr,
.card p,
.cells p {
  overflow-wrap: anywhere;
}

.tags .tag {
  white-space: normal;
  height: auto;
  min-height: 24px;
  padding: 5px 9px;
  line-height: 1.35;
  text-align: left;
}

/* Case study sidebar: one sticky column so facts and the page index never stack on top of each other */
.cs-layout>aside {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 22px;
}

.cs-layout>aside .facts,
.cs-layout>aside .toc {
  position: static;
  top: auto;
}

@media (max-width: 900px) {
  .cs-layout>aside {
    position: static;
  }
}

/* Services mega menu: four stage columns across the nav, capped to the viewport height */
.nav .wrap {
  position: relative;
}

.menu>li.has-wide {
  position: static;
}

.mega {
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mega.wide {
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 8px;
  padding: 12px;
}

.mega-col {
  display: grid;
  align-content: start;
  gap: 2px;
}

.mega-col .mega-head {
  padding: 8px 12px 6px;
}

.mega.wide a span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mega.wide .foot {
  grid-column: 1 / -1;
}

@media (max-width: 1080px) {
  body.menu-open .mega.wide {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 0 12px;
    max-height: none;
  }

  body.menu-open .mega {
    max-height: none;
  }
}

/* Hero fragments: layered on desktop, stacked on small screens so panels never cover each other */
@media (max-width: 900px) {
  .stagebox {
    min-height: 0 !important;
    display: grid;
    gap: 14px;
  }

  .stagebox>* {
    position: static !important;
    width: auto !important;
  }
}

/* The ∞ Pipeline Method diagram */
.method {
  margin: 0;
}

.method-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.method-svg .m-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: mPulse 2.4s ease-in-out infinite;
}

@keyframes mPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .45;
    transform: scale(1.25);
  }
}

.method-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 20px;
  background: #0b0d12;
  border-radius: 18px;
  color: #eceef5;
  gap: 0;
}

.method-list li {
  padding: 18px 4px;
  border-bottom: 1px dashed rgba(136, 134, 255, .3);
  display: grid;
  gap: 4px;
}

.method-list li:last-child {
  border-bottom: 0;
}

.method-list .m-code {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8886ff;
}

.method-list .m-name {
  font: italic 400 30px/1.1 var(--f-serif);
  color: #fff;
}

.method-list .m-sub {
  font: 400 13px/1.4 var(--f-mono);
  color: #8f95a6;
}

.method-list .m-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.method-list .m-items i {
  font-style: normal;
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(136, 134, 255, .35);
  color: #eceef5;
}

@media (max-width: 720px) {
  .method-svg {
    display: none;
  }

  .method-list {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .method-svg .m-dot {
    display: none;
  }

  .method-svg .m-pulse {
    animation: none;
  }
}

/* Explainer flows inside articles: <ol class="flow"> renders as a connected step sequence */
.prose ol.flow {
  list-style: none;
  padding: 0;
  margin: 1.8em 0;
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.prose ol.flow li {
  counter-increment: flow;
  position: relative;
  margin: 0;
  padding: 14px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.prose ol.flow li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  font: 500 11px/1 var(--f-mono);
  color: var(--blue);
  margin-bottom: 8px;
}

.series-box {
  margin: 48px 0 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}

.series-box .eyebrow a {
  color: inherit;
  text-decoration: none;
}

.prose .series-box ol {
  margin: 14px 0 18px;
  padding-left: 1.4em;
}

.prose .series-box li {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.45;
}

.series-box li[aria-current] b {
  color: var(--ink);
  font-weight: 600;
}

.series-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.prose ol.flow li b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

@media (min-width: 900px) {
  .prose ol.flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -9px;
    width: 8px;
    height: 1px;
    background: var(--blue);
  }
}

/* About: team portraits in black and white */
.team-photo {
  filter: grayscale(1) contrast(1.06);
}

/* ---------- Nav: top-level labels link to their landing pages; the chevron opens the menu ---------- */
.menu>li.has-mega {
  display: flex;
  align-items: center;
}

.menu>li>a.menu-top {
  padding-right: 3px;
}

.menu>li>button.menu-caret {
  padding: 0 9px 0 5px;
}

.menu>li.open>a.menu-top {
  color: var(--ink);
}

@media (max-width: 1080px) {
  body.menu-open .menu>li.has-mega {
    flex-wrap: wrap;
  }

  body.menu-open .menu>li>a.menu-top {
    flex: 1;
    width: auto;
    padding-right: 0;
  }

  body.menu-open .menu>li>button.menu-caret {
    width: 56px;
    justify-content: center;
    padding: 0;
  }

  body.menu-open .menu>li.has-mega .mega {
    flex-basis: 100%;
  }

  body.menu-open .menu .chev {
    width: 14px;
    height: 14px;
  }
}

/* ---------- Responsive pass: tags, labels, tap targets, hero fragments, tables ---------- */
.tag {
  white-space: normal;
  height: auto;
  min-height: 24px;
  padding-block: 4px;
  line-height: 1.3;
  max-width: 100%;
}

@media (max-width: 640px) {
  .logos-label {
    font-size: 10.5px;
    letter-spacing: .05em;
    line-height: 1.6;
    padding-inline: var(--gut);
  }

  .hero .actions .btn {
    font-size: 14px;
    justify-content: center;
  }

  .crumbs {
    line-height: 1.5;
    row-gap: 0;
  }

  .crumbs a {
    display: inline-block;
    padding-block: 5px;
  }

  .footer li a {
    display: inline-block;
    padding-block: 5px;
  }

  .stagebox .frag-body>div>div:not(.mono)>div:last-child {
    flex-wrap: wrap;
    gap: 4px;
  }

  table.stackable,
  table.stackable tbody,
  table.stackable tr,
  table.stackable td,
  table.stackable tbody th {
    display: block;
    width: 100%;
  }

  table.stackable {
    min-width: 0 !important;
  }

  table.stackable thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  table.stackable tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }

  table.stackable tr:last-child {
    border-bottom: 0;
  }

  table.stackable td,
  table.stackable tbody th {
    padding: 3px 0 !important;
    border: 0 !important;
    text-align: left !important;
  }

  table.stackable td:first-child,
  table.stackable tbody th:first-child {
    font-weight: 600;
    color: var(--ink);
  }

  table.stackable td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-top: 8px;
    font: 500 10.5px/1.4 var(--f-mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .prose table.stackable {
    overflow: visible;
  }
}

/* Open mobile menu: the nav's backdrop-filter would make it the containing block for the fixed menu panel */
@media (max-width: 1080px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
}

/* Hero fragments on small screens: the nested panels must flow too, or their wrappers collapse to zero height */
@media (max-width: 900px) {
  .stagebox>* .frag {
    position: relative !important;
    inset: auto !important;
  }

  .stagebox .frag-body .mono {
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .stagebox> :nth-child(3) {
    display: none;
  }

  .stagebox .frag-body .mono {
    flex-direction: column;
    gap: 2px;
  }
}

/* Mega menu fixes: footer links are inline links (not icon grid rows); line clamping must not hit the icon box */
.mega .foot a {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-radius: 0;
  background: none;
}

.mega .foot a:hover {
  background: none;
}

.mega .foot a span,
.mega .foot a svg {
  display: inline-block;
}

.mega.wide a span.ico {
  display: grid;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.mega a .ico {
  align-self: start;
}

/* Funnel panel skill icons get the same outlined box as every other icon */
.skill .ico {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #fff;
}

/* Menu items in a row stretch to the tallest one; keep title and description packed at the top */
.mega a {
  align-content: start;
}

/* ---------- Single-column layouts: nothing stays pinned. A sticky heading in a stacked column
   would sit on top of the content scrolling beneath it (FAQs, booking panel, gated previews). ---------- */
@media (max-width: 900px) {

  .sticky,
  .split>.sticky,
  .facts,
  .toc,
  .cs-layout>aside {
    position: static !important;
    top: auto !important;
  }
}

/* Featured case study art: layered panels become one readable panel on phones */
@media (max-width: 640px) {
  .cs-feature .art {
    min-height: 0;
    padding: 20px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cs-feature .art>div:not(:first-child) {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
  }

  .cs-feature .art>div:nth-child(3) {
    display: none;
  }
}

/* ---------- Nav below 1080px ---------- */
@media (max-width: 1080px) {
  .nav .wrap {
    gap: 10px;
  }

  .nav-cta {
    margin-left: auto;
  }

  .burger {
    margin-left: 0;
  }

  /* the menu list is a <ul>: its default margins pushed the full-screen panel 16px off both edges */
  body.menu-open .menu {
    margin: 0;
  }

  body.menu-open .menu>li.open>button.menu-caret,
  body.menu-open .menu>li>button.menu-caret:hover {
    background: none;
  }

  body.menu-open .menu>li.open>a.menu-top {
    color: var(--blue);
  }
}


/*  */


@media (max-width: 1080px) {
  html:has(body.menu-open) {
    overflow: hidden;
  }
 
  html.menu-open {
    overflow: hidden;
  }
 
  body.menu-open {
    overflow: visible;
  }
 
  body.menu-open .menu {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  }
 
  body.menu-open .mega,
  body.menu-open .mega.wide {
    overflow: visible;
    overscroll-behavior: auto;
    max-height: none;
  }
}