/* ============================================================
   SPARZAN — redesign.css
   Redesign-v2 stylesheet. Everything that follows the dark→light
   rhythm brief lives here so the legacy light hero + interior
   pages keep rendering untouched while the redesign is rolled
   out phase by phase. Loaded AFTER components.css so specificity
   just works.

   Sections in build order (matches brief §8):
   §8.1   Dark hero (home)
   §8.2   Dark tech-stack marquee
   §8.3   Light proof band + stats + testimonial carousel
   §8.4   Scroll-scrubbed positioning statement
   §8.5   Expanding capability carousel
   §8.6   Pinned horizontal workflow (dark)
   §8.7   Selected work / case studies teaser (light)
   §8.8   Bento Why grid (light)
   §8.9   Dark final CTA
   §8.10  Footer polish
   ============================================================ */


/* ============================================================
   §8.1 — Dark home hero
   ============================================================ */

.hero--dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  min-height: min(920px, 100vh);
  padding-block: clamp(150px, 15vw, 220px) clamp(80px, 8vw, 130px);
  /* Override the legacy .hero clip-path that cuts a diagonal off
     the bottom — that clip was exposing the body's light background
     as a white diagonal gap between our dark hero and the dark
     marquee section that follows. */
  clip-path: none;
}

/* Layered mesh backdrop — three big blurred radials that slowly
   drift on their own timeline for depth without any noise. */
.hero-dark__mesh {
  position: absolute;
  inset: -20% -10%;
  background: var(--gradient-mesh-dark);
  filter: blur(60px) saturate(140%);
  opacity: 0.85;
  z-index: 0;
  animation: mesh-drift 42s ease-in-out infinite;
  will-change: transform;
}
@keyframes mesh-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);    }
  33%      { transform: translate3d(-3%, 2%, 0) scale(1.05); }
  66%      { transform: translate3d(2%, -1%, 0) scale(1.02); }
}

/* Fine dot grid overlay — barely there, just texture. */
.hero-dark__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at center, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, #000 30%, transparent 90%);
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

/* Tiny star field — 3 layers of CSS radial-gradient stars at
   different opacities/sizes for a subtle "particle" feel. */
.hero-dark__stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 20%,  rgba(232,237,248,0.55) 50%, transparent 100%),
    radial-gradient(1px 1px at 78% 34%,  rgba(232,237,248,0.42) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 70%, rgba(232,237,248,0.35) 50%, transparent 100%),
    radial-gradient(1px 1px at 88% 82%,  rgba(232,237,248,0.5)  50%, transparent 100%),
    radial-gradient(1px 1px at 22% 88%,  rgba(232,237,248,0.28) 50%, transparent 100%),
    radial-gradient(2px 2px at 62% 12%,  rgba(124,216,255,0.5)  50%, transparent 100%),
    radial-gradient(1px 1px at 33% 42%,  rgba(180,163,255,0.35) 50%, transparent 100%);
  animation: star-twinkle 6s ease-in-out infinite;
}
@keyframes star-twinkle {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.6; }
}

/* Filmic noise overlay — 2% opacity for warmth. */
.hero-dark__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* Layout — two columns on desktop, stacked on mobile.
   Copy anchored left, orbit visual right. */
.hero--dark .container {
  position: relative;
  z-index: 2;
}
.hero--dark .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 5vw, 5rem);
}
@media (max-width: 960px) {
  .hero--dark .hero__inner { grid-template-columns: 1fr; gap: 4rem; }
  .hero--dark .hero__visual { order: 2; }
}

/* Copy column ----------------------------------------------- */
.hero--dark .hero__copy { max-width: 620px; }

/* Eyebrow badge — dark variant */
.hero--dark .badge {
  background: rgba(10, 151, 240, 0.14);
  color: var(--brand-300);
  border: 1px solid rgba(10, 151, 240, 0.28);
  backdrop-filter: blur(6px);
  margin-bottom: var(--space-5);
}
.hero--dark .badge svg { color: var(--accent-500); }

/* H1 — massive, tight, gradient-italic accent phrase */
.hero--dark .hero__h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: var(--ls-display-tight);
  color: #fff;
  margin: 0 0 clamp(1.6rem, 3vw, 2.4rem);
}
.hero--dark .hero__h1 .accent-phrase--gradient {
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Sub */
.hero--dark .hero__sub {
  color: var(--text-on-dark-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 0 var(--space-6);
}

/* CTAs */
.hero--dark .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.btn--glow {
  position: relative;
  background: var(--gradient-cta);
  color: #fff;
  border: 0;
  box-shadow: var(--glow-brand-sm), 0 20px 40px -20px rgba(10, 151, 240, 0.55);
  transition: background var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
.btn--glow:hover {
  background: var(--gradient-cta-hover);
  box-shadow: var(--glow-brand), 0 26px 50px -18px rgba(10, 151, 240, 0.7);
}
.btn--ghost-dark {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
.btn--ghost-dark:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.32);
}

/* Trust line with three colored dots */
.hero-dark__trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-dark-soft);
  font-size: var(--fs-sm);
  padding: 8px 14px 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
}
.hero-dark__trust-dots {
  display: inline-flex;
  gap: -4px;
  margin-right: 4px;
}
.hero-dark__trust-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  margin-left: -4px;
}
.hero-dark__trust-dot:first-child { margin-left: 0; background: linear-gradient(135deg, #ff9a56, #ff5c8a); }
.hero-dark__trust-dot:nth-child(2) { background: linear-gradient(135deg, #56d9ff, #533afd); }
.hero-dark__trust-dot:nth-child(3) { background: linear-gradient(135deg, #56ff9c, #0a97f0); }

/* Visual column — orbit + glass card + floating chips -------- */
.hero__visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orbit {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
/* Outer orbit ring */
.hero-orbit__ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(232,237,248,0.14);
  animation: orbit-rotate 60s linear infinite;
}
@keyframes orbit-rotate { to { transform: rotate(360deg); } }
.hero-orbit__ring::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(232,237,248,0.08);
}
/* Orbiting capability icon */
.hero-orbit__icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(232,237,248,0.14);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-500);
  transform-origin: 22px 22px;
  transform: rotate(var(--angle)) translate(220px) rotate(calc(var(--angle) * -1));
  animation: orbit-icon-counter 60s linear infinite;
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.4);
}
@keyframes orbit-icon-counter { to { transform: rotate(calc(var(--angle) + 360deg)) translate(220px) rotate(calc((var(--angle) + 360deg) * -1)); } }
.hero-orbit__icon svg { width: 20px; height: 20px; }

/* Central glass card */
.hero-orbit__card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  padding: 22px 26px;
  min-width: 200px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 20px 60px -10px rgba(0,0,0,0.5),
    0 0 60px rgba(10, 151, 240, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.15);
  text-align: left;
}
.hero-orbit__card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent-400);
  margin-bottom: 8px;
}
.hero-orbit__card-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22d97a;
  box-shadow: 0 0 0 3px rgba(34, 217, 122, 0.25);
  animation: hud-dot-pulse 2s ease-in-out infinite;
}
.hero-orbit__card-num {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-orbit__card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-on-dark-soft);
  margin-top: 4px;
}

/* Floating annotation chips */
.hero-chip {
  position: absolute;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-on-dark);
  background: rgba(11, 18, 32, 0.75);
  border: 1px solid rgba(232, 237, 248, 0.14);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.5);
  white-space: nowrap;
  z-index: 3;
}
.hero-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 8px currentColor;
  color: var(--accent-500);
}
.hero-chip--tl { top: 6%;  left: -10%; animation: chip-drift-a 6s ease-in-out infinite; }
.hero-chip--tr { top: 18%; right: -8%; animation: chip-drift-b 7s ease-in-out infinite; }
.hero-chip--bl { bottom: 8%; left: -6%; animation: chip-drift-c 5.4s ease-in-out infinite; }
@keyframes chip-drift-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes chip-drift-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes chip-drift-c { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 640px) {
  .hero-chip--tl { left: 0; }
  .hero-chip--tr { right: 0; }
  .hero-chip--bl { left: 0; }
}

/* Scroll indicator at hero foot */
.hero-dark__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-on-dark-mute);
  z-index: 4;
}
.hero-dark__scroll-arrow {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent-400));
  position: relative;
  border-radius: 2px;
}
.hero-dark__scroll-arrow::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--accent-400);
  border-bottom: 1.5px solid var(--accent-400);
  transform: translateX(-50%) rotate(45deg);
  margin-bottom: -4px;
}
.hero-dark__scroll-line {
  animation: scroll-hint 2.2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%   { opacity: 0.3; transform: translateY(0);    }
  50%  { opacity: 1;   transform: translateY(6px);  }
  100% { opacity: 0.3; transform: translateY(12px); }
}

/* Reduce motion — kill all continuous animations */
@media (prefers-reduced-motion: reduce) {
  .hero-dark__mesh,
  .hero-dark__stars,
  .hero-orbit__ring,
  .hero-orbit__icon,
  .hero-chip,
  .hero-dark__scroll-line,
  .hero-orbit__card-status::before { animation: none !important; }
}


/* ============================================================
   §8.3 — Proof band (light): stats + testimonial carousel
   Immediately after the hero + marquee. Moved up per §5 UX
   rule so proof lands within the first two scroll depths.
   ============================================================ */
.proof-band {
  padding-block: clamp(80px, 9vw, 130px);
  background: #fff;
  position: relative;
}
.proof-band__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.proof-band__head .badge {
  margin-bottom: var(--space-4);
}
.proof-band__head h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  color: var(--ink-900);
  margin: 0;
}

/* 4-column stat grid — cards lift on hover */
.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: clamp(72px, 8vw, 112px);
}
@media (max-width: 900px) { .proof-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .proof-stats { grid-template-columns: 1fr; } }

.proof-stat {
  position: relative;
  padding: clamp(1.8rem, 2.4vw, 2.4rem) clamp(1.5rem, 2vw, 1.8rem);
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.proof-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.proof-stat:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: 0 24px 44px -18px rgba(10, 151, 240, 0.22);
}
.proof-stat:hover::before { transform: scaleX(1); }
.proof-stat__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--brand-50), rgba(34,199,255,0.18));
  border: 1px solid rgba(10, 151, 240, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  margin-bottom: var(--space-4);
}
.proof-stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.028em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.proof-stat__label {
  font-size: var(--fs-sm);
  color: var(--ink-500);
  line-height: 1.55;
}

/* Testimonial carousel — Splide-driven, wider than the container
   but not quite full-bleed so it has a bit of side gutter. */
.testimonial-wrap {
  width: min(96vw, 1400px);
  margin-inline: auto;
  position: relative;
}
.testimonial-wrap__head {
  text-align: center;
  margin-bottom: var(--space-6);
}
.testimonial-wrap__head .badge {
  color: var(--brand-700);
  background: rgba(10, 151, 240, 0.06);
  border-color: rgba(10, 151, 240, 0.18);
}

/* Splide overrides for our card styling */
.testimonial-splide .splide__track { padding: var(--space-3) 4px; }
.testimonial-splide .splide__slide { padding: 0 var(--space-3); }
.testimonial-splide .splide__pagination {
  bottom: -32px;
}
.testimonial-splide .splide__pagination__page {
  width: 8px; height: 8px;
  background: var(--ink-200);
  opacity: 1;
  transition: background var(--dur-base) var(--ease),
              width var(--dur-base) var(--ease);
}
.testimonial-splide .splide__pagination__page.is-active {
  background: var(--brand-500);
  width: 24px;
  border-radius: 4px;
  transform: none;
}
.testimonial-splide .splide__arrow {
  background: #fff;
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  width: 44px; height: 44px;
  opacity: 1;
}
.testimonial-splide .splide__arrow svg { fill: var(--brand-600); }
.testimonial-splide .splide__arrow:hover { background: var(--brand-50); }
.testimonial-splide .splide__arrow--prev { left: -14px; }
.testimonial-splide .splide__arrow--next { right: -14px; }

.testimonial-card {
  padding: clamp(1.8rem, 2.4vw, 2.4rem);
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px -12px rgba(16, 18, 45, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  min-height: 260px;
}
.testimonial-card__rating {
  display: inline-flex;
  gap: 3px;
  color: var(--brand-500);
}
.testimonial-card__rating svg { width: 15px; height: 15px; }
.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-800);
  letter-spacing: -0.008em;
  margin: 0;
  flex: 1;
}
.testimonial-card__quote::before { content: "\201C"; margin-right: 4px; color: var(--brand-500); }
.testimonial-card__quote::after  { content: "\201D"; margin-left: 4px; color: var(--brand-500); }
.testimonial-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--ink-100);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-500);
}
.testimonial-card__meta-mark {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--gradient-brand);
  flex-shrink: 0;
  opacity: 0.85;
}


/* ============================================================
   §8.4 — Positioning statement (light, scroll-scrubbed)
   The one scroll-scrubbed text moment on the homepage.
   Words un-blur/fade as the section scrubs through viewport.
   ============================================================ */
.positioning {
  padding-block: clamp(120px, 14vw, 200px);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.positioning__inner {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.positioning .badge {
  margin-bottom: var(--space-5);
  color: var(--brand-700);
  background: rgba(10, 151, 240, 0.06);
  border-color: rgba(10, 151, 240, 0.18);
}
.positioning__h {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: var(--ls-display-tight);
  color: var(--ink-900);
  margin: 0 auto var(--space-6);
  max-width: 24ch;
  text-wrap: balance;
}
.positioning__body {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-500);
  max-width: 62ch;
  margin: 0 auto;
}
/* Ambient wash behind — very subtle */
.positioning::before {
  content: "";
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(10, 151, 240, 0.08), transparent 60%);
  z-index: 0;
  pointer-events: none;
}


/* ============================================================
   §8.5 — Expanding capability carousel (SIGNATURE COMPONENT)
   Horizontal accordion of 4 cards. Active card expands to ~45%,
   inactive cards collapse to narrow columns with a rotated
   title. Click / hover activates; arrow keys work for keyboard.
   Mobile → vertical stack, all expanded.
   ============================================================ */

.cap-section {
  padding-block: clamp(96px, 11vw, 160px);
  background: var(--paper-soft);
  position: relative;
}
.cap-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.cap-section__head .badge { margin-bottom: var(--space-4); }
.cap-section__head h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  color: var(--ink-900);
  margin: 0 0 var(--space-3);
}
.cap-section__head p {
  color: var(--ink-500);
  font-size: var(--fs-lg);
  margin: 0;
}
.cap-section__foot {
  text-align: center;
  margin-top: var(--space-7);
}

/* Grid track — grid-template-columns transitions on data-active swap.
   No min-height: the active card's content determines the row height,
   collapsed cards stretch to match. Prevents dead space below the
   rotated titles on collapsed cards. */
.cap-carousel {
  display: grid;
  grid-template-columns: 3.6fr 1fr 1fr 1fr;
  gap: 12px;
  transition: grid-template-columns 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
.cap-carousel[data-active="0"] { grid-template-columns: 3.6fr 1fr    1fr    1fr;    }
.cap-carousel[data-active="1"] { grid-template-columns: 1fr    3.6fr  1fr    1fr;    }
.cap-carousel[data-active="2"] { grid-template-columns: 1fr    1fr    3.6fr  1fr;    }
.cap-carousel[data-active="3"] { grid-template-columns: 1fr    1fr    1fr    3.6fr;  }

.cap-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.4rem, 2vw, 2rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-100);
  background: linear-gradient(160deg, #fff 0%, var(--paper-soft) 100%);
  cursor: pointer;
  transition: border-color 0.4s var(--ease),
              background 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
  outline: none;
  min-width: 0;
}
.cap-card:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
}
.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cap-tint, radial-gradient(120% 80% at 20% 0%, rgba(10,151,240,0.10), transparent 60%));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.cap-card > * { position: relative; z-index: 1; }

/* Per-card gradient tints, all in blue/cyan/violet family */
.cap-card[data-cap="design"]      { --cap-tint: radial-gradient(120% 80% at 20% 0%, rgba(10, 151, 240, 0.14),  transparent 60%); }
.cap-card[data-cap="engineering"] { --cap-tint: radial-gradient(120% 80% at 20% 0%, rgba(34, 199, 255, 0.14),  transparent 60%); }
.cap-card[data-cap="ai"]          { --cap-tint: radial-gradient(120% 80% at 20% 0%, rgba(83, 58, 253, 0.14),   transparent 60%); }
.cap-card[data-cap="growth"]      { --cap-tint: radial-gradient(120% 80% at 20% 0%, rgba(124, 216, 255, 0.14), transparent 60%); }

.cap-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-400);
  text-transform: uppercase;
}
.cap-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, var(--brand-50));
  border: 1px solid var(--brand-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  margin: var(--space-4) 0 var(--space-4);
  transition: transform 0.4s var(--ease);
}
.cap-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  color: var(--ink-900);
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 0;
}
.cap-card__body {
  margin-top: var(--space-4);
  color: var(--ink-500);
  font-size: var(--fs-base);
  line-height: 1.6;
  max-width: 46ch;
  transition: opacity 0.4s var(--ease) 0.15s,
              transform 0.4s var(--ease) 0.15s;
}
.cap-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-4);
}
.cap-card__tags span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--brand-700);
  background: rgba(10, 151, 240, 0.08);
  border: 1px solid rgba(10, 151, 240, 0.16);
}
.cap-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink-100);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--brand-600);
  font-weight: var(--fw-semibold);
  transition: gap var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease);
}
.cap-card__link:hover { gap: 12px; color: var(--brand-700); }

/* Active state */
.cap-card.is-active {
  border-color: var(--brand-200);
  box-shadow: 0 24px 60px -18px rgba(10, 151, 240, 0.22);
}
.cap-card.is-active::before { opacity: 1; }
.cap-card.is-active .cap-card__icon { transform: scale(1.08) rotate(-4deg); }

/* Collapsed state — body / link / tags / title all hidden.
   The .cap-card__num already communicates the short label
   ("01 · Design" etc.) so no info is lost, and the card stays
   short. Previously the full title was rotated vertical, which
   forced all cards to stretch to ~1200px tall to fit the
   longest title. */
.cap-card:not(.is-active) .cap-card__body,
.cap-card:not(.is-active) .cap-card__link,
.cap-card:not(.is-active) .cap-card__tags,
.cap-card:not(.is-active) .cap-card__title {
  opacity: 0;
  pointer-events: none;
}
.cap-card:not(.is-active) .cap-card__title {
  height: 0;
  margin: 0;
  overflow: hidden;
}
.cap-card:not(.is-active) .cap-card__num {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: var(--space-4);
  color: var(--brand-600);
  font-weight: var(--fw-semibold);
}

/* Mobile — stack vertically, all expanded */
@media (max-width: 900px) {
  .cap-carousel {
    grid-template-columns: 1fr !important;
    gap: var(--space-4);
    min-height: 0;
  }
  .cap-card { cursor: default; min-height: 0; }
  .cap-card .cap-card__title {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: clamp(1.15rem, 1.6vw, 1.5rem) !important;
  }
  .cap-card:not(.is-active) .cap-card__body,
  .cap-card:not(.is-active) .cap-card__link,
  .cap-card:not(.is-active) .cap-card__tags {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cap-carousel { transition: none; }
  .cap-card, .cap-card__body, .cap-card__icon, .cap-card__link { transition: none !important; }
}


/* ============================================================
   §8.6 — Workflow (dark, pinned horizontal scroll)
   The section pins in place; user scrolls, steps slide
   horizontally, progress line fills, ghost numeral of the
   active step swells into view.
   Mobile fallback: normal vertical stack with a scroll-drawn
   connecting line down the left side.
   ============================================================ */

.workflow-pin {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 140px);
  isolation: isolate;
}
.workflow-pin::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: var(--gradient-mesh-dark);
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  animation: mesh-drift 55s ease-in-out infinite;
}
.workflow-pin__head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.workflow-pin__head .badge {
  background: rgba(10, 151, 240, 0.14);
  color: var(--brand-300);
  border-color: rgba(10, 151, 240, 0.28);
  margin-bottom: var(--space-4);
}
.workflow-pin__head h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: var(--ls-display);
  color: #fff;
  margin: 0 0 var(--space-3);
}
.workflow-pin__head h2 .accent-phrase--gradient {
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.workflow-pin__head p {
  color: var(--text-on-dark-soft);
  font-size: var(--fs-lg);
  margin: 0;
}

/* Progress bar under the pinned section */
.workflow-pin__progress-track {
  position: relative;
  z-index: 2;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  max-width: min(1000px, 90%);
  margin: 0 auto var(--space-8);
  overflow: hidden;
}
.workflow-pin__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-cta);
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

/* Horizontal track — steps slide in on scroll (desktop pin) */
.workflow-pin__viewport {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-inline: var(--gutter);
}
.workflow-pin__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 380px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  will-change: transform;
}

.workflow-step {
  position: relative;
  padding: clamp(1.8rem, 2.4vw, 2.4rem);
  min-height: 340px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.5s var(--ease),
              background 0.5s var(--ease);
}
.workflow-step.is-active {
  border-color: rgba(10, 151, 240, 0.4);
  background: rgba(10, 151, 240, 0.06);
  box-shadow: 0 30px 70px -20px rgba(10, 151, 240, 0.35);
}
.workflow-step__ghost {
  position: absolute;
  top: 40%; right: -18px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(6rem, 9vw, 10rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  z-index: 0;
  transition: color 0.5s var(--ease);
  pointer-events: none;
}
.workflow-step.is-active .workflow-step__ghost {
  color: rgba(56, 189, 248, 0.16);
}
.workflow-step__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent-400);
}
.workflow-step__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  color: #fff;
  letter-spacing: -0.015em;
  margin: 12px 0 var(--space-3);
}
.workflow-step__body {
  color: var(--text-on-dark-soft);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}
.workflow-step__output {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent-400);
}
.workflow-step__output span {
  color: var(--text-on-dark-mute);
  margin-right: 6px;
}

/* Workflow CTA foot */
.workflow-pin__foot {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: var(--space-7);
}
.workflow-pin__foot .btn {
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
}
.workflow-pin__foot .btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.32);
}

/* Mobile fallback — vertical stack with left connector line */
@media (max-width: 900px) {
  .workflow-pin__viewport { overflow: visible; }
  .workflow-pin__track {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    gap: var(--space-4);
    position: relative;
    padding-left: var(--space-5);
  }
  .workflow-pin__track::before {
    content: "";
    position: absolute;
    left: 8px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-500), transparent);
  }
  .workflow-step { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-pin::before { animation: none !important; }
}


/* ============================================================
   §8.7 — Selected work / case studies teaser (light)
   A confident glass card in front of an abstract mock-UI
   collage (dashboard shapes, no fake client branding), the
   honest coming-soon copy, and a marquee ticker of anonymized
   engagement tags below.
   ============================================================ */

.work-teaser-v2 {
  padding-block: clamp(96px, 11vw, 160px);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.work-teaser-v2__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.work-teaser-v2__head .badge { margin-bottom: var(--space-4); }
.work-teaser-v2__head h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  color: var(--ink-900);
  margin: 0;
}

.work-teaser-v2__card {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #fff 0%, var(--paper-soft) 100%);
  border: 1px solid var(--ink-100);
  box-shadow: 0 32px 80px -30px rgba(16, 18, 45, 0.18);
  overflow: hidden;
  isolation: isolate;
}
/* Abstract mock-UI collage — CSS-only, no fake client branding.
   Rendered as a right-side vignette of stacked fake UI cards
   with visible detail lines so it reads as "dashboards" not
   empty rectangles. */
.work-teaser-v2__mock {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.9;
}
.work-teaser-v2__mock-panel {
  position: absolute;
  padding: 16px;
  background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%);
  border: 1px solid rgba(10, 151, 240, 0.14);
  border-radius: 14px;
  box-shadow: 0 20px 44px -18px rgba(10, 18, 45, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* Top: analytics card with row of stat pills */
.work-teaser-v2__mock-panel--stats {
  top: 8%; right: 6%;
  width: 46%; height: 32%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-teaser-v2__mock-title {
  height: 8px;
  width: 40%;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-500));
  border-radius: 4px;
  opacity: 0.65;
}
.work-teaser-v2__mock-sub {
  height: 6px;
  width: 65%;
  background: var(--ink-100);
  border-radius: 3px;
}
.work-teaser-v2__mock-row {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.work-teaser-v2__mock-row span {
  flex: 1;
  height: 22px;
  background: linear-gradient(180deg, var(--brand-50), rgba(34, 199, 255, 0.14));
  border: 1px solid rgba(10, 151, 240, 0.16);
  border-radius: 6px;
}
/* Middle: bar chart */
.work-teaser-v2__mock-panel--chart {
  top: 46%; right: 20%;
  width: 40%; height: 22%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 12px;
}
.work-teaser-v2__mock-panel--chart span {
  flex: 1;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-500));
  border-radius: 3px 3px 0 0;
  opacity: 0.55;
}
/* Bottom: card with detail lines */
.work-teaser-v2__mock-panel--card {
  bottom: 6%; right: 8%;
  width: 34%; height: 26%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, #fff, rgba(83, 58, 253, 0.05));
  border-color: rgba(83, 58, 253, 0.14);
}
.work-teaser-v2__mock-panel--card .work-teaser-v2__mock-title {
  background: linear-gradient(90deg, var(--violet-400), var(--brand-500));
}
.work-teaser-v2__mock-line {
  height: 4px;
  background: var(--ink-100);
  border-radius: 2px;
}
.work-teaser-v2__mock-line:nth-of-type(2) { width: 90%; }
.work-teaser-v2__mock-line:nth-of-type(3) { width: 78%; }
.work-teaser-v2__mock-line:nth-of-type(4) { width: 84%; }
@media (max-width: 900px) {
  .work-teaser-v2__mock { display: none; }
}

.work-teaser-v2__body {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.work-teaser-v2__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(10, 151, 240, 0.1);
  color: var(--brand-700);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-5);
}
.work-teaser-v2__label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  animation: hud-dot-pulse 2.2s ease-in-out infinite;
}
.work-teaser-v2__h {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ink-900);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}
.work-teaser-v2__body p {
  color: var(--ink-500);
  font-size: var(--fs-base);
  line-height: 1.65;
  margin: 0 0 var(--space-5);
}
.work-teaser-v2__body .btn { margin-right: var(--space-3); }

/* Marquee ticker of anonymized engagement tags */
.work-ticker {
  margin-top: var(--space-7);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.work-ticker__track {
  display: flex;
  gap: var(--space-3);
  animation: work-ticker 28s linear infinite;
  will-change: transform;
}
.work-ticker__chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-700);
  white-space: nowrap;
}
.work-ticker__chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}
@keyframes work-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .work-ticker__track { animation: none; }
  .work-ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .work-teaser-v2__label::before { animation: none; }
}


/* ============================================================
   §8.8 — Why Sparzan (light, bento grid)
   4 value cards in a 2×2 bento with mixed sizes (one wide,
   three standard) so it doesn't read as a template grid.
   ============================================================ */

.why-bento {
  padding-block: clamp(96px, 11vw, 160px);
  background: var(--paper-soft);
}
.why-bento__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.why-bento__head .badge { margin-bottom: var(--space-4); }
.why-bento__head h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  color: var(--ink-900);
  margin: 0 0 var(--space-3);
}
.why-bento__head p { color: var(--ink-500); font-size: var(--fs-lg); margin: 0; }

.why-bento__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: var(--space-4);
}
.why-bento__card {
  position: relative;
  padding: clamp(1.8rem, 2.6vw, 2.4rem);
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.why-bento__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.why-bento__card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: 0 30px 60px -22px rgba(10, 151, 240, 0.22);
}
.why-bento__card:hover::before { transform: scaleX(1); }

/* Mixed-size bento layout */
.why-bento__card--wide  { grid-column: span 2; }
.why-bento__card--tall  { grid-row:    span 2; }

@media (max-width: 900px) {
  .why-bento__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .why-bento__card--wide, .why-bento__card--tall { grid-column: auto; grid-row: auto; }
}

.why-bento__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--brand-50), rgba(34,199,255,0.14));
  border: 1px solid var(--brand-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  margin-bottom: var(--space-4);
}
.why-bento__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--ink-900);
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}
.why-bento__body {
  color: var(--ink-500);
  font-size: var(--fs-sm);
  line-height: 1.65;
  margin: 0;
  max-width: 44ch;
}
.why-bento__card--wide .why-bento__title { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.why-bento__card--wide .why-bento__body  { font-size: var(--fs-base); max-width: 60ch; }

/* Decorative sparkle on the wide card */
.why-bento__spark {
  position: absolute;
  top: 40%; right: -20px;
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 10rem);
  line-height: 1;
  color: rgba(10, 151, 240, 0.05);
  font-weight: var(--fw-bold);
  pointer-events: none;
  z-index: 0;
}


/* ============================================================
   §8.9 — Final CTA (dark, dramatic)
   Full-bleed dark with the gradient mesh at its most vibrant,
   availability badge, giant gradient mailto as the hero
   element, primary book-a-demo button. Blobs breathe slowly.
   ============================================================ */

.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: clamp(64px, 7vw, 96px);
  text-align: center;
}
.final-cta__mesh {
  position: absolute;
  inset: -10%;
  background: var(--gradient-mesh-dark);
  filter: blur(70px);
  opacity: 1;
  z-index: 0;
  animation: cta-breathe 8s ease-in-out infinite;
}
@keyframes cta-breathe {
  0%, 100% { transform: scale(1)    translate(0, 0); }
  50%      { transform: scale(1.05) translate(-1%, 2%); }
}
.final-cta__stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(232,237,248,0.5), transparent),
    radial-gradient(1px 1px at 75% 65%, rgba(232,237,248,0.35), transparent),
    radial-gradient(2px 2px at 40% 80%, rgba(124,216,255,0.45), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(180,163,255,0.4), transparent);
}
.final-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}
.final-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 217, 122, 0.14);
  color: #6be09a;
  border: 1px solid rgba(34, 217, 122, 0.32);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(10px);
}
.final-cta__badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22d97a;
  box-shadow: 0 0 12px currentColor, 0 0 0 3px rgba(34, 217, 122, 0.25);
  animation: hud-dot-pulse 2s ease-in-out infinite;
}
.final-cta__h {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: var(--ls-display-tight);
  color: #fff;
  margin: 0 0 var(--space-4);
}
.final-cta__h .accent-phrase--gradient {
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.final-cta__sub {
  color: var(--text-on-dark-soft);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 auto var(--space-6);
}
.final-cta__mailto {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
}
.final-cta__mailto::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-500), var(--violet-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.final-cta__mailto:hover::after { transform: scaleX(1); }
.final-cta__mailto-arrow {
  width: clamp(28px, 4vw, 44px);
  height: clamp(28px, 4vw, 44px);
  color: var(--accent-400);
  -webkit-text-fill-color: currentColor;
  transition: transform var(--dur-base) var(--ease);
}
.final-cta__mailto:hover .final-cta__mailto-arrow { transform: translateX(6px); }

.final-cta__actions {
  margin-top: var(--space-5);
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
@media (prefers-reduced-motion: reduce) {
  .final-cta__mesh, .final-cta__badge::before { animation: none !important; }
}


/* ============================================================
   §8.10 — Footer polish
   Keep the current 4-column footer structure. Add:
   - Giant ghosted "Sparzan" wordmark at ~2% opacity behind
   - Animated underline draw on every footer link
   ============================================================ */

.footer.footer--v2 {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.footer.footer--v2::before {
  content: "Sparzan";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(140px, 22vw, 320px);
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: -0.05em;
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
}
.footer.footer--v2 > * { position: relative; z-index: 1; }

/* Animated underline on every footer link */
.footer.footer--v2 a:not(.brand):not(.footer__social-link) {
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
.footer.footer--v2 a:not(.brand):not(.footer__social-link)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.footer.footer--v2 a:not(.brand):not(.footer__social-link):hover::after {
  transform: scaleX(1);
}


/* ============================================================
   §9 SHELL — Interior page hero (dark, compact) + dark
   breadcrumb + compact final CTA. Used on every subpage per
   the brief's "60–70vh dark hero" shell rule.
   ============================================================ */

.hero.hero--dark.hero--dark-compact {
  min-height: 0;
  padding-block: clamp(120px, 12vw, 170px) clamp(56px, 6vw, 90px);
  clip-path: none;
}
.hero--dark-compact .hero--interior__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.1rem, 2vw, 1.6rem);
  max-width: 860px;
  position: relative;
  z-index: 2;
}
.hero--dark-compact .breadcrumb--dark {
  margin-bottom: var(--space-2);
  color: var(--text-on-dark-mute);
}
.hero--dark-compact .breadcrumb--dark a {
  color: var(--accent-400);
}
.hero--dark-compact .breadcrumb--dark a:hover { color: var(--accent-500); }
.hero--dark-compact .breadcrumb--dark .breadcrumb__sep { color: var(--text-on-dark-mute); opacity: 0.4; }
.hero--dark-compact .breadcrumb--dark .breadcrumb__current { color: var(--text-on-dark); }
.hero--dark-compact .hero__h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: var(--ls-display-tight);
  color: #fff !important;
  margin: 0;
  max-width: 22ch;
}
.hero--dark-compact .hero__h1 .accent-phrase--gradient {
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero--dark-compact .hero__sub {
  color: var(--text-on-dark-soft) !important;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}
.hero--dark-compact .badge {
  background: rgba(10, 151, 240, 0.14) !important;
  color: var(--brand-300) !important;
  border: 1px solid rgba(10, 151, 240, 0.28) !important;
  backdrop-filter: blur(6px);
}
.hero--dark-compact .hero-meta {
  border-top-color: rgba(10, 151, 240, 0.18);
}
.hero--dark-compact .hero-meta__chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-on-dark-soft);
}
.hero--dark-compact .hero-meta__chip strong { color: #fff; }
.hero--dark-compact .hero-meta__chip svg { color: var(--accent-400); }

/* Kill legacy interior hero decor accidents on the same section */
.hero--dark-compact .grid-backdrop,
.hero--dark-compact .hero-orb,
.hero--dark-compact .hero-decor {
  display: none;
}

/* Also remove the seam dot that got styled onto the light interior hero */
.hero--dark-compact::after,
.hero--dark-compact + section::before,
.hero--dark-compact + .section::before {
  display: none !important;
}


/* ============================================================
   Compact final-CTA partial — for every subpage's end block
   ============================================================ */
.final-cta.final-cta--compact {
  padding-block: clamp(96px, 11vw, 150px);
}
.final-cta--compact .final-cta__h {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.final-cta--compact .final-cta__mailto {
  font-size: clamp(1.6rem, 4vw, 3rem);
}
.final-cta--compact .final-cta__sub { margin-bottom: var(--space-6); }


/* ============================================================
   §9.1 /services — Ways-to-work "best for" hover reveal
   ============================================================ */
.svc-feature .svc-feature__best {
  display: block;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--ink-100);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--brand-700);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
.svc-feature:hover .svc-feature__best {
  opacity: 1;
  transform: translateY(0);
}
.svc-feature .svc-feature__best span {
  color: var(--ink-400);
  margin-right: 4px;
}


/* ============================================================
   §9.5 /about — editorial 2-col story + bento principles +
   glass "how we ship" cards + dark stats band
   ============================================================ */

/* Editorial two-column story */
.about-story {
  padding-block: clamp(96px, 11vw, 160px);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.about-story__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .about-story__inner { grid-template-columns: 1fr; gap: 2rem; }
}
.about-story__pull {
  position: sticky;
  top: 120px;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: var(--ls-display);
  color: var(--ink-900);
  margin: 0;
}
.about-story__pull .accent-phrase--gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 900px) { .about-story__pull { position: static; } }
.about-story__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.about-story__body .badge { align-self: flex-start; margin-bottom: var(--space-3); }
.about-story__body p {
  color: var(--ink-600);
  font-size: var(--fs-lg);
  line-height: 1.7;
  margin: 0;
}
.about-story__body p:first-of-type {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(1.2rem, 1.6vw, 1.35rem);
  color: var(--ink-800);
  line-height: 1.55;
}

/* Bento principles grid — 5 items, mixed sizes */
.about-principles {
  padding-block: clamp(96px, 11vw, 160px);
  background: var(--paper-soft);
}
.about-principles__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.about-principles__head .badge { margin-bottom: var(--space-4); }
.about-principles__head h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  color: var(--ink-900);
  margin: 0 0 var(--space-3);
}
.about-principles__head p { color: var(--ink-500); font-size: var(--fs-lg); margin: 0; }

.about-principles__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: var(--space-4);
}
.about-principle {
  position: relative;
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.about-principle:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: 0 24px 44px -18px rgba(10, 151, 240, 0.22);
}
.about-principle__num {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-300);
}
.about-principle__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--brand-50), rgba(34,199,255,0.14));
  border: 1px solid var(--brand-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  margin-bottom: var(--space-4);
}
.about-principle__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-900);
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}
.about-principle__body {
  color: var(--ink-500);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin: 0;
  max-width: 44ch;
}

/* Layout for 5 principles: 3 rows */
.about-principle:nth-child(1) { grid-column: 1 / 4; }      /* wide */
.about-principle:nth-child(2) { grid-column: 4 / 7; }      /* wide */
.about-principle:nth-child(3) { grid-column: 1 / 3; }
.about-principle:nth-child(4) { grid-column: 3 / 5; }
.about-principle:nth-child(5) { grid-column: 5 / 7; }
@media (max-width: 900px) {
  .about-principles__grid { grid-template-columns: 1fr; }
  .about-principle:nth-child(n) { grid-column: 1 / -1; }
}

/* How we're set up to ship — glass cards */
.about-setup {
  padding-block: clamp(96px, 11vw, 160px);
  background: #fff;
}
.about-setup__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.about-setup__head .badge { margin-bottom: var(--space-4); }
.about-setup__head h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  color: var(--ink-900);
  margin: 0;
}
.about-setup__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) { .about-setup__grid { grid-template-columns: 1fr; } }
.about-setup-card {
  position: relative;
  padding: clamp(1.8rem, 2.6vw, 2.4rem);
  background: linear-gradient(160deg, rgba(10, 151, 240, 0.05), rgba(83, 58, 253, 0.03));
  border: 1px solid rgba(10, 151, 240, 0.14);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  overflow: hidden;
  isolation: isolate;
}
.about-setup-card__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--brand-700);
  margin-bottom: var(--space-3);
}
.about-setup-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  color: var(--ink-900);
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}
.about-setup-card__body {
  color: var(--ink-600);
  font-size: var(--fs-sm);
  line-height: 1.65;
  margin: 0;
}

/* Dark stats band */
.about-stats {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: clamp(80px, 10vw, 140px);
}
.about-stats::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: var(--gradient-mesh-dark);
  filter: blur(70px);
  opacity: 0.6;
  z-index: 0;
  animation: mesh-drift 55s ease-in-out infinite;
}
.about-stats__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  text-align: center;
}
@media (max-width: 900px) {
  .about-stats__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .about-stats__inner { grid-template-columns: 1fr; }
}
.about-stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.028em;
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.about-stat__label {
  color: var(--text-on-dark-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
}


/* ============================================================
   §9.4 /process — deep-dive vertical timeline + dark
   production-grade checklist + engagement recap + FAQ accordion
   ============================================================ */

.process-timeline {
  padding-block: clamp(96px, 11vw, 160px);
  background: #fff;
  position: relative;
}
.process-timeline__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.process-timeline__head .badge { margin-bottom: var(--space-4); }
.process-timeline__head h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  color: var(--ink-900);
  margin: 0 0 var(--space-3);
}
.process-timeline__head p { color: var(--ink-500); font-size: var(--fs-lg); margin: 0; }

/* Timeline rail with scroll-drawn progress */
.process-timeline__rail {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 32px;
}
.process-timeline__rail::before {
  content: "";
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: var(--ink-100);
  border-radius: 2px;
}
.process-timeline__rail-fill {
  position: absolute;
  left: 12px; top: 0;
  width: 2px;
  height: 0;
  background: var(--gradient-cta);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  border-radius: 2px;
  will-change: height;
  z-index: 1;
}

.process-phase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 800px) {
  .process-phase { grid-template-columns: 1fr; gap: 1rem; }
}
.process-phase::before {
  content: "";
  position: absolute;
  left: -25px;
  top: clamp(2rem, 4vw, 3.5rem);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--ink-200);
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  z-index: 2;
}
.process-phase.is-active::before {
  background: var(--brand-500);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 5px rgba(10, 151, 240, 0.18), 0 0 20px rgba(10, 151, 240, 0.55);
}

/* Sticky left label — phase number + name */
.process-phase__label {
  position: sticky;
  top: 120px;
}
@media (max-width: 800px) { .process-phase__label { position: static; } }
.process-phase__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--brand-600);
  display: block;
  margin-bottom: 6px;
}
.process-phase__title {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.process-phase__duration {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-400);
  padding: 4px 10px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-pill);
}

/* Right detail card */
.process-phase__detail {
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
  background: linear-gradient(160deg, #fff 0%, var(--paper-soft) 100%);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.process-phase.is-active .process-phase__detail {
  border-color: var(--brand-200);
  box-shadow: 0 24px 44px -18px rgba(10, 151, 240, 0.18);
}
.process-phase__body {
  color: var(--ink-600);
  font-size: var(--fs-base);
  line-height: 1.65;
  margin: 0 0 var(--space-4);
}
.process-phase__activities,
.process-phase__outputs {
  padding-top: var(--space-4);
  border-top: 1px dashed var(--ink-100);
  margin-top: var(--space-4);
}
.process-phase__activities dt,
.process-phase__outputs dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--brand-700);
  margin-bottom: 8px;
}
.process-phase__activities dd,
.process-phase__outputs dd {
  color: var(--ink-700);
  font-size: var(--fs-sm);
  line-height: 1.55;
  margin: 0;
}
.process-phase__activities dd + dd,
.process-phase__outputs dd + dd { margin-top: 6px; }
.process-phase__activities dd::before,
.process-phase__outputs dd::before {
  content: "\2192";
  color: var(--brand-500);
  margin-right: 8px;
}

/* Dark production-grade band with icon checklist */
.production-grade {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: clamp(96px, 11vw, 150px);
}
.production-grade::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: var(--gradient-mesh-dark);
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  animation: mesh-drift 60s ease-in-out infinite;
}
.production-grade__head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.production-grade__head .badge {
  background: rgba(10, 151, 240, 0.14);
  color: var(--brand-300);
  border-color: rgba(10, 151, 240, 0.28);
  margin-bottom: var(--space-4);
}
.production-grade__head h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: #fff;
  margin: 0;
}
.production-grade__head h2 .accent-phrase--gradient {
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.production-grade__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) { .production-grade__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .production-grade__grid { grid-template-columns: 1fr; } }
.production-item {
  padding: clamp(1.4rem, 2vw, 1.8rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  transition: border-color var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
}
.production-item:hover {
  border-color: rgba(10, 151, 240, 0.4);
  background: rgba(10, 151, 240, 0.06);
}
.production-item__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(10, 151, 240, 0.14);
  border: 1px solid rgba(10, 151, 240, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-400);
  flex-shrink: 0;
}
.production-item__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1rem;
  color: #fff;
  margin: 0 0 4px;
}
.production-item__body {
  color: var(--text-on-dark-soft);
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin: 0;
}


/* ============================================================
   FAQ accordion (used on /process and /faq)
   GSAP-animated height + rotating chevron + one-open-at-a-time
   ============================================================ */

.faq-v2 {
  padding-block: clamp(96px, 11vw, 160px);
  background: var(--paper-soft);
}
.faq-v2__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.faq-v2__head .badge { margin-bottom: var(--space-4); }
.faq-v2__head h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--ink-900);
  margin: 0 0 var(--space-3);
}
.faq-v2__head p { color: var(--ink-500); font-size: var(--fs-lg); margin: 0; }

.faq-v2__list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--ink-100);
}
.faq-v2__cat {
  padding-top: var(--space-6);
  margin-top: var(--space-6);
  border-top: 1px solid var(--ink-100);
}
.faq-v2__cat:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.faq-v2__cat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--brand-600);
  margin-bottom: var(--space-4);
}
.faq-v2__item {
  border-bottom: 1px solid var(--ink-100);
}
.faq-v2__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-900);
  cursor: pointer;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
  transition: color var(--dur-fast) var(--ease);
}
.faq-v2__q:hover { color: var(--brand-700); }
.faq-v2__q svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--brand-500);
  transition: transform var(--dur-base) var(--ease);
}
.faq-v2__item.is-open .faq-v2__q svg { transform: rotate(45deg); }
.faq-v2__a {
  overflow: hidden;
  height: 0;
  color: var(--ink-600);
  font-size: var(--fs-base);
  line-height: 1.65;
  max-width: 62ch;
}
.faq-v2__a-inner {
  padding: 0 0 var(--space-5);
}
.faq-v2__item.is-open .faq-v2__a { height: auto; }
@media (prefers-reduced-motion: reduce) {
  .faq-v2__q svg { transition: none; }
}


/* ============================================================
   §9.7 /contact — giant gradient mailto + floating-label form
   ============================================================ */

.contact-v2 {
  padding-block: clamp(80px, 10vw, 140px);
  background: #fff;
}
.contact-v2__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-v2__grid { grid-template-columns: 1fr; }
}

/* Left column — big gradient mailto card */
.contact-mailto {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: linear-gradient(160deg, var(--paper-soft) 0%, rgba(10,151,240,0.04) 100%);
  border: 1px solid rgba(10, 151, 240, 0.14);
  border-radius: var(--radius-xl);
  position: sticky;
  top: 120px;
}
@media (max-width: 900px) { .contact-mailto { position: static; } }
.contact-mailto__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--brand-700);
  margin-bottom: var(--space-3);
}
.contact-mailto__email {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  margin-bottom: var(--space-4);
  word-break: break-word;
}
.contact-mailto__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-700);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  margin-bottom: var(--space-6);
}
.contact-mailto__copy:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}
.contact-mailto__copy.is-copied {
  border-color: #22d97a;
  color: #22d97a;
  background: rgba(34, 217, 122, 0.08);
}
.contact-mailto__meta {
  padding-top: var(--space-5);
  border-top: 1px solid var(--ink-100);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-mailto__meta-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.contact-mailto__meta-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ink-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  flex-shrink: 0;
}
.contact-mailto__meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--brand-700);
  margin-bottom: 2px;
}
.contact-mailto__meta-value {
  font-size: var(--fs-sm);
  color: var(--ink-700);
  line-height: 1.5;
}
.contact-mailto__demo {
  margin-top: var(--space-5);
  display: flex;
}
.contact-mailto__demo .btn { flex: 1; justify-content: center; }

/* Right column — form with floating labels */
.contact-form-v2 {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -30px rgba(16, 18, 45, 0.1);
}
.contact-form-v2__row {
  position: relative;
}
.contact-form-v2__row input,
.contact-form-v2__row select,
.contact-form-v2__row textarea {
  width: 100%;
  padding: 22px 16px 8px;
  background: var(--paper-soft);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--ink-900);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.contact-form-v2__row textarea {
  min-height: 130px;
  padding-top: 26px;
  resize: vertical;
}
.contact-form-v2__row select {
  padding-top: 22px;
  padding-bottom: 8px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230578c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.contact-form-v2__row input:focus,
.contact-form-v2__row select:focus,
.contact-form-v2__row textarea:focus {
  border-color: var(--brand-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 151, 240, 0.14);
  outline: none;
}
.contact-form-v2__row label {
  position: absolute;
  top: 18px; left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-500);
  pointer-events: none;
  transition: all var(--dur-fast) var(--ease);
}
.contact-form-v2__row textarea + label { top: 18px; }
/* Float when focused or filled */
.contact-form-v2__row input:focus + label,
.contact-form-v2__row input:not(:placeholder-shown) + label,
.contact-form-v2__row textarea:focus + label,
.contact-form-v2__row textarea:not(:placeholder-shown) + label,
.contact-form-v2__row select:focus + label,
.contact-form-v2__row select.has-value + label {
  top: 6px;
  font-size: 9.5px;
  color: var(--brand-600);
}
.contact-form-v2__row label .req { color: var(--brand-500); margin-left: 2px; }
.contact-form-v2__submit {
  align-self: flex-start;
  margin-top: var(--space-3);
}
.contact-form-v2__hint {
  font-size: var(--fs-xs);
  color: var(--ink-400);
  margin: 0;
}
.contact-form-v2__status {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
}
.contact-form-v2__status--ok  { background: rgba(34, 217, 122, 0.1); color: #1a9c5c; }
.contact-form-v2__status--err { background: rgba(255, 90, 90, 0.1);  color: #c93a3a; }


/* ============================================================
   §9.8 /privacy + /terms — legal reader layout
   68ch reader column, sticky mini TOC on desktop
   ============================================================ */

.legal {
  padding-block: clamp(80px, 9vw, 130px);
  background: #fff;
}
.legal__inner {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 68ch);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 900px) {
  .legal__inner { grid-template-columns: 1fr; }
  .legal__toc { display: none; }
}
.legal__toc {
  position: sticky;
  top: 120px;
  padding: var(--space-4);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
}
.legal__toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--brand-700);
  margin: 0 0 var(--space-3);
}
.legal__toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: toc;
}
.legal__toc li {
  counter-increment: toc;
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.legal__toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-400);
  margin-right: 8px;
}
.legal__toc a {
  color: var(--ink-700);
  transition: color var(--dur-fast) var(--ease);
}
.legal__toc a:hover { color: var(--brand-700); }

.legal__body {
  color: var(--ink-700);
  font-size: var(--fs-base);
  line-height: 1.7;
}
.legal__body h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  color: var(--ink-900);
  letter-spacing: var(--ls-display);
  margin: var(--space-7) 0 var(--space-3);
  scroll-margin-top: 120px;
}
.legal__body h2:first-of-type { margin-top: 0; }
.legal__body p { margin: 0 0 var(--space-4); }
.legal__body ul { margin: 0 0 var(--space-4) var(--space-5); padding: 0; }
.legal__body li { margin-bottom: var(--space-2); }
.legal__body a { color: var(--brand-600); text-decoration: underline; }
.legal__meta {
  padding: var(--space-3) var(--space-4);
  background: var(--paper-soft);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
}


/* ============================================================
   §9.9 404 — dark, playful, glitchy on-brand
   ============================================================ */

.page-404 {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  min-height: 100vh;
  padding: clamp(120px, 15vw, 200px) var(--gutter) clamp(80px, 8vw, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-404::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: var(--gradient-mesh-dark);
  filter: blur(70px);
  opacity: 0.8;
  z-index: 0;
  animation: cta-breathe 10s ease-in-out infinite;
}
.page-404__stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(232,237,248,0.5), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(124,216,255,0.5), transparent),
    radial-gradient(2px 2px at 55% 75%, rgba(180,163,255,0.4), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(232,237,248,0.35), transparent);
}
.page-404__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.page-404__code {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(7rem, 22vw, 15rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(56, 189, 248, 0.35));
  animation: page404-glitch 4s ease-in-out infinite;
  margin: 0;
}
@keyframes page404-glitch {
  0%, 100% { transform: translate(0, 0);       filter: drop-shadow(0 0 40px rgba(56,189,248,0.35)); }
  20%      { transform: translate(-2px, 1px);  filter: drop-shadow(-3px 0 0 rgba(255,90,140,0.4)) drop-shadow(3px 0 0 rgba(56,189,248,0.4)); }
  40%      { transform: translate(1px, -1px);  filter: drop-shadow(0 0 40px rgba(56,189,248,0.35)); }
  60%      { transform: translate(-1px, 2px);  filter: drop-shadow(2px 0 0 rgba(83,58,253,0.4)) drop-shadow(-2px 0 0 rgba(56,189,248,0.4)); }
  80%      { transform: translate(0, 0);       filter: drop-shadow(0 0 40px rgba(56,189,248,0.35)); }
}
.page-404__h {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  letter-spacing: var(--ls-display);
  line-height: 1.15;
  margin: var(--space-6) 0 var(--space-4);
}
.page-404__sub {
  color: var(--text-on-dark-soft);
  font-size: var(--fs-lg);
  line-height: 1.6;
  max-width: 44ch;
  margin: 0 auto var(--space-7);
}
.page-404__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
@media (prefers-reduced-motion: reduce) {
  .page-404::before, .page-404__code { animation: none !important; filter: none; }
}
