.hopeflow-workflows, .hopeflow-system {
  padding-top: clamp(12rem, 17vw, 24rem);
}

.hopeflow-section-heading {
  max-width: 104rem;
  margin-bottom: clamp(8rem, 12vw, 16rem);
}

.hopeflow-workflow {
  display: grid;
  grid-template-columns: minmax(26rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(4rem, 7vw, 11rem);
  align-items: center;
  padding: clamp(6rem, 9vw, 13rem) 0;
  border-top: 1px solid var(--hf-line);
}

.hopeflow-workflow--reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(26rem, 0.72fr);
}

.hopeflow-workflow--reverse .hopeflow-workflow__copy {
  order: 2;
}

.hopeflow-workflow--reverse .hopeflow-figure {
  order: 1;
}

.hopeflow-workflow h3 {
  margin: 0 0 var(--hf-space-8);
  color: var(--hf-ink);
  font-size: clamp(2.8rem, 3.3vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hopeflow-workflow__copy > p:not(.hopeflow-index, .hopeflow-note) {
  max-width: 54rem;
  margin: 0;
}

.hopeflow-note {
  margin: var(--hf-space-6) 0 0;
  color: var(--hf-accent);
}

.hopeflow-section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(28rem, 0.7fr);
  max-width: none;
  gap: clamp(4rem, 8vw, 12rem);
  align-items: end;
}

.hopeflow-section-heading--split > p {
  max-width: 52rem;
  margin: 0;
}

.hopeflow-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--hf-space-6);
}

.hopeflow-gallery__offset {
  margin-top: clamp(4rem, 7vw, 10rem);
}

.hopeflow-delivery, .hopeflow-business, .hopeflow-closing {
  display: grid;
  grid-template-columns: minmax(28rem, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(4rem, 8vw, 13rem);
  align-items: center;
  margin-top: clamp(13rem, 19vw, 28rem);
  padding-top: clamp(8rem, 11vw, 15rem);
  border-top: 1px solid var(--hf-line);
}

.hopeflow-delivery__copy > p:not(.hopeflow-index),
.hopeflow-business__copy > p:not(.hopeflow-index),
.hopeflow-closing__copy > p:not(.hopeflow-index) {
  max-width: 58rem;
  margin: var(--hf-space-8) 0 0;
}

.hopeflow-delivery {
  grid-template-columns: minmax(30rem, 0.9fr) minmax(0, 1.1fr);
}

.hopeflow-delivery h2 {
  font-size: clamp(3.4rem, 3.1vw, 4.8rem);
}

.hopeflow-business {
  grid-template-columns: minmax(0, 1.05fr) minmax(32rem, 0.95fr);
}

.hopeflow-business h2 {
  font-size: clamp(3.4rem, 3.5vw, 5.2rem);
}

.hopeflow-business ul {
  margin: var(--hf-space-12) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hf-line);
}

.hopeflow-business li {
  display: flex;
  justify-content: space-between;
  gap: var(--hf-space-6);
  padding: var(--hf-space-4) 0;
  border-bottom: 1px solid var(--hf-line);
  color: var(--hf-muted);
  font: 500 1.3rem/1.4 "JetBrains Mono", monospace;
}

.hopeflow-business li strong {
  color: var(--hf-ink);
  font-weight: 500;
}

.hopeflow-closing {
  grid-template-columns: minmax(0, 1.35fr) minmax(24rem, 0.65fr);
  margin-top: clamp(10rem, 14vw, 20rem); padding-top: clamp(6rem, 8vw, 10rem);
  padding-bottom: clamp(5rem, 8vw, 11rem);
}

.hopeflow-closing h2 {
  font-size: clamp(3.8rem, 3.7vw, 5.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hopeflow-figure--portrait {
  max-width: 50rem;
  justify-self: end;
}

.hopeflow-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hf-space-12);
  min-width: min(100%, 34rem);
  margin-top: var(--hf-space-12);
  padding: var(--hf-space-4) var(--hf-space-6);
  border: 1px solid var(--hf-accent);
  color: var(--hf-accent);
  font: 600 1.4rem/1.4 "JetBrains Mono", monospace;
  transition: color 0.3s ease, background 0.3s ease, transform 0.15s ease;
}

.hopeflow-cta:hover,
.hopeflow-cta:focus-visible {
  background: var(--hf-accent);
  color: var(--hf-surface);
}

.hopeflow-cta:focus-visible {
  outline: 2px solid var(--hf-ink);
  outline-offset: 4px;
}

.hopeflow-cta:active {
  transform: translateY(1px);
}

@media only screen and (max-width: 991px) {
  .hopeflow-hero__grid,
  .hopeflow-chapter,
  .hopeflow-section-heading--split,
  .hopeflow-delivery,
  .hopeflow-business,
  .hopeflow-closing {
    grid-template-columns: 1fr;
  }

  .hopeflow-hero__lead {
    max-width: 66rem;
  }

  .hopeflow-workflow,
  .hopeflow-workflow--reverse {
    grid-template-columns: 1fr;
  }

  .hopeflow-workflow--reverse .hopeflow-workflow__copy,
  .hopeflow-workflow--reverse .hopeflow-figure {
    order: initial;
  }

  .hopeflow-figure--portrait {
    max-width: 46rem;
    justify-self: start;
  }
}

@media only screen and (max-width: 767px) {
  .hopeflow-project-page {
    padding-top: var(--hf-space-4, 1.6rem);
  }

  .hopeflow-case {
    border-radius: 2rem;
  }

  .hopeflow-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hopeflow-facts div:nth-child(2) {
    border-right: 0;
  }

  .hopeflow-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hf-line);
  }

  .hopeflow-gallery {
    grid-template-columns: 1fr;
  }

  .hopeflow-gallery__offset {
    margin-top: 0;
  }

  .hopeflow-figure figcaption {
    flex-direction: column;
    padding: var(--hf-space-3) var(--hf-space-4);
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hopeflow-figure img,
  .hopeflow-cta,
  .hopeflow-breadcrumbs a {
    transition: none;
  }

  .hopeflow-figure:hover img {
    transform: none;
  }
}
