/* /clients/ "How We Work" — scroll-driven pinned-rail process
   (design: How We Work.dc.html, concept 1A). Desktop pins a rail that swaps
   the phase number/name + tick list as the phase cards scroll past; mobile
   shows a sticky progress bar. JS in process-scroller.js drives the states. */

.hww { position: relative; }

/* ---------- desktop: sticky rail + phase column ---------- */
.hww-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 40px 56px;
  align-items: start;
}

.hww-rail {
  position: sticky;
  top: clamp(122px, 15vh, 156px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.hww-rail__stack { position: relative; height: 300px; }
.hww-rail-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
}
.hww-rail-item.is-active { opacity: 1; transform: translateY(0); }
.hww-rail-item.is-past { opacity: 0; transform: translateY(-24px); }
.hww-rail__num {
  display: block;
  font-family: 'Bakbak One', sans-serif;
  font-weight: 400;
  font-size: 172px;
  line-height: .78;
  color: var(--lit, #35D0EE);
}
.hww-rail__name { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.hww-rail__name .material-symbols-rounded { flex: 0 0 auto; font-size: 46px; color: #fff; }
.hww-rail__name b {
  font-family: 'Bakbak One', sans-serif;
  font-weight: 400;
  font-size: 76px;
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
}

.hww-ticks { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .14); }
.hww-tick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.hww-tick:last-child { border-bottom: 0; }
.hww-tick-bar {
  display: block;
  width: 16px;
  height: 3px;
  background: rgba(255, 255, 255, .25);
  transition: width .35s cubic-bezier(.2, .8, .2, 1), background .3s ease;
}
.hww-tick.is-active .hww-tick-bar { width: 44px; background: var(--lit); }
.hww-tick-label {
  font: 900 11px/1 'Inter', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  transition: color .3s ease;
}
.hww-tick.is-active .hww-tick-label { color: #fff; }

/* ---------- phase cards ---------- */
.hww-phases { display: flex; flex-direction: column; gap: 130px; padding-top: 12px; }
.hww-card {
  display: flex;
  flex-direction: column;
  background: #0D1524;
  border: 1px solid rgba(255, 255, 255, .14);
  overflow: hidden;
  opacity: .62;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: border-color .4s ease, box-shadow .45s cubic-bezier(.2, .8, .2, 1), background .4s ease, opacity .4s ease;
}
.hww-card.is-active {
  opacity: 1;
  background: #111d3b;
  border-color: var(--lit);
  box-shadow: 14px 14px 0 var(--lit);
}
.hww-card__media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #0A1018;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.hww-card__media img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}
.hww-chip {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 18px;
  color: var(--chip-ink, #0A1018);
  background: var(--acc, #35D0EE);
  font: 900 12px/1 'Inter', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hww-chip .material-symbols-rounded { margin-right: 9px; font-size: 19px; }
.hww-card__body { display: flex; flex-direction: column; gap: 20px; padding: 28px 36px 34px; }
.hww-card__body h3 {
  margin: 0;
  font-family: 'Bakbak One', sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: .98;
  text-transform: uppercase;
  color: #fff;
}
.hww-card__body ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.6;
}
.hww-card__body li { display: flex; gap: 11px; align-items: flex-start; }
.hww-chev { flex: 0 0 auto; margin-top: 1px; font-size: 19px; color: var(--lit, #35D0EE); }

/* ---------- mobile sticky progress bar (hidden on desktop) ---------- */
.hww-mobilebar { display: none; }

@media (max-width: 900px) {
  .hww-grid { grid-template-columns: 1fr; gap: 0; }
  .hww-rail { display: none; }

  .hww-mobilebar {
    display: flex;
    flex-direction: column;
    gap: 9px;
    position: sticky;
    top: 76px;
    z-index: 6;
    margin: 0 0 24px;
    padding: 12px 16px;
    background: rgba(10, 16, 24, .94);
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }
  .hww-mobilebar__head { display: flex; align-items: baseline; gap: 10px; }
  .hww-mobilebar__num { font-family: 'Bakbak One', sans-serif; font-size: 30px; line-height: 1; color: #35D0EE; }
  .hww-mobilebar__title { font: 800 13px/1.2 'Inter', sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
  .hww-mobilebar__bars { display: flex; gap: 5px; }
  .hww-mbar { flex: 1; height: 3px; background: rgba(255, 255, 255, .2); transition: background .3s ease; }
  .hww-mbar.is-fill { background: var(--lit); }

  .hww-phases { gap: 56px; padding-top: 0; }
  .hww-card__media { height: 160px; }
  .hww-chip { min-height: 34px; padding: 9px 14px; font-size: 11px; }
  .hww-card__body { gap: 14px; padding: 20px 20px 24px; }
  .hww-card__body h3 { font-size: 28px; line-height: 1; }
  .hww-card__body ul { gap: 12px; font-size: 15px; line-height: 1.55; }
  .hww-card.is-active { box-shadow: 8px 8px 0 var(--lit); }
}

@media (prefers-reduced-motion: reduce) and (min-width:100000px) {
  .hww-card,
  .hww-rail-item,
  .hww-tick-bar,
  .hww-tick-label,
  .hww-mbar { transition: none !important; }
  .hww-card__media img { transform: none !important; }
}
