#how-it-works.ch-workflow {
  --workflow-paper: #f2f0e9;
  --workflow-ink: #151815;
  --workflow-muted: #686a64;
  --workflow-line: rgba(21, 24, 21, 0.14);
  --workflow-accent: #86b79a;
  background: var(--workflow-paper);
  color: var(--workflow-ink);
  padding: clamp(4.5rem, 7vw, 6.75rem) clamp(2rem, 5vw, 3.25rem);
}

.ch-workflow__shell {
  width: min(100%, 70rem);
  margin: 0 auto;
}

.ch-workflow__intro {
  max-width: 43rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4.75rem);
  text-align: center;
}

.ch-workflow__eyebrow,
.ch-workflow__number,
.ch-workflow__kicker {
  margin: 0;
  color: #4e6454;
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.ch-workflow__intro h2 {
  max-width: 22ch;
  margin: 1rem auto 0;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-wrap: balance;
}

.ch-workflow__intro p:last-child {
  max-width: 38rem;
  margin: 1.35rem auto 0;
  color: var(--workflow-muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  font-weight: 520;
  line-height: 1.62;
  text-wrap: pretty;
}

.ch-workflow__chapters {
  position: relative;
}

.ch-workflow__chapter {
  display: grid;
  grid-template-columns: minmax(13rem, 0.72fr) minmax(0, 1.28fr);
  grid-template-areas: "copy visual";
  gap: clamp(2rem, 3.5vw, 3.75rem);
  align-items: center;
  padding: clamp(2.5rem, 4vw, 3.75rem) 0;
  border-top: 1px solid var(--workflow-line);
}

/* Keep every product frame in the same wide column, even when it alternates sides. */
.ch-workflow__chapter--reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(13rem, 0.72fr);
  grid-template-areas: "visual copy";
}

.ch-workflow__copy { grid-area: copy; }
.ch-workflow__visual {
  grid-area: visual;
  width: 68%;
  justify-self: end;
}

.ch-workflow__chapter--reverse .ch-workflow__visual {
  justify-self: start;
}

.ch-workflow__copy {
  min-width: 0;
}

.ch-workflow__copy h3 {
  max-width: 10ch;
  margin: 0.9rem 0 0;
  font-size: clamp(1.9rem, 3.2vw, 3.25rem);
  font-weight: 730;
  letter-spacing: -0.052em;
  line-height: 0.98;
  text-wrap: balance;
}

.ch-workflow__chapter:nth-child(3) .ch-workflow__copy h3 {
  max-width: 14ch;
}

.ch-workflow__copy > p:last-child {
  max-width: 31rem;
  margin: 1.35rem 0 0;
  color: var(--workflow-muted);
  font-size: 1rem;
  font-weight: 520;
  line-height: 1.62;
  text-wrap: pretty;
}

.ch-workflow__visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 18, 0.2);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  background: #111412;
  box-shadow: 0 1.25rem 3.8rem rgba(26, 31, 26, 0.16), 0 0.1rem 0.3rem rgba(26, 31, 26, 0.09);
}

.ch-workflow__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 760px) {
  #how-it-works.ch-workflow { padding-inline: 1.1rem; }
  .ch-workflow__intro { margin-bottom: 3.2rem; text-align: left; }
  .ch-workflow__intro h2,
  .ch-workflow__intro p:last-child { margin-left: 0; }
  .ch-workflow__chapter,
  .ch-workflow__chapter--reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual";
    gap: 2rem;
    padding: 3.5rem 0;
  }
  .ch-workflow__visual,
  .ch-workflow__chapter--reverse .ch-workflow__visual {
    width: 100%;
    justify-self: stretch;
  }
  .ch-workflow__copy h3 { max-width: 13ch; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-workflow *,
  .ch-workflow *::before,
  .ch-workflow *::after { scroll-behavior: auto !important; }
}

/* Reserve the rotating term's footprint so the Cliniko context never shifts. */
.hero-sub__scope,
.hero-sub__benefit { display: block; }

.hero-sub__scope {
  color: #6b6b6f;
  font-size: clamp(1.2rem, 2.65vw, 1.55rem);
  line-height: 1.35;
}

.hero-sub__benefit {
  margin-top: 0.32rem;
  color: #6b6b6f;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.45;
}

.hero-sub .typing-word {
  display: inline-block;
  width: 7.4em;
  min-height: 1em;
  color: #2d2d2f;
  font-size: 1em;
  font-weight: 700;
  text-align: right;
  vertical-align: baseline;
}

.hero-sub .typing-cursor { display: none; }
