/* 09-process.css · Home · Processo (horizontal reel with progress comet)
   Part of the Lumen stylesheet, loaded in numeric order (the cascade depends on it). */

/* ══════════ PROCESS (horizontal reel on desktop) ══════════ */
.process__pin {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: clamp(5rem, 11vw, 8.5rem) clamp(4rem, 9vw, 6.5rem);
  overflow: hidden;
}
.motion .process__pin {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
}
.process__pin .section-head { margin-bottom: 0; }
.process__track {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 1rem;
  /* a scroller clips on both axes: the extra block padding gives the cards' shadow room, the negative margin keeps the layout */
  padding: 1.5rem var(--gutter) 5rem;
  margin-block: -1.5rem -4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.process__track::-webkit-scrollbar { display: none; }
.step {
  flex: 0 0 min(82vw, 22rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3rem;
  min-height: 17rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
}
.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 3.6rem;
  line-height: 1;
  letter-spacing: -.04em;
  background: var(--dawn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-right: .1em;
  align-self: flex-start;
}
.step h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: var(--white);
}
.step p {
  margin-top: .6rem;
  font-size: .9375rem;
  color: var(--muted);
}
.process__hint {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-inline: var(--gutter);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--meta);
}
.process__hint .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.process__bar {
  position: relative;
  display: none;
  height: 1px;
  background: var(--line-2);
}
.process__bar span {
  display: block;
  height: 100%;
  background: var(--dawn);
  transform: scaleX(0);
  transform-origin: left;
}
.process__comet {
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(56, 189, 248, .8), 0 0 26px 6px rgba(253, 186, 116, .35);
}
@media (min-width: 1024px) {
  .process__track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: var(--max);
    margin-inline: auto;
    width: 100%;
    overflow: visible;
    padding-block: 0;
    margin-block: 0;
  }
  .step { flex: none; }
  .process__hint { display: none; }
  .motion .process__track {
    display: flex;
    width: max-content;
    max-width: none;
    margin: 0;
    gap: 1.25rem;
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    padding-right: var(--gutter);
  }
  .motion .step {
    flex: 0 0 min(24rem, 30vw);
    min-height: 21rem;
  }
  .motion .process__bar { display: block; }
  /* the pinned reel must fit one screen height, header included: spacing, title and cards follow the height (svh) as
     well as the width, so a 1366×768 laptop still gets air around the cards and sees the whole scroll animation.
     Tall screens keep the original sizes (every clamp tops out at them). */
  .motion .process__pin {
    --head-clear: 4.5rem;   /* floating header: .75rem offset + 3.5rem pill + its edge */
    padding-block: calc(var(--head-clear) + clamp(1.5rem, 5svh, 3.5rem)) clamp(1.5rem, 5svh, 3.5rem);
    gap: clamp(2rem, 6.5svh, 3.5rem);
  }
  .motion .process__pin .eyebrow { margin-bottom: clamp(1rem, 2.6svh, 1.75rem); }
  .motion .process__pin .h2 { font-size: clamp(1.9rem, min(4.2vw, 6.4svh), 3.25rem); }
  .motion .step {
    min-height: clamp(13.5rem, 42svh, 21rem);
    gap: clamp(1.25rem, 5svh, 3rem);
    padding: clamp(1.4rem, 3.4svh, 2rem);
  }
  .motion .step__num { font-size: clamp(2.6rem, 7svh, 3.6rem); }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: .45rem .95rem;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  background: var(--glass);
  font-size: .875rem;
  color: var(--text-2);
}
