/* ============================================================
   PREDICTAOPS — GLOBAL STYLESHEET
   Brand tokens → reset → base → components → sections
   ============================================================ */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Colours */
  --color-bg:           #0A0A0A;
  --color-surface:      #101319;
  --color-surface-2:    #151B27;
  --color-border:       rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(13, 110, 253, 0.45);

  --color-primary:      #0D6EFD;
  --color-primary-soft: #6EA8FE;
  --color-primary-glow: rgba(13, 110, 253, 0.28);
  --color-primary-dim:  rgba(13, 110, 253, 0.14);
  --color-primary-dark: #0A58CA;

  --color-secondary:    #F5F7FB;
  --color-secondary-dim:#B7C0D1;

  --color-text:         #F5F7FB;
  --color-text-muted:   #8A93A3;
  --color-text-subtle:  #5A6373;

  --color-accent-green: #3DF5A0;
  --color-accent-warn:  #F5A623;

  /* Navbar frosted glass */
  --navbar-frosted-bg:  rgba(10, 10, 10, 0.82);
  --navbar-blur:        12px;

  /* Typography */
  --font-display:       'General Sans', system-ui, sans-serif;
  --font-body:          'Inter', system-ui, sans-serif;

  /* Typography rhythm tokens (Pass 5) */
  --ls-eyebrow:         0.12em;   /* uppercase eyebrow letter-spacing */
  --ls-display-tight:   -0.03em;  /* hero + section titles */
  --ls-display:         -0.02em;  /* card headings */
  --fs-card-heading:    1.5rem;   /* 24px — h3 size for card titles (was 5 different sizes) */
  --fs-card-name:       1.75rem;  /* 28px — for founder name / large card headings */
  --section-pad:        var(--sp-24); /* 96px instead of 128px */

  --fs-xs:    0.75rem;     /* 12px */
  --fs-sm:    0.875rem;    /* 14px */
  --fs-base:  1rem;        /* 16px */
  --fs-md:    1.125rem;    /* 18px */
  --fs-lg:    1.375rem;    /* 22px */
  --fs-xl:    1.75rem;     /* 28px */
  --fs-2xl:   2.25rem;     /* 36px */
  --fs-3xl:   3rem;        /* 48px */
  --fs-4xl:   4rem;        /* 64px */
  --fs-5xl:   5.5rem;      /* 88px */

  /* Spacing */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-10:  2.5rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-20:  5rem;
  --sp-24:  6rem;
  --sp-32:  8rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-pill:9999px;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(13, 110, 253, 0.22);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset,
                 0 4px 32px rgba(0,0,0,0.5);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   150ms;
  --dur-base:   280ms;
  --dur-slow:   500ms;

  /* Layout */
  --container-max:   1320px;
  --container-pad:   var(--sp-8);
  --navbar-height:   72px;
}

/* Breakpoints (reference):
   1440  → max-width: 1439px
   1024  → max-width: 1023px
   768   → max-width: 767px
   375   → max-width: 374px
*/

/* ─── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* Base heading fallbacks — used when a class is missing or fails to apply.
   These guarantee a sane rendering even if a class attribute breaks
   (see: smart-quote bug, Pass 3). All visible headings still get their
   final styling via component classes which override these. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--ls-display);
  color: var(--color-text);
  line-height: 1.2;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-card-heading); }
h4 { font-size: var(--fs-lg); }

/* ─── 3. UTILITIES ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--section-pad); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--color-primary-dim);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-4);
}

.section-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}

.section-header {
  max-width: 42rem;
  margin-bottom: clamp(var(--sp-12), 4vw, var(--sp-16));
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-secondary);
  margin-bottom: var(--sp-3);
}

.section-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 38rem;
  margin-top: var(--sp-2);
}

.section-desc em {
  font-style: italic;
  color: var(--color-secondary);
  opacity: 0.92;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── 4. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              opacity var(--dur-fast);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 0 var(--color-primary-glow);
}
.btn--primary:hover {
  box-shadow: 0 0 28px var(--color-primary-glow);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-border-hover);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn--full { width: 100%; justify-content: center; }

/* ─── 4b. SCROLL PROGRESS (fixed, above navbar) ───────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 950;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: #6c63ff;
}

/* ─── 5. NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--navbar-height);
  transition: background var(--dur-base) var(--ease-out),
              border-bottom var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base);
  border-bottom: 1px solid transparent;
}

/* Transparent by default (over hero) */
.navbar--transparent {
  background: transparent;
}

/* Frosted glass when scrolled */
.navbar--scrolled {
  background: var(--navbar-frosted-bg);
  backdrop-filter: blur(var(--navbar-blur));
  -webkit-backdrop-filter: blur(var(--navbar-blur));
  border-bottom-color: var(--color-border);
}

.navbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.navbar__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.02em;
  transition: opacity var(--dur-fast);
}
.navbar__logo:hover { opacity: 0.85; }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary) 0%, #9b8fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--color-primary-glow);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--dur-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-link:hover { color: var(--color-secondary); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link--cta {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill);
  color: var(--color-secondary);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
  border-color: rgba(13, 110, 253, 0.52);
  background: rgba(13, 110, 253, 0.14);
  color: var(--color-secondary);
}

/* ─── Gradient divider below navbar ─────────────────────── */
.navbar__divider {
  position: fixed;
  top: calc(var(--navbar-height) + 3px);
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245,245,240,0.18) 50%, transparent 100%);
  z-index: 899;
  pointer-events: none;
  transition: opacity var(--dur-base);
}
.navbar--transparent + .navbar__divider { opacity: 0.5; }
.navbar--scrolled + .navbar__divider    { opacity: 0; }

/* Burger */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
}
.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-8);
  gap: var(--sp-4);
  background: var(--navbar-frosted-bg);
  backdrop-filter: blur(var(--navbar-blur));
  -webkit-backdrop-filter: blur(var(--navbar-blur));
  border-top: 1px solid var(--color-border);
}
.mobile-menu.open { display: flex; }

.mobile-link {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--color-text-muted);
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--dur-fast);
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--color-primary); }

/* ─── 6. HERO ───────────────────────────────────────────────── */

/* ── Section wrapper ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(13, 110, 253, 0.24), transparent 42%),
    linear-gradient(180deg, #111319 0%, #0A0A0A 72%);
}

/* ── Background video ── */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background-color: var(--color-bg); /* brand-black fallback to mask the first-paint flash before video paints */
}
.hero__video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 24, 0.36) 0%, rgba(10, 10, 10, 0.78) 100%),
    radial-gradient(circle at 50% 18%, rgba(13, 110, 253, 0.24), transparent 34%),
    rgba(7, 13, 28, 0.32);
  z-index: 1;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* JS-controlled fade */
  filter: hue-rotate(18deg) saturate(0.72) brightness(0.58) contrast(1.04);
}

/* ── Blurred dark shape behind content ── */
.hero__blur-shape {
  position: absolute;
  width: 984px;
  height: 527px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at center, rgba(13, 110, 253, 0.22), rgba(3, 7, 18, 0.94) 60%, #030712 100%);
  filter: blur(82px);
  opacity: 0.96;
  pointer-events: none;
  z-index: 1;
}

/* ── Flex-1 centred body ── */
.hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--navbar-height) + var(--sp-12));
  padding-bottom: var(--sp-8);
  padding-inline: var(--sp-8);
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
}

/* ── Eyebrow / proof line ── */
.hero__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: fadeSlideUp 0.55s var(--ease-out) 0.1s forwards;
}

/* ── Giant display headline ── */
.hero__display {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 220px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.024em;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeSlideUp 0.7s var(--ease-out) 0.25s forwards;
}

.hero__display-plain {
  color: var(--color-secondary);
  display: block;
}

.hero__display-gradient {
  display: block;
  background: linear-gradient(to left, var(--color-primary-soft), #3d8bfd, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Subtitle ── */
.hero__sub {
  font-size: var(--fs-md);
  line-height: 2;
  color: rgba(245, 247, 251, 0.82);
  max-width: 28rem;
  margin-top: 9px;
  opacity: 0;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.55s forwards;
}

/* ── CTA row ── */
.hero__ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 25px;
  opacity: 0;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.75s forwards;
}

/* ── Primary hero button ── */
.btn--hero-primary {
  padding: 20px 29px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 0 32px var(--color-primary-glow);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.btn--hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(13, 110, 253, 0.46);
}

/* ── Ghost hero button (liquid-glass) ── */
.btn--hero-ghost {
  padding: 20px 29px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-secondary);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08);
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn--hero-ghost:hover {
  border-color: rgba(13, 110, 253, 0.45);
  transform: translateY(-2px);
}

/* ── Logo marquee (pinned to bottom) ── */
.hero__marquee-section {
  position: relative;
  z-index: 2;
  padding-bottom: var(--sp-10);
  width: 100%;
  opacity: 0;
  animation: fadeSlideUp 0.6s var(--ease-out) 1s forwards;
}

.hero__marquee-inner {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}

.hero__marquee-label {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: rgba(245, 245, 240, 0.45);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero__marquee-scroll-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hero__marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: heroMarquee 20s linear infinite;
}

.hero__marquee-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.hero__marquee-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.hero__marquee-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: rgba(245, 245, 240, 0.75);
  white-space: nowrap;
}

@keyframes heroMarquee {
  from { transform: translateX(0%);  }
  to   { transform: translateX(-50%); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Liquid-glass utility ─────────────────────────────────── */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0)    40%,
    rgba(255,255,255,0)    60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Reduced-motion overrides ── */
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__display,
  .hero__sub,
  .hero__ctas,
  .hero__marquee-section { opacity: 1; animation: none; }
  .hero__marquee-track { animation-play-state: paused; }
  .hero__video { display: none; }
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .hero__display { font-size: clamp(64px, 12vw, 160px); }
}
@media (max-width: 767px) {
  .hero__display { font-size: clamp(52px, 18vw, 100px); }
  .hero__marquee-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
  }
  .hero__marquee-label { white-space: normal; }
  .hero__marquee-scroll-wrap { width: 100%; }
}

/* ─── 8. PAIN SCROLL ────────────────────────────────────────── */
.pain-scroll {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  /* On desktop the outer section is taller than the viewport so page scrolls */
  padding-block: var(--sp-24);
  overflow: hidden;
}

/* ── Two-column sticky layout ── */
.pain-scroll__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--sp-16);
  align-items: start;
}

/* Sticky left column */
.pain-scroll__left {
  position: sticky;
  top: calc(var(--navbar-height) + var(--sp-12));
  padding-right: var(--sp-8);
}

.pain-scroll__headline {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-secondary);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-8);
}

/* Problem counter  "2 / 5" */
.pain-scroll__counter {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.pain-counter__num {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--color-primary);
  line-height: 1;
  transition: all 0.3s var(--ease-out);
}
.pain-counter__denom {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--color-text-subtle);
}

/* Progress bar */
.pain-scroll__progress {
  height: 2px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.pain-scroll__progress-fill {
  height: 100%;
  width: 20%; /* updated by JS */
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-soft));
  border-radius: var(--radius-pill);
  transition: width 0.4s var(--ease-out);
}

/* ── Right scroll column ── */
.pain-scroll__right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* ── Individual flip card ── */
.pain-card {
  /* reveal: start hidden */
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.55s var(--ease-out),
              transform 0.55s var(--ease-out);
}
.pain-card.revealed {
  opacity: 1;
  transform: none;
}

/* 3-D flip container */
.pain-card__inner {
  position: relative;
  height: 220px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.pain-card.flipped .pain-card__inner {
  transform: rotateY(180deg);
}

/* Both faces share base styles */
.pain-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--color-border);
}

/* Front face */
.pain-card__face--front {
  background: var(--color-surface);
  border-left: 3px solid var(--color-border-hover);
  transition: border-left-color var(--dur-base);
}
.pain-card.flipped .pain-card__face--front {
  border-left-color: var(--color-primary);
}

/* Back face — flipped 180° */
.pain-card__face--back {
  background: linear-gradient(135deg, #0f0d24 0%, #13102e 100%);
  border: 1px solid var(--color-border-hover);
  border-left: 3px solid var(--color-primary);
  transform: rotateY(180deg);
}

/* Card number */
.pain-card__num {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-subtle);
}

/* Problem statement */
.pain-card__statement {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-secondary);
  flex: 1;
  display: flex;
  align-items: center;
  margin-block: var(--sp-3);
}

/* Solution statement (back) */
.pain-card__tag {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.pain-card__solution {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-secondary);
  flex: 1;
  display: flex;
  align-items: center;
  margin-block: var(--sp-3);
  background: linear-gradient(100deg, var(--color-secondary) 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Flip toggle button */
.pain-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.pain-card__face--back .pain-card__toggle { color: var(--color-text-muted); }
.pain-card__toggle:hover { gap: var(--sp-3); opacity: 0.85; }

/* ── Closing statement ── */
.pain-scroll__closing {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
  padding-block: var(--sp-12);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.pain-scroll__closing.revealed {
  opacity: 1;
  transform: none;
}
.pain-closing__accent {
  color: var(--color-primary);
}

/* ── MOBILE — hide desktop layout ── */
.pain-mobile { display: none; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — PAIN SCROLL
───────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .pain-scroll__inner {
    grid-template-columns: 280px 1fr;
    gap: var(--sp-10);
  }
  .pain-scroll__headline { font-size: var(--fs-2xl); }
}

@media (max-width: 767px) {
  /* Hide desktop two-column layout */
  .pain-scroll__inner { display: none; }

  /* Show mobile card stack */
  .pain-mobile {
    display: block;
    max-width: var(--container-max);
    margin-inline: auto;
    padding: var(--sp-10) var(--sp-6);
  }

  .pain-mobile__headline {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--color-secondary);
    margin-top: var(--sp-3);
    margin-bottom: var(--sp-8);
  }

  /* Card stack */
  .pain-mobile__stack {
    position: relative;
    height: 280px;
    margin-bottom: var(--sp-6);
    touch-action: pan-y;
  }

  .pain-mobile__card {
    position: absolute;
    inset: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    display: none;
    flex-direction: column;
    gap: var(--sp-3);
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  }
  .pain-mobile__card.active {
    display: flex;
    opacity: 1;
    transform: none;
  }

  .pain-mobile__solution {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.35;
    margin-top: auto;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--color-border);
  }

  /* Prev / Next nav */
  .pain-mobile__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
  }

  .pain-mobile__nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: var(--fs-base);
    cursor: pointer;
    transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
  }
  .pain-mobile__nav-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-dim);
  }
  .pain-mobile__nav-btn:disabled { opacity: 0.3; cursor: default; }

  /* Pip dots */
  .pain-mobile__pip-track {
    display: flex;
    gap: var(--sp-2);
    align-items: center;
  }
  .pain-mobile__pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-border-hover);
    transition: background var(--dur-fast), width var(--dur-fast);
  }
  .pain-mobile__pip.active {
    width: 20px;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
  }

  .pain-mobile__closing {
    font-size: var(--fs-lg);
    padding-block: var(--sp-6);
  }
}

/* ─── 9. WHAT WE DO — TABS ──────────────────────────────────── */

/* ── Tab bar ── */
.wwd__tabs {
  position: relative;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--sp-10);
}

.wwd__tab {
  background: transparent;
  border: none;
  color: var(--color-text-subtle);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: var(--sp-4) var(--sp-8);
  cursor: pointer;
  transition: color var(--dur-base);
  position: relative;
  z-index: 1;
}
.wwd__tab:hover  { color: var(--color-secondary); }
.wwd__tab.active { color: var(--color-secondary); }

/* Sliding indigo underline indicator */
.wwd__indicator {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  transition: left 0.35s var(--ease-out), width 0.35s var(--ease-out);
  pointer-events: none;
}

/* ── Panel viewport: clips horizontal slide ── */
.wwd__viewport {
  overflow: hidden;
  position: relative;
}

/* Stack panels side-by-side; JS slides the container */
.wwd__panel {
  display: none;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.wwd__panel.active {
  display: block;
  opacity: 1;
  transform: none;
}
/* Slide-in from left when going backwards */
.wwd__panel.slide-left {
  transform: translateX(-40px);
}

/* ── Panel layout: two columns ── */
.wwd__panel-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding-block: var(--sp-6);
}

.wwd__desc {
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
}

.wwd__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.wwd__bullets li {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  padding-left: var(--sp-6);
  position: relative;
}
.wwd__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ── Graphic container ── */
.wwd__graphic {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-6);
  overflow: hidden;
}

/* ─── Strategy: Timeline ─── */
.tl {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  width: 100%;
}

/* Main progress track */
.tl__track {
  position: relative;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.tl__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.tl__fill.animated { width: 100%; }

/* Milestone dots row */
.tl__weeks {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-2);
}

.tl__milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.tl__milestone.popped {
  opacity: 1;
  transform: none;
}

.tl__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border-hover);
  border: 2px solid var(--color-surface);
  transition: background 0.3s;
}
.tl__dot--final {
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  box-shadow: 0 0 12px 3px rgba(13, 110, 253, 0.45);
}
.tl__milestone.popped .tl__dot { background: var(--color-primary); }

.tl__wk  { font-size: 10px; color: var(--color-text-subtle); font-weight: 600; }
.tl__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Week numbers row */
.tl__week-nums {
  display: flex;
  justify-content: space-between;
  padding-top: var(--sp-2);
}
.tl__week-nums span {
  font-size: 9px;
  color: var(--color-text-subtle);
  opacity: 0.5;
}

/* ─── Build: Deploy-flow diagram ─── */
.deploy-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

.df__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  min-width: 80px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.df__node.popped { opacity: 1; transform: scale(1); }

.df__node--model  { border-color: var(--color-border-hover); }
.df__node--frontend {
  border-color: var(--color-primary);
  box-shadow: 0 0 18px 0 rgba(13, 110, 253, 0.24);
}

.df__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.df__icon svg { width: 100%; height: 100%; }
.df__label { font-size: 11px; font-weight: 700; color: var(--color-text-muted); }

/* Animated arrows between nodes */
.df__arrow {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}
.df__pulse {
  position: absolute;
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  animation: pulseFlow 1.8s ease-in-out infinite;
}
.df__arrow--2 .df__pulse { animation-delay: 0.6s; }
.df__arrow--3 .df__pulse { animation-delay: 1.2s; }

@keyframes pulseFlow {
  0%   { left: -40px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: calc(100% + 40px); opacity: 0; }
}

/* Stack tech chips */
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}
.stack-chip {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: var(--color-primary-dim);
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.stack-chip.popped { opacity: 1; transform: none; }

/* ─── Operate: Loop ring ─── */
.loop-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  margin-inline: auto;
}

.loop-ring__track {
  position: absolute;
  inset: 0;
}

.loop-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.loop-ring__bg {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 4;
}
.loop-ring__fill {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px rgba(13, 110, 253, 0.5));
}
.loop-ring__fill.animated { stroke-dashoffset: 0; }

/* Center label */
.loop-ring__center {
  position: relative;
  z-index: 1;
  text-align: center;
}
.loop-ring__label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* Orbiting node dots */
.loop-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-lg);
  padding: var(--sp-2) var(--sp-3);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.loop-node.popped { opacity: 1; transform: scale(1); }
.loop-node__icon {
  display: flex;
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}
.loop-node__icon svg { width: 100%; height: 100%; }
.loop-node small { font-size: 9px; color: var(--color-text-subtle); font-weight: 700; }

/* Positioning at clock positions */
.loop-node--1 { top: -10px;    left: 50%; transform: translateX(-50%) scale(0.7); }
.loop-node--2 { bottom: 10px;  left: -10px; }
.loop-node--3 { bottom: 10px;  right: -10px; }

.loop-node--1.popped { transform: translateX(-50%) scale(1); }

/* Subtle orbit spin animation on the fill ring */
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
.loop-ring__fill.animated {
  animation: orbitSpin 6s linear infinite;
  transform-origin: 100px 100px;
  transform-box: fill-box;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .wwd__panel-body {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
  .wwd__graphic { min-height: 220px; }
}
@media (max-width: 767px) {
  .wwd__tab { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-base); }
  .deploy-flow {
    gap: var(--sp-1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--sp-2);
    margin-inline: calc(-1 * var(--container-pad));
    padding-inline: var(--container-pad);
    scrollbar-width: thin;
  }
  .df__node {
    flex-shrink: 0;
    min-width: 68px;
    padding: var(--sp-3) var(--sp-4);
  }
  .df__arrow {
    flex-shrink: 0;
    min-width: 20px;
    flex: 0 0 24px;
  }
  .df__label { font-size: 10px; text-align: center; }
}

@media (max-width: 400px) {
  .df__node { min-width: 62px; padding: var(--sp-2) var(--sp-3); }
  .df__icon { width: 22px; height: 22px; }
}

/* ─── 10. WHY PREDICTAOPS ────────────────────────────────────── */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-16);
  padding-top: var(--sp-4);
}

/* Individual column — no border, wide breathing room */
.why__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
  /* Scroll-reveal starting state */
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.why__col.revealed {
  opacity: 1;
  transform: none;
}

/* SVG icon — same stroke language as service tiles */
.why__icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Thin indigo accent line — animates from 0 to full width on reveal */
.why__accent-line {
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  transition: width 0.7s var(--ease-out);
  transition-delay: 0.15s;
}
.why__col.revealed .why__accent-line {
  width: 40px;
}

/* Heading */
.why__heading {
  font-family: var(--font-display);
  font-size: var(--fs-card-heading);
  font-weight: 700;
  letter-spacing: var(--ls-display);
  line-height: 1.25;
  color: var(--color-secondary);
}

/* Body */
.why__body {
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 36ch;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .why__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
  }
}
@media (max-width: 767px) {
  .why__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
  .why__body { max-width: none; }
}

/* ─── 11. SERVICES GRID ─────────────────────────────────────── */
.svc__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  max-width: 980px;
  margin: 0 auto;
}

.svc-tile {
  position: relative;
  background: #111111;
  border: 1px solid rgba(13, 110, 253, 0.22);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transition:
    transform   0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow  0.35s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.svc-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

@media (hover: hover) {
  .svc-tile:hover,
  .svc-tile:focus-within {
    transform: translateY(-4px);
    border-color: rgba(13, 110, 253, 0.48);
    box-shadow:
      0 0 0 1px rgba(13, 110, 253, 0.14),
      0 16px 48px rgba(0,0,0,0.45),
      0 0 32px rgba(13, 110, 253, 0.1);
  }
  .svc-tile:hover::before,
  .svc-tile:focus-within::before { opacity: 1; }
}

.svc-tile__top {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.svc-tile__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  padding: var(--sp-2);
  flex-shrink: 0;
}
.svc-tile__icon svg { width: 22px; height: 22px; }

.svc-tile__lead {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.svc-tile__name {
  font-family: var(--font-display);
  font-size: var(--fs-card-heading);
  font-weight: 700;
  letter-spacing: var(--ls-display);
  color: var(--color-secondary);
  line-height: 1.2;
}

.svc-tile__tagline {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.svc-tile__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.svc-tile__includes {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.svc-tile__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.svc-tile__bullets li {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  padding-left: var(--sp-5);
  position: relative;
}
.svc-tile__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

.svc-tile__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.svc-tile__cta:hover { gap: var(--sp-3); color: var(--color-primary-soft); }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .svc__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
}
@media (max-width: 767px) {
  .svc__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .svc-tile {
    padding: var(--sp-6);
    gap: var(--sp-5);
  }
  .svc-tile__body { padding-top: var(--sp-4); }
}

/* ─── 12. CASE STUDIES CAROUSEL ─────────────────────────────── */

/* Sub-headline under section title */
.cs__sub {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  margin-top: var(--sp-4);
  max-width: 52ch;
}

/* Full-width outer: stretches edge-to-edge */
.cs__outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: var(--sp-12);
  padding-bottom: var(--sp-10);
}

/* Draggable track — flex row of slides */
.cs__track {
  display: flex;
  gap: var(--sp-5);
  /* start with left padding so first slide aligns with container */
  padding: 0 calc((100vw - min(1280px, 90vw)) / 2);
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: grab;
  user-select: none;
}
.cs__track.dragging {
  transition: none;
  cursor: grabbing;
}

/* Each slide */
.cs__slide {
  position: relative;
  flex: 0 0 72vw;
  max-width: 900px;
  min-height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--slide-bg, #111118);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cs__slide.cs-active {
  border-color: rgba(13, 110, 253, 0.28);
  box-shadow: 0 0 40px rgba(13, 110, 253, 0.1);
}

/* Teaser slide — dimmer */
.cs__slide--teaser { opacity: 0.6; }

/* Slide inner content */
.cs__slide-inner {
  position: relative;
  z-index: 1;
  padding: var(--sp-10) var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  flex: 1;
}

/* Meta row: badge + status */
.cs__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.cs__badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
}

.cs__status {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cs__status--live {
  color: #4ade80;
}

/* Client name */
.cs__client {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-secondary);
  line-height: 1.1;
}
.cs__location {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Positioning statement */
.cs__position {
  font-size: var(--fs-lg);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 0 var(--sp-4);
}

.cs__metric {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin: 0 0 var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cs__metric-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--sp-2);
}

.cs__metric-note {
  display: block;
  margin-top: var(--sp-2);
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

.cs__slide--teaser .cs__metric {
  margin-bottom: var(--sp-4);
}

/* Outcome bar (distinct from paragraph .cs__metric above) */
.cs__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cs__metrics .cs__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  max-width: none;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.cs__metric-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cs__metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  color: var(--color-secondary);
}

/* Bullet list */
.cs__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: 0;
}
.cs__bullets li {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  line-height: 1.55;
  padding-left: var(--sp-6);
  position: relative;
}
.cs__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Teaser note */
.cs__teaser-note {
  font-size: var(--fs-sm);
  color: var(--color-text-subtle);
  font-style: italic;
  margin-top: var(--sp-2);
}

/* Decoration orbs */
.cs__slide-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cs__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  background: var(--orb-color, rgba(13, 110, 253, 0.18));
}
.cs__orb--1 { width: 400px; height: 400px; right: -120px; top: -100px; }
.cs__orb--2 { width: 250px; height: 250px; right: 60px; bottom: -80px; }

/* ── Arrow buttons ── */
.cs__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15,12,30,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(13, 110, 253, 0.3);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.cs__arrow svg { width: 20px; height: 20px; }
.cs__arrow:hover {
  background: rgba(13, 110, 253, 0.2);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.08);
}
.cs__arrow:disabled { opacity: 0.25; pointer-events: none; }

.cs__arrow--prev { left: 24px; }
.cs__arrow--next { right: 24px; }

/* ── Pip indicators ── */
.cs__pips {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.cs__pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-hover);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}
.cs__pip.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: var(--radius-pill);
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .cs__slide { flex: 0 0 85vw; min-height: 420px; }
  .cs__slide-inner { padding: var(--sp-8) var(--sp-8); }
  .cs__client { font-size: var(--fs-2xl); }
}
@media (max-width: 767px) {
  .cs__slide { flex: 0 0 92vw; min-height: 380px; }
  .cs__slide-inner { padding: var(--sp-6) var(--sp-6); }
  .cs__client { font-size: var(--fs-xl); }
  .cs__position { font-size: var(--fs-base); }
  .cs__arrow { display: none; }
}

/* ─── 10. PROCESS ───────────────────────────────────────────── */

.process { background: var(--color-surface-2); }

.process .section-header {
  margin-bottom: clamp(var(--sp-10), 3vw, var(--sp-12));
}

.process__steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.process-step {
  flex: 1;
  position: relative;
  padding: var(--sp-8) var(--sp-7);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}
@media (hover: hover) {
  .process-step:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-3px);
  }
}

.process-step__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-primary-dim);
  letter-spacing: -0.05em;
  margin-bottom: var(--sp-5);
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(13, 110, 253, 0.16) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-step__content h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-secondary);
  margin-bottom: var(--sp-3);
}

.process-step__content p {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.process__connector {
  width: 32px;
  height: 2px;
  background: linear-gradient(to right, var(--color-border), var(--color-primary-dim), var(--color-border));
  align-self: center;
  flex-shrink: 0;
}

/* ─── 11. AUDIT ─────────────────────────────────────────────── */
.audit__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.audit__list {
  margin-block: var(--sp-6) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.audit__list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* Audit card visual mock *t quiz + email gate ─────────────────────────────── */
.quiz {
  background: var(--color-surface-2);
}

.quiz__sub {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  margin-top: var(--sp-3);
  max-width: 42rem;
}

.quiz__card {
  max-width: 36rem;
  margin-inline: auto;
  margin-top: var(--sp-10);
  padding: var(--sp-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.quiz__progress {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}

.quiz__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-soft));
  transition: width 0.35s var(--ease-out);
}

.quiz__progress-label {
  font-size: var(--fs-sm);
  color: var(--color-text-subtle);
  margin-bottom: var(--sp-6);
}

.quiz__step {
  display: none;
}

.quiz__step.active {
  display: block;
}

.quiz__q {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: var(--sp-5);
  line-height: 1.35;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.quiz__opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.quiz__opt:hover {
  border-color: var(--color-border-hover);
  color: var(--color-secondary);
}

.quiz__result {
  padding-top: var(--sp-2);
}

.quiz__result-tier {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}

.quiz__result-headline {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}

.quiz__result-body {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.quiz__email-gate {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.quiz__email-input {
  box-sizing: border-box;
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: var(--color-secondary);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast);
}

.quiz__email-input::placeholder {
  color: var(--color-text-subtle);
}

.quiz__email-input:focus {
  outline: none;
  border-color: var(--color-border-hover);
}

.quiz__email-input--error {
  border-color: #f87171;
}

.quiz__email-submit {
  width: 100%;
  justify-content: center;
}

.quiz__email-note {
  margin: var(--sp-3) 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.quiz__result-cta {
  margin-top: var(--sp-5);
  width: 100%;
  justify-content: center;
}

.quiz__restart {
  display: block;
  margin-top: var(--sp-6);
  width: 100%;
  padding: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiz__restart:hover {
  color: var(--color-secondary);
}

.quiz__disclaimer {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-subtle);
  margin-top: var(--sp-8);
}

/* ─── Engagement + FAQ (conversion clarity) ─────────────────── *─── Testimonials / client outcomes (interim) ─────────────── */
.testimonials {
  background: var(--color-bg);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.testi-card {
  padding: var(--sp-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.testi-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--color-secondary);
}

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

.faq {
  background: var(--color-surface-2);
}

.faq__list {
  max-width: 42rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}

.faq__q {
  cursor: pointer;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-secondary);
  padding: var(--sp-5) var(--sp-6);
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__item[open] .faq__q {
  border-bottom: 1px solid var(--color-border);
}

.faq__a {
  margin: 0;
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ─── 12. FOUNDER + CONTACT ─────────────────────────────────── */
.founder-contact {
  background: var(--color-surface-2);
}

.founder-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: stretch;
}

.founder-card {
  display: flex;
  gap: var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.founder-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.founder-card__avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.founder-card__photo {
  display: none;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.founder-card__avatar-wrap:has(.founder-card__photo[src]:not([src=""])):not(:has(.founder-card__photo--broken))
  .founder-card__photo:not(.founder-card__photo--broken) {
  display: block;
}

.founder-card__avatar-wrap:has(.founder-card__photo[src]:not([src=""])):not(:has(.founder-card__photo--broken))
  .founder-card__avatar-fallback {
  display: none;
}

.founder-card__photo.founder-card__photo--broken {
  display: none !important;
}

.founder-card__avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #9b8fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.founder-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-card-name);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--sp-1);
  letter-spacing: var(--ls-display);
}

.founder-card__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--sp-2);
}

.founder-card__linkedin {
  display: block;
  margin-top: 12px;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-fast), opacity var(--dur-fast);
}

.founder-card__linkedin:hover {
  color: #a89fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.founder-card__bio {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.founder-contact__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  justify-content: center;
}

.founder-contact__btn {
  min-height: 56px;
  font-size: var(--fs-md);
  font-weight: 600;
  padding: var(--sp-4) var(--sp-8);
}

/* Calendly modal (Framer-style overlay) */
body.modal-open {
  overflow: hidden;
}

.calendly-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.calendly-modal[hidden] {
  display: none;
}

.calendly-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.calendly-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  animation: calendly-modal-in var(--dur-base) var(--ease-out) both;
}

@keyframes calendly-modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.calendly-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.calendly-modal__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-secondary);
}

.calendly-modal__close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.calendly-modal__close:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.calendly-modal__frame {
  flex: 1;
  width: 100%;
  min-height: 560px;
  border: 0;
  background: #fff;
}

/* ─── 14. FOOTER ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-8);
}

.footer--bar {
  padding-top: 0;
  padding-bottom: 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-8);
  padding-block: var(--sp-5);
}

.footer__bar-meta {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin: 0;
}

.footer__bar-meta a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast);
}
.footer__bar-meta a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer__bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
}

.footer__icon-link {
  display: flex;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--dur-fast), transform var(--dur-fast);
}
.footer__icon-link:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.footer__privacy {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--dur-fast);
}
.footer__privacy:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ─── 15. RESPONSIVE ────────────────────────────────────────── */

/* ── 1440 cap — no changes needed above max-width ── */
@media (max-width: 1439px) {
  :root {
    --fs-5xl:  4.5rem;
    --fs-4xl:  3.5rem;
  }
}

/* ── 1024 ── */
@media (max-width: 1023px) {
  :root {
    --fs-5xl:  3.5rem;
    --fs-4xl:  2.75rem;
    --fs-3xl:  2.25rem;
  }

  .section-title { font-size: var(--fs-3xl); }

  .services__grid { grid-template-columns: 1fr; }
  .service-card--featured {
    grid-column: span 1;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .service-card--featured .service-card__title { grid-column: 2; grid-row: 1; }
  .service-card--featured .service-card__icon  { grid-column: 2; grid-row: 1; justify-self: start; margin-bottom: 0; }
  .service-card--featured .service-card__desc  { grid-column: 1 / 3; grid-row: 3; }
  .service-card--featured .service-card__list  { grid-column: 1 / 3; grid-row: 4; }
  .service-card--featured .service-card__link  { grid-column: 1 / 3; grid-row: 5; }

  .work__grid { grid-template-columns: 1fr 1fr; }
  .case-card--wide {
    grid-column: span 2;
  }
  .case-card--wide .case-card__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .case-card--wide .case-card__tags   { grid-column: 1; grid-row: 1; }
  .case-card--wide .case-card__title  { grid-column: 1; grid-row: 2; font-size: var(--fs-xl); }
  .case-card--wide .case-card__desc   { grid-column: 1; grid-row: 3; }
  .case-card--wide .case-card__metrics { grid-column: 1; grid-row: 4; flex-direction: row; }

  .process__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
  }
  .process__connector { display: none; }
  .process-step { padding: var(--sp-6); }

  .audit__inner { grid-template-columns: 1fr; gap: var(--sp-10); }
  .audit__visual { order: -1; }

  .founder-contact__grid { grid-template-columns: 1fr; gap: var(--sp-10); }
}

/* ── 768 ── */
@media (max-width: 767px) {
  :root {
    --fs-5xl:  2.75rem;
    --fs-4xl:  2.25rem;
    --sp-32:   var(--sp-16);
    --container-pad: var(--sp-4);
  }

  .navbar__inner { grid-template-columns: 1fr auto; }
  .navbar__links { display: none; }
  .navbar__right .nav-link--cta { display: none; }
  .navbar__burger { display: flex; }

  .hero__stats {
    flex-wrap: wrap;
    gap: var(--sp-6);
  }
  .stat__divider { display: none; }

  .section-title { font-size: var(--fs-2xl); }

  .services__grid { grid-template-columns: 1fr; }
  .service-card--featured {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .service-card--featured .service-card__icon  { grid-column: 1; grid-row: 1; justify-self: start; }
  .service-card--featured .service-card__index { display: none; }
  .service-card--featured .service-card__title { grid-column: 1; grid-row: 2; }
  .service-card--featured .service-card__desc  { grid-column: 1; grid-row: 3; }
  .service-card--featured .service-card__list  { grid-column: 1; grid-row: 4; }
  .service-card--featured .service-card__link  { grid-column: 1; grid-row: 5; }

  .work__grid { grid-template-columns: 1fr; }
  .case-card--wide { grid-column: span 1; }
  .case-card--wide .case-card__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .case-card--wide .case-card__metrics { flex-direction: row; flex-wrap: wrap; }

  .process__steps { grid-template-columns: 1fr; gap: var(--sp-3); }
  .process-step { padding: var(--sp-6) var(--sp-5); }
  .process-step__content p { font-size: var(--fs-sm); }

  .founder-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__bar-actions { justify-content: center; }
}

/* ── 375 ── */
@media (max-width: 374px) {
  :root {
    --fs-5xl:  2.25rem;
    --fs-4xl:  2rem;
    --fs-2xl:  1.75rem;
  }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ─── 16. SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-text-subtle); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ─── 17. FOCUS RING (accessibility) ────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Phase 1 additions — May 2026 ───────────────────────────── */

.hero__proof-strip {
  font-size: var(--fs-xs);
  letter-spacing: 0.07em;
  color: rgba(245, 245, 240, 0.40);
  text-align: center;
  margin-top: var(--sp-5);
  line-height: 1.6;
}
.pain-scroll__intro,
.pain-mobile__intro {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-4);
}
/* Why Us — base rule already sets 3 columns; no desktop override needed (was 4 in Pass 4, now 3 in Pass 5) */

/* ── Phase 2 — PRISTINE flagship + LexKit secondary ─────────── */

.proof-section { }

.cs-flagship {
  position: relative;
  background: linear-gradient(135deg, #130a1a 0%, #1a0d22 60%, #0a0a0a 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--sp-8);
}

.cs-flagship__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(168,85,247,0.12) 0%, transparent 70%);
}

.cs-flagship__inner {
  position: relative;
  z-index: 1;
  padding: var(--sp-10) var(--sp-10);
}

.cs-flagship__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.cs-flagship__client {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: var(--ls-display);
  color: var(--color-secondary);
  margin-bottom: var(--sp-3);
  line-height: 1.15;
}

.cs-flagship__summary {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: rgba(245, 245, 240, 0.7);
  max-width: 52rem;
  margin-bottom: var(--sp-8);
}

.cs-flagship__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  padding: var(--sp-6);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
}

.cs-flagship__stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.cs-flagship__stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.cs-flagship__stat-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.cs-flagship__bullets {
  margin-bottom: var(--sp-6);
}

/* Responsive */
@media (max-width: 1023px) {
  .cs-flagship__metrics { grid-template-columns: repeat(2, 1fr); }
  .cs-flagship__inner { padding: var(--sp-8) var(--sp-6); }
}
@media (max-width: 767px) {
  .cs-flagship__metrics { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); padding: var(--sp-4); }
  .cs-flagship__inner { padding: var(--sp-6) var(--sp-4); }
  .cs-flagship__client { font-size: var(--fs-xl); }
  .cs-flagship__stat-num { font-size: var(--fs-xl); }
}

/* LexKit secondary card */
.cs-secondary {
  margin-top: var(--sp-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: var(--radius-lg);
  max-width: 42rem;
}

.cs-secondary__inner {
  padding: var(--sp-6) var(--sp-7);
}

.cs-secondary__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.cs-secondary__client {
  font-family: var(--font-display);
  font-size: var(--fs-card-name);
  font-weight: 700;
  letter-spacing: var(--ls-display);
  color: var(--color-secondary);
  margin-bottom: var(--sp-2);
}

.cs-secondary__desc {
  font-size: var(--fs-md);
  color: rgba(245, 245, 240, 0.65);
  line-height: 1.6;
  margin-bottom: var(--sp-3);
}

.cs-secondary__note {
  font-size: var(--fs-sm);
  color: var(--color-text-subtle);
  line-height: 1.6;
  font-style: italic;
}

/* ── New classes added May 2026 ─────────────────────────────── */

.hero__marquee-status {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-primary-soft);
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
  text-transform: uppercase;
}

.cs__status--build {
  color: #f59e0b;
}

.svc__entry-note {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-top: var(--sp-3);
  max-width: 44rem;
  font-style: italic;
}.svc__pricing-anchor {
  margin-top: var(--sp-6);
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
  line-height: 1.6;
}

.cs__narrative {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(245, 245, 240, 0.55);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.cs__growth-table {
  margin-top: var(--sp-4);
}

.cs__growth-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(168, 85, 247, 0.7);
  margin-bottom: var(--sp-2);
}

.cs__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.cs__table th,
.cs__table td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cs__table th {
  color: rgba(245, 245, 240, 0.45);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: var(--fs-xs);
  text-transform: uppercase;
}

.cs__table td {
  color: rgba(245, 245, 240, 0.75);
}

.cs__table tbody tr:last-child td {
  border-bottom: none;
}

/* ─── ICP / FIT BLOCK ────────────────────────────────────────── */
.icp {
  /* padding inherits from .section -> --section-pad (96px) */
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.03) 0%, rgba(0,0,0,0) 100%);
}

.icp__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .icp__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

.icp__col {
  background: #111111;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 14px;
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.icp__col--not {
  border-color: rgba(255, 255, 255, 0.08);
  background: #0E0E0E;
}

.icp__tag {
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.icp__tag--for {
  background: rgba(13, 110, 253, 0.16);
  color: var(--color-primary-soft);
}

.icp__tag--not {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 247, 251, 0.55);
}

.icp__heading {
  font-family: var(--font-display);
  font-size: var(--fs-card-heading);
  font-weight: 700;
  letter-spacing: var(--ls-display);
  color: var(--color-text);
  line-height: 1.25;
  margin: 0;
}

.icp__list {
  list-style: none;
  padding: 0;
  margin: var(--sp-3) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.icp__list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: rgba(245, 247, 251, 0.78);
}

.icp__col--for .icp__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary-soft);
  font-weight: 600;
}

.icp__col--not .icp__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(245, 247, 251, 0.35);
  font-weight: 600;
}

/* ─── WHAT WE DON'T DO (refusal = trust) ────────────────────── */
/* .dont inherits padding from .section -> --section-pad (96px) — no override needed */

.dont__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}

@media (max-width: 960px) {
  .dont__grid { grid-template-columns: repeat(2, 1fr); }
}

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

.dont__item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-4) var(--sp-4);
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.dont__icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(245, 247, 251, 0.4);
  font-weight: 600;
}

.dont__text {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: rgba(245, 247, 251, 0.72);
  margin: 0;
}

.dont__text strong {
  color: var(--color-text);
  font-weight: 600;
}

.icp__metric-line {
  max-width: 880px;
  margin: var(--sp-10) auto 0;
  text-align: center;
  font-size: var(--fs-md);
  line-height: 1.65;
  color: rgba(245, 247, 251, 0.72);
}

.icp__metric-line strong {
  color: var(--color-text);
  font-weight: 600;
}
