/* Studio Setup — "Our installation process": six numbered steps joined by a line.
   Desktop (>=1000px) scroll-pin: new/js/studio-process.js pins .studio-process-stage
   while scrolling through .studio-process (the tall track) and steps step 2..6 through
   .is-active in turn (step 1 is active by default, server-rendered). Gated behind
   html.js (no-JS = plain static grid) and reduced-motion. Docs: brain/pages/studio-setup.md. */
.studio-process { background: var(--surface); padding: calc(var(--space-section) + 16px) 0; }
/* global.css sets `html { scroll-behavior: smooth }` for anchor-link jumps; in Chromium that
   also smooths wheel/trackpad scrolling, which fights this section's own scroll-pin and made
   the step-through animation stutter/jump. studio-process.js toggles this class while the
   track is on screen so wheel input here tracks 1:1 — smooth scroll is untouched elsewhere. */
html.studio-process-in-view { scroll-behavior: auto; }
/* Side padding is var(--site-pad-x), the same as the footer (global.css .footer-main). */
.studio-process-inner { max-width: var(--site-max-w); margin: 0 auto; padding: 0 var(--site-pad-x); }

@media (min-width: 1000px) {
  html.js .studio-process { position: relative; height: 450vh; }
  /* top: 110px clears the fixed floating header pill — same constant as the hero's
     top padding and .snlai-pillar's sticky filter bar (global.css, ai.css). */
  html.js .studio-process-stage.is-pinned { position: fixed; top: 110px; left: 0; right: 0; }
  html.js .studio-process-stage.is-past { position: absolute; bottom: 0; left: 0; right: 0; }
}
@media (min-width: 1000px) and (prefers-reduced-motion: reduce) {
  html.js .studio-process { height: auto; }
}
.studio-process-head { text-align: center; margin-bottom: 48px; }
.studio-process-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.studio-process-head h2 { margin: 0 0 10px; }
.studio-process-head p { margin: 0; font-size: var(--text-body-lg); color: var(--fg-body); }

.studio-process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}
/* the line runs through the centres of the number badges */
.studio-process-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: linear-gradient(90deg, #3fd975, var(--accent), var(--accent-deep));
  opacity: 0.35;
}
.studio-process-step { position: relative; text-align: center; padding: 0 6px; }
.studio-process-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.09), 0 0 0 1px var(--primary);
  position: relative;
  transition: transform 300ms cubic-bezier(.22, .61, .36, 1), box-shadow 300ms cubic-bezier(.22, .61, .36, 1);
}
.studio-process-step h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; }
.studio-process-step p { margin: 0; font-size: var(--text-body-sm); line-height: 1.55; color: var(--fg-body); }

/* Active/inactive emphasis — desktop only, driven by studio-process.js (JS off or <1000px: plain grid, all equal). */
@media (min-width: 1000px) {
  html.js .studio-process-step { opacity: 0.5; transition: opacity 300ms cubic-bezier(.22, .61, .36, 1); }
  html.js .studio-process-step .studio-process-num { transform: scale(0.88); }
  html.js .studio-process-step.is-active { opacity: 1; }
  html.js .studio-process-step.is-active .studio-process-num {
    transform: scale(1.25);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16), 0 0 0 1.75px var(--primary);
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-process-num, .studio-process-step { transition: none; }
}

@media (max-width: 1024px) {
  .studio-process-inner { padding: 0 32px; }
}
@media (max-width: 999px) {
  .studio-process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .studio-process-steps::before { display: none; }
}
@media (max-width: 768px) {
  .studio-process-inner { padding: 0 24px; }
}
@media (max-width: 599px) {
  .studio-process-steps { grid-template-columns: 1fr; row-gap: 22px; }
  .studio-process-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; padding: 0; }
  .studio-process-num { grid-row: span 2; margin: 0; }
  .studio-process-step h3 { align-self: end; }
}
