/* =====================================================================
   TERSO AI — rebuild
   light "paper" base · purple→magenta brand gradient · drifting orbs
   Sora display + Inter body · dark instrument panels for contrast
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* paper surfaces */
  --paper: #fcf9fc;
  --paper-2: #f6f1f7;
  --card: #ffffff;

  /* ink */
  --ink: #0e0c11;
  --text-1: #16131b;
  --text-2: #54505e;
  --text-3: #6f6a7b;

  /* brand */
  --purple: #751888;
  --magenta: #e118b6;
  --magenta-text: #b8108f; /* AA-safe magenta for small text on paper */
  --purple-bright: #9b1fb6;
  --grad: linear-gradient(135deg, #751888 0%, #e118b6 100%);
  --grad-rev: linear-gradient(135deg, #e118b6 0%, #751888 100%);

  /* dark instrument */
  --ink-0: #07060c;
  --ink-1: #0c0a16;
  --ink-2: #14101f;

  /* lines */
  --line: #ece4ee;
  --line-2: #e0d5e3;
  --line-dark: rgba(255, 255, 255, 0.1);

  /* type */
  --font-d: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-b: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-m: "Geist Mono", "Cascadia Code", ui-monospace, monospace;

  /* glow shadows (signature) */
  --glow-magenta: 0 20px 60px -20px rgba(225, 24, 182, 0.4);
  --glow-purple: 0 8px 30px -12px rgba(117, 24, 136, 0.35);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 66px;
  --container: 1200px;
}

/* dark-panel scope: invert ink + lines */
.band-dark, .footer, .pipeline-stage, .cta-band, .cta-fullbleed, .demo-shell {
  --text-1: #f4f1f8;
  --text-2: #b3acc2;
  --text-3: #7d7790;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.03);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--text-1);
  font-family: var(--font-b);
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: rgba(225, 24, 182, 0.18); color: var(--ink); }

/* ---------- Atmosphere: drifting brand orbs ---------- */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.5;
  will-change: transform;
}
.orb.o1 {
  width: 620px; height: 620px; top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(117, 24, 136, 0.55), transparent 68%);
  animation: terso-orb-drift 14s ease-in-out infinite;
}
.orb.o2 {
  width: 560px; height: 560px; top: -80px; right: -140px;
  background: radial-gradient(circle, rgba(225, 24, 182, 0.45), transparent 68%);
  animation: terso-orb-drift-2 18s ease-in-out infinite;
}
@keyframes terso-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 2%) scale(1.06); }
}
@keyframes terso-orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -2%) scale(1.08); }
}
main, .nav, .footer { position: relative; z-index: 2; }

/* ---------- Scaffolding ---------- */
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: clamp(80px, 10vw, 130px); position: relative; }
.section-tight { padding-block: clamp(52px, 7vw, 84px); position: relative; }

.eyebrow {
  font-family: var(--font-m);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta-text);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta));
}
.headline {
  font-family: var(--font-d);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--text-1); margin-top: 18px; text-wrap: balance;
}
.lede {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: var(--text-2); line-height: 1.62;
  max-width: 620px; margin-top: 18px;
}
.section-head { margin-bottom: clamp(40px, 6vw, 60px); }
.section-head.center { text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  font-family: var(--font-b);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.btn .arrow { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: var(--glow-magenta), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background-size: 140% 140%;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px -22px rgba(225, 24, 182, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost {
  border: 1px solid var(--line-2); color: var(--text-1);
  background: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.band-dark .btn-ghost, .cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text-1); border-color: var(--line-2);
}
.band-dark .btn-ghost:hover, .cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.3);
}
.btn-lg { padding: 16px 28px; font-size: 15.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 600; color: var(--purple);
}
.band-dark .link-arrow, .cta-band .link-arrow { color: var(--magenta); }
.link-arrow .arrow { transition: transform 0.35s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ---------- Nav (paper glass) ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-inner {
  pointer-events: auto;
  width: min(1140px, calc(100% - 32px)); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 20px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled .nav-inner {
  background: rgba(252, 249, 252, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(117, 24, 136, 0.08);
}
.brand img { height: 34px; width: auto; }
.nav-linkedin { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; color: var(--text-2); transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.nav-linkedin svg { width: 18px; height: 18px; }
.nav-linkedin:hover { color: #fff; background: var(--grad); transform: translateY(-1px); box-shadow: var(--glow-magenta); }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--purple); background: rgba(117, 24, 136, 0.07); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(252, 249, 252, 0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-d); font-size: 24px; font-weight: 600; color: var(--text-2); padding: 9px; }
.mobile-menu a:hover { color: var(--purple); }
.mobile-menu .btn { margin-top: 16px; font-size: 16px; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--grad); z-index: 60; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.07s; } .d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; } .d4 { transition-delay: 0.28s; }
.d5 { transition-delay: 0.35s; } .d6 { transition-delay: 0.42s; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(54px, 8vh, 96px)); text-align: center; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }

.hero-banner {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.6);
  font-size: 13px; color: var(--text-2); margin-bottom: 30px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.hero-banner:hover { border-color: var(--purple); transform: translateY(-1px); }
.hero-banner .tag {
  font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.05em;
  padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--grad);
}
.hero-banner .arrow { width: 14px; height: 14px; color: var(--purple); }

.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(36px, 6.2vw, 74px);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.038em;
  color: var(--ink); max-width: 16ch; margin-inline: auto;
}
.hero h1 .word { display: inline-block; }
.hero h1 .reveal-word { opacity: 0; filter: blur(10px); transform: translateY(14px); display: inline-block; }
.caret {
  display: inline-block; width: 4px; height: 0.82em; vertical-align: -0.06em;
  margin-left: 6px; border-radius: 2px; background: var(--grad);
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero .lede { margin-inline: auto; max-width: 600px; font-size: clamp(16.5px, 1.7vw, 19px); }
.hero-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 20px; font-family: var(--font-m); font-size: 12px; color: var(--text-3); }
.hero-note a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.hero-note a:hover { color: var(--magenta); }

/* ---------- Demo showpiece (hyperframes composition) ---------- */
.demo-wrap { margin-top: clamp(48px, 7vw, 84px); position: relative; z-index: 2; }
.demo-shell {
  width: min(1040px, calc(100% - 40px)); margin-inline: auto;
  border-radius: var(--r-l);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-0));
  box-shadow: 0 40px 110px -30px rgba(117, 24, 136, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-m); font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-3);
}
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.demo-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--magenta); }
.demo-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 9px var(--magenta); animation: pulseDot 2s ease infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.demo-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: var(--ink-0); }

/* ---------- Logos / proof marquee ---------- */
.proof { border-block: 1px solid var(--line); background: var(--paper-2); overflow: hidden; }
.proof-label { text-align: center; font-family: var(--font-m); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); padding-top: clamp(40px, 5vw, 60px); }
.marquee { margin-top: 26px; padding-bottom: clamp(40px, 5vw, 60px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; gap: 56px; width: max-content; will-change: transform; animation: marqueeSlide 24s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marqueeSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--font-d); font-weight: 600; font-size: 18px; color: var(--text-3); white-space: nowrap; transition: color 0.3s ease; }
.marquee-item:hover { color: var(--purple); }

/* =====================================================================
   PIPELINE — Audit → Roadmap → Build → Run
   ===================================================================== */
.pipeline { position: relative; }
.pipeline-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  position: relative; margin-top: clamp(36px, 5vw, 52px);
}
.pipeline-line {
  position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: var(--line-2); overflow: visible; z-index: 0;
}
.pipeline-line .fill { position: absolute; inset: 0; width: 0; background: var(--grad); border-radius: 2px; transition: width 1.4s var(--ease); }
.pipeline.in .pipeline-line .fill { width: 100%; }
.pipeline-line .pulse {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--magenta); box-shadow: 0 0 16px var(--magenta);
  opacity: 0;
}
.pipeline.in .pipeline-line .pulse { animation: pipePulse 2.6s var(--ease) 0.6s infinite; }
@keyframes pipePulse { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.pipeline-stage { text-align: center; padding: 0 22px; position: relative; z-index: 1; }
.pipeline-node {
  width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--card-light, #fff);
  border: 1px solid var(--line-2);
  box-shadow: var(--glow-purple);
  position: relative; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.pipeline-stage:hover .pipeline-node { transform: translateY(-4px); box-shadow: var(--glow-magenta); }
.pipeline-node .num { font-family: var(--font-m); font-size: 12px; font-weight: 600; position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); }
.pipeline-node svg { width: 28px; height: 28px; color: var(--purple); }
.pipeline-stage h3 { font-family: var(--font-d); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.pipeline-stage .kicker { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--magenta-text); display: block; margin-bottom: 8px; }
.pipeline-stage p { color: var(--text-2); font-size: 14.5px; margin-top: 10px; max-width: 30ch; margin-inline: auto; line-height: 1.55; }

/* override: pipeline-stage uses dark-scope tokens via selector list; reset for light pipeline */
.pipeline .pipeline-stage { --text-1: var(--ink); --text-2: #54505e; --card: #fff; }
.pipeline-node { background: #fff; }

/* =====================================================================
   SERVICES — editorial rows
   ===================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(36px, 5vw, 64px); counter-reset: svc; }
.svc { padding: 24px 0 26px; border-top: 1px solid var(--line); counter-increment: svc; }
.svc::before {
  content: "0" counter(svc); display: block;
  font-family: var(--font-m); font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--magenta-text); margin-bottom: 12px;
}
.svc .ic { display: none; }
.svc h3 { font-family: var(--font-d); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.svc p { color: var(--text-2); font-size: 14px; margin-top: 5px; line-height: 1.55; }

/* =====================================================================
   CASE STUDY
   ===================================================================== */
.case {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center;
}
/* Distinct visual treatment for the homepage case study so it doesn't blend in. */
.section-case { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); border-block: 1px solid var(--line); }
.case-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 4vw, 52px); position: relative; box-shadow: 0 18px 60px -28px rgba(80, 24, 96, 0.18); }
.case-card::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 4px; border-radius: 4px; background: var(--grad); }
.case-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-family: var(--font-m); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; box-shadow: var(--glow-magenta); }
.case-eyebrow { color: var(--text-3); }
/* Subtle "case study" tag visible on the Case Studies index page items too */
.cs-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(225, 24, 182, 0.08); color: var(--brand-2); font-family: var(--font-m); font-weight: 600; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 48px); }
.metric { padding: 22px 0; border-top: 1px solid var(--line-2); }
.metric .k { font-family: var(--font-m); font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .l { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.4; }

/* =====================================================================
   STATS band (dark)
   ===================================================================== */
.band-dark { background: radial-gradient(120% 100% at 50% 0%, var(--ink-2), var(--ink-0)); border-block: 1px solid rgba(255, 255, 255, 0.06); position: relative; overflow: hidden; }
.band-dark .orb-mini { position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(80px); opacity: 0.4; pointer-events: none; }
.band-dark .orb-mini.a { top: -160px; left: -80px; background: radial-gradient(circle, rgba(117,24,136,0.6), transparent 70%); }
.band-dark .orb-mini.b { bottom: -200px; right: -60px; background: radial-gradient(circle, rgba(225,24,182,0.5), transparent 70%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); position: relative; z-index: 1; }
.stats-grid.five { grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2.2vw, 36px); }
.stats-grid.five .bigstat .k { font-size: clamp(28px, 3.4vw, 46px); }
.bigstat { text-align: center; }
.bigstat .k { font-family: var(--font-d); font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.04em; color: #fff; display: flex; justify-content: center; align-items: baseline; gap: 2px; }
.bigstat .k .unit { font-size: 0.5em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bigstat .l { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.45; }

/* =====================================================================
   TRUST grid
   ===================================================================== */
/* numbered editorial rows — no boxes, no chips */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(32px, 4vw, 56px); counter-reset: trust; }
.trust {
  position: relative; padding: 26px 0 28px;
  border-top: 1px solid var(--line); counter-increment: trust;
}
.trust::before {
  content: "0" counter(trust);
  display: block; font-family: var(--font-m); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--magenta-text); margin-bottom: 16px;
}
.trust .ic { display: none; }
.trust h3 { font-family: var(--font-d); font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.trust p { font-size: 13.5px; color: var(--text-2); margin-top: 7px; line-height: 1.55; }

/* =====================================================================
   CTA band (dark, glow)
   ===================================================================== */
.cta-band {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  background: linear-gradient(135deg, #1a0a22, #0a0710);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(52px, 7vw, 84px) clamp(24px, 5vw, 64px); text-align: center;
  box-shadow: 0 40px 100px -40px rgba(225, 24, 182, 0.5);
  color: var(--text-1);
}
.cta-band .glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 90% at 50% 120%, rgba(225, 24, 182, 0.4), transparent 60%); }
.cta-band h2 { font-family: var(--font-d); font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; position: relative; text-wrap: balance; }
.cta-band p { color: var(--text-2); margin-top: 14px; max-width: 520px; margin-inline: auto; position: relative; }
.cta-band .hero-actions { margin-top: 30px; position: relative; }

/* =====================================================================
   FOOTER (dark)
   ===================================================================== */
.footer { background: linear-gradient(180deg, var(--ink-1), var(--ink-0)); border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 6vw, 72px) clamp(34px, 5vw, 52px); }
.footer-brand img { height: 26px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { font-size: 13.5px; color: var(--text-2); max-width: 320px; line-height: 1.6; }
.footer-brand .tagline { font-family: var(--font-m); font-size: 11.5px; color: var(--text-3); margin-top: 16px; letter-spacing: 0.02em; }
.foot-col h5 { font-family: var(--font-m); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; color: var(--text-2); padding-block: 5px; transition: color 0.25s ease, transform 0.3s var(--ease); }
.foot-col a:hover { color: var(--magenta); transform: translateX(3px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--font-m); font-size: 12px; color: var(--text-3); }

/* =====================================================================
   SUBPAGE hero
   ===================================================================== */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(72px, 11vh, 130px)); padding-bottom: clamp(36px, 5vw, 60px); text-align: center; overflow: hidden; }
.page-hero h1 { font-family: var(--font-d); font-size: clamp(34px, 5.4vw, 62px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; color: var(--ink); max-width: 18ch; margin: 18px auto 0; text-wrap: balance; }
.page-hero .lede { margin-inline: auto; }

/* phase blocks (process) */
.phases { display: flex; flex-direction: column; gap: 16px; max-width: 920px; margin-inline: auto; }
.phase { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); padding: clamp(26px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); transition: border-color 0.35s ease, box-shadow 0.4s ease; }
.phase:hover { border-color: var(--line-2); box-shadow: var(--glow-purple); }
.phase-num { font-family: var(--font-d); font-weight: 800; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phase h3 { font-family: var(--font-d); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.02em; }
.phase .meta { font-family: var(--font-m); font-size: 12px; color: var(--magenta-text); margin-top: 4px; letter-spacing: 0.04em; }
.phase > div:last-child > p { color: var(--text-2); margin-top: 12px; max-width: 60ch; }
.phase .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; margin-top: 22px; }
.phase .cols h4 { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.phase .cols li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--text-2); padding-block: 4px; }
.phase .cols li svg { flex: none; width: 15px; height: 15px; color: var(--purple); margin-top: 4px; }

/* pricing cards */
.pricing-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; max-width: 920px; margin-inline: auto; }
.price-card { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); padding: clamp(28px, 3.5vw, 40px); position: relative; overflow: hidden; }
.price-card.featured { border-color: transparent; background: linear-gradient(135deg, #1a0a22, #0a0710); color: #f4f1f8; box-shadow: var(--glow-magenta); --text-2: #b3acc2; --line: rgba(255,255,255,0.1); }
.price-card.featured .glow { position: absolute; inset: 0; background: radial-gradient(70% 80% at 100% 0%, rgba(225,24,182,0.3), transparent 60%); pointer-events: none; }
.price-tag { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--magenta-text); }
.price-card .amount { font-family: var(--font-d); font-weight: 800; font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.04em; margin: 10px 0 4px; position: relative; }
.price-card.featured .amount { color: #fff; }
.price-card h3 { font-family: var(--font-d); font-size: 19px; font-weight: 700; position: relative; }
.price-card > p { color: var(--text-2); font-size: 14px; margin-top: 8px; position: relative; }
.price-list { margin-top: 22px; position: relative; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding-block: 7px; border-top: 1px solid var(--line); color: var(--text-2); }
.price-list li:first-child { border-top: 0; }
.price-list li svg { flex: none; width: 16px; height: 16px; color: var(--magenta); margin-top: 3px; }
.price-card .btn { margin-top: 24px; width: 100%; justify-content: center; position: relative; }
.pc-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 4px; position: relative; }
.pc-sub > div { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.pc-sub .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(225, 24, 182, 0.12); color: var(--magenta); margin-bottom: 10px; }
.pc-sub .ic svg { width: 16px; height: 16px; }
.pc-sub b { display: block; font-family: var(--font-d); font-size: 13.5px; font-weight: 600; }
.pc-sub p { font-size: 11.5px; color: var(--text-2); margin-top: 5px; line-height: 1.45; }
@media (max-width: 420px) { .pc-sub { grid-template-columns: 1fr; } }

/* belief / about principles */
.beliefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.belief { padding-top: 24px; border-top: 1.5px solid; border-image: var(--grad) 1; }
.belief h4 { font-family: var(--font-d); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.belief p { color: var(--text-2); margin-top: 10px; line-height: 1.6; }

/* industries / generic card grid */

/* contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-points { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.contact-point { padding-left: 16px; border-left: 2px solid; border-image: var(--grad) 1; }
.contact-point b { display: block; font-size: 15px; font-weight: 600; }
.contact-point span { font-size: 13px; color: var(--text-2); }
.form-card { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); padding: clamp(24px, 3vw, 34px); box-shadow: var(--glow-purple); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.field input, .field textarea, .field select {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-s);
  color: var(--text-1); font: inherit; font-size: 14.5px; padding: 12px 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(225, 24, 182, 0.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.form-status { display: none; align-items: center; gap: 9px; font-size: 13.5px; padding: 11px 14px; border-radius: var(--r-s); margin-bottom: 14px; }
.form-status.show { display: flex; }
.form-status.ok { background: rgba(117, 24, 136, 0.08); color: var(--purple); border: 1px solid rgba(117, 24, 136, 0.2); }
.form-status.err { background: rgba(223, 34, 37, 0.07); color: #c0392b; border: 1px solid rgba(223, 34, 37, 0.2); }

/* FAQ accordion */
.faq-list { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 4px; text-align: left; }
.faq-head h3 { font-family: var(--font-d); font-size: 17px; font-weight: 600; flex: 1; letter-spacing: -0.01em; }
.faq-toggle { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); transition: transform 0.45s var(--ease), color 0.3s ease, border-color 0.3s ease; }
.faq-toggle svg { width: 14px; height: 14px; }
.faq.open .faq-toggle { transform: rotate(45deg); color: var(--magenta); border-color: var(--magenta); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-body p { padding: 0 4px 24px; color: var(--text-2); max-width: 64ch; }

/* FAQ page — native <details>/<summary> variant */
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 4px; display: flex; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--font-d); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; flex: 1; margin: 0; color: var(--ink); }
.faq-item summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); font-size: 18px; line-height: 1; font-weight: 500; transition: transform 0.45s var(--ease), color 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); color: #fff; border-color: var(--magenta); background: var(--magenta); }
.faq-item summary:hover h3 { color: var(--magenta-text); }
.faq-item summary:focus-visible { outline: 2px solid var(--magenta); outline-offset: 4px; border-radius: 4px; }
.faq-item p { padding: 0 4px 22px; color: var(--text-2); max-width: 68ch; line-height: 1.65; }
.faq-item p a { color: var(--magenta-text); }
.faq-item p a:hover { text-decoration: underline; }

/* Chip-style TOC pills for the FAQ table of contents */
.chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-2); color: var(--text-1); font-size: 13px; font-weight: 500; letter-spacing: -0.005em; text-decoration: none; transition: all 0.25s var(--ease); }
.chip:hover { border-color: var(--magenta); color: var(--magenta-text); transform: translateY(-1px); }

/* generic editorial prose (guide/about) */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-family: var(--font-d); font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 14px; }
.prose h3 { font-family: var(--font-d); font-size: 19px; font-weight: 600; margin: 28px 0 10px; }
.prose p { color: var(--text-2); margin-top: 12px; line-height: 1.7; }
.prose ul.bullets { margin-top: 12px; }
.prose ul.bullets li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); padding-block: 6px; }
.prose ul.bullets li svg { flex: none; width: 16px; height: 16px; color: var(--magenta); margin-top: 5px; }

/* =====================================================================
   CTA variants — so every page doesn't close with the same panel
   ===================================================================== */
/* full-bleed dark strip (process, case-studies, industries) */
.cta-fullbleed {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 160% at 85% 120%, rgba(225, 24, 182, 0.4), transparent 60%),
    linear-gradient(135deg, #1a0a22, #0a0710);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: clamp(56px, 8vw, 96px); color: #f4f1f8;
}
.cta-fullbleed .inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.cta-fullbleed h2 { font-family: var(--font-d); font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; max-width: 18ch; text-wrap: balance; }
.cta-fullbleed p { color: var(--text-2); margin-top: 12px; max-width: 46ch; }
.cta-fullbleed .hero-actions { margin-top: 0; flex: none; }
main:has(.cta-fullbleed) + .footer { margin-top: 0; }

/* ruled "letter" close — plain type, no panel (about, services) */
.cta-letter { border-top: 1px solid var(--line-2); padding-top: clamp(36px, 5vw, 56px); max-width: 760px; }
.cta-letter h2 { font-family: var(--font-d); font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.cta-letter p { color: var(--text-2); margin-top: 14px; max-width: 56ch; }
.cta-letter .links { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }

/* inline ruled row (guide) */
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-block: 1px solid var(--line-2); padding-block: 34px; }
.cta-row h2 { font-family: var(--font-d); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; }
.cta-row p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; max-width: 52ch; }

/* =====================================================================
   INDUSTRIES — editorial directory (no card boxes)
   ===================================================================== */
.ind-list { max-width: 960px; margin-inline: auto; border-top: 1px solid var(--line-2); }
.ind-row {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center;
  gap: clamp(16px, 3vw, 36px); padding: clamp(26px, 3vw, 38px) 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding-left 0.4s var(--ease);
}
.ind-row:hover { background: linear-gradient(90deg, rgba(225, 24, 182, 0.04), transparent 70%); padding-left: 18px; }
.ind-row .n { font-family: var(--font-m); font-size: 13px; font-weight: 600; color: var(--magenta-text); letter-spacing: 0.1em; }
.ind-row .body h3 { font-family: var(--font-d); font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.025em; }
.ind-row .body p { color: var(--text-2); font-size: 14.5px; margin-top: 5px; }
.ind-row .go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); transition: transform 0.4s var(--ease), border-color 0.3s ease, color 0.3s ease, background 0.3s ease; }
.ind-row .go svg { width: 18px; height: 18px; }
.ind-row:hover .go { transform: translateX(4px); border-color: transparent; color: #fff; background: var(--grad); box-shadow: var(--glow-magenta); }

/* =====================================================================
   SOLUTIONS — two-column ruled list
   ===================================================================== */
.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(36px, 5vw, 64px); max-width: 1000px; margin-inline: auto; }
.sol {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
  padding: 24px 0; border-top: 1px solid var(--line);
  transition: color 0.3s ease;
}
.sol .meta { display: flex; flex-direction: column; }
.sol .tag { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.sol h3 { font-family: var(--font-d); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.sol .go { color: var(--magenta); transition: transform 0.35s var(--ease); }
.sol .go svg { width: 17px; height: 17px; }
.sol:hover .go { transform: translateX(5px); }

/* =====================================================================
   Industry-detail "what we build" — numbered editorial (no boxes)
   ===================================================================== */
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(32px, 4vw, 56px); counter-reset: bld; }
.build-item { padding: 26px 0 28px; border-top: 1px solid var(--line); counter-increment: bld; }
.build-item::before { content: "0" counter(bld); display: block; font-family: var(--font-m); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--magenta-text); margin-bottom: 14px; }
.build-item h3 { font-family: var(--font-d); font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.build-item p { font-size: 13.5px; color: var(--text-2); margin-top: 7px; line-height: 1.55; }

/* industry "how we ship" — compact numbered ledger (distinct from the node pipeline) */
.ship-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); max-width: 940px; margin: 0 auto; }
.ship-step { padding-top: 22px; border-top: 1.5px solid; border-image: var(--grad) 1; }
.ship-step .s { font-family: var(--font-m); font-size: 12px; font-weight: 600; color: var(--magenta-text); letter-spacing: 0.14em; }
.ship-step h3 { font-family: var(--font-d); font-size: 17px; font-weight: 600; margin-top: 12px; letter-spacing: -0.015em; }
.ship-step p { color: var(--text-2); font-size: 14px; margin-top: 7px; line-height: 1.55; }

/* "what's quietly costing you" — split ledger */
.cost-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.cost-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.cost-list li:first-child { border-top: 0; }
.cost-list li svg { flex: none; width: 18px; height: 18px; color: var(--magenta); margin-top: 3px; }

/* left-aligned subpage hero variant */
.page-hero.left { text-align: left; }
.page-hero.left .eyebrow { justify-content: flex-start; }
.page-hero.left h1 { margin-inline: 0; }
.page-hero.left .lede { margin-inline: 0; }
.page-hero.left .hero-actions { justify-content: flex-start; }

/* per-page atmosphere — break the identical top-corner glow on every hero */
body.p-services .orb.o1 { left: auto; right: -150px; top: -150px; }
body.p-services .orb.o2 { right: auto; left: -130px; top: 70px; }
body.p-industries .orb.o1 { left: 36%; top: -250px; }
body.p-industries .orb.o2 { right: -200px; top: 150px; }
body.p-solutions .orb.o1 { left: -200px; top: 40px; }
body.p-solutions .orb.o2 { right: 26%; top: -200px; }
body.p-process .orb.o1 { left: -90px; }
body.p-process .orb.o2 { right: auto; left: 42%; top: -120px; }
body.p-pricing .orb.o1 { left: auto; right: 24%; top: -200px; }
body.p-pricing .orb.o2 { right: -110px; top: 30px; }
body.p-about .orb.o1 { left: 18%; top: -220px; }
body.p-case-studies .orb.o2 { right: -120px; top: 220px; }
body.p-guide .orb.o1 { left: -170px; top: -90px; }

/* asymmetric "split" hero (pricing) — leads with a logic panel, not another centered headline */
.page-hero.split { text-align: left; padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero.split .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.page-hero.split .eyebrow { justify-content: flex-start; }
.page-hero.split h1 { margin: 14px 0 0; max-width: none; }
.page-hero.split .lede { margin-inline: 0; }
.hero-aside { border: 1px solid var(--line-2); border-radius: var(--r-l); background: rgba(255, 255, 255, 0.6); padding: clamp(22px, 3vw, 30px); box-shadow: var(--glow-purple); }
.hero-aside .a-eyebrow { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--magenta-text); }
.hero-aside .a-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.hero-aside .a-row:first-of-type { border-top: 0; margin-top: 14px; }
.hero-aside .a-row b { font-family: var(--font-d); font-size: 15px; color: var(--text-1); font-weight: 600; }
.hero-aside .a-row .v { font-family: var(--font-m); font-size: 12.5px; color: var(--magenta-text); white-space: nowrap; font-weight: 600; }
@media (max-width: 880px) { .page-hero.split .container { grid-template-columns: 1fr; } }

/* process fact strip — a different shape than the check-bullet lists */
.factstrip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 4vw, 56px); max-width: 920px; margin: 0 auto; }
.factstrip div { display: flex; gap: 13px; align-items: flex-start; padding: 15px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.factstrip div::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; background: var(--grad); }
@media (max-width: 880px) { .factstrip { grid-template-columns: 1fr; } }

/* =====================================================================
   4-step pipeline (Audit → Roadmap → Build → Run)
   ===================================================================== */
.pipeline-track.four { grid-template-columns: repeat(4, 1fr); }
.pipeline-track.four .pipeline-stage { padding: 0 14px; }
.pipeline-track.four .pipeline-stage h3 { font-size: 19px; }

/* book-a-call button — outlined w/ calendar glyph, distinct from primary */
.btn-call { border: 1px solid var(--line-2); color: var(--text-1); background: rgba(255,255,255,0.5); }
.btn-call:hover { border-color: var(--magenta); color: var(--magenta); transform: translateY(-2px); }
.btn-call svg { width: 16px; height: 16px; }
.band-dark .btn-call, .cta-band .btn-call, .cta-fullbleed .btn-call {
  background: rgba(255,255,255,0.04); color: #f4f1f8; border-color: rgba(255,255,255,0.18);
}
.band-dark .btn-call:hover, .cta-band .btn-call:hover, .cta-fullbleed .btn-call:hover {
  background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.32);
}

/* =====================================================================
   Lead popup (multi-step) — "Request an Audit"
   ===================================================================== */
.popup-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(10, 6, 14, 0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.popup-overlay.open { opacity: 1; visibility: visible; }
.popup {
  width: min(520px, 100%); position: relative;
  border-radius: var(--r-l);
  background: linear-gradient(180deg, #ffffff, var(--paper));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -30px rgba(117, 24, 136, 0.5);
  padding: clamp(26px, 4vw, 40px);
  transform: translateY(18px) scale(0.98); transition: transform 0.4s var(--ease);
  overflow: hidden;
}
.popup-overlay.open .popup { transform: none; }
.popup::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.popup-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--line-2); transition: color 0.25s ease, border-color 0.25s ease, transform 0.3s ease; }
.popup-close:hover { color: var(--magenta); border-color: var(--magenta); transform: rotate(90deg); }
.popup-close svg { width: 16px; height: 16px; }
.popup .eyebrow { margin-bottom: 12px; }
.popup-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.popup-progress i { height: 4px; flex: 1; border-radius: 2px; background: var(--line-2); transition: background 0.4s ease; }
.popup-progress i.on { background: var(--grad); }
.popup-step { display: none; }
.popup-step.active { display: block; animation: popStepIn 0.4s var(--ease); }
@keyframes popStepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.popup h3 { font-family: var(--font-d); font-size: clamp(20px, 3vw, 26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.popup .sub { color: var(--text-2); font-size: 14.5px; margin-top: 8px; }
.popup .fields { margin-top: 22px; }
.popup .field { margin-bottom: 14px; }
.popup-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.popup-actions .btn { flex: 1; justify-content: center; }
.popup-back { color: var(--text-3); font-family: var(--font-m); font-size: 12px; letter-spacing: 0.04em; padding: 8px 4px; flex: none; }
.popup-back:hover { color: var(--magenta); }
.popup-done { text-align: center; padding: 10px 0; }
.popup-done .check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--grad); color: #fff; box-shadow: var(--glow-magenta); }
.popup-done .check svg { width: 26px; height: 26px; }
.popup-done .links { display: flex; gap: 16px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  .stats-grid, .stats-grid.five { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .stats-grid.five .bigstat .k { font-size: clamp(30px, 4vw, 48px); }
  .trust-grid, .build-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pipeline-track.four { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .pipeline-track.four .pipeline-line { display: none; }
}
@media (max-width: 880px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .svc-grid, .case, .contact-grid, .pricing-grid, .beliefs, .sol-grid, .cost-split { grid-template-columns: 1fr; }
  .pipeline-track { grid-template-columns: 1fr; gap: 40px; }
  .pipeline-line { display: none; }
  .trust-grid, .build-grid { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; }
  .phase .cols { grid-template-columns: 1fr; }
  .cta-fullbleed .inner, .cta-row { flex-direction: column; align-items: flex-start; }
  .ind-row { grid-template-columns: 36px 1fr auto; gap: 16px; }
  .ship-steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .stats-grid, .case-metrics, .footer-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Mobile polish: touch targets, popup, Calendly safe area ---------- */
@media (max-width: 480px) {
  /* Tighten overlay + popup so Calendly iframe has more room on small phones */
  .popup-overlay { padding: 10px; }
  .popup { padding: 22px 18px; border-radius: 18px; }
  .popup-close { top: 10px; right: 10px; width: 36px; height: 36px; }
  /* Ensure 44px+ touch targets everywhere */
  .btn { padding: 14px 22px; min-height: 44px; }
  .btn-lg { padding: 17px 26px; min-height: 48px; font-size: 15.5px; }
  /* Field-row already collapses at 560px — also collapse pricing prow + ind-row meta */
  .ind-row { grid-template-columns: 32px 1fr auto; gap: 12px; }
  /* Smaller hero padding to reclaim vertical real estate */
  .page-hero { padding-top: calc(var(--nav-h) + 36px); padding-bottom: 28px; }
  /* Logo a touch smaller in sticky nav so it never crowds the CTA */
  .brand img { height: 30px; }
  /* Mobile menu link tap targets */
  .mobile-menu a { padding: 12px 16px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
}
/* Prevent any element from causing horizontal scroll on mobile */
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  img, iframe, video { max-width: 100%; height: auto; }
  .calendly-inline-widget { min-width: 0 !important; width: 100% !important; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .reveal-word { opacity: 1; filter: none; transform: none; }
  /* the logo ticker is a gentle, continuous loop — keep it running even here */
  .marquee-row { animation: marqueeSlide 24s linear infinite !important; }
}

/* ============================================================
   EDITS — single-CTA model, one-line process title, pricing
   module, solution examples, secondary link
   ============================================================ */

/* process hero on one line (wraps again on small screens) */
.page-hero h1.nowrap-title { white-space: nowrap; max-width: none; font-size: clamp(22px, 4.3vw, 54px); letter-spacing: -0.045em; }
@media (max-width: 720px) { .page-hero h1.nowrap-title { white-space: normal; } }

/* small secondary CTA link, e.g. "or request an audit directly" */
.cta-secondary { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--font-m); font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-3); transition: color 0.2s var(--ease); }
.cta-secondary:hover { color: var(--magenta-text); }
.cta-secondary .arrow { width: 14px; height: 14px; }

/* pricing: one cohesive module instead of two competing cards */
.price-module { position: relative; max-width: 760px; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); padding: clamp(28px, 4vw, 48px); overflow: hidden; }
.price-module h3 { font-family: var(--font-d); font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.pm-intro { color: var(--text-2); margin-top: 12px; max-width: 60ch; }
.price-rows { margin-top: 24px; border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.prow-k { font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--text-1); }
.prow-v { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.price-cta { display: flex; flex-direction: column; align-items: flex-start; margin-top: 28px; }
.why-audit { margin-top: 26px; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.why-audit b { color: var(--text-1); }
.pm-email { margin-top: 14px; font-family: var(--font-m); font-size: 12.5px; color: var(--text-3); }
.pm-email a { color: var(--magenta-text); }
@media (max-width: 560px) { .prow { grid-template-columns: 1fr; gap: 4px; } }

/* solutions: ornamental "examples of what we can build" */
.examples { max-width: 820px; margin: clamp(48px, 7vw, 88px) auto 0; }
.examples .eyebrow { display: inline-flex; justify-content: flex-start; }
.examples-note { color: var(--text-3); font-family: var(--font-m); font-size: 12.5px; margin-top: 8px; }
.example-list { list-style: none; margin-top: 20px; border-top: 1px solid var(--line); }
.example-list li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; line-height: 1.55; }
.example-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); }
