/* ===================================================================
   FRANCISCO LABS — HOME V2.1
   Technology Studio aesthetic: Coinbase / Linear / Vercel / Mercury
   =================================================================== */

/* ─── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: grid-drift 20s linear infinite;
  opacity: 0.6;
}
[data-theme="light"] .hero__grid {
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, var(--color-bg) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--1 { width: 500px; height: 500px; background: rgba(37,99,235,0.14); top: -80px; right: -40px; }
.hero__glow--2 { width: 300px; height: 300px; background: rgba(96,165,250,0.08); bottom: 10%; left: 5%; }

/* ── Dashboard Panel ──────────────────────────────────────────────── */
.hero__dashboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 3;
  animation: dash-rise 0.9s cubic-bezier(0.22,1,0.36,1) both 0.3s;
}
@keyframes dash-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Two small cards side by side */
.hw-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Base card */
.hw-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.4),
    0 0 0 0.5px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.hw-card--sm {
  padding: 14px 16px;
  border-radius: 14px;
}

/* Gentle float animations */
.hw-card--1 { animation: hw-float-1 7s ease-in-out infinite; }
.hw-card--2 { animation: hw-float-2 8s ease-in-out infinite 0.5s; }
.hw-card--3 { animation: hw-float-3 9s ease-in-out infinite 1s; }

@keyframes hw-float-1 {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-6px); }
}
@keyframes hw-float-2 {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-5px); }
}
@keyframes hw-float-3 {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-7px); }
}

/* Widget internals */
.hw-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 10px;
}
.hw-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
  letter-spacing: -0.01em;
}
.hw-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
}
.hw-badge--live {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.22);
}

.hw-icon {
  width: 20px; height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hw-icon--blue   { background: rgba(37,99,235,0.18); color: #60a5fa; }
.hw-icon--purple { background: rgba(139,92,246,0.15); color: #a78bfa; }
.hw-icon--green  { background: rgba(34,197,94,0.12); color: #4ade80; }

.hw-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.7);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.8); }
}

/* Widget 1: Business Intelligence */
.hw-metrics {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.hw-metric { display: flex; flex-direction: column; gap: 2px; }
.hw-metric__val {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.hw-metric__val--green { color: #4ade80; }
.hw-metric__val--blue  { color: #60a5fa; }
.hw-metric__label { font-size: 9px; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.05em; }

.hw-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  padding: 4px 5px;
  border: 1px solid rgba(255,255,255,0.04);
}
.hw-sparkline span {
  flex: 1;
  background: linear-gradient(to top, rgba(37,99,235,0.7), rgba(59,130,246,0.4));
  border-radius: 2px 2px 0 0;
}
.hw-sparkline span:last-child { background: linear-gradient(to top, #2563eb, #60a5fa); }

/* Widget 2: AI Operations */
.hw-ops-rows { display: flex; flex-direction: column; gap: 7px; }
.hw-ops-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}
.hw-ops-label { font-size: 10px; color: var(--color-text-faint); white-space: nowrap; flex-shrink: 0; }
.hw-ops-val {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
}
.hw-ops-val--green { color: #4ade80; }
.hw-ops-val--blue  { color: #60a5fa; }

.hw-health-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.hw-health-fill {
  height: 100%;
  background: linear-gradient(to right, #16a34a, #22c55e);
  border-radius: 2px;
}

/* Widget 3: Digital Presence */
.hw-presence {
  display: flex;
  gap: 10px;
}
.hw-presence-stat { display: flex; flex-direction: column; gap: 2px; }
.hw-presence-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.hw-presence-lbl { font-size: 9px; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.04em; }

/* Hero inner — 2-column split on desktop */
.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: clamp(var(--space-12), 8vh, var(--space-24));
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-16);
  align-items: center;
}
.hero__content { max-width: 580px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-bright);
  margin-bottom: var(--space-6);
  padding: 0.3rem 0.875rem;
  background: var(--color-primary-glow);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-full);
}
.hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary-bright);
  animation: blink-pulse 2.5s ease-in-out infinite;
}
@keyframes blink-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

.hero__heading {
  font-size: var(--text-hero);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.hero__heading-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 35%, #2563eb 60%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 50ch;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
}
.hero__proof-item { display: flex; flex-direction: column; gap: 2px; }
.hero__proof-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1;
}
.hero__proof-label { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; }
.hero__proof-sep { width: 1px; height: 36px; background: var(--color-border); flex-shrink: 0; }

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0.4;
  transition: opacity var(--transition-interactive);
}
.hero__scroll-hint:hover { opacity: 0.7; }
.hero__scroll-hint-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--color-primary-bright), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ─── SOLUTIONS GRID ───────────────────────────────────────────── */
.solutions-section {
  padding-block: clamp(var(--space-20), 10vw, 7rem);
  position: relative;
}
.solutions-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.sol-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  cursor: default;
  transition: border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
  position: relative;
  overflow: hidden;
}
.sol-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, var(--color-primary-glow), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-interactive);
  pointer-events: none;
}
.sol-card:hover {
  border-color: rgba(37,99,235,0.4);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.08), 0 20px 40px rgba(0,0,0,0.25), 0 0 24px rgba(37,99,235,0.06);
}
.sol-card:hover::after { opacity: 1; }

.sol-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-glow);
  border: 1px solid rgba(37,99,235,0.18);
  color: var(--color-primary-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.sol-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-bright);
  position: relative;
  z-index: 1;
}
.sol-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── Mini Visual Previews ───────────────────────────────────────── */
.sol-card__preview {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border-subtle);
  height: 80px;
  display: flex;
  align-items: stretch;
  margin-block: var(--space-1);
}

/* Platform preview */
.preview-platform { width: 100%; height: 100%; }
.pp-browser { display: flex; flex-direction: column; width: 100%; height: 100%; }
.pp-bar {
  height: 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 3px; padding: 0 7px; flex-shrink: 0;
}
.pp-bar span { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.pp-body { flex: 1; padding: 5px 7px; display: flex; flex-direction: column; gap: 4px; }
.pp-hero-block { height: 18px; background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(37,99,235,0.1)); border-radius: 3px; }
.pp-row { display: flex; gap: 3px; }
.pp-card { flex: 1; height: 12px; background: rgba(255,255,255,0.05); border-radius: 2px; border: 1px solid rgba(255,255,255,0.04); }
.pp-card--blue { background: rgba(37,99,235,0.15); border-color: rgba(37,99,235,0.2); }
.pp-line { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; margin-top: 3px; }
.pp-line--h { width: 70%; }
.pp-line--m { width: 50%; }

/* AI workflow preview */
.preview-ai { width: 100%; height: 100%; display: flex; align-items: center; }
.preview-ai__svg { width: 100%; height: 100%; }

/* Marketing preview */
.preview-marketing { width: 100%; height: 100%; padding: 7px 8px; display: flex; flex-direction: column; gap: 5px; }
.mkt-kpis { display: flex; gap: 8px; }
.mkt-kpi { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 4px; padding: 4px 5px; }
.mkt-kpi__val { font-family: var(--font-display); font-size: 10px; font-weight: 800; color: var(--color-text); }
.mkt-kpi__val--green { color: #4ade80; }
.mkt-kpi__val--blue  { color: #60a5fa; }
.mkt-kpi__lbl { font-size: 7px; color: var(--color-text-faint); }
.mkt-bars { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.mkt-bar { flex: 1; background: rgba(37,99,235,0.2); border-radius: 2px 2px 0 0; }
.mkt-bar--active { background: rgba(37,99,235,0.65); }

/* Operations pipeline */
.preview-ops { width: 100%; height: 100%; padding: 7px 8px; }
.ops-pipeline { display: flex; gap: 5px; height: 100%; align-items: flex-start; }
.ops-col { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ops-col__label { font-size: 7px; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.ops-item { height: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 3px; }
.ops-item--sm { height: 10px; }
.ops-item--blue   { background: rgba(37,99,235,0.2); border-color: rgba(37,99,235,0.3); }
.ops-item--green  { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.25); }
.ops-report { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.ops-report__bar { height: 4px; background: rgba(255,255,255,0.12); border-radius: 2px; }
.ops-report__bar--blue { background: rgba(37,99,235,0.45); }

/* Brand preview */
.preview-brand {
  width: 100%; height: 100%;
  padding: 8px;
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
}
.brand-swatch-row { display: flex; gap: 4px; }
.brand-swatch { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.brand-swatch--dark  { background: #0a0a0b; border: 1px solid rgba(255,255,255,0.1); }
.brand-swatch--blue  { background: #2563EB; }
.brand-swatch--light { background: #f8fafc; }
.brand-swatch--muted { background: #64748b; }
.brand-type-row { display: flex; align-items: center; gap: 6px; }
.brand-type-display { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--color-text); line-height: 1; }
.brand-type-lines { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.brand-type-line { height: 3px; background: rgba(255,255,255,0.12); border-radius: 2px; }
.brand-type-line--h { width: 100%; }
.brand-type-line--s { width: 65%; }
.brand-logo-row { display: flex; align-items: center; gap: 6px; }
.brand-logo-box { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-logo-lines { display: flex; flex-direction: column; gap: 3px; }
.brand-logo-line { height: 3px; width: 48px; background: rgba(255,255,255,0.15); border-radius: 2px; }
.brand-logo-line--s { width: 32px; }

/* Roadmap preview */
.preview-roadmap {
  width: 100%; height: 100%;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
}
.roadmap-row { display: flex; align-items: center; gap: 6px; }
.roadmap-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.roadmap-dot--done   { background: #22c55e; box-shadow: 0 0 4px rgba(34,197,94,0.5); }
.roadmap-dot--active { background: #3b82f6; box-shadow: 0 0 6px rgba(59,130,246,0.6); animation: rd-pulse 2s ease-in-out infinite; }
.roadmap-dot--future { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
@keyframes rd-pulse {
  0%,100% { box-shadow: 0 0 4px rgba(59,130,246,0.4); }
  50%      { box-shadow: 0 0 10px rgba(59,130,246,0.8); }
}
.roadmap-bar { flex: 1; display: flex; align-items: center; gap: 6px; }
.roadmap-label { font-size: 8px; color: var(--color-text-faint); width: 40px; flex-shrink: 0; }
.roadmap-track { flex: 1; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.roadmap-fill { height: 100%; background: linear-gradient(to right, #2563eb, #3b82f6); border-radius: 2px; }

/* Card list items */
.sol-card__items {
  list-style: none;
  display: flex; flex-direction: column; gap: var(--space-2);
  position: relative; z-index: 1;
}
.sol-card__items li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex; align-items: center; gap: var(--space-2);
}
.sol-card__items li::before {
  content: '';
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--color-primary-bright);
  flex-shrink: 0;
  opacity: 0.6;
}

/* Credibility metric footer */
.sol-card__metric {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-subtle);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary-bright);
  display: flex; align-items: center; gap: var(--space-2);
  position: relative; z-index: 1;
  letter-spacing: 0.02em;
}

.solutions-section__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

/* ─── FEATURED WORK ────────────────────────────────────────────── */
.projects-section {
  padding-block: clamp(var(--space-20), 10vw, 7rem);
  position: relative;
}
.projects-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.projects-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: 0;
}
.projects-sub {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 44ch;
  line-height: 1.6;
}

.projects-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--space-5);
  margin-top: var(--space-10);
  padding-bottom: var(--space-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, black 88%, transparent 100%);
}
.projects-track::-webkit-scrollbar { display: none; }
@media (min-width: 1400px) {
  .projects-track { -webkit-mask-image: none; mask-image: none; }
}

.proj-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 300px;
  scroll-snap-align: start;
  transition: border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
  cursor: default;
}
.proj-card:hover {
  border-color: rgba(37,99,235,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(37,99,235,0.08);
}

.proj-card__visual {
  height: 168px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-card__visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Real client visuals */
.proj-card--bob    .proj-card__visual-inner { background: linear-gradient(135deg, #1e3a5f 0%, #0f2237 100%); }
.proj-card--latino .proj-card__visual-inner { background: linear-gradient(135deg, #7c2d12 0%, #431407 100%); }

/* Capability card backgrounds */
.cap-visual--ai     { background: linear-gradient(135deg, #0a0f1e 0%, #10172e 100%); }
.cap-visual--dash   { background: linear-gradient(135deg, #061020 0%, #0d1a30 100%); }
.cap-visual--crm    { background: linear-gradient(135deg, #080f18 0%, #0e1a28 100%); }
.cap-visual--auto   { background: linear-gradient(135deg, #060c18 0%, #0c1828 100%); }

.proj-card__visual-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.06);
  user-select: none;
  pointer-events: none;
}

.proj-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}
.proj-card__badge--live {
  background: rgba(34,197,94,0.18);
  color: #4ade80;
  border-color: rgba(34,197,94,0.3);
}

.proj-card__body {
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2); flex: 1;
}
.proj-card__industry {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-bright);
}
.proj-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.proj-card__result {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}
.proj-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-subtle);
}
.proj-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  padding: 0.2rem 0.6rem;
  background: var(--color-surface-3);
  border-radius: var(--radius-full);
}

/* ── Capability Card Visuals ─────────────────────────────────────── */

/* AI Customer Intelligence */
.cap-ai {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.cap-ai__window {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.cap-ai__titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cap-ai__dots { display: flex; gap: 3px; }
.cap-ai__dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.cap-ai__label { font-size: 8px; font-weight: 600; color: rgba(255,255,255,0.5); flex: 1; }
.cap-ai__status {
  display: flex; align-items: center; gap: 3px;
  font-size: 8px; color: #4ade80; font-weight: 600;
}
.cap-ai__pulse {
  width: 5px; height: 5px; border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}
.cap-ai__chat { padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.cap-ai__msg {
  font-size: 8px;
  padding: 4px 7px;
  border-radius: 8px;
  line-height: 1.4;
  max-width: 75%;
}
.cap-ai__msg--in  {
  background: rgba(37,99,235,0.18);
  border: 1px solid rgba(37,99,235,0.28);
  color: #93c5fd;
  align-self: flex-start;
}
.cap-ai__msg--out {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  align-self: flex-end;
}
.cap-ai__typing { display: flex; align-items: center; gap: 3px; }
.cap-ai__typing span {
  width: 4px; height: 4px; border-radius: 50%; background: #60a5fa;
  animation: typing-dot 1.2s ease-in-out infinite;
}
.cap-ai__typing span:nth-child(2) { animation-delay: 0.2s; }
.cap-ai__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%,80%,100% { opacity: 0.3; transform: scale(0.8); }
  40%          { opacity: 1; transform: scale(1); }
}
.cap-ai__stats { display: flex; gap: 8px; }
.cap-ai__stat {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 5px 7px;
}
.cap-ai__stat-val { font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--color-text); }
.cap-ai__stat-val--g { color: #4ade80; }
.cap-ai__stat-lbl { font-size: 7px; color: var(--color-text-faint); }

/* Business Intelligence Dashboard */
.cap-dash {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
}
.cap-dash__header { display: flex; align-items: center; justify-content: space-between; }
.cap-dash__title { font-size: 9px; font-weight: 700; color: var(--color-text); }
.cap-dash__period { font-size: 8px; color: var(--color-text-faint); }
.cap-dash__kpis { display: flex; gap: 6px; }
.cap-dash__kpi { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 5px; padding: 5px 6px; }
.cap-dash__kpi-val { font-family: var(--font-display); font-size: 12px; font-weight: 800; color: white; letter-spacing: -0.02em; }
.cap-dash__kpi-val--g { color: #4ade80; }
.cap-dash__kpi-lbl { font-size: 7px; color: rgba(255,255,255,0.35); margin-top: 1px; }
.cap-dash__kpi-delta { font-size: 7px; font-weight: 700; margin-top: 2px; }
.cap-dash__kpi-delta--g { color: #4ade80; }
.cap-dash__chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  padding: 3px 0;
}
.cap-dash__chart span {
  flex: 1;
  background: rgba(37,99,235,0.4);
  border-radius: 2px 2px 0 0;
}
.cap-dash__chart span:nth-last-child(-n+2) { background: rgba(59,130,246,0.7); }
.cap-dash__chart span:last-child { background: #3b82f6; }

/* Real client browser mockup */
.real-client-visual { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 10px; }
.rcv-browser { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; }
.rcv-bar { height: 12px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 3px; padding: 0 6px; }
.rcv-bar span { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.rcv-body { padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.rcv-hero { height: 28px; border-radius: 3px; }
.rcv-hero--blue { background: linear-gradient(135deg, rgba(37,99,235,0.4), rgba(37,99,235,0.15)); }
.rcv-hero--red  { background: linear-gradient(135deg, rgba(185,28,28,0.5), rgba(127,29,29,0.3)); }
.rcv-content { display: flex; flex-direction: column; gap: 4px; }
.rcv-line { height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.rcv-line--h { width: 65%; }
.rcv-line--m { width: 45%; }
.rcv-grid { display: flex; gap: 3px; margin-top: 2px; }
.rcv-thumb { flex: 1; height: 12px; background: rgba(255,255,255,0.07); border-radius: 2px; }
.rcv-row { display: flex; gap: 4px; margin-top: 2px; }
.rcv-btn { width: 28px; height: 8px; border-radius: 2px; background: rgba(255,255,255,0.08); }
.rcv-btn--red { background: rgba(185,28,28,0.4); }

/* CRM Command Center */
.cap-crm {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
}
.cap-crm__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.cap-crm__title { font-size: 9px; font-weight: 700; color: var(--color-text); }
.cap-crm__badge { font-size: 8px; font-weight: 700; padding: 1px 6px; background: rgba(37,99,235,0.15); color: #60a5fa; border-radius: 20px; border: 1px solid rgba(37,99,235,0.25); }
.cap-crm__cols { display: flex; gap: 5px; }
.cap-crm__col { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cap-crm__col-hd { font-size: 7px; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.cap-crm__card { height: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09); border-radius: 3px; }
.cap-crm__card--sm     { height: 11px; }
.cap-crm__card--blue   { background: rgba(37,99,235,0.2); border-color: rgba(37,99,235,0.3); }
.cap-crm__card--purple { background: rgba(139,92,246,0.18); border-color: rgba(139,92,246,0.28); }
.cap-crm__card--green  { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.25); }

/* Automation Platform */
.cap-auto {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
}
.cap-auto__header { display: flex; align-items: center; gap: 6px; }
.cap-auto__pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 5px rgba(34,197,94,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
.cap-auto__title { font-size: 9px; font-weight: 700; color: var(--color-text); flex: 1; }
.cap-auto__count { font-size: 8px; color: #4ade80; font-weight: 600; }
.cap-auto__flows { display: flex; flex-direction: column; gap: 5px; }
.cap-auto__flow { display: flex; align-items: center; gap: 6px; }
.cap-auto__flow span { font-size: 8px; color: var(--color-text-faint); white-space: nowrap; }
.cap-auto__flow-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 4px rgba(34,197,94,0.5); flex-shrink: 0; }
.cap-auto__flow-dot--idle { background: rgba(255,255,255,0.15); box-shadow: none; }
.cap-auto__flow-bar {
  flex: 1; height: 4px;
  background: linear-gradient(to right, rgba(37,99,235,0.6), rgba(37,99,235,0.2));
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.cap-auto__flow-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}
.cap-auto__flow-bar--50  { background: linear-gradient(to right, rgba(37,99,235,0.5) 50%, rgba(255,255,255,0.06) 50%); }
.cap-auto__flow-bar--75  { background: linear-gradient(to right, rgba(37,99,235,0.55) 75%, rgba(255,255,255,0.06) 75%); }
.cap-auto__flow-bar--idle { background: rgba(255,255,255,0.06); }
.cap-auto__flow-bar--idle::after { display: none; }
@keyframes shimmer { 0% { left: -100%; } 100% { left: 200%; } }

/* ─── WHY FRANCISCO LABS ───────────────────────────────────────── */
.why-section {
  padding-block: clamp(var(--space-20), 10vw, 7rem);
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}
.why-section::before,
.why-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
}
.why-section::before { top: 0; }
.why-section::after  { bottom: 0; }
.why-section__glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  top: -150px; right: -150px;
  pointer-events: none;
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: start;
}

.why-text .section-label { margin-bottom: var(--space-4); }
.why-text h2 {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.why-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 44ch;
}

/* 5 stats in a 2+2+1 grid */
.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.why-stat {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
  position: relative;
  overflow: hidden;
}
.why-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 100%, rgba(37,99,235,0.06), transparent 60%);
  pointer-events: none;
}
.why-stat:hover {
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 0 0 1px rgba(37,99,235,0.05);
}

/* The 5th stat spans full width */
.why-stat--wide { grid-column: 1 / -1; }

.why-stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}
.why-stat__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.why-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.why-chip {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.35rem 0.9rem;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: color var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive);
}
.why-chip:hover {
  color: var(--color-text);
  border-color: rgba(37,99,235,0.25);
  background: var(--color-primary-glow);
}

/* ─── FINAL CTA ────────────────────────────────────────────────── */
.home-cta-section {
  padding-block: clamp(var(--space-16), 7vw, var(--space-24));
  position: relative;
  overflow: hidden;
  text-align: center;
}
.home-cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
}
.home-cta__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  animation: grid-drift 25s linear infinite;
  opacity: 0.5;
}
.home-cta__glow {
  position: absolute;
  width: 800px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glow-breathe 6s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%,100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}
.home-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-inline: auto;
}
.home-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-bright);
  margin-bottom: var(--space-5);
}
.home-cta__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.home-cta__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 45ch;
  margin: 0 auto var(--space-8);
}
.home-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ─── FOOTER ADDITIONS ──────────────────────────────────────────── */
.footer__portal-link {
  color: var(--color-text-faint) !important;
  font-style: italic;
}
.footer__portal-link:hover { color: var(--color-primary-bright) !important; }
.badge--available {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.2);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (min-width: 1200px) {
  /* dashboard panel stays visible at all desktop widths */
}

@media (max-width: 1100px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  /* Collapse dashboard panel to 340px on smaller desktops */
  .hero__inner { grid-template-columns: 1fr 340px; gap: var(--space-10); }
}

@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .why-text h2 { font-size: var(--text-xl); }
  .why-stats { grid-template-columns: repeat(2, 1fr); }
  .why-stat--wide { grid-column: 1 / -1; }
  .projects-header { flex-direction: column; gap: var(--space-3); }
  .projects-header .btn--ghost { align-self: flex-start; }
  /* Tablet section padding */
  .solutions-section,
  .projects-section,
  .why-section { padding-block: 1.75rem 2rem; }
}

/* ── MOBILE: 768px and below ── */
@media (max-width: 768px) {
  /* ── HERO ── */
  .hero {
    min-height: 0 !important;   /* kill viewport height forcing */
    height: auto !important;
    display: block !important;  /* override flex so no phantom stretch */
    align-items: unset !important;
    justify-content: unset !important;
    padding-top: 68px !important;  /* matches mobile nav height exactly — no extra gap */
    padding-bottom: 0 !important;
  }

  /* Hide dashboard panel on mobile — full-bleed clean hero */
  .hero__dashboard { display: none !important; }
  /* Single-column hero on mobile */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__glow--1 { width: 220px; height: 220px; top: -40px; right: -20px; }
  .hero__glow--2 { display: none; }
  .hero__content { max-width: 100%; }

  /* Hero inner — hug the nav, no dead space */
  .hero__inner {
    padding-block: 0.75rem 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    grid-template-columns: unset !important;
    gap: 0 !important;
  }

  .hero__eyebrow {
    font-size: 10px;
    padding: 0.25rem 0.7rem;
    margin-bottom: 1rem;
  }

  .hero__heading {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    line-height: 1.03;
    margin-bottom: 0.875rem;
  }

  .hero__sub {
    font-size: 0.9rem;
    max-width: 100%;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Proof strip — 3 items in one row */
  .hero__proof {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-subtle);
  }
  .hero__proof-sep { display: none; }
  .hero__proof-item {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding-inline: 0.25rem;
  }
  .hero__proof-item:not(:last-child) {
    border-right: 1px solid var(--color-border-subtle);
  }
  .hero__proof-num {
    font-size: 1.5rem;
    line-height: 1;
  }
  .hero__proof-label {
    font-size: 10px;
    display: block;
    margin-top: 2px;
  }

  /* Scroll hint — hide on mobile to save space */
  .hero__scroll-hint { display: none; }

  /* ── SOLUTIONS / CAPABILITIES ── */
  /* 2×2 compact grid matching Latino Network card layout */
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    margin-top: 1.25rem;
  }
  .sol-card {
    padding: 1rem;
    gap: 0.5rem;
    border-radius: 14px;
  }
  /* Hide mini preview visuals on mobile — keep icon + title + bullets */
  .sol-card__preview { display: none; }
  .sol-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .sol-card__icon svg { width: 16px; height: 16px; }
  .sol-card__label { font-size: 9px; }
  .sol-card__title { font-size: 0.8125rem; }
  .sol-card__items { gap: 0.25rem; }
  .sol-card__items li { font-size: 0.75rem; }
  /* Limit to 2 bullet items on mobile */
  .sol-card__items li:nth-child(n+3) { display: none; }
  .sol-card__metric {
    font-size: 9px;
    padding-top: 0.5rem;
  }

  /* ── FEATURED WORK ── */
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .projects-header .btn--ghost { align-self: flex-start; font-size: 0.8rem; }
  .projects-sub { font-size: 0.85rem; margin-top: 0.25rem; }
  .projects-track {
    gap: 0.75rem;
    margin-top: 1rem;
    padding-bottom: 0.75rem;
  }
  .proj-card { width: 78vw; max-width: 280px; }
  .proj-card__visual { height: 130px; }
  .proj-card__body { padding: 0.875rem; gap: 0.375rem; }

  /* ── WHY FL STATS ── */
  .why-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .why-text h2 { font-size: 1.5rem; margin-bottom: 0.625rem; }
  .why-text p { font-size: 0.875rem; }

  /* 2×2 compact stat grid */
  .why-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .why-stat {
    padding: 1rem;
    border-radius: 12px;
  }
  .why-stat__num {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    margin-bottom: 0.25rem;
  }
  .why-stat__label {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .why-stat--wide { grid-column: 1 / -1; padding: 0.875rem 1rem; }

  .why-expertise { gap: 0.375rem; margin-top: 0.875rem; }
  .why-chip {
    font-size: 10px;
    padding: 0.275rem 0.65rem;
  }

  /* ── SECTIONS — Stripe/Linear mobile density: minimum dead space ── */
  .solutions-section,
  .projects-section,
  .why-section {
    padding-block: 1.25rem 1.5rem !important; /* Issue #2: tighten hero->caps gap */
  }
  .home-cta-section { padding-block: 1.5rem !important; }

  /* Section labels + headings */
  .section-label { font-size: 9px; }
  .section-heading { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-sub { font-size: 0.875rem; max-width: 100%; }

  /* CTA section */
  .home-cta__heading { font-size: clamp(1.5rem, 7vw, 2rem); margin-bottom: 0.875rem; }
  .home-cta__sub { font-size: 0.875rem; margin-bottom: 1.25rem; }
  .home-cta__actions {
    flex-direction: column;
    gap: 0.625rem;
  }
  .home-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* ── KEY TRANSITION GAPS: tighten between-section dead space ── */
  /* Capabilities CTA -> Portfolio section */
  .solutions-section__cta {
    margin-top: 1.25rem;
  }

  /* Projects track margin */
  .projects-track {
    margin-top: 0.75rem;
    padding-bottom: 0.5rem;
  }

  /* Section heading gaps */
  .section-heading {
    margin-block: 0.375rem 0.5rem;
  }

  /* Why Us — tighter */
  .why-inner { gap: 1.25rem; }
  .why-text h2 { margin-bottom: 0.5rem; }
  .why-text p { margin-bottom: 0; }
  .why-expertise { margin-top: 0.75rem; }

  /* Solutions grid top margin */
  .solutions-grid { margin-top: 1rem; }

  /* Solutions section heading */
  .solutions-section > .container > h2[id] {
    margin-top: 0.5rem !important;
  }

  /* Projects header */
  .projects-header { gap: 0.375rem; }
  .projects-sub { margin-top: 0.2rem; font-size: 0.825rem; }

  /* Hero proof strip — tight, no dead space */
  .hero__proof { padding-top: 0.75rem; }
  .hero__actions { margin-bottom: 1.25rem; }
}

/* ── SMALL PHONES: 430px and below ── */
@media (max-width: 430px) {
  .hero__heading { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }

  /* Single column caps on very small screens */
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .sol-card { padding: 0.75rem; }
  .sol-card__title { font-size: 0.75rem; }

  /* Stats: keep 2×2 but tighter */
  .why-stat { padding: 0.75rem; }
  .why-stat__num { font-size: 1.6rem; }
  .why-stat__label { font-size: 0.7rem; }

  .proj-card { width: 85vw; }
}

/* ROI accent numbers — gradient highlight */
.why-stat__num--accent {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
