/* ============================================================
   GrowthScale — Homepage
   Design system: Apple-inspired, light & airy, azure accent
   ============================================================ */

/* ---- Tokens ---- */
:root {
  /* color */
  --blue: #0080ff;
  --blue-600: #0a6fe0;
  --blue-700: #0a5bc0;
  --blue-tint: rgba(0, 128, 255, 0.08);
  --blue-glow: rgba(0, 128, 255, 0.22);

  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --ink: #0b0c0e;
  --text: #1a1c20;
  --muted: #6a7077;
  --muted-2: #a2a8af;
  --line: rgba(11, 12, 14, 0.09);
  --line-soft: rgba(11, 12, 14, 0.055);

  --dark: #0a0c10;
  --dark-2: #11141a;
  --dark-card: #161a21;
  --on-dark: #f2f4f7;
  --on-dark-muted: rgba(242, 244, 247, 0.58);
  --on-dark-line: rgba(255, 255, 255, 0.1);

  /* type */
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step-hero: clamp(44px, 6.6vw, 100px);
  --step-h1: clamp(38px, 4.8vw, 68px);
  --step-h2: clamp(30px, 3.6vw, 52px);
  --step-h3: clamp(21px, 1.9vw, 28px);
  --step-lead: clamp(18px, 1.5vw, 23px);

  /* layout */
  --container: min(1180px, 90vw);
  --container-wide: min(1320px, 93vw);
  --radius: 20px;
  --radius-lg: 30px;
  --radius-sm: 12px;

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--blue); color: #fff; }

/* ---- Typography helpers ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.display {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
.lead {
  font-size: var(--step-lead);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
  text-wrap: pretty;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: 100px;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease-soft), box-shadow 0.4s var(--ease), color 0.3s;
  will-change: transform;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 8px 24px -8px var(--blue-glow);
}
.btn-primary:hover { transform: translateY(-2px); background: #0a74e6; box-shadow: 0 2px 4px rgba(0,0,0,0.14), 0 16px 34px -10px var(--blue-glow); }
.btn-ghost {
  background: rgba(11,12,14,0.04);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(11,12,14,0.07); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4); }
.btn-outline-dark {
  border: 1px solid var(--on-dark-line);
  color: var(--on-dark);
}
.btn-outline-dark:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.btn-sm { padding: 11px 20px; font-size: 14px; }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 15px; color: var(--blue-600);
}
.textlink .arrow { transition: transform 0.4s var(--ease); }
.textlink:hover .arrow { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease-soft), border-color 0.4s, backdrop-filter 0.4s, height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line-soft);
  height: 62px;
}
.nav-inner {
  width: var(--container-wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo img { height: 26px; width: auto; transition: height 0.4s var(--ease); }
.nav.scrolled .nav-logo img { height: 23px; }
.nav-menu { display: flex; gap: 4px; }
.nav-menu a {
  font-size: 15px; font-weight: 500; color: var(--text);
  padding: 8px 14px; border-radius: 100px;
  position: relative; transition: color 0.25s, background 0.25s;
}
.nav-menu a:hover { color: var(--ink); background: rgba(11,12,14,0.04); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { position: relative; padding: clamp(96px, 12vh, 168px) 0; }
.section.tight { padding: clamp(64px, 8vh, 110px) 0; }
.container { width: var(--container); margin: 0 auto; }
.container-wide { width: var(--container-wide); margin: 0 auto; }
.bg-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { font-size: var(--step-h2); }
.section-head .lead { margin-top: 22px; }

/* ---- Reveal animation ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 110px)); padding-bottom: clamp(60px, 8vh, 120px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { font-size: var(--step-hero); margin: 24px 0 0; }
.hero h1 .accent { color: var(--blue); display: block; }
.hero .lead { margin-top: 26px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-microproof {
  margin-top: 44px; display: flex; align-items: center; gap: 16px;
  color: var(--muted); font-size: 14px;
}
.hero-microproof .avatars { display: flex; }
.hero-microproof .avatars span {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg);
  margin-left: -10px; background: linear-gradient(135deg, #d4dde8, #b9c6d6);
}
.hero-microproof .avatars span:first-child { margin-left: 0; }
.hero-microproof strong { color: var(--ink); font-weight: 700; }

/* hero abstract visual */
.hero-visual { position: relative; height: clamp(380px, 44vw, 540px); }
.viz-glow {
  position: absolute; inset: -8% -4% -4% -8%;
  background: radial-gradient(60% 60% at 70% 35%, var(--blue-glow), transparent 70%);
  filter: blur(8px); z-index: 0;
}
.viz-card {
  position: absolute; inset: 6% 0 6% 6%;
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(11,12,14,0.04), 0 40px 80px -36px rgba(11,12,14,0.28);
  overflow: hidden; z-index: 1;
  display: flex; flex-direction: column;
}
.viz-bar { display: flex; align-items: center; gap: 7px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.viz-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e6eb; display: block; }
.viz-bar .viz-url { margin-left: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.viz-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.viz-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.viz-kpi { background: var(--bg-alt); border-radius: 12px; padding: 12px 13px; }
.viz-kpi small { font-size: 10px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.viz-kpi b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; margin-top: 3px; }
.viz-kpi b .up { color: var(--blue); font-size: 13px; }
.viz-chart { flex: 1; position: relative; min-height: 130px; }
.viz-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-bars { position: absolute; inset: auto 0 0 0; height: 62%; display: flex; align-items: flex-end; gap: 9px; padding: 0 2px; }
.viz-bars span { flex: 1; background: linear-gradient(180deg, rgba(0,128,255,0.18), rgba(0,128,255,0.04)); border-radius: 5px 5px 0 0; transform-origin: bottom; transform: scaleY(0); }
.viz-card.in .viz-bars span { transition: transform 1s var(--ease); transform: scaleY(1); }
.viz-trend { stroke: var(--blue); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.viz-card.in .viz-trend { transition: stroke-dashoffset 1.5s var(--ease) 0.2s; stroke-dashoffset: 0; }
.viz-dot { fill: var(--blue); opacity: 0; }
.viz-card.in .viz-dot { transition: opacity 0.4s 1.4s; opacity: 1; }
/* settle: force final state if in-flight transitions get throttled */
.viz-card.snap .viz-bars span,
.viz-card.snap .viz-trend,
.viz-card.snap .viz-dot { transition-duration: 0.001ms !important; }
.viz-card.snap .viz-bars span { transform: scaleY(1) !important; }
.viz-card.snap .viz-trend { stroke-dashoffset: 0 !important; }
.viz-card.snap .viz-dot { opacity: 1 !important; }

.float-chip {
  position: absolute; z-index: 2; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(11,12,14,0.3);
  padding: 13px 16px; display: flex; align-items: center; gap: 11px;
}
.float-chip .dot { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-tint); display: grid; place-items: center; color: var(--blue); font-weight: 800; font-size: 15px; }
.float-chip small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; }
.float-chip b { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.float-chip.c1 { top: 2%; right: -2%; animation: floaty 6s var(--ease-soft) infinite; }
.float-chip.c2 { bottom: 4%; right: 8%; animation: floaty 7s var(--ease-soft) infinite 0.8s; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* ============================================================
   TRUST / METRICS
   ============================================================ */
.trust { padding: clamp(56px,7vh,84px) 0; border-bottom: 1px solid var(--line-soft); }
.trust-label { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 34px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 5vw, 64px); }
.logos .logo-ph {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
  color: var(--muted-2); font-weight: 500;
  opacity: 0.75; transition: opacity 0.3s, color 0.3s; display:flex; align-items:center; gap:8px;
}
.logos .logo-ph::before { content:""; width: 18px; height: 18px; border-radius: 5px; background: currentColor; opacity: 0.5; }
.logos .logo-ph:hover { opacity: 1; color: var(--ink); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(60px,8vh,92px); }
.metric { padding: 8px clamp(18px,2.4vw,38px); border-left: 1px solid var(--line); }
.metric:first-child { border-left: none; padding-left: 0; }
.metric .num { font-size: clamp(40px, 4.4vw, 60px); font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.metric .num .sym { color: var(--blue); }
.metric .label { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ============================================================
   ABOUT / POSITIONING
   ============================================================ */
.about-statement {
  font-size: clamp(26px, 3.1vw, 46px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.22; color: var(--ink);
  max-width: 16ch; text-wrap: balance;
}
.about-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(40px,6vw,90px); align-items: start; }
.about-statement b { color: var(--blue); font-weight: 600; }
.about-right { padding-top: 8px; }
.about-right p { color: var(--muted); font-size: var(--step-lead); line-height: 1.55; }
.about-right p + p { margin-top: 22px; }
.about-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pill { font-size: 14px; font-weight: 500; color: var(--text); padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; transition: border-color 0.3s, color 0.3s; }
.pill:hover { border-color: var(--blue); color: var(--blue-600); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: clamp(50px,6vh,72px); }
.svc {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
  display: flex; flex-direction: column; min-height: 260px;
}
.svc.big { grid-column: span 3; }
.svc.small { grid-column: span 2; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,12,14,0.24); border-color: transparent; }
.svc::after {
  content:""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px var(--blue); opacity: 0; transition: opacity 0.4s;
}
.svc:hover::after { opacity: 1; }
.svc-num { font-family: var(--mono); font-size: 13px; color: var(--muted-2); font-weight: 500; }
.svc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-tint); display: grid; place-items: center; margin-top: 18px; color: var(--blue); transition: background 0.4s, transform 0.5s var(--ease); }
.svc:hover .svc-icon { background: var(--blue); color: #fff; transform: scale(1.05) rotate(-3deg); }
.svc-icon svg { width: 22px; height: 22px; }
.svc h3 { font-size: var(--step-h3); margin-top: 22px; letter-spacing: -0.025em; color: var(--ink); font-weight: 600; }
.svc p { color: var(--muted); margin-top: 10px; font-size: 15.5px; line-height: 1.5; flex: 1; }
.svc .textlink { margin-top: 20px; }
.svc.big p { max-width: 42ch; }

/* ============================================================
   PROCESS (sticky scroll sequence)
   ============================================================ */
.process { background: var(--bg-alt); }
.process-sticky { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 90px 0; }
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 48px; flex-wrap: wrap; }
.process-head h2 { font-size: var(--step-h2); color: var(--ink); }
.process-progress { width: 100%; height: 2px; background: var(--line); border-radius: 2px; position: relative; margin-bottom: 40px; }
.process-progress .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--blue); border-radius: 2px; transition: width 0.2s linear; }
.process-track { display: flex; gap: 20px; }
.pstep {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; min-height: 290px; display: flex; flex-direction: column;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s, background 0.4s;
  position: relative;
}
.pstep .pnum { font-family: var(--mono); font-size: 13px; color: var(--muted-2); font-weight: 600; letter-spacing: 0.05em; }
.pstep .pdot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted-2); margin: 22px 0; transition: all 0.4s; }
.pstep h3 { font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.pstep p { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 10px; flex: 1; }
.pstep.active { transform: translateY(-10px); box-shadow: 0 30px 60px -28px rgba(0,128,255,0.4); border-color: transparent; }
.pstep.active .pnum { color: var(--blue); }
.pstep.active .pdot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--blue-tint); }
.pstep.active h3 { color: var(--blue-700); }

/* ============================================================
   WHY US (sticky list highlight)
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px,6vw,90px); align-items: start; }
.why-left { position: sticky; top: calc(var(--nav-h) + 40px); }
.why-list { display: flex; flex-direction: column; }
.why-item {
  display: grid; grid-template-columns: 70px 1fr; gap: 24px; align-items: baseline;
  padding: 34px 0; border-top: 1px solid var(--line);
  transition: opacity 0.5s var(--ease);
}
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .wnum { font-family: var(--mono); font-size: 14px; color: var(--muted-2); font-weight: 600; transition: color 0.4s; }
.why-item h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); transition: color 0.4s; }
.why-item p { color: var(--muted); margin-top: 10px; font-size: 16px; line-height: 1.55; max-width: 52ch; }
.why-item.active .wnum { color: var(--blue); }
.why-item.active h3 { color: var(--blue-700); }

/* ============================================================
   RESULTS / CASE STUDIES
   ============================================================ */
.results-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; margin-top: clamp(50px,6vh,72px); }
.case {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: #fff; display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -34px rgba(11,12,14,0.3); }
.case.c-a { grid-column: span 7; }
.case.c-b { grid-column: span 5; }
.case.c-c { grid-column: span 5; }
.case.c-d { grid-column: span 7; }
.case-media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(11,12,14,0.035) 0 2px, transparent 2px 11px),
    linear-gradient(135deg, #eef1f5, #e3e8ee);
  display: grid; place-items: center;
}
.case.c-b .case-media, .case.c-c .case-media { aspect-ratio: 16/11; }
.case-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.6s var(--ease);
}
.case:hover .case-img { transform: scale(1.04); }
.case-media .ph-tag {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.03em; white-space: nowrap;
  background: rgba(255,255,255,0.7); padding: 6px 11px; border-radius: 7px; border: 1px solid var(--line-soft);
}
.case-badge { position: absolute; top: 16px; left: 16px; font-size: 12px; font-weight: 600; color: var(--blue-600); background: #fff; padding: 7px 13px; border-radius: 100px; border: 1px solid var(--line); white-space: nowrap; }
.case-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 4px; }
.case-body .ctag { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.case-body h3 { font-size: clamp(20px,1.9vw,26px); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin-top: 8px; }
.case-stats { display: flex; gap: 30px; margin-top: 20px; }
.case-stats .cs b { font-size: clamp(26px,2.6vw,34px); font-weight: 700; letter-spacing: -0.04em; color: var(--blue); display: block; line-height: 1; }
.case-stats .cs small { font-size: 13px; color: var(--muted); margin-top: 7px; display: block; }

/* ============================================================
   AI AUTOMATION (dark framed module)
   ============================================================ */
.ai-wrap { padding: clamp(60px,8vh,110px) 0; }
.ai-panel {
  background: var(--dark); border-radius: clamp(24px, 3vw, 40px); overflow: hidden;
  padding: clamp(46px, 6vw, 84px); position: relative; color: var(--on-dark);
}
.ai-panel::before {
  content:""; position: absolute; top: -30%; right: -10%; width: 60%; height: 120%;
  background: radial-gradient(circle, var(--blue-glow), transparent 65%); pointer-events: none;
}
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,5vw,72px); align-items: center; position: relative; }
.ai-copy .eyebrow { color: #4da6ff; }
.ai-copy .eyebrow::before { background: #4da6ff; }
.ai-copy h2 { font-size: var(--step-h2); color: #fff; letter-spacing: -0.035em; line-height: 1.05; margin-top: 22px; }
.ai-copy p { color: var(--on-dark-muted); font-size: var(--step-lead); line-height: 1.55; margin-top: 22px; max-width: 46ch; }
.ai-feats { display: flex; flex-direction: column; gap: 4px; margin-top: 30px; }
.ai-feat { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--on-dark-line); }
.ai-feat .tick { width: 24px; height: 24px; border-radius: 50%; background: rgba(0,128,255,0.2); color: #4da6ff; display: grid; place-items: center; flex-shrink: 0; }
.ai-feat span { font-size: 16px; color: var(--on-dark); font-weight: 500; }
.ai-copy .btn { margin-top: 34px; }

/* automation flow viz */
.flow { background: var(--dark-card); border: 1px solid var(--on-dark-line); border-radius: var(--radius); padding: 28px; }
.flow-title { font-size: 13px; color: var(--on-dark-muted); font-family: var(--mono); margin-bottom: 22px; display: flex; align-items: center; gap: 9px; }
.flow-title .live { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46,204,113,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(46,204,113,0.5);} 70%{ box-shadow: 0 0 0 8px rgba(46,204,113,0);} 100%{ box-shadow:0 0 0 0 rgba(46,204,113,0);} }
.flow-node {
  display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--on-dark-line); border-radius: 13px; padding: 15px 17px; position: relative;
  opacity: 0; transform: translateX(-16px);
}
.ai-panel.in .flow-node { animation: nodeIn 0.6s var(--ease) forwards; }
.ai-panel.in .flow-node:nth-child(2) { animation-delay: 0.15s; }
.ai-panel.in .flow-node:nth-child(4) { animation-delay: 0.3s; }
.ai-panel.in .flow-node:nth-child(6) { animation-delay: 0.45s; }
.ai-panel.in .flow-node:nth-child(8) { animation-delay: 0.6s; }
@keyframes nodeIn { to { opacity: 1; transform: none; } }
.flow-node .fico { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-tint); color: #4da6ff; display: grid; place-items: center; flex-shrink: 0; }
.flow-node b { font-size: 15px; color: #fff; font-weight: 600; white-space: nowrap; }
.flow-node small { display: block; font-size: 12.5px; color: var(--on-dark-muted); margin-top: 2px; }
.flow-node .ftime { margin-left: auto; font-family: var(--mono); font-size: 11px; color: #4da6ff; }
.flow-link { width: 1px; height: 16px; background: var(--on-dark-line); margin: 4px 0 4px 36px; opacity: 0; }
.ai-panel.in .flow-link { animation: nodeIn 0.4s forwards; }
/* settle: force final state if animations get throttled */
.ai-panel.snap .flow-node,
.ai-panel.snap .flow-link { animation: none !important; opacity: 1 !important; transform: none !important; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-band { background: var(--dark); color: var(--on-dark); text-align: center; padding: clamp(90px,13vh,150px) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content:""; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 50% 0%, var(--blue-glow), transparent 60%); pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band .eyebrow { color: #4da6ff; }
.cta-band .eyebrow::before { background: #4da6ff; }
.cta-band h2 { font-size: var(--step-h1); color: #fff; letter-spacing: -0.04em; line-height: 1.05; margin: 22px auto 0; max-width: 18ch; text-wrap: balance; }
.cta-band p { color: var(--on-dark-muted); font-size: var(--step-lead); margin: 24px auto 0; max-width: 50ch; }
.cta-band .hero-cta { justify-content: center; margin-top: 40px; }
.cta-band .cta-note { margin-top: 22px; font-size: 14px; color: var(--on-dark-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: var(--on-dark); padding: clamp(60px,8vh,96px) 0 40px; border-top: 1px solid var(--on-dark-line); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--on-dark-line); }
.footer-brand img { height: 30px; }
.footer-brand p { color: var(--on-dark-muted); font-size: 15px; line-height: 1.55; margin-top: 22px; max-width: 30ch; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--on-dark); font-size: 15px; padding: 7px 0; opacity: 0.82; transition: opacity 0.25s, color 0.25s; }
.footer-col a:hover { opacity: 1; color: #4da6ff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 30px; flex-wrap: wrap; }
.footer-bottom small { color: var(--on-dark-muted); font-size: 13.5px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--on-dark-line); display: grid; place-items: center; color: var(--on-dark); transition: background 0.3s, transform 0.3s; }
.footer-socials a:hover { background: rgba(255,255,255,0.07); transform: translateY(-2px); }

/* ============================================================
   ANNOTATIONS (toggleable UX notes layer)
   ============================================================ */
.notes-toggle {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 600; box-shadow: 0 14px 34px -10px rgba(0,0,0,0.4);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.notes-toggle:hover { transform: translateY(-2px); }
.notes-toggle .sw { width: 34px; height: 20px; border-radius: 100px; background: rgba(255,255,255,0.25); position: relative; transition: background 0.3s; }
.notes-toggle .sw::after { content:""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease); }
body.notes-on .notes-toggle { background: var(--blue); }
body.notes-on .notes-toggle .sw { background: rgba(255,255,255,0.4); }
body.notes-on .notes-toggle .sw::after { transform: translateX(14px); }

/* anchored note pins */
.note { position: absolute; z-index: 60; top: var(--ny, 28px); right: 14px; display: none; }
body.notes-on .note { display: block; }
.note-pin {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 6px 16px -4px var(--blue-glow); cursor: pointer; position: relative; z-index: 2;
}
.note-card {
  position: absolute; top: 0; right: 38px; width: 290px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateX(8px) scale(0.97); transform-origin: top right;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  pointer-events: none;
}
.note:hover .note-card, .note.open .note-card { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.note-card h5 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #4da6ff; margin-bottom: 8px; font-weight: 700; }
.note-card p { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.86); font-weight: 400; }
.note-card p + p { margin-top: 9px; }
.note-card .ntag { display: inline-block; font-family: var(--mono); font-size: 10.5px; color: #4da6ff; border: 1px solid rgba(77,166,255,0.4); padding: 2px 7px; border-radius: 5px; margin-bottom: 10px; }

/* dashed outline for annotated sections when notes on */
body.notes-on [data-note] { outline: 1px dashed rgba(0,128,255,0.35); outline-offset: -1px; }

.notes-hint {
  position: fixed; right: 22px; bottom: 74px; z-index: 200;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 15px; font-size: 13px; color: var(--muted); max-width: 250px;
  box-shadow: 0 18px 40px -16px rgba(11,12,14,0.25);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.35s var(--ease);
}
.notes-hint b { color: var(--ink); }
body.notes-on .notes-hint { opacity: 1; visibility: visible; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- iPad landscape / small laptop ---- */
@media (max-width: 1080px) {
  :root { --nav-h: 66px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 660px; }
  .hero-visual { height: clamp(360px, 58vw, 470px); max-width: 560px; width: 100%; margin: 0 auto; }
  .about-grid, .ai-grid, .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .why-left { position: static; }
  .why-left .lead { max-width: 48ch; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .svc.big { grid-column: span 4; }
  .svc.small { grid-column: span 2; }
  .svc { min-height: 220px; }
  .results-grid > .case { grid-column: span 12 !important; }
  /* process becomes a static stack — drop the tall scroll spacer + pin */
  .process-scroll { height: auto !important; }
  .process-sticky { position: static; min-height: 0; padding: clamp(64px, 9vh, 96px) 0; }
  .process-progress { display: none; }
  .process-track { flex-wrap: wrap; }
  .pstep { flex: 1 1 calc(50% - 10px); min-height: 200px; }
  .pstep.active { transform: none; box-shadow: 0 22px 44px -28px rgba(0,128,255,0.32); }
}

/* ---- iPad portrait ---- */
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 42px 0; }
  .metric { border-left: none; padding-left: 0; }
  .metric:nth-child(even) { border-left: 1px solid var(--line); padding-left: clamp(20px, 5vw, 40px); }
  .process-head { gap: 20px; }
}

/* ---- Phones ---- */
@media (max-width: 760px) {
  .section { padding: clamp(60px, 9vh, 92px) 0; }
  .nav-menu { display: none; }
  .nav-burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: rgba(11,12,14,0.05); color: var(--ink); }
  .nav-actions .btn-primary { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 38px); }
  .hero-visual { height: clamp(330px, 84vw, 430px); }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .about-statement { font-size: clamp(26px, 7.4vw, 36px); }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc.big, .svc.small { grid-column: span 1; }
  .svc { min-height: 0; padding: 26px; }
  .process-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .process-head .lead { max-width: none; }
  .pstep { flex: 1 1 100%; min-height: 0; }
  .case-body { padding: 22px 22px 24px; }
  .case-stats { gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-brand { grid-column: span 2; }
  .hero-microproof { flex-wrap: wrap; }
  .float-chip { padding: 10px 13px; }
  .float-chip .dot { width: 30px; height: 30px; }
  /* notes overlay fits small screens */
  .notes-toggle { right: 16px; bottom: 16px; padding: 11px 15px; }
  .notes-hint { right: 16px; bottom: 66px; max-width: min(72vw, 240px); }
  .note-card { width: min(74vw, 250px); right: 36px; }
}

/* ---- Small phones ---- */
@media (max-width: 440px) {
  :root { --step-hero: clamp(33px, 11vw, 46px); }
  .section-head h2 { font-size: clamp(27px, 8.6vw, 38px); }
  .cta-band h2 { font-size: clamp(29px, 9vw, 40px); }
  .ai-copy h2 { font-size: clamp(28px, 9vw, 40px); }
  .logos { gap: 16px 26px; }
  .metrics { gap: 32px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: span 1; }
  .hero-cta .btn { flex: 1 1 100%; }
}
/* MOBILE FIX — prevent sections from cutting off on phones */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
  }

  section,
  header,
  footer,
  .container,
  .container-wide,
  .section,
  .card,
  .service-card,
  .feature-card,
  .automation-card {
    max-width: 100%;
  }

  .container,
  .container-wide {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ai-automation,
  .automation-section,
  .dark-section,
  .service-section {
    width: 100%;
    overflow: hidden;
  }

  .ai-automation .container,
  .automation-section .container,
  .dark-section .container,
  .service-section .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ai-automation-card,
  .automation-card,
  .dark-card,
  .service-card {
    width: 100%;
    max-width: 100%;
    padding: 32px 24px;
    border-radius: 28px;
    overflow: hidden;
  }

  .feature-row,
  .benefit-row,
  .check-row,
  .automation-feature {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
  }

  .feature-row p,
  .benefit-row p,
  .check-row p,
  .automation-feature p,
  .feature-row span,
  .benefit-row span,
  .check-row span,
  .automation-feature span {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  h1,
  h2,
  h3,
  p {
    max-width: 100%;
  }
}/* HARD MOBILE OVERFLOW FIX */
@media (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    position: relative;
  }

  * {
    box-sizing: border-box !important;
  }

  section,
  header,
  footer,
  main,
  div,
  article {
    max-width: 100% !important;
  }

  .container,
  .container-wide,
  .section-container,
  .wrapper,
  .content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  [class*="grid"],
  [class*="layout"],
  [class*="split"],
  [class*="columns"],
  [class*="row"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 24px !important;
  }

  [class*="card"],
  [class*="panel"],
  [class*="tile"],
  [class*="service"],
  [class*="automation"],
  [class*="Automation"] {
    width: 100% !important;
    max-width: calc(100vw - 36px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }

  [class*="feature"],
  [class*="benefit"],
  [class*="check"],
  li {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  span,
  a,
  li {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  img,
  video,
  canvas,
  svg {
    max-width: 100% !important;
    height: auto !important;
  }
}/* FIX AI AUTOMATION SECTION ON MOBILE */
@media (max-width: 768px) {
  #ai.ai-wrap {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #ai .container-wide {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: hidden !important;
  }

  #aiPanel.ai-panel {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 42px 28px !important;
    border-radius: 32px !important;
    overflow: hidden !important;
  }

  #ai .ai-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 36px !important;
  }

  #ai .ai-copy {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #ai .display {
    font-size: clamp(42px, 11vw, 62px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.055em !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }

  #ai .ai-copy p {
    font-size: 20px !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }

  #ai .ai-feats {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #ai .ai-feat {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #ai .ai-feat span:last-child {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  #ai .tick {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  #ai .ai-flow {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #ai img,
  #ai svg,
  #ai video {
    max-width: 100% !important;
    height: auto !important;
  }


  header a:has(img),
  header a:has(svg),
  .nav a:has(img),
  .nav a:has(svg) {
    width: auto !important;
    max-width: 90px !important;
    overflow: visible !important;
  }

  .nav-inner,
  header .nav-inner,
  .navbar,
  header nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
}/* AI FLOW NODE MOBILE FIX */
@media (max-width: 768px) {
  #ai .flow-node {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 18px !important;
    overflow: hidden !important;
  }

  #ai .flow-node .fico {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }

  #ai .flow-node b,
  #ai .flow-node strong {
    display: block !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  #ai .flow-node p {
    font-size: 15px !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  #ai .flow-node .time,
  #ai .flow-node span:last-child {
    justify-self: end !important;
    align-self: center !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    max-width: fit-content !important;
    margin-left: 8px !important;
  }

  }

  .nav-inner {
    height: 86px !important;
    min-height: 86px !important;
    max-height: 86px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .brand,
  .logo,
  .nav-logo {
    width: auto !important;
    max-width: 78px !important;
    height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
  }

  .brand img,
  .logo img,
  .nav-logo img,
  .brand svg,
  .logo svg,
  .nav-logo svg {
    width: 78px !important;
    max-width: 78px !important;
    height: auto !important;
    max-height: 56px !important;
    object-fit: contain !important;
    display: block !important;
  }

  .nav-links,
  .nav-menu,
  .desktop-nav,
  .nav-actions {
    display: none !important;
  }

  .menu-toggle,
  .hamburger,
  .mobile-menu-toggle {
    display: flex !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px !important;
    margin-left: auto !important;
  }
}/* CLEAN MOBILE NAV FIX */
@media (max-width: 768px) {
  #nav,
  header.nav,
  .nav {
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    padding: 0 18px !important;
    overflow: visible !important;
  }

  #nav .nav-inner,
  .nav-inner {
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    overflow: visible !important;
  }

  #nav .nav-inner > a:first-child,
  #nav .brand,
  #nav .logo,
  #nav .nav-logo,
  .brand,
  .logo,
  .nav-logo {
    width: 62px !important;
    max-width: 62px !important;
    height: auto !important;
    max-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
  }

  #nav .nav-inner > a:first-child img,
  #nav .nav-inner > a:first-child svg,
  #nav .brand img,
  #nav .logo img,
  #nav .nav-logo img,
  #nav .brand svg,
  #nav .logo svg,
  #nav .nav-logo svg,
  .brand img,
  .logo img,
  .nav-logo img,
  .brand svg,
  .logo svg,
  .nav-logo svg {
    width: 62px !important;
    max-width: 62px !important;
    height: auto !important;
    max-height: 52px !important;
    object-fit: contain !important;
    display: block !important;
  }

  #nav .nav-links,
  .nav-links,
  .desktop-nav {
    display: none !important;
  }

  #nav .nav-actions,
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }

  #nav .nav-actions .btn,
  .nav-actions .btn {
    display: none !important;
  }

  #nav .menu-toggle,
  #nav .hamburger,
  #nav .nav-toggle,
  #nav button[aria-label*="menu" i],
  .menu-toggle,
  .hamburger,
  .nav-toggle,
  button[aria-label*="menu" i] {
    display: flex !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px !important;
    margin-left: auto !important;
  }
}/* FINAL MOBILE NAVBAR */
.mobile-menu,
.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  #nav.nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    overflow: visible !important;
  }

  #nav .nav-inner {
    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
    padding: 0 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
  }

  #nav .nav-logo {
    width: 58px !important;
    max-width: 58px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
  }

  #nav .nav-logo img {
    width: 58px !important;
    max-width: 58px !important;
    height: auto !important;
    max-height: 54px !important;
    object-fit: contain !important;
    display: block !important;
  }

  #nav .nav-menu {
    display: none !important;
  }

  #nav .nav-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }

  #nav .nav-actions .btn {
    display: none !important;
  }

  #nav .mobile-menu-btn,
  #nav .nav-burger {
    display: flex !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #f1f2f4 !important;
    color: #111 !important;
    cursor: pointer !important;
    margin-left: auto !important;
  }

  #nav .mobile-menu-btn svg,
  #nav .nav-burger svg {
    width: 24px !important;
    height: 24px !important;
  }

  #nav .mobile-menu {
    display: none !important;
    position: absolute !important;
    top: 82px !important;
    left: 16px !important;
    right: 16px !important;
    z-index: 9998 !important;
    padding: 16px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  #nav .mobile-menu.is-open {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  #nav .mobile-menu a {
    display: block !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
    color: #111 !important;
    text-decoration: none !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
  }

  #nav .mobile-menu a:hover {
    background: #f4f6f8 !important;
  }

  #nav .mobile-menu .mobile-menu-cta {
    margin-top: 8px !important;
    background: #0787ff !important;
    color: white !important;
    text-align: center !important;
    font-weight: 700 !important;
  }
}
/* FIXED NAVBAR — ALWAYS VISIBLE ON SCROLL */
#nav.nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
}

/* Prevent page content from hiding behind the fixed navbar */
body {
  padding-top: 82px !important;
}

@media (max-width: 768px) {
  #nav.nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
  }

  body {
    padding-top: 82px !important;
  }

  #nav .mobile-menu {
    position: fixed !important;
    top: 82px !important;
    left: 16px !important;
    right: 16px !important;
    z-index: 99998 !important;
  }
}
/* FINAL MOBILE IMAGE CARD FIX */
@media (max-width: 768px) {
  .svc,
  .case-card,
  .work-card,
  .project-card,
  .service-card {
    overflow: hidden !important;
  }

  .svc-media,
  .case-media,
  .work-media,
  .project-media,
  .service-media,
  .image-shell,
  .card-image {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .svc-media img,
  .case-media img,
  .work-media img,
  .project-media img,
  .service-media img,
  .image-shell img,
  .card-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }
}
/* FOOTER LOGO SIZE FIX */
.footer .footer-logo,
.footer-logo,
footer .footer-logo,
footer .brand,
footer .logo {
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
  display: block !important;
}

.footer .footer-logo img,
.footer-logo img,
footer .footer-logo img,
footer .brand img,
footer .logo img,
.footer .footer-logo svg,
.footer-logo svg,
footer .footer-logo svg,
footer .brand svg,
footer .logo svg {
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  .footer .footer-logo,
  .footer-logo,
  footer .footer-logo,
  footer .brand,
  footer .logo {
    width: 92px !important;
    max-width: 92px !important;
  }

  .footer .footer-logo img,
  .footer-logo img,
  footer .footer-logo img,
  footer .brand img,
  footer .logo img,
  .footer .footer-logo svg,
  .footer-logo svg,
  footer .footer-logo svg,
  footer .brand svg,
  footer .logo svg {
    width: 92px !important;
    max-width: 92px !important;
    height: auto !important;
  }
}
/* FINAL FOOTER GROWTHSCALE LOGO FIX */
/* FINAL FOOTER LOGO + TEXT LAYOUT FIX */
footer .footer-brand,
footer .footer-logo,
footer .footer-col,
.footer-brand,
.footer-logo {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

footer .footer-brand img,
footer .footer-logo img,
footer img[alt="GrowthScale"],
footer img[src*="logo"] {
  width: 78px !important;
  max-width: 78px !important;
  height: auto !important;
  max-height: 70px !important;
  object-fit: contain !important;
  display: block !important;
}

footer .footer-brand p,
footer .footer-col p,
footer p {
  max-width: 360px !important;
  width: auto !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.55 !important;
}

@media (max-width: 768px) {
  footer .footer-brand,
  footer .footer-logo,
  footer .footer-col,
  .footer-brand,
  .footer-logo {
    width: 100% !important;
    max-width: 100% !important;
  }

  footer .footer-brand img,
  footer .footer-logo img,
  footer img[alt="GrowthScale"],
  footer img[src*="logo"] {
    width: 68px !important;
    max-width: 68px !important;
    height: auto !important;
    max-height: 62px !important;
  }

  footer .footer-brand p,
  footer .footer-col p,
  footer p {
    max-width: 320px !important;
    width: 100% !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.55 !important;
  }
}
/* HERO VISUAL MOBILE CENTER FIX */
@media (max-width: 768px) {
  .hero-visual,
  .hero-media,
  .hero-art,
  .hero-graphic,
  .hero-mockup,
  .hero-card,
  .browser-card,
  .dashboard-card {
    width: 100% !important;
    max-width: calc(100vw - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .hero-visual > *,
  .hero-media > *,
  .hero-art > *,
  .hero-graphic > *,
  .hero-mockup > * {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-visual img,
  .hero-media img,
  .hero-art img,
  .hero-graphic img,
  .hero-mockup img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
  }
}
/* HERO VISUAL CENTER FIX — MOBILE ONLY */
@media (max-width: 768px) {
  #hero .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  #hero .hero-visual {
    position: relative !important;
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: auto !important;
    right: auto !important;
  }

  #hero .hero-visual > div:not(.float-chip) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}@media (max-width: 768px) {
  #hero .hero-visual {
    transform: translateX(-12px);
  }
}
/* HERO VISUAL TRUE CENTER — MOBILE */
@media (max-width: 768px) {
  #hero .hero-visual {
    width: 100% !important;
    max-width: calc(100vw - 40px) !important;
    height: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
    overflow: visible !important;
  }

  #hero .viz-glow {
    left: 0 !important;
    right: 0 !important;
    inset: -4% !important;
  }

  #hero .viz-card {
    left: 0 !important;
    right: 0 !important;
    top: 6% !important;
    bottom: 6% !important;
    inset: 6% 0 6% 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #hero .float-chip.c1 {
    right: -4px !important;
    left: auto !important;
  }

  #hero .float-chip.c2 {
    right: 28px !important;
    left: auto !important;
  }
}
/* FINAL NAV VISIBILITY FIX — DESKTOP + MOBILE */

/* Desktop: show menu links, hide hamburger */
#nav .nav-menu {
  display: flex !important;
}

#nav .nav-actions {
  display: flex !important;
}

#nav .nav-burger,
#nav .mobile-menu-btn {
  display: none !important;
}

/* Mobile: hide desktop menu, show hamburger */
@media (max-width: 768px) {
  #nav .nav-menu {
    display: none !important;
  }

  #nav .nav-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  #nav .nav-actions .btn {
    display: none !important;
  }

  #nav .nav-burger,
  #nav .mobile-menu-btn {
    display: flex !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px !important;
    background: #f1f2f4 !important;
    color: #111 !important;
  }
}
/* FINAL FOOTER LOGO IMAGE FIX */
footer img[alt="GrowthScale"] {
  width: 78px !important;
  max-width: 78px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 768px) {
  footer img[alt="GrowthScale"] {
    width: 68px !important;
    max-width: 68px !important;
    height: auto !important;
  }
}
/* ABSOLUTE FINAL NAVBAR FIX */

/* Desktop / laptop */
@media (min-width: 769px) {
  #nav.nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
    height: 82px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    overflow: visible !important;
  }

  #nav .nav-inner {
    height: 82px !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 32px !important;
  }

  #nav .nav-logo {
    display: flex !important;
    align-items: center !important;
    width: 76px !important;
    max-width: 76px !important;
    flex: 0 0 auto !important;
  }

  #nav .nav-logo img {
    display: block !important;
    width: 76px !important;
    max-width: 76px !important;
    height: auto !important;
  }

  #nav .nav-menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    flex: 1 1 auto !important;
  }

  #nav .nav-menu a {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #111 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }

  #nav .nav-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }

  #nav .nav-actions .btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #nav .nav-burger,
  #nav .mobile-menu-btn,
  #nav .mobile-menu {
    display: none !important;
  }

  body {
    padding-top: 82px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #nav .nav-menu {
    display: none !important;
  }

  #nav .nav-actions .btn {
    display: none !important;
  }

  #nav .nav-burger,
  #nav .mobile-menu-btn {
    display: flex !important;
  }
}