/* ===========================================================
   IV Consulting · stage landing pages (shared styles)
   Brand kit: Bricolage Grotesque display, DM Sans body, lime accent.
   Bricolage Grotesque display, DM Sans body, lime accent.
   =========================================================== */

:root,
:root[data-theme="dark"] {
  --ink: #080808;
  --surface: #141414;
  --surface-2: #1f1f1f;
  --line: #242424;
  --fg: #f2f1ed;
  --muted: #7a7a7a;
  --accent: #c8f04e;
  --accent-2: #c8f04e;
  --on-accent: #0f0f0f;
  --grid-line: rgba(242, 241, 237, 0.045);
  --glow: rgba(200, 240, 78, 0.14);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #f2f1ed;
  --surface: #ffffff;
  --surface-2: #ecebe5;
  --line: rgba(15, 15, 15, 0.12);
  --fg: #0f0f0f;
  --muted: #5f5f5f;
  --accent: #c8f04e;
  --accent-2: #5e7d10;
  --on-accent: #0f0f0f;
  --grid-line: rgba(15, 15, 15, 0.05);
  --glow: rgba(168, 204, 58, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--line);
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ink);
  color: var(--fg);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.06;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
a { color: inherit; }

/* ---------- decorative ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 45% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 45% at 50% 0%, #000 40%, transparent 100%);
  z-index: 0;
}
.glow {
  position: fixed;
  left: 50%;
  top: -160px;
  width: 820px;
  height: 480px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: var(--glow);
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- header ---------- */
header.bar {
  position: relative;
  z-index: 3;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
}
.logo .mark {
  display: grid;
  place-items: center;
  height: 30px;
  width: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8rem;
  font-weight: 700;
}
.logo-mark {
  display: block;
  flex: none;
  color: var(--fg);
}
.toggle {
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}
.toggle:hover { background: var(--surface); }

/* ---------- layout ---------- */
main { position: relative; z-index: 1; }
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section.block { padding: 4.5rem 0; }
section.block.tight { padding: 3rem 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  text-align: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.eyebrow .dot {
  height: 6px; width: 6px;
  border-radius: 9999px;
  background: var(--accent);
}
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  max-width: 30ch;
  text-wrap: balance;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #0f0f0f;
  text-decoration: none;
  box-shadow: 0 4px 0 0 #8aaa1e, 0 6px 12px rgba(200,240,78,0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s;
}
.btn:hover { background: #a8cc3a; transform: translateY(-3px); box-shadow: 0 8px 0 0 #8aaa1e, 0 12px 24px rgba(200,240,78,0.3); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 0 #8aaa1e, 0 2px 6px rgba(200,240,78,0.2); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--surface); transform: none; }
.cta-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- hero ---------- */
.hero { padding: 2.5rem 0 4rem; text-align: center; }
.hero .eyebrow { margin-bottom: 1.4rem; }
.hero .wrap { max-width: 1280px; }
.hero h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  max-width: 42ch;
  margin: 0 auto;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hero h1 .hl {
  font-style: italic;
  color: var(--accent-2);
}
.hero .sub {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  max-width: 56ch;
  margin: 1.5rem auto 0;
  text-wrap: pretty;
}
.hero .sub b { color: var(--fg); font-weight: 600; }
.hero .cta-wrap {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* ---------- prose (problem) ---------- */
.prose {
  max-width: 60ch;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}
.prose p + p { margin-top: 1.1rem; }
.prose b, .prose strong { color: var(--fg); font-weight: 600; }

/* ---------- feature cards ---------- */
.cards {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.fcard {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.fcard:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}
.fcard .ic {
  height: 38px; width: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-2);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.fcard h3 { font-size: 1.05rem; }
.fcard p { font-size: 0.92rem; line-height: 1.55; color: var(--muted); }
.fcard .more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
}

/* ---------- steps ---------- */
.steps-list {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step {
  display: flex;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.7rem;
}
.step .n {
  flex: none;
  height: 40px; width: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.step .body h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.step .body p { color: var(--muted); line-height: 1.6; font-size: 0.98rem; }

/* ---------- deliverables ---------- */
.deliver {
  margin-top: 2.2rem;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 22px;
  padding: 2rem 2.1rem;
}
.deliver h3 { font-size: 1.25rem; margin-bottom: 1.2rem; }
.deliver ul { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.deliver li {
  display: flex;
  gap: 0.75rem;
  font-size: 1.02rem;
  line-height: 1.5;
}
.deliver li .tick {
  flex: none;
  height: 22px; width: 22px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- proof / testimonials ---------- */
.proof-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote .stat {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--accent-2);
  letter-spacing: -0.02em;
}
.quote p { font-size: 0.98rem; line-height: 1.6; }
.quote .who {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: auto;
}
.proof-note {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- faq ---------- */
.faq-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm {
  flex: none;
  color: var(--accent-2);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.faq[open] summary .pm { transform: rotate(45deg); }
.faq .ans {
  padding: 0 0.25rem 1.4rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
  max-width: 70ch;
}

/* ---------- final cta ---------- */
.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 5rem 0 5.5rem;
}
.final h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: 22ch;
  margin: 0 auto;
  text-wrap: balance;
}
.final p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 48ch;
  margin: 1.2rem auto 0;
}
.final .cta-wrap { margin-top: 2rem; display: flex; justify-content: center; }

/* ---------- footer ---------- */
footer.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}
footer.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}
footer.foot a { text-decoration: none; transition: color 0.2s ease; }
footer.foot a:hover { color: var(--fg); }

/* ---------- alternating section background ---------- */
section.alt {
  background: color-mix(in srgb, var(--surface) 55%, var(--ink));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- logo / trust strip ---------- */
.trust {
  padding: 1.8rem 0 0.5rem;
  text-align: center;
}
.trust .cap {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.2rem;
}
.logos .logo-slot {
  height: 30px;
  min-width: 96px;
  display: grid;
  place-items: center;
  padding: 0 0.4rem;
  border-radius: 8px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  opacity: 0.8;
}
.logos img.logo-slot {
  border: none;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.logos img.logo-slot:hover { opacity: 1; filter: grayscale(0); }
.logos img.logo-slot.tile { height: 34px; min-width: 0; border-radius: 7px; filter: none; opacity: 1; }

/* ---------- client logo marquee (single bare row) ---------- */
.cw-row { overflow: hidden; margin-top: 1.4rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cw-track { display: flex; align-items: center; width: max-content; animation: cw-scroll 60s linear infinite; }
.cw-row:hover .cw-track { animation-play-state: paused; }
@keyframes cw-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cw-track { animation: none; } }
.cw-logo { flex: none; height: 30px; width: auto; margin-right: 2.8rem; display: block; }
.cw-logo.tile { height: 26px; border-radius: 5px; }

/* ---------- stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.stat-band .cell {
  background: var(--surface);
  padding: 1.7rem 1.2rem;
  text-align: center;
}
.stat-band .big {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  color: var(--accent-2);
  letter-spacing: -0.02em;
}
.stat-band .cap {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- two-column feature row (problem + meme) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 1.6rem; }
}
.split.split-center { align-items: center; }
.split-left .pain { margin-top: 1.4rem; }

/* pain checklist */
.pain {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.pain li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1.02rem;
  line-height: 1.45;
}
.pain li .x {
  flex: none;
  height: 22px; width: 22px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: color-mix(in srgb, #e0564a 18%, transparent);
  color: #e0564a;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

/* meme card */
.meme {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}
.meme .frame {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface-2) 70%, var(--ink));
}
.meme .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.meme .fallback {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
}
.meme .fallback .face { font-size: 3rem; line-height: 1; }
.meme .fallback .t { margin-top: 0.6rem; font-size: 0.85rem; }
.meme .cap {
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.meme .cap b { color: var(--fg); }

/* ---------- before / after ---------- */
.ba {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) { .ba { grid-template-columns: 1fr; } }
.ba-col {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.7rem;
  background: var(--surface);
}
.ba-col .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  margin-bottom: 1.1rem;
}
.ba-col.before .tag { background: color-mix(in srgb, #e0564a 16%, transparent); color: #e0564a; }
.ba-col.after .tag { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-2); }
.ba-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.ba-col li { display: flex; gap: 0.6rem; font-size: 0.98rem; line-height: 1.45; color: var(--muted); }
.ba-col li .mk { flex: none; font-weight: 700; }
.ba-col.before li .mk { color: #e0564a; }
.ba-col.after li .mk { color: var(--accent-2); }
.ba-col.after li { color: var(--fg); }

/* ---------- screenshot showcase ---------- */
.shots {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.shot {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.shot .pic {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface-2)), var(--surface-2));
  display: grid;
  place-items: center;
  color: var(--muted);
  position: relative;
}
.shot .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .pic .ph { text-align: center; font-size: 0.82rem; padding: 1rem; }
.shot .pic .ph .ic { font-size: 1.6rem; display: block; margin-bottom: 0.4rem; }
.shot .label { padding: 0.85rem 1.1rem; font-size: 0.9rem; font-weight: 600; }

/* ---------- case studies ---------- */
.cases {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.case {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.case .pic {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface-2)), var(--surface-2));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.case .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case .body { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.case .who-row { display: flex; align-items: center; gap: 0.7rem; }
.case .who-row .lg {
  height: 28px; min-width: 72px;
  display: grid; place-items: center;
  border: 1px dashed var(--line);
  border-radius: 7px;
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
}
.case .stat {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--accent-2);
  letter-spacing: -0.02em;
}
.case .q { font-size: 0.98rem; line-height: 1.6; }
.case .who { font-size: 0.84rem; color: var(--muted); margin-top: auto; }

/* ---------- what happens on the call ---------- */
.oncall {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  counter-reset: oc;
}
.oncall .oc {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  background: var(--surface);
}
.oncall .oc .n {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.oncall .oc h3 { font-size: 1.08rem; margin: 0.5rem 0 0.4rem; }
.oncall .oc p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

/* ---------- reassurance / risk reversal ---------- */
.reassure {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  font-size: 0.98rem;
  line-height: 1.5;
}
.reassure .ic { font-size: 1.3rem; flex: none; }

/* ---------- sticky CTA bar ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.21, 0.5, 0.25, 1);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky-cta .msg { font-size: 0.92rem; font-weight: 600; }
.sticky-cta .msg span { color: var(--muted); font-weight: 400; }
.sticky-cta .btn { padding: 0.7rem 1.3rem; font-size: 0.9rem; }
@media (max-width: 560px) {
  .sticky-cta .msg span { display: none; }
  .sticky-cta .inner { padding: 0.65rem 1rem; }
}

@media (max-width: 640px) {
  section.block { padding: 3.2rem 0; }
  .step { padding: 1.3rem; gap: 0.9rem; }
  .deliver, .quote { padding: 1.5rem; }
  .hero h1 { font-size: clamp(1.55rem, 7vw, 2.4rem); }
}

/* ---- animated stack steps ---- */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
  counter-reset: stackstep;
}
.scard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.7rem 1.5rem 1.75rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s ease;
}
.scard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: inherit;
}
.scard.in {
  opacity: 1;
  transform: none;
}
.scard.in::before { transform: scaleX(1); }
.scard:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.scard .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: var(--accent);
  color: var(--on-accent);
  margin-bottom: 1.05rem;
}
.scard .st {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.scard h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.14rem;
  line-height: 1.2;
  margin: 0 0 0.55rem;
}
.scard p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
.scard .flow {
  position: absolute;
  right: 1rem;
  bottom: 0.7rem;
  font-size: 1.5rem;
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
.scard.in .flow { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .scard { opacity: 1; transform: none; transition: none; }
  .scard::before { transform: scaleX(1); }
  .scard .flow { opacity: 1; transition: none; }
}

/* ---- scroll stack (services) ---- */
.scroll-stack {
  max-width: 720px;
  margin: 2.2rem auto 0;
  display: flex;
  flex-direction: column;
}
.scroll-stack .fcard {
  position: sticky;
  margin: 0 0 1.3rem;
  transform-origin: center top;
  transition: transform 0.25s linear, filter 0.25s linear;
  background: var(--surface);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.55);
}
.scroll-stack .fcard:nth-child(1) { top: 96px; }
.scroll-stack .fcard:nth-child(2) { top: 112px; }
.scroll-stack .fcard:nth-child(3) { top: 128px; }
.scroll-stack .fcard:nth-child(4) { top: 144px; }
.scroll-stack .fcard:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .scroll-stack .fcard:nth-child(1) { top: 78px; }
  .scroll-stack .fcard:nth-child(2) { top: 92px; }
  .scroll-stack .fcard:nth-child(3) { top: 106px; }
  .scroll-stack .fcard:nth-child(4) { top: 120px; }
}

/* ---- card swap (how it works): 3D auto-rotating deck (GSAP) ---- */
.cs-stage {
  position: relative;
  height: 420px;
  margin-top: 1.2rem;
}
.cs-container {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 272px;
  transform: translate(-56%, -34%);
  transform-origin: center center;
  perspective: 1100px;
  overflow: visible;
}
.cs-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 272px;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cs-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.cs-card .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: var(--accent);
  color: var(--on-accent);
  margin-bottom: 1rem;
}
.cs-card .st {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.cs-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}
.cs-card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 768px) {
  .cs-container { transform: scale(0.82) translate(-56%, -34%); }
}
@media (max-width: 480px) {
  .cs-stage { height: 360px; }
  .cs-container { transform: scale(0.62) translate(-56%, -34%); }
}

/* ---- bounce cards (what you walk away with) ---- */
.bounce-stage {
  display: flex;
  justify-content: center;
  margin: 1.8rem auto 0;
}
.bounce {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.85rem;
  width: 100%;
  max-width: 1020px;
}
.bcard {
  --rot: 0deg;
  flex: 1 1 0;
  min-width: 0;
  max-width: 205px;
  display: flex;
  transform: rotate(var(--rot));
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    z-index 0s;
}
.bounce .bcard:nth-child(1) { --rot: -4deg; }
.bounce .bcard:nth-child(2) { --rot: 3deg; }
.bounce .bcard:nth-child(3) { --rot: -2deg; }
.bounce .bcard:nth-child(4) { --rot: 4deg; }
.bounce .bcard:nth-child(5) { --rot: -3deg; }
.bcard:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.04);
  z-index: 5;
}
.bcard-inner {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.4rem;
  transform: scale(0);
  transform-origin: center;
}
.bounce.play .bcard-inner {
  animation: bouncePop 0.8s cubic-bezier(0.22, 0.68, 0.32, 1.2) forwards;
}
.bounce.play .bcard:nth-child(1) .bcard-inner { animation-delay: 0.1s; }
.bounce.play .bcard:nth-child(2) .bcard-inner { animation-delay: 0.19s; }
.bounce.play .bcard:nth-child(3) .bcard-inner { animation-delay: 0.28s; }
.bounce.play .bcard:nth-child(4) .bcard-inner { animation-delay: 0.37s; }
.bounce.play .bcard:nth-child(5) .bcard-inner { animation-delay: 0.46s; }
.bcard-inner .tick {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.95rem;
  font-weight: 700;
  flex: none;
}
.bcard-inner .txt {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--fg);
}
.bcard-inner .txt b {
  color: var(--accent-2);
  white-space: nowrap;
}
@keyframes bouncePop {
  0% { transform: scale(0); }
  55% { transform: scale(1.06); }
  72% { transform: scale(0.96); }
  86% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@media (max-width: 860px) {
  .bounce { flex-wrap: wrap; }
  .bcard { flex: 1 1 200px; max-width: 300px; }
}
@media (max-width: 600px) {
  .bcard { flex-basis: 100%; max-width: 340px; }
  .bcard:hover { transform: translateY(-4px) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .bcard-inner { transform: scale(1); }
  .bounce.play .bcard-inner { animation: none; }
  .bcard { transition: none; }
}

/* ====== tabbed features (what we do at this stage) ====== */
.ftabs { margin-top: 2rem; }
.ftabs-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ftabs-list::-webkit-scrollbar { display: none; }
.ftab {
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  border-radius: 11px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.ftab:hover { color: var(--fg); }
.ftab.active {
  color: var(--fg);
  background: var(--surface);
  border-color: var(--line);
}
.ftab svg { width: 16px; height: 16px; flex: none; }
.ftab-panels {
  margin-top: 1.6rem;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.8rem);
}
.ftab-panel { display: none; }
.ftab-panel.active {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
  animation: ftabIn 0.45s ease;
}
@media (min-width: 900px) {
  .ftab-panel.active {
    grid-template-columns: 1fr 1fr;
    gap: 2.6rem;
    align-items: center;
  }
}
@keyframes ftabIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.ftab-copy { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.ftab-copy .badge {
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-2);
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ftab-copy h3 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.15; margin: 0; }
.ftab-copy p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin: 0; }
.ftab-copy .btn { margin-top: 0.4rem; }
.ftab-points {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ftab-points li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--fg);
  font-size: 0.94rem;
  line-height: 1.45;
}
.ftab-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.ftab-media,
.fprog-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.ftab-media { aspect-ratio: 4 / 3; }
.ftab-media > img,
.fprog-shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.media-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.media-ph .g { font-size: 1.9rem; color: color-mix(in srgb, var(--accent) 60%, var(--muted)); }

/* ---------- animated tool-UI mockups v3 ---------- */
@property --mxp { syntax:"<percentage>"; inherits:false; initial-value:0%; }
.mx { position:absolute; inset:0; border-radius:inherit; overflow:hidden; background:var(--surface); font-family:"DM Sans",-apple-system,sans-serif; color:var(--fg); }
:root[data-theme="dark"] .mx img.inv { filter:brightness(0) invert(1); }
.mx-top { height:24px; display:flex; align-items:center; gap:4px; padding:0 9px; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--fg) 4%, var(--surface)); }
.mx-top .d { width:6px;height:6px;border-radius:50%;background:var(--line); }
.mx-top .tt { margin-left:5px; font-size:9px; font-weight:700; color:var(--muted); display:flex; align-items:center; gap:4px; }
.mx-flex { display:flex; align-items:center; gap:8px; }
.mx-app { position:absolute; top:24px; left:0; right:0; bottom:0; display:grid; grid-template-columns:33% 1fr; }
.mx-nav { border-right:1px solid var(--line); background:color-mix(in srgb,var(--fg) 3%, var(--surface)); padding:7px; display:flex; flex-direction:column; gap:6px; overflow:hidden; }
.mx-nav .it { display:flex; align-items:center; gap:5px; font-size:8px; color:var(--muted); white-space:nowrap; }
.mx-nav .it .sq { width:8px;height:8px;border-radius:2px;flex:none; }
.mx-nav .it.on { color:var(--fg); font-weight:700; }
.mx-cols { padding:8px; display:grid; grid-template-columns:repeat(3,1fr); gap:6px; align-content:start; min-width:0; }
.mx-col { display:flex; flex-direction:column; gap:5px; min-width:0; }
.mx-colh { font-size:7.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); display:flex; align-items:center; gap:3px; }
.mx-colh .pip { width:6px;height:6px;border-radius:50%; }
.mx-card { border:1px solid var(--line); border-radius:6px; background:var(--surface); padding:5px; display:flex; flex-direction:column; gap:4px; box-shadow:0 2px 6px -4px rgba(0,0,0,.3); }
.mx-card .ln { height:4px;border-radius:3px;background:color-mix(in srgb,var(--fg) 13%, transparent); }
.mx-card .ln.s { width:62%; }
.mx-card .meta { display:flex; align-items:center; gap:4px; }
.mx-tag { height:6px;width:16px;border-radius:3px; }
.mx-av { width:9px;height:9px;border-radius:50%;margin-left:auto; }
.mx-card.fly { animation:mx-bob 3s ease-in-out infinite; }
@keyframes mx-bob { 0%,100%{transform:translateY(0);box-shadow:0 2px 6px -4px rgba(0,0,0,.3)} 50%{transform:translateY(-4px);box-shadow:0 9px 18px -8px rgba(0,0,0,.45)} }
.mx-flow { position:absolute; top:24px; left:0; right:0; bottom:0; background:radial-gradient(circle at 9px 9px, color-mix(in srgb,var(--fg) 9%, transparent) 1px, transparent 1.6px) 0 0/15px 15px, var(--surface); }
.mx-flow svg.wires, .mx-screen svg.wires { position:absolute; inset:0; width:100%; height:100%; }
.mx-flow svg.wires path, .mx-screen svg.wires path { fill:none; stroke:color-mix(in srgb,var(--fg) 30%, transparent); stroke-width:1.3; stroke-dasharray:3 3; }
.mx-nd { position:absolute; transform:translate(-50%,-50%); display:grid; place-items:center; padding:5px 7px; border-radius:9px; border:1px solid var(--line); background:var(--surface); box-shadow:0 5px 14px -7px rgba(0,0,0,.4); z-index:2; }
.mx-nd img { height:10px; width:auto; max-width:42px; object-fit:contain; display:block; }
.mx-nd.trig { width:22px;height:22px;padding:0;border-radius:50%;border-color:color-mix(in srgb,var(--accent) 60%,var(--line)); background:color-mix(in srgb,var(--accent) 18%,var(--surface)); color:var(--accent-2); }
.mx-pk { position:absolute; width:6px;height:6px;border-radius:50%; background:var(--accent); box-shadow:0 0 7px var(--accent); transform:translate(-50%,-50%); z-index:3; }
.mx-pk.a { animation:mx-segA 1.9s linear infinite; }
.mx-pk.b { animation:mx-segB 1.9s linear infinite .55s; }
@keyframes mx-segA { 0%{left:40%;top:26%;opacity:0} 14%{opacity:1} 86%{opacity:1} 100%{left:74%;top:26%;opacity:0} }
@keyframes mx-segB { 0%{left:40%;top:74%;opacity:0} 14%{opacity:1} 86%{opacity:1} 100%{left:74%;top:74%;opacity:0} }
.mx-dash { position:absolute; top:24px; left:0; right:0; bottom:0; padding:8px; display:grid; grid-template-columns:1fr 1fr; gap:6px; align-content:start; }
.mx-w { border:1px solid var(--line); border-radius:7px; background:var(--surface); padding:6px 7px; min-width:0; }
.mx-w .k { font-size:7.5px; color:var(--muted); }
.mx-w .v { font-family:"Bricolage Grotesque",sans-serif; font-weight:800; font-size:13px; line-height:1.05; }
.mx-w .v.up { color:var(--accent-2); }
.mx-donut { width:30px;height:30px;border-radius:50%;flex:none;position:relative; background:conic-gradient(var(--accent) var(--mxp), color-mix(in srgb,var(--fg) 12%, transparent) 0); animation:mx-fill 2.6s ease-in-out infinite alternate; }
.mx-donut::after { content:"";position:absolute;inset:30%;border-radius:50%;background:var(--surface); }
@keyframes mx-fill { from{--mxp:20%} to{--mxp:76%} }
.mx-pie { width:32px;height:32px;border-radius:50%;flex:none; background:conic-gradient(var(--accent) 0 42%, #49ccf9 42% 68%, #fd71af 68% 86%, color-mix(in srgb,var(--fg) 18%, transparent) 86%); animation:mx-spin 14s linear infinite; }
@keyframes mx-spin { to{transform:rotate(360deg)} }
.mx-bars { display:flex; align-items:flex-end; gap:3px; height:26px; margin-top:3px; }
.mx-bars i { flex:1; background:color-mix(in srgb,var(--accent) 55%, var(--line)); border-radius:2px 2px 0 0; transform-origin:bottom; animation:mx-grow 1.8s ease-in-out infinite alternate; }
@keyframes mx-grow { from{transform:scaleY(.5)} to{transform:scaleY(1)} }
.mx-line { margin-top:3px; height:24px; }
.mx-line svg { width:100%;height:100%;display:block; }
.mx-line .pl { stroke-dasharray:240; stroke-dashoffset:240; animation:mx-draw 3.4s ease-in-out infinite; }
@keyframes mx-draw { 0%{stroke-dashoffset:240} 55%,100%{stroke-dashoffset:0} }
.mx-video { position:absolute; top:24px; left:0; right:0; bottom:0; padding:9px; display:flex; flex-direction:column; }
.mx-screen { flex:1; position:relative; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:radial-gradient(circle at 8px 8px, color-mix(in srgb,var(--fg) 7%, transparent) 1px, transparent 1.5px) 0 0/14px 14px, color-mix(in srgb,var(--fg) 2%, var(--surface)); }
.mx-fbox { position:absolute; transform:translate(-50%,-50%); border:1px solid var(--line); border-radius:5px; background:var(--surface); font-size:7px; color:var(--muted); padding:3px 5px; box-shadow:0 3px 8px -6px rgba(0,0,0,.5); z-index:2; }
.mx-fbox.ok { border-color:color-mix(in srgb,var(--accent) 55%,var(--line)); color:var(--accent-2); }
.mx-play { position:absolute; left:50%;top:50%; transform:translate(-50%,-50%); width:30px;height:30px;border-radius:50%; background:var(--accent); color:var(--on-accent); display:flex; align-items:center; justify-content:center; gap:2px; box-shadow:0 6px 16px -6px var(--glow); z-index:4; animation:mx-pp 3s ease-in-out infinite; }
.mx-play i { width:3px;height:11px;background:currentColor;border-radius:1px; }
@keyframes mx-pp { 0%,45%{transform:translate(-50%,-50%) scale(1)} 55%,100%{transform:translate(-50%,-50%) scale(.9)} }
.mx-scrub { height:4px; margin-top:7px; border-radius:3px; background:color-mix(in srgb,var(--fg) 12%, transparent); position:relative; overflow:hidden; }
.mx-scrub::after { content:""; position:absolute; left:0;top:0;bottom:0; background:var(--accent); border-radius:3px; animation:mx-scrubgo 6s linear infinite; }
@keyframes mx-scrubgo { from{width:8%} to{width:92%} }
.mx-aipop { position:absolute; right:8px; bottom:8px; width:64%; border:1px solid color-mix(in srgb,var(--accent) 40%, var(--line)); border-radius:10px; background:color-mix(in srgb,var(--accent) 8%, var(--surface)); box-shadow:0 16px 36px -12px rgba(0,0,0,.55); padding:7px 8px; z-index:5; }
.mx-aihd { display:flex; align-items:center; gap:5px; font-size:9px; font-weight:700; color:var(--fg); }
.mx-aihd img { height:12px;width:12px;display:block; }
.mx-aiq { margin-top:5px; font-size:8.5px; color:var(--fg); white-space:nowrap; overflow:hidden; border-right:1.5px solid var(--accent-2); width:0; animation:mx-type 5s steps(34,end) infinite; }
@keyframes mx-type { 0%{width:0} 42%,82%{width:24ch} 100%{width:0} }
.mx-air { margin-top:6px; display:flex; flex-direction:column; gap:3px; }
.mx-air span { height:3.5px;border-radius:2px;background:color-mix(in srgb,var(--accent) 35%, var(--line)); opacity:0; animation:mx-fadein .6s ease forwards; }
@keyframes mx-fadein { to{opacity:1} }
.mx-graph { position:absolute; top:24px; left:0; right:0; bottom:0; background:radial-gradient(circle at 10px 10px, color-mix(in srgb,var(--fg) 6%, transparent) 1px, transparent 1.6px) 0 0/17px 17px, var(--surface); }
.mx-graph svg { position:absolute; inset:0; width:100%; height:100%; }
.mx-graph svg .bad { stroke:#e0564a; stroke-width:1.5; stroke-dasharray:4 3; fill:none; opacity:.85; }
.mx-graph svg .good { stroke:var(--accent-2); stroke-width:1.7; fill:none; }
.mx-gn { position:absolute; transform:translate(-50%,-50%); border:1px solid var(--line); border-radius:6px; background:var(--surface); font-size:8px; color:var(--fg); padding:3px 6px; box-shadow:0 3px 9px -6px rgba(0,0,0,.5); z-index:2; }
.mx-badge { position:absolute; transform:translate(-50%,-50%); width:14px;height:14px;border-radius:50%; display:grid;place-items:center; font-size:8px; font-weight:800; z-index:3; }
.mx-badge.x { background:#e0564a; color:#fff; animation:mx-pulse 1.7s ease-in-out infinite; }
.mx-badge.ok { background:var(--accent); color:var(--on-accent); }
@keyframes mx-pulse { 0%,100%{transform:translate(-50%,-50%) scale(1);box-shadow:0 0 0 0 rgba(224,86,74,.5)} 50%{transform:translate(-50%,-50%) scale(1.14);box-shadow:0 0 0 6px rgba(224,86,74,0)} }
.mx-tree { position:absolute; top:24px; left:0; right:0; bottom:0; padding:10px 12px; display:flex; flex-direction:column; gap:5px; justify-content:center; }
.mx-tr { border:1px solid var(--line); border-radius:6px; padding:5px 8px; font-size:9px; font-weight:700; background:color-mix(in srgb,var(--accent) 6%, var(--surface)); display:flex; align-items:center; gap:6px; }
.mx-tr .dt { width:6px;height:6px;border-radius:2px; background:var(--accent); flex:none; animation:mx-glow 2.6s ease-in-out infinite; }
@keyframes mx-glow { 0%,100%{opacity:.45} 50%{opacity:1} }
.mx-tr.i1{margin-left:14px}.mx-tr.i2{margin-left:28px}.mx-tr.i3{margin-left:42px}.mx-tr.i4{margin-left:56px}

/* dashboards v2 + flowchart + SOP doc */
.mx-db { position:absolute; top:24px; left:0; right:0; bottom:0; padding:8px; display:flex; flex-direction:column; gap:6px; }
.mx-kpis3 { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; flex:none; }
.mx-kc { border:1px solid var(--line); border-radius:7px; background:var(--surface); padding:5px 7px; }
.mx-kc .k { font-size:7px; color:var(--muted); }
.mx-kc .v { font-family:"Bricolage Grotesque",sans-serif; font-weight:800; font-size:14px; line-height:1.1; }
.mx-w2 { border:1px solid var(--line); border-radius:7px; background:var(--surface); padding:6px 8px; min-width:0; display:flex; flex-direction:column; }
.mx-w2 .kt { font-size:7.5px; font-weight:700; color:var(--muted); margin-bottom:5px; }
.mx-row2 { display:grid; grid-template-columns:1fr 1fr; gap:6px; flex:1; min-height:0; }
.mx-stack { height:9px; border-radius:5px; overflow:hidden; display:flex; }
.mx-stack i { height:100%; }
.mx-ring { width:56px;height:56px;border-radius:50%; border:5px solid #49ccf9; display:flex; flex-direction:column; align-items:center; justify-content:center; margin:auto; animation:mx-ringpulse 2.6s ease-in-out infinite; }
.mx-ring .n { font-family:"Bricolage Grotesque",sans-serif; font-weight:800; font-size:14px; line-height:1; }
.mx-ring .t { font-size:6px; color:var(--muted); }
@keyframes mx-ringpulse { 0%,100%{box-shadow:0 0 0 0 rgba(73,204,249,.45)} 50%{box-shadow:0 0 0 5px rgba(73,204,249,0)} }
.mx-vbars { display:flex; align-items:flex-end; gap:4px; flex:1; min-height:0; padding-top:4px; }
.mx-vbars i { flex:1; border-radius:2px 2px 0 0; transform-origin:bottom; animation:mx-grow2 1.9s ease-in-out infinite alternate; }
@keyframes mx-grow2 { from{transform:scaleY(.85)} to{transform:scaleY(1)} }
.mx-hbars { display:flex; flex-direction:column; gap:6px; justify-content:center; flex:1; }
.mx-hb { display:flex; align-items:center; gap:5px; }
.mx-hb .l { width:30px; flex:none; text-align:right; font-size:7px; color:var(--muted); }
.mx-hb .b { height:8px; border-radius:3px; transform-origin:left; animation:mx-hgrow 2s ease-in-out infinite alternate; }
.mx-hb .n { font-size:7px; color:var(--fg); }
@keyframes mx-hgrow { from{transform:scaleX(.75)} to{transform:scaleX(1)} }
.mx-map2 { position:absolute; top:24px; left:0; right:0; bottom:0; background:radial-gradient(circle at 10px 10px, color-mix(in srgb,var(--fg) 6%, transparent) 1px, transparent 1.6px) 0 0/16px 16px, var(--surface); }
.mx-map2 svg { position:absolute; inset:0; width:100%; height:100%; }
.mx-map2 svg path { fill:none; stroke:color-mix(in srgb,var(--fg) 28%, transparent); stroke-width:1.2; stroke-dasharray:3 3; }
.mx-fn { position:absolute; transform:translate(-50%,-50%); border:1px solid var(--line); border-radius:5px; background:var(--surface); font-size:7px; color:var(--fg); padding:3px 6px; white-space:nowrap; box-shadow:0 3px 8px -6px rgba(0,0,0,.5); z-index:2; }
.mx-fn.iss { background:color-mix(in srgb,#e0564a 16%, var(--surface)); border-color:color-mix(in srgb,#e0564a 50%, var(--line)); color:#e0564a; font-weight:700; animation:mx-issp 1.8s ease-in-out infinite; }
@keyframes mx-issp { 0%,100%{box-shadow:0 0 0 0 rgba(224,86,74,.4)} 50%{box-shadow:0 0 0 4px rgba(224,86,74,0)} }
.mx-doc2 { position:absolute; top:24px; left:0; right:0; bottom:0; padding:11px 13px; display:flex; flex-direction:column; gap:6px; }
.mx-doc2 .dh { font-size:12px; font-weight:800; display:flex; align-items:center; gap:6px; }
.mx-doc2 .dh .ic { width:13px;height:13px;border-radius:3px;background:color-mix(in srgb,var(--accent) 22%,transparent); display:grid;place-items:center; color:var(--accent-2); font-size:9px; }
.mx-doc2 .toc { display:flex; flex-direction:column; gap:4px; }
.mx-doc2 .toc span { font-size:8px; color:var(--muted); display:flex; align-items:center; gap:6px; }
.mx-doc2 .toc span::before { content:""; width:3px;height:3px;border-radius:50%;background:var(--accent); flex:none; }
.mx-vid { margin-top:3px; position:relative; flex:1; min-height:54px; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:radial-gradient(circle at 8px 8px, color-mix(in srgb,var(--fg) 7%, transparent) 1px, transparent 1.5px) 0 0/14px 14px, color-mix(in srgb,var(--fg) 2%, var(--surface)); }
.mx-vid .mx-scrub { position:absolute; left:8px; right:8px; bottom:7px; margin:0; }

@media (prefers-reduced-motion: reduce) { .mx *, .mx::before, .mx::after { animation:none !important; } }

/* ====== progress features (how it works) ====== */
.fprog {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 2.4rem;
}
@media (min-width: 900px) {
  .fprog { grid-template-columns: 0.8fr 1.2fr; gap: 3.2rem; align-items: center; }
}
.fprog-list { display: flex; flex-direction: column; }
.fprog-item {
  cursor: pointer;
  padding: 1.05rem 0 1.05rem 1.4rem;
  border-left: 2px solid var(--line);
  opacity: 0.5;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.fprog-item:hover { opacity: 0.85; }
.fprog-item.active { opacity: 1; border-left-color: var(--accent); }
.fprog-ic { display: none; }
.fprog-body { min-width: 0; }
.fprog-body h3 { font-size: 1.2rem; margin: 0; line-height: 1.2; color: var(--fg); }
.fprog-item.active .fprog-body h3 { margin-bottom: 0.65rem; }
.fprog-body p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.4s ease;
}
.fprog-item.active .fprog-body p { max-height: 220px; opacity: 1; }
.fprog-tag {
  display: none;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin-top: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
}
.fprog-item.active .fprog-tag { display: inline-flex; }
.fprog-bar {
  margin-top: 1rem;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  display: none;
}
.fprog-item.active .fprog-bar { display: none; }
.fprog-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.fprog-media {
  aspect-ratio: auto;
  min-height: 460px;
  background: #0e0f0b;
}
.fprog-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fprog-shot.active { opacity: 1; transform: none; }
.fprog-shot img { object-fit: contain; padding: 22px; }
@media (max-width: 899px) {
  .fprog-media { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .fprog-shot { transition: opacity 0.2s; transform: none; }
}

/* ====== gallery carousel (case studies) ====== */
.gallery { margin-top: 0.5rem; }
.gallery-nav { display: flex; justify-content: flex-end; gap: 0.5rem; margin-bottom: 1.2rem; }
.gnav {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity 0.2s, transform 0.18s, background-color 0.2s;
}
.gnav:hover { transform: translateY(-2px); }
.gnav[disabled] { opacity: 0.3; cursor: default; transform: none; }
.gnav svg { width: 20px; height: 20px; }
.gallery-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.3rem 0 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gcard { flex: 0 0 300px; max-width: 300px; scroll-snap-align: start; }
@media (min-width: 1024px) { .gcard { flex-basis: 360px; max-width: 360px; } }
.gcard a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.gcard a:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.gcard .gpic {
  aspect-ratio: 16 / 9;
  background: #0e1411;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gcard .gpic img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.gcard a:hover .gpic img { transform: scale(1.04); }
.gcard .gbody { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.gcard .gstat {
  align-self: flex-start;
  background: var(--accent);
  color: var(--on-accent);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 7px;
  margin-bottom: 0.7rem;
}
.gcard h3 { color: var(--fg); font-size: 1.12rem; line-height: 1.25; margin: 0 0 0.5rem; }
.gcard p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gcard .gtags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1rem; }
.gcard .gtag { display: inline-flex; align-items: center; padding: 0.34rem 0.65rem; border-radius: 9999px; border: 1px solid var(--line); background: var(--surface); }
.gcard .gtag img { height: 15px; width: auto; display: block; }
:root[data-theme="dark"] .gcard .gtag img.inv { filter: brightness(0) invert(1); }
.gcard .more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent-2); font-size: 0.88rem; font-weight: 700; }
.gcard .more svg { width: 16px; height: 16px; transition: transform 0.2s; }
.gcard a:hover .more svg { transform: translateX(4px); }
.gallery-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.4rem; }
.gdot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  background: color-mix(in srgb, var(--accent) 25%, var(--line));
  transition: background-color 0.2s, transform 0.2s;
}
.gdot.active { background: var(--accent); transform: scale(1.2); }

/* ====== feature carousel (what you walk away with) ====== */
.fcarousel { margin-top: 2rem; }
.fc-shell {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
@media (min-width: 900px) {
  .fc-shell { flex-direction: row; min-height: 470px; }
}
.fc-left {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 290px;
  background: var(--accent);
  overflow: hidden;
  padding: 2rem;
}
@media (min-width: 900px) {
  .fc-left { width: 42%; min-height: 0; padding: 2rem 2.5rem; }
}
.fc-left::before,
.fc-left::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 4;
  pointer-events: none;
}
.fc-left::before { top: 0; background: linear-gradient(to bottom, var(--accent), transparent); }
.fc-left::after { bottom: 0; background: linear-gradient(to top, var(--accent), transparent); }
.fc-wheel { position: relative; width: 100%; height: 100%; min-height: 290px; }
.fc-chip {
  --cx: -50%;
  --y: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(var(--cx), calc(-50% + var(--y)));
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.3rem;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(15, 15, 15, 0.25);
  background: transparent;
  color: rgba(15, 15, 15, 0.55);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.7s cubic-bezier(0.22, 0.68, 0.32, 1),
    opacity 0.6s ease, background-color 0.4s, color 0.4s, border-color 0.4s;
}
@media (min-width: 900px) {
  .fc-chip { left: 0; --cx: 0%; }
}
.fc-chip:hover { color: #0f0f0f; border-color: rgba(15, 15, 15, 0.45); }
.fc-chip.active { background: #0f0f0f; color: var(--accent); border-color: #0f0f0f; }
.fc-chip svg { width: 18px; height: 18px; flex: none; }
.fc-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  padding: 2.5rem 1.5rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .fc-right { border-top: none; border-left: 1px solid var(--line); }
}
.fc-stage { position: relative; width: 100%; max-width: 360px; aspect-ratio: 4 / 5; }
.fc-card {
  position: absolute;
  inset: 0;
  border-radius: 1.8rem;
  overflow: hidden;
  border: 6px solid var(--surface);
  background: var(--ink);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.34, 1.3, 0.5, 1), opacity 0.5s ease;
}
.fc-card.active { opacity: 1; transform: none; z-index: 20; pointer-events: auto; }
.fc-card.prev { opacity: 0.4; transform: translateX(-86px) scale(0.85) rotate(-3deg); z-index: 10; }
.fc-card.next { opacity: 0.4; transform: translateX(86px) scale(0.85) rotate(3deg); z-index: 10; }
.fc-card .pic { position: absolute; inset: 0; }
.fc-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.6s ease; }
.fc-card:not(.active) .pic img { filter: grayscale(1) brightness(0.75) blur(2px); }
.fc-card .pic .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 24%, #16160f), #0b0b09);
  color: rgba(255, 255, 255, 0.5);
  font-size: 2.2rem;
}
.fc-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.2rem 1.6rem 1.6rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.4) 55%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.fc-card.active .fc-overlay { opacity: 1; }
.fc-badge {
  align-self: flex-start;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.fc-desc { color: #fff; font-size: 1.12rem; line-height: 1.3; margin: 0; }
.fc-desc b { color: var(--accent); white-space: nowrap; }
.fc-tag {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.fc-card.active .fc-tag { opacity: 1; }
.fc-tag .dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.fc-tag span { color: rgba(255, 255, 255, 0.8); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) {
  .fc-card, .fc-chip { transition: opacity 0.2s; }
}

/* ====== walk-away (text only) ====== */
.walk-list {
  list-style: none;
  margin: 2.2rem auto 0;
  padding: 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 760px) {
  .walk-list { grid-template-columns: 1fr 1fr; gap: 1.2rem 2.4rem; }
}
.walk-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.walk-list .tk {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.1rem;
}
.walk-list p { margin: 0; color: var(--fg); font-size: 1.02rem; line-height: 1.5; }
.walk-list p b { color: var(--accent-2); white-space: nowrap; }

/* ====== testimonials ====== */
.tgrid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2.4rem;
}
@media (min-width: 680px) {
  .tgrid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .tgrid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
}
.tcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
@media (min-width: 980px) {
  .tcard.feat { grid-column: span 2; grid-row: span 2; padding: 2rem; }
  .tcard.wide { grid-column: span 2; }
}
.tcard .tlogo {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 0.7rem;
  border-radius: 7px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tcard .quote {
  margin: 0;
  flex: 1;
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.55;
}
.tcard.feat .quote { font-size: 1.25rem; line-height: 1.45; }
.tcard .who { display: flex; align-items: center; gap: 0.8rem; }
.tcard .av {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-2));
  color: var(--accent-2);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
.tcard .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard .tlogo.cambria {
  border: none;
  background: none;
  padding: 0;
  height: auto;
  color: var(--fg);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.26em;
}
.tcard .tlogo-img {
  align-self: flex-start;
  height: 26px;
  width: auto;
  display: block;
  border-radius: 6px;
}
.tcard.feat .tlogo-img { height: 30px; }
.tcard .av.sven {
  background-image: url(assets/sven.jpg);
  background-repeat: no-repeat;
  background-size: 79px auto;
  background-position: -20px -13px;
  color: transparent;
}
.tcard .nm { font-size: 0.9rem; font-weight: 600; color: var(--fg); }
.tcard .rl { font-size: 0.82rem; color: var(--muted); }
