/* ============================================
   PERFObuzz — layout.css
   Section-level grid, flex, and structural rules
   ============================================ */

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-block: var(--space-4);
  background: transparent;
  pointer-events: none; /* let clicks fall through the gaps between islands */
  transition: padding-block var(--transition-base);
}

.site-header.is-scrolled {
  padding-block: var(--space-3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: auto;
}

/* every direct island is interactive again */
.nav-container > * {
  pointer-events: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-primary);
}

.logo-mark {
  flex-shrink: 0;
  border-radius: var(--radius-md);
}

/* ---- Dynamic-island shared surface (header only) ---- */
.site-header .menu-toggle {
  background: rgba(20, 20, 23, 0.72);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.site-header .logo {
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  transition: background var(--transition-base), border-color var(--transition-base),
              backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

/* pill only forms once the header is scrolled */
.site-header.is-scrolled .logo {
  background: rgba(20, 20, 23, 0.72);
  border-color: var(--border-light);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

/* Horizontal logo (full lettering) — fixed height, natural width */
.logo-img {
  display: block;
  height: 36px;
  width: auto;
}

.footer-brand .logo-img {
  height: 34px;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: block;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav-link.is-active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(39, 39, 42, 0.85);
}

/* Mobile nav → floating island panel */
.main-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: fixed;
  top: calc(var(--nav-height) + var(--space-2));
  left: var(--space-4);
  right: var(--space-4);
  background: rgba(13, 15, 18, 0.97);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
}

.main-nav.is-open .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.main-nav.is-open .nav-link {
  font-size: var(--text-lg);
  padding: var(--space-3);
  width: 100%;
  border-radius: var(--radius-md);
}

.main-nav.is-open .nav-menu-cta {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-2);
}

/* CTA island (desktop) — hidden on mobile where only logo + hamburger show */
.nav-actions .nav-cta {
  display: none;
}

.nav-cta .cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--void-black);
  box-shadow: 0 0 6px rgba(9, 9, 11, 0.6);
}

/* in-menu CTA only appears inside the open mobile panel */
.nav-menu-cta {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 5px var(--space-2);
    background: rgba(20, 20, 23, 0.72);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
  }
  .nav-menu-cta {
    display: none !important; /* the desktop nav pill never shows the in-menu CTA */
  }
  .nav-actions .nav-cta {
    display: inline-flex;
    box-shadow: var(--shadow-md), 0 0 22px rgba(190, 242, 100, 0.28);
  }
  .menu-toggle {
    display: none;
  }
}

/* ============================================
   SECTIONS — Common
   ============================================ */
.section {
  padding-block: var(--section-gap);
}

.section-header {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.35);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.section-title {
  margin-bottom: var(--space-4);
  font-weight: 400; /* Onest Regular base for all section headings */
}

.section-desc {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 60ch;
  margin-inline: auto;
}

.section-grid.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

.section-grid > * {
  min-width: 0; /* prevents grid items forcing tracks wider than the container */
}

@media (min-width: 768px) {
  .section-grid.two-col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-10);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.6) 0%,
    rgba(9, 9, 11, 0.3) 40%,
    rgba(9, 9, 11, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  min-width: 0;
  max-width: 900px;
  padding-block: var(--space-12);
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 0.65rem + 0.25vw, 0.875rem);
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-light);
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: var(--radius-full);
}

.hero-heading {
  margin-inline: auto;
  margin-bottom: var(--space-4);
  font-weight: 400; /* Onest Regular base (Hero rule) */
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-line {
  display: block;
  line-height: 1.08;
}

.hero-line-a {
  font-weight: 500; /* one weight lower */
  font-size: 0.82em; /* smaller than line 2, so "Built on Proof, Not Promises" leads */
}

/* Only "Proof," gets Instrument Serif italic — in hero lime */
.hero-accent {
  color: var(--cta); /* brand lime */
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em; /* bigger than surrounding Onest (~100 vs 90 ratio) */
}

/* "Built on" and "Not Promises" stay Onest, same weight as parent */
.hero-line-c,
.hero-line-d {
  font-weight: 500;
}

/* Desktop: 2 lines — line-c ("Built on Proof,") and line-d ("Not Promises") sit inline */
@media (min-width: 641px) {
  .hero-line-c,
  .hero-line-d {
    display: inline;
  }
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-inline: auto;
  margin-bottom: var(--space-4);
  max-width: 720px;
}

.hero-sub strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta {
  margin-bottom: var(--space-4);
}


/* ============================================
   PROBLEM / SOLUTION SECTION
   ============================================ */
.problem-section {
  background: var(--bg-secondary);
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.problem-list .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.solution-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.solution-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.35);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.solution-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.solution-card > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.solution-result {
  padding: var(--space-4);
  background: rgba(79, 70, 229, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* ============================================
   SERVICES — BENTO GRID
   ============================================ */
.services-section {
  background: var(--bg-primary);
}

.bento-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    /* 4 equal pillars → balanced 2×2 (removed lopsided featured span) */
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Subtle hierarchy for the foundational pillar without breaking the grid */
.bento-card.featured {
  border-color: var(--border-light);
  background:
    linear-gradient(180deg, rgba(79, 70, 229, 0.06) 0%, transparent 60%),
    var(--bg-surface);
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.bento-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(20, 184, 166, 0.12);
  border-radius: var(--radius-md);
  color: var(--teal-light);
  margin-bottom: var(--space-4);
}

.bento-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.bento-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.35);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
  vertical-align: middle;
}

.bento-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  flex: 1;
}

.bento-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bento-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.bento-features li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--teal-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.services-footer {
  margin-top: var(--space-8);
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-base);
  max-width: 700px;
  margin-inline: auto;
}

/* ============================================
   TEAM SECTION — CAROUSEL (one card at a time)
   ============================================ */
.about-section {
  background: var(--bg-secondary);
  overflow: clip; /* guard against any decorative overflow */
}

.team-carousel {
  position: relative;
  max-width: 600px;
  margin-inline: auto;
}

.team-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.team-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.team-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 2px; /* room for focus rings */
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  height: 100%;
}

.team-card-photo {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin-bottom: var(--space-4);
  border: 2px solid var(--border-light);
}

.team-card-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

/* role as a pill */
.team-card-role {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.team-card-bio {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  max-width: 46ch;
}

.team-card-social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.team-card-social:hover {
  color: var(--accent);
}

.team-card-social .icon {
  color: var(--teal-light);
}

/* Controls */
.team-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.team-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.team-arrow:hover,
.team-arrow:focus-visible {
  background: var(--bg-surface);
  border-color: var(--accent);
  color: var(--accent);
}

.team-dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.team-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--slate-light);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.team-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ============================================
   WORK / CASE STUDIES — STACKING
   ============================================ */
.work-section {
  background: var(--bg-primary);
}

.stack-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.stack-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

/* Sticky-deck: every card pins at the SAME top, so each new card slides up
   and sits fully ON TOP of the previous one (opaque bg + ascending z-index
   from stacking.js). No incremental offset — that made later cards look
   tucked "inside" the previous card instead of above it. */
@media (min-width: 768px) {
  .stack-card {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-4));
  }
}

.stack-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.stack-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.stack-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.stack-card:hover .stack-card-image img {
  transform: scale(1.03);
}

.stack-card-content {
  padding: var(--space-6);
}

.stack-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.stack-card-tag {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.stack-card-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.stack-card-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.stack-card-scope,
.stack-card-approach {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.stack-card-outcome {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(190, 242, 100, 0.08);
  border: 1px solid rgba(190, 242, 100, 0.15);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--lime);
  margin-top: var(--space-3);
}

.work-note {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-8);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--bg-secondary);
}

.cta-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 5vw, var(--space-12));
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.cta-title {
  margin-bottom: var(--space-4);
}

.cta-desc {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.cta-sub {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.cta-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.cta-steps li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
}

.cta-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   FORM SECTION
   ============================================ */
.form-section {
  background: var(--bg-primary);
}

.form-wrapper {
  max-width: 640px;
  margin-inline: auto;
}

.form-progress {
  margin-bottom: var(--space-3);
}

/* Numbered stepper — dots joined by connectors */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 460px;
}

.stepper-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

/* connector line to the previous dot */
.stepper-item + .stepper-item::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--border);
  transition: background var(--transition-base);
  z-index: 0;
}

.stepper-item.is-done::before,
.stepper-item.is-active::before {
  background: var(--teal-light);
}

.stepper-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  border: 2px solid transparent;
  transition: background var(--transition-base), color var(--transition-base),
              border-color var(--transition-base), box-shadow var(--transition-base);
}

.stepper-num {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
}

/* completed */
.stepper-item.is-done .stepper-dot {
  background: var(--teal);
  color: #fff;
}

/* current */
.stepper-item.is-active .stepper-dot {
  background: var(--teal);
  color: #fff;
  border-color: rgba(20, 184, 166, 0.25);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.stepper-name {
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: color var(--transition-base);
  overflow-wrap: anywhere;
}

.stepper-item.is-active .stepper-name {
  color: var(--text-primary);
}

.stepper-item.is-done .stepper-name {
  color: var(--text-secondary);
}

@media (max-width: 420px) {
  .stepper-name { font-size: 0.68rem; }
  .stepper-dot { width: 32px; height: 32px; }
  .stepper-item + .stepper-item::before { top: 15px; }
}

.consultation-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

@media (min-width: 640px) {
  .consultation-form {
    padding: var(--space-8);
  }
}

.form-step[hidden] {
  display: none;
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-group .required {
  color: var(--persimmon);
}

.form-group .optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-error {
  display: none;
  font-size: var(--text-xs);
  color: var(--persimmon);
  margin-top: var(--space-1);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--persimmon);
}

.form-group.has-error .form-error {
  display: block;
}

.form-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-1);
}

.form-actions .btn {
  min-width: 0;
}

/* primary sits first (left), Back to its right — better CTR */
.form-actions .form-next,
.form-actions .form-submit {
  order: 1;
  flex: 0 1 auto;
}

.form-actions .form-back {
  order: 2;
  flex: 0 0 auto;
}

.form-actions .form-submit {
  white-space: normal; /* wrap text if tight, but stay beside Back */
}

/* Phone number with country-code select */
.phone-row {
  display: flex;
  gap: var(--space-2);
}

.phone-row .country-code {
  flex: 0 0 96px;
  width: 96px;
  min-width: 0;
  padding-right: 28px;
  background-position: right 8px center;
}

.phone-row input {
  flex: 1 1 auto;
  min-width: 0;
}

/* Industry pill options */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: var(--space-1) var(--space-2);
}

.pill-group .pill-option {
  position: relative;
  display: inline-flex;
  margin: 0;
}

.pill-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

.pill-option span {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.pill-option span:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.pill-option input:checked + span {
  border-color: var(--accent);
  background: rgba(79, 70, 229, 0.14);
  color: var(--text-primary);
}

.pill-option input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

.form-micro {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-3);
}

/* Radio group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-sm);
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  position: relative;
  transition: border-color var(--transition-fast);
  flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--accent);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.radio-label input[type="radio"]:focus-visible + .radio-custom {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Form success */
.form-success {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(190, 242, 100, 0.1);
  border-radius: 50%;
  color: var(--lime);
  margin-bottom: var(--space-4);
}

.form-success-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.form-success-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  margin-inline: auto;
}

.form-success-social {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.form-success-social a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success-social a:hover {
  color: var(--accent-hover);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: var(--text-lg);
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item > p {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.faq-item > p strong {
  color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--obsidian);
  border-top: 1px solid var(--border);
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1.3fr 2fr;
    gap: var(--space-10);
  }
}

.footer-brand .logo {
  margin-bottom: var(--space-4);
}

.footer-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 44ch;
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: var(--space-2);
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--teal-light);
  border-color: rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.08);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-4);
}

@media (min-width: 560px) {
  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: var(--text-primary);
}

/* Get in Touch — icon + text on one line */
.footer-contact li {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.footer-contact .icon {
  flex-shrink: 0;
  color: var(--teal-light);
}

.footer-contact a {
  overflow-wrap: normal;
  white-space: nowrap;
  font-size: clamp(0.78rem, 0.72rem + 0.3vw, 0.875rem);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-legal button {
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal button:hover,
.footer-legal button:focus-visible {
  color: var(--text-primary);
}

/* Faded brand watermark (brand-tinted, fades out toward the bottom edge) */
.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -0.16em;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(5rem, 24vw, 22rem);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.12) 0%, rgba(20, 184, 166, 0.05) 55%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ============================================
   UTILITY ICON STYLES
   ============================================ */
.icon {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-accent {
  color: var(--accent);
}

.icon-lime {
  color: var(--lime);
}

/* ============================================
   SERVICES — PILLAR CARD (vertical stack deck)
   Uses the generic .stack-card sticky/z-index machinery.
   ============================================ */
.pillar-card {
  position: sticky; /* deck now works on mobile as well as desktop */
  top: calc(var(--nav-height) + var(--space-3));
  padding: var(--space-8) var(--space-6);
}

.pillar-num {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--slate-light);
  opacity: 0.5;
  line-height: 1;
}

@media (min-width: 768px) {
  .pillar-card {
    top: calc(var(--nav-height) + var(--space-4));
    min-height: auto;
  }
}

/* ============================================
   WORK — SCROLLYTELLING (sticky text rail + scrolling media)
   ============================================ */
.work-scrolly {
  display: flex;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: flex-start;
}

.ws-text-rail {
  flex: 0 0 42%;
  position: sticky;
  top: calc(var(--nav-height) + 8vh);
  height: 60vh;
  overflow: hidden;
}

.ws-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ws-text.is-active {
  opacity: 1;
  transform: translateY(0);
}

.ws-eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.ws-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  max-width: 20ch;
}

.ws-body {
  color: var(--text-secondary);
  font-size: var(--text-base);
  max-width: 42ch;
  margin-bottom: var(--space-4);
}

.ws-outcome {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;
  padding: var(--space-2) var(--space-4);
  background: rgba(190, 242, 100, 0.08);
  border: 1px solid rgba(190, 242, 100, 0.18);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--lime);
}

.ws-media {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8vh;
}

.ws-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: 0.4;
  transform: scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ws-item.is-active {
  opacity: 1;
  transform: scale(1);
}

.ws-item img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

/* Mobile / tablet: turn the effect OFF, interleave text then image per study */
@media (max-width: 1023px) {
  .work-scrolly {
    flex-direction: column;
    gap: 0;
  }
  .ws-text-rail,
  .ws-media {
    display: contents;
  }
  .ws-text {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    height: auto;
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
  }
  .ws-title { max-width: none; }
  .ws-body { max-width: none; }
  .ws-item {
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: var(--space-2);
  }
  .ws-item img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .ws-text[data-index="0"] { order: 0; margin-top: 0; }
  .ws-item[data-index="0"] { order: 1; }
  .ws-text[data-index="1"] { order: 2; }
  .ws-item[data-index="1"] { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-text, .ws-item { transition-duration: 1ms !important; }
}

/* ============================================
   MERGED CTA + FORM
   ============================================ */
.problem-col-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.cta-steps-wrap {
  margin-bottom: var(--space-10);
}

/* ============================================
   SMALL-SCREEN FORM FIT (Turnstile needs >=300px width)
   ============================================ */
@media (max-width: 520px) {
  .consultation-form {
    padding: var(--space-4);
  }
  /* keep the 300px-min Turnstile widget inside the card, centred */
  .form-turnstile {
    display: flex;
    justify-content: center;
    overflow-x: auto;
  }
  .form-actions {
    gap: var(--space-2);
  }
  .form-actions .form-back {
    padding-inline: var(--space-3);
  }
}

/* ============================================
   PROBLEM / SOLUTION — COMPARISON CARDS
   ============================================ */
.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  max-width: 960px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .compare-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.compare-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.compare-card.is-solution {
  border-color: rgba(20, 184, 166, 0.4);
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.06) 0%, transparent 55%),
    var(--bg-surface);
}

.compare-label {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.label-problem {
  color: var(--persimmon-light);
  background: rgba(229, 91, 75, 0.1);
  border: 1px solid rgba(229, 91, 75, 0.3);
}

.label-solution {
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.compare-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-base);
}

/* Service-style icon badge (rounded, tinted square) used for list ticks */
.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  margin-top: 1px;
}

.tick svg { stroke: currentColor; }

.tick-check {
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.12);
}

.tick-cross {
  color: var(--persimmon-light);
  background: rgba(229, 91, 75, 0.12);
}

.tick-text {
  min-width: 0; /* allow the text to wrap inside the flex row */
  padding-top: 3px;
}

/* Work note — centred under the case studies */
.work-note {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-top: var(--space-8);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Fieldsets keep a default min-inline-size: min-content — force it to shrink */
.form-step,
.form-group {
  min-width: 0;
}

/* Very small phones (<=340px): icon-only logo so the header CTA + menu fit */
@media (max-width: 340px) {
  .logo-text {
    display: none;
  }
  .nav-actions {
    gap: var(--space-2);
  }
}

/* ============================================
   EXPERIENCE — BENTO GRID
   ============================================ */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(240px, auto); /* at least 240px (keeps media tiles + gap correct) but grows so text tiles don't clip their descriptions */
  }
  .tile-lg   { grid-column: span 2; grid-row: span 2; }
  .tile-wide { grid-column: span 2; }
  .tile-stat { grid-column: span 2; }
  .tile-cta  { grid-column: span 2; }
}

.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  min-height: 190px;
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

/* media tiles: image fills, content anchored to the bottom */
.has-media {
  justify-content: flex-end;
  min-height: 240px;
  color: #fff;
}

.bento-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bento-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.15) 0%, rgba(9, 9, 11, 0.55) 55%, rgba(9, 9, 11, 0.9) 100%);
}

.bento-content {
  position: relative;
  z-index: 2;
}

.bento-index {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--lime);
  margin-bottom: var(--space-2);
}

.bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(20, 184, 166, 0.12);
  color: var(--teal-light);
  margin-bottom: var(--space-2);
}

.bento-icon svg { stroke: currentColor; }

.bento-title {
  font-size: var(--text-lg);
  line-height: 1.25;
}

.bento-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.has-media .bento-title { color: #fff; }
.has-media .bento-text { color: rgba(255, 255, 255, 0.85); }

.tile-lg .bento-title { font-size: var(--text-2xl); }

/* stat / highlight tile */
.tile-stat.is-accent {
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.16) 0%, rgba(20, 184, 166, 0.1) 100%),
    var(--bg-surface);
  border-color: rgba(79, 70, 229, 0.3);
  justify-content: center;
}

.bento-stat {
  font-family: var(--font-heading);
  font-weight: 600; /* match .bento-title so the stat isn't heavier/wider than the rest */
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: 1.25;
}

/* CTA tile */
.tile-cta {
  text-decoration: none;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(190, 242, 100, 0.08) 0%, transparent 60%),
    var(--bg-surface);
}

.tile-cta:hover,
.tile-cta:focus-visible {
  border-color: var(--lime);
  transform: translateY(-3px);
}

.bento-cta-icon {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--cta);
  color: var(--void-black);
  transition: transform var(--transition-fast);
}

.tile-cta:hover .bento-cta-icon { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .bento-tile,
  .bento-cta-icon { transition: none; }
  .tile-cta:hover { transform: none; }
}

/* ============================================
   WHY US — "with vs without" tag clusters
   ============================================ */
.vs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  max-width: 980px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .vs-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-5);
  }
}

.vs-panel {
  min-width: 0;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.vs-panel.is-with {
  border-color: rgba(20, 184, 166, 0.4);
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.06) 0%, transparent 55%),
    var(--bg-surface);
}

.vs-panel-head {
  margin-bottom: var(--space-5);
}

.vs-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.vs-label-without {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.vs-label-with {
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.vs-sub {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.vs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.vs-tag {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  line-height: 1;
  white-space: nowrap;
}

.is-without .vs-tag {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

/* the "with" side gets vivid, varied accents — engaging but not playful */
.is-with .vs-tag {
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.3);
}
.is-with .vs-tag:nth-child(3n+1) {
  color: #a5b4fc;
  background: rgba(79, 70, 229, 0.14);
  border-color: rgba(79, 70, 229, 0.35);
}
.is-with .vs-tag:nth-child(3n) {
  color: var(--lime);
  background: rgba(190, 242, 100, 0.12);
  border-color: rgba(190, 242, 100, 0.3);
}

/* ============================================
   SERVICES TICKER — infinite marquee with edge fades
   ============================================ */
.ticker {
  overflow: hidden;
  padding-block: var(--space-4);
  background: var(--obsidian);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-right: var(--space-6);
  flex-shrink: 0;
}

.ticker-item {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  white-space: nowrap;
}

.ticker-dot {
  color: var(--teal-light);
  font-size: var(--text-lg);
  line-height: 1;
}

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

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Mobile: Back becomes an icon-only circle so the CTA gets the room */
@media (max-width: 640px) {
  /* stacked, full-width form buttons — primary first (top), Back below */
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  .form-actions .btn {
    width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
    justify-content: center;
    white-space: nowrap;
  }
  .form-actions .form-back {
    padding: 0.5rem 1.125rem;
    aspect-ratio: auto;
  }
  .form-actions .form-back .btn-label {
    display: inline;
  }
}

/* Mobile hero: 4 lines (Performance Marketing / Built on Proof, / Not Promises) */
@media (max-width: 640px) {
  /* pull everything up so the CTA sits well above the fold */
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) - 8px);
    padding-bottom: var(--space-1);
  }
  .hero-cta {
    margin-bottom: 0;
  }
  .hero-tag {
    margin-bottom: var(--space-3);
  }
  .hero-heading {
    font-size: clamp(2.1rem, 9.6vw, 3rem);
    margin-bottom: 4px;
  }
  .hero-line-a {
    font-size: 1em;
  }
  .hero-sub {
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
  }
  .hero-trust {
    margin-bottom: var(--space-1);
  }
}

/* Tie the form to the heading above it */
.form-header {
  margin-bottom: var(--space-4);
}

/* Step 1 has no Back button — left-align its Next button on all devices */
#step1 .form-actions {
  justify-content: flex-start;
}
#step1 .form-actions .form-next {
  margin-left: 0;
}

/* ============================================
   HERO — tech platforms trust widget
   ============================================ */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}

.trust-logos {
  display: inline-flex;
  align-items: center;
}

.trust-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 2px solid var(--void-black);
  overflow: hidden;
  margin-left: -10px; /* overlap like a stacked avatar row */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.trust-logo:first-child {
  margin-left: 0;
}

.trust-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.trust-logo-more {
  background: var(--midnight);
  border-color: var(--border);
  padding: 0;
  color: var(--teal-light);
}

@media (min-width: 641px) {
  .trust-logo {
    width: 48px;
    height: 48px;
    padding: 11px;
  }
}

.trust-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: left;
  max-width: 46ch;
}

.trust-text span {
  color: var(--teal-light);
}

@media (max-width: 480px) {
  .hero-trust { gap: var(--space-2); }
  .trust-text { font-size: var(--text-xs); text-align: center; }
}

/* Footer slogan under the logo */
.footer-slogan {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--teal-light);
  margin-top: calc(var(--space-2) * -1 + 2px);
  margin-bottom: var(--space-4);
}

/* Keep "Built on Proof," on one mobile line despite larger accent */
@media (max-width: 640px) {
  .hero-accent {
    font-size: 1.06em;
  }
  .hero-line-c {
    white-space: nowrap;
  }
}