/* ============================================================
   Influeri — Process · How-it-works showcase
   Additive layer. Reuses tokens + buttons + badge from styles.css.
   Single-source: one canonical step model rendered in 5 treatments.
   All chrome classes mirror the trending-creators showcase (tcm-*);
   process-specific classes are prefixed proc- to avoid collisions.
   Load order (page): styles.css -> process.css ; scripts gsap -> process.js
   ============================================================ */

/* ---------------- Showcase chrome (mirrors trending-creators) ---------------- */
.tcm {
  position: relative;
  min-height: 100vh;
  padding: 0 0 110px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -160px, rgba(11, 11, 11, 0.035), transparent 70%),
    radial-gradient(900px 460px at 92% 4%, rgba(130, 130, 130, 0.12), transparent 70%),
    #fbfbfc;
}
.tcm::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 11, 11, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 11, 0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(1200px 700px at 50% 0, #000, transparent 78%);
          mask-image: radial-gradient(1200px 700px at 50% 0, #000, transparent 78%);
  pointer-events: none;
}
.tcm__wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Page header */
.tcm__head { text-align: center; padding: 84px 0 18px; }
.tcm__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 20px 0 0;
}
.tcm__title em {
  font-style: normal;
  background: #0b0b0b;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tcm__sub {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}
.tcm__rule {
  width: 64px;
  height: 3px;
  margin: 30px auto 0;
  border-radius: 3px;
  background: #0b0b0b;
}

/* Section / treatment header */
.tcm-sec { padding: 56px 0 0; }
.tcm-eyebrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 26px;
  flex-wrap: wrap;
}
.tcm-eyebrow__main { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.tcm-eyebrow__no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  background: #0b0b0b;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tcm-eyebrow__txt h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}
.tcm-eyebrow__txt p { margin: 4px 0 0; font-size: 13.5px; color: var(--text); }
.tcm-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--primary);
  white-space: nowrap;
}
.tcm-tag b { font-weight: 600; color: var(--text); }
.tcm-tag .arrow { font-size: 13px; color: #0b0b0b; }

.tcm-hint {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: #9a9a9a;
}

/* Footer CTAs */
.tcm-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 92px;
  flex-wrap: wrap;
}

/* ============================================================
   Shared step primitives (single source for all 5 treatments)
   ============================================================ */
.proc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 50%;
  background: #0b0b0b;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(11, 11, 11, 0.35);
}
.proc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(11, 11, 11, 0.08);
  color: #0b0b0b;
}
.proc-icon svg { width: 22px; height: 22px; }
.proc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin: 0;
}
.proc-body { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--text); }

/* ============================================================
   01 · Connected horizontal flow
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes procFlowIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
}
.proc-flow {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
.proc-flow__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 14px;
  height: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .proc-flow__node {
    opacity: 0;
    animation: procFlowIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i, 0) * 90ms);
  }
}
/* connector line behind the orbs */
.proc-flow__node::before {
  content: "";
  position: absolute;
  top: 27px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: rgba(11, 11, 11, 0.15);
  z-index: 0;
}
.proc-flow__node:first-child::before { display: none; }
/* arrowhead at the end of each connector */
.proc-flow__node::after {
  content: "";
  position: absolute;
  top: 23px;
  left: -4px;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid rgba(11, 11, 11, 0.32);
  z-index: 1;
}
.proc-flow__node:first-child::after { display: none; }
.proc-flow .proc-num {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  font-size: 20px;
  border: 4px solid #fbfbfc;
}
.proc-flow__card {
  margin-top: 18px;
  flex: 1;
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.06);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.05), 0 14px 30px -16px rgba(11, 11, 11, 0.18);
  width: 100%;
}

/* ============================================================
   02 · Alternating left/right timeline (zig-zag)
   ============================================================ */
.proc-zig { position: relative; max-width: 880px; margin: 0 auto; padding: 8px 0; }
.proc-zig::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.35), rgba(130, 130, 130, 0.35));
}
.proc-zig__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin: 0 0 34px;
}
.proc-zig__row:last-child { margin-bottom: 0; }
.proc-zig__card {
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.06);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.05), 0 14px 30px -16px rgba(11, 11, 11, 0.18);
  max-width: 360px;
}
/* odd rows sit on the left, even on the right */
.proc-zig__row:nth-child(odd) .proc-zig__card { grid-column: 1; justify-self: end; margin-right: 42px; }
.proc-zig__row:nth-child(even) .proc-zig__card { grid-column: 2; justify-self: start; margin-left: 42px; }
.proc-zig__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.proc-zig .proc-num { width: 46px; height: 46px; font-size: 17px; border: 4px solid #fbfbfc; }
.proc-zig__head { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   03 · Vertical scroll-reveal steps
   ============================================================ */
.proc-reveal { max-width: 720px; margin: 0 auto; }
.proc-reveal__step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.06);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.05), 0 18px 36px -20px rgba(11, 11, 11, 0.20);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.proc-reveal__step.is-in { opacity: 1; transform: none; }
.proc-reveal .proc-num { width: 48px; height: 48px; font-size: 18px; }
.proc-reveal__c { min-width: 0; }

/* ============================================================
   04 · Tabbed / segmented process
   ============================================================ */
.proc-tabs { max-width: 860px; margin: 0 auto; }
.proc-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.07);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.04);
}
.proc-tabs__tab {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 130px;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.proc-tabs__tab .proc-tabs__tn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  opacity: 0.6;
}
.proc-tabs__tab:hover { color: var(--primary); }
.proc-tabs__tab.is-active {
  background: #0b0b0b;
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(11, 11, 11, 0.5);
}
.proc-tabs__tab.is-active .proc-tabs__tn { opacity: 0.85; }
.proc-tabs__panels { margin-top: 22px; }
.proc-tabs__panel { display: none; }
.proc-tabs__panel.is-active { display: block; }
.proc-tabs__detail {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.06);
  border-radius: 16px;
  padding: 30px 30px;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.05), 0 20px 44px -24px rgba(11, 11, 11, 0.22);
}
.proc-tabs__detail .proc-icon { width: 60px; height: 60px; border-radius: 16px; }
.proc-tabs__detail .proc-icon svg { width: 28px; height: 28px; }
.proc-tabs__detail .proc-title { font-size: 22px; }
.proc-tabs__detail .proc-body { font-size: 15.5px; margin-top: 10px; }
.proc-tabs__step {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b0b0b;
  margin: 0 0 6px;
}

/* ============================================================
   05 · Diagram-style nodes (light flow diagram)
   ============================================================ */
.proc-diagram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.proc-diagram__node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid rgba(11, 11, 11, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.05), 0 12px 26px -16px rgba(11, 11, 11, 0.16);
  width: 200px;
  margin: 10px 28px 10px 0;
}
.proc-diagram__node:last-child { margin-right: 0; }
/* connector with arrow between boxes */
.proc-diagram__node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -28px;
  width: 28px;
  height: 2px;
  background: rgba(11, 11, 11, 0.40);
  transform: translateY(-50%);
}
.proc-diagram__node::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(11, 11, 11, 0.55);
  transform: translateY(-50%);
  z-index: 1;
}
.proc-diagram__node:last-child::after,
.proc-diagram__node:last-child::before { display: none; }
.proc-diagram__node .proc-num { width: 30px; height: 30px; font-size: 13px; }
.proc-diagram__t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  line-height: 1.25;
}
.proc-diagram__hint { font-size: 11.5px; color: var(--text); margin-top: 2px; }

/* ============================================================
   06 · Guided walkthrough — full-width alternating blocks
        Big alternating step blocks (copy <-> CSS device mockup),
        joined by a gradient spine, each scroll-revealing once.
   ============================================================ */
.proc-wt {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
/* connecting spine running down the centre between blocks */
.proc-wt::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.32), rgba(130, 130, 130, 0.32));
  z-index: 0;
}
.proc-wt__block {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 30px 0;
}
.proc-wt__block + .proc-wt__block { margin-top: 22px; }

/* ---- sticky scrollytelling (JS adds .proc-wt--sticky outside reduced-motion) ----
   The vertical line becomes a scroll-driven progress rail; each block is tall with
   a pinned visual, and one step is focused at a time (others dim) as you scroll. */
.proc-wt__rail {
  position: absolute; top: 40px; bottom: 40px; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: rgba(11, 11, 11, 0.08); border-radius: 2px; z-index: 0;
}
.proc-wt__rail-fill {
  position: absolute; inset: 0; transform-origin: top center; transform: scaleY(0);
  background: linear-gradient(180deg, #0b0b0b, #8a8a8a); border-radius: 2px; will-change: transform;
}
.proc-wt--sticky::before { display: none; }   /* the static spine is replaced by the rail */
.proc-wt--sticky .proc-wt__block {
  min-height: 78vh;
  align-items: start;
  transition: opacity .45s ease;
}
.proc-wt--sticky .proc-wt__visual { position: sticky; top: clamp(96px, 24vh, 220px); }
.proc-wt--sticky .proc-wt__block.is-dim { opacity: 0.3; }
.proc-wt--sticky .proc-wt__block.is-active { opacity: 1; }
.proc-wt--sticky .proc-wt__block.is-active .proc-wt__device {
  box-shadow: 0 34px 80px -34px rgba(11, 11, 11, 0.4);
}
@media (max-width: 860px) {
  .proc-wt--sticky .proc-wt__block { min-height: 0; align-items: center; }
  .proc-wt--sticky .proc-wt__visual { position: relative; top: 0; }
  .proc-wt--sticky .proc-wt__block.is-dim { opacity: 1; }   /* no dim when stacked */
}

/* ---- copy side ---- */
.proc-wt__copy { position: relative; }
.proc-wt__eyebrow { display: flex; align-items: center; gap: 14px; }
.proc-wt .proc-num { width: 46px; height: 46px; font-size: 17px; }
.proc-wt__step {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b0b0b;
}
.proc-wt__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--primary);
  margin: 18px 0 0;
}
.proc-wt__body {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  max-width: 30em;
}
.proc-wt__icon { margin-top: 20px; }

/* ---- visual side: the stylized CSS device/card mockup ---- */
.proc-wt__visual { position: relative; }
.proc-wt__device {
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.07);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.05), 0 30px 60px -30px rgba(11, 11, 11, 0.28);
}
.proc-wt__devicebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid rgba(11, 11, 11, 0.06);
}
.proc-wt__devicebar i { width: 9px; height: 9px; border-radius: 50%; background: #e0e0e0; }
.proc-wt__devicebar i:nth-child(1) { background: #ff5f57; }
.proc-wt__devicebar i:nth-child(2) { background: #febc2e; }
.proc-wt__devicebar i:nth-child(3) { background: #28c840; }
.proc-wt__devicetab {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #9a9a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proc-wt__devicebody {
  padding: 22px;
  background: radial-gradient(130% 130% at 0% 0%, #ffffff, #fbf6f5);
  min-height: 168px;
}

/* mock: Describe — prompt composer */
.proc-wt__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.proc-wt__compose {
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.07);
  border-radius: 12px;
  padding: 16px;
}
.proc-wt__typed {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--primary);
}
.proc-wt__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #0b0b0b;
  animation: procWtBlink 1.05s step-end infinite;
}
@keyframes procWtBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.proc-wt__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.proc-wt__chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.08);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.proc-wt__chip--grad {
  background: #0b0b0b;
  color: #fff;
  border-color: transparent;
}

/* mock: AI matches — ranked list */
.proc-wt__list { display: flex; flex-direction: column; gap: 10px; }
.proc-wt__row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.06);
  border-radius: 12px;
  padding: 11px 14px;
}
.proc-wt__dot {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #0b0b0b;
}
.proc-wt__rowmeta { flex: 1; min-width: 0; }
.proc-wt__rowname { display: block; font-size: 13px; font-weight: 700; color: var(--primary); }
.proc-wt__bar {
  display: block;
  margin-top: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.07);
  overflow: hidden;
}
.proc-wt__bar i { display: block; height: 100%; border-radius: 999px; background: #0b0b0b; }
.proc-wt__pct { flex: none; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #0b0b0b; }

/* mock: Review — comparison minicards */
.proc-wt__compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proc-wt__mini {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.07);
  border-radius: 14px;
  padding: 16px;
}
.proc-wt__mini.is-picked { border-color: rgba(11, 11, 11, 0.5); box-shadow: 0 12px 26px -16px rgba(11, 11, 11, 0.45); }
.proc-wt__avatar { width: 36px; height: 36px; border-radius: 50%; background: #0b0b0b; margin-bottom: 6px; }
.proc-wt__stat { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--primary); }
.proc-wt__statlabel { font-size: 11.5px; color: var(--text); }
.proc-wt__heart { position: absolute; top: 12px; right: 13px; font-size: 16px; color: #0b0b0b; }

/* mock: Launch — contract sheet */
.proc-wt__doc {
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.07);
  border-radius: 12px;
  padding: 18px;
}
.proc-wt__docrow { margin-bottom: 12px; }
.proc-wt__docline { display: block; height: 9px; border-radius: 999px; background: rgba(11, 11, 11, 0.08); }
.proc-wt__sign { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.proc-wt__signtag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b0b0b;
}
.proc-wt__signmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #0b0b0b;
  color: #fff;
  font-size: 14px;
}

/* mock: Track — gauge + sparkline */
.proc-wt__metrics { display: flex; align-items: center; gap: 18px; }
.proc-wt__gauge {
  position: relative;
  flex: none;
  width: 96px; height: 96px;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg, #0b0b0b 0deg, #8a8a8a 200deg, rgba(11, 11, 11, 0.07) 200deg 360deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.proc-wt__gauge::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #fff;
}
.proc-wt__gaugeval { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--primary); }
.proc-wt__gaugelabel { position: relative; font-size: 11px; color: var(--text); }
.proc-wt__spark { flex: 1; min-width: 0; }
.proc-wt__spark svg { width: 100%; height: 48px; display: block; }
.proc-wt__sparklabel { display: block; margin-top: 8px; font-size: 12px; color: var(--text); }

/* ---- scroll-reveal: block in, inner elements stagger ---- */
.proc-wt__block [data-wt-stagger] {
  opacity: 0;
  transition:
    opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    clip-path 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
/* copy slides up; the device wipes in with a clip-path inset + soft scale */
.proc-wt__copy { transform: translateY(16px); }
.proc-wt__device {
  transform: scale(0.96);
  -webkit-clip-path: inset(0 0 100% 0 round 18px);
          clip-path: inset(0 0 100% 0 round 18px);
}
.proc-wt__block.is-in .proc-wt__copy { opacity: 1; transform: translateY(0); transition-delay: 60ms; }
.proc-wt__block.is-in .proc-wt__device {
  opacity: 1;
  transform: scale(1);
  -webkit-clip-path: inset(0 0 0 0 round 18px);
          clip-path: inset(0 0 0 0 round 18px);
  transition-delay: 40ms;
}
/* on reversed blocks the device leads, copy follows */
.proc-wt__block--rev.is-in .proc-wt__device { transition-delay: 60ms; }
.proc-wt__block--rev.is-in .proc-wt__copy { transition-delay: 100ms; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .tcm__wrap { padding: 0 22px; }
  /* horizontal flow + diagram stack vertically */
  .proc-flow { grid-auto-flow: row; grid-auto-columns: auto; gap: 8px; }
  .proc-flow__node { flex-direction: row; text-align: left; gap: 16px; padding: 0; }
  .proc-flow__node::before { display: none; }
  .proc-flow__node::after { display: none; }
  .proc-flow__card { margin-top: 0; flex: 1; }
  .proc-diagram { flex-direction: column; align-items: stretch; }
  .proc-diagram__node { width: 100%; margin: 0 0 30px; }
  .proc-diagram__node::after { top: auto; bottom: -22px; right: 50%; width: 2px; height: 22px; transform: translateX(50%); }
  .proc-diagram__node::before { top: auto; bottom: -8px; right: 50%; transform: translateX(50%) rotate(90deg); }
  .proc-diagram__node:last-child { margin-bottom: 0; }
  /* zig-zag becomes a single left rail */
  .proc-zig::before { left: 23px; }
  .proc-zig__row { grid-template-columns: 1fr; }
  .proc-zig__row:nth-child(odd) .proc-zig__card,
  .proc-zig__row:nth-child(even) .proc-zig__card {
    grid-column: 1; justify-self: start; margin: 0 0 0 56px; max-width: none;
  }
  .proc-zig__dot { left: 23px; }
  .proc-tabs__tab { min-width: 0; flex: 1 1 40%; }
  /* walkthrough stacks: copy then visual, no centre spine, no reversal */
  .proc-wt::before { display: none; }
  .proc-wt__block,
  .proc-wt__block--rev {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 0;
  }
  .proc-wt__block--rev .proc-wt__copy { order: -1; }
  .proc-wt__block--rev .proc-wt__visual { order: 0; }
}

/* ============================================================
   Reduced motion — freeze every reveal/animation; everything visible
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .proc-reveal__step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* walkthrough: show everything immediately, no slide / wipe / scale */
  .proc-wt__block [data-wt-stagger],
  .proc-wt__block.is-in [data-wt-stagger] {
    opacity: 1 !important;
    transform: none !important;
    -webkit-clip-path: none !important;
            clip-path: none !important;
    transition: none !important;
    transition-delay: 0ms !important;
  }
  .proc-wt__caret { animation: none !important; }
}
