/* ==========================================================================
   Launch Labs — Section: "How it works"
   Sits directly after the philosophy section, same black surface. Three
   equal steps in a single horizontal row, joined by small red arrows, then
   a centered reassurance statement below.

   Structure: section shell -> centered intro (eyebrow, heading) -> row of
              three cards with an arrow in each gap -> closing statement,
              given extra room so it reads as a conclusion rather than
              another block underneath -> a "Start SHAPE" CTA closing the
              section.

   Reveal, via js/process.js: the section fades in once (.is-visible) —
   intro first, then, after a deliberate pause (0.6s), the three cards
   (and the arrows between them) stagger in below. Only once that stagger
   has finished, plus a further pause, does the closing statement (red
   line + sentence) get its own .is-visible, timed via JS rather than a
   second scroll trigger, so it's always "boxes land, then the line
   runs," never racing ahead on a fast scroll or finishing before the
   visitor has actually scrolled the section into view. The CTA button
   is a child of .process__closing, so it inherits that same .is-visible
   trigger and simply staggers in last (see .process__cta below).
   ========================================================================== */

.process {
  --ink: #FFFFFF;
  --ink-muted: rgba(255, 255, 255, 0.66);
  --ink-faint: rgba(255, 255, 255, 0.45);
  --hairline: rgba(255, 255, 255, 0.10);
  --contrast: #D92632;

  background: #010202;
  color: var(--ink);
  padding: clamp(6rem, 13vw, 9.5rem) clamp(1.5rem, 4vw, 4rem);
}

/* ==========================================================================
   Intro
   ========================================================================== */
.process__intro {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.process__eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--contrast);
  opacity: 0;
  transform: translateY(12px);
}

.process__heading {
  margin-top: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4.4vh, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px);
}

.process__sub {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(14px);
}

.process.is-visible .process__eyebrow,
.process.is-visible .process__heading,
.process.is-visible .process__sub {
  animation: process-rise 0.75s var(--ease) forwards;
}

.process.is-visible .process__eyebrow { animation-delay: 0s; }
.process.is-visible .process__heading { animation-delay: 0.08s; }
.process.is-visible .process__sub     { animation-delay: 0.18s; }

/* ==========================================================================
   Row — three equal cards with a small red arrow in each gap
   ========================================================================== */
.process__row {
  margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
  max-width: 72rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

@media (max-width: 48rem) {
  .process__row {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .process__row .process-card {
    min-width: 15rem;
  }
}

.process__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--contrast);
  opacity: 0;
  transform: translateY(16px);
}

.process__arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

.process-card {
  padding: 1.85rem 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 40%, rgba(0, 0, 0, 0.12) 100%),
    #161616;
  opacity: 0;
  transform: translateY(16px);
  transition: border-color 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.process.is-visible .process-card,
.process.is-visible .process__arrow {
  animation: process-rise 0.65s var(--ease) forwards;
}

.process.is-visible .process-card:nth-child(1)   { animation-delay: 0.6s; }
.process.is-visible .process__arrow:nth-child(2) { animation-delay: 0.74s; }
.process.is-visible .process-card:nth-child(3)   { animation-delay: 0.88s; }
.process.is-visible .process__arrow:nth-child(4) { animation-delay: 1.02s; }
.process.is-visible .process-card:nth-child(5)   { animation-delay: 1.16s; }

@media (hover: hover) and (pointer: fine) {
  .process-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-22px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  }

  .process-card:hover .process-card__heading {
    transform: scale(0.78);
  }

  .process-card:hover .process-card__copy {
    opacity: 1;
    font-size: 1.05rem;
  }
}

.process-card__index {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.process-card__heading {
  margin-top: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  transform: scale(1);
  transform-origin: left top;
  transition: transform 0.6s var(--ease);
}

.process-card__copy {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.6;
  transition: opacity 0.6s var(--ease), font-size 0.6s var(--ease);
}

.process-card__copy + .process-card__copy {
  margin-top: 0.35rem;
}

.process-card__list {
  margin-top: 0.9rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.process-card__list li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.process-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-faint);
}

/* ==========================================================================
   Closing statement — the conclusion, not another block underneath.
   A single hairline rule spans the same width as the three cards above,
   drawn as one continuous left-to-right sweep: the left half draws in
   first (finishing where the sentence sits), then the right half
   continues the same motion out to the far right edge.
   ========================================================================== */
.process__closing {
  margin-top: clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.process__closing-line {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 72rem;
  margin: 0 auto;
}

.process__closing-rule {
  flex: 1 1 auto;
  min-width: 1.5rem;
  height: 1px;
  background: var(--contrast);
  transform: scaleX(0);
  transform-origin: left center;
}

.process__closing.is-visible .process__closing-rule--left {
  animation: process-rule-draw 0.6s var(--ease) forwards;
}

.process__closing.is-visible .process__closing-rule--right {
  animation: process-rule-draw 0.6s var(--ease) forwards;
  animation-delay: 0.5s;
}

.process__closing-copy {
  flex: 0 0 auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: 0.45s;
}

.process__closing.is-visible .process__closing-copy {
  opacity: 1;
  transform: translateY(0);
}

.process__cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  opacity: 0;
  transform: translateY(14px);
}

.process__closing.is-visible .process__cta {
  animation: process-rise 0.75s var(--ease) forwards;
  animation-delay: 0.95s;
}

.process__btn {
  padding: 1.15rem 3rem;
  font-size: 0.9375rem;
}

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes process-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes process-rule-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

