/* Quiet supporting sections for the project-led homepage. */
.homepage-process {
  position: relative;
  z-index: 1;
  padding: var(--ls-section-space, clamp(4rem, 8vw, 7.5rem)) 2.5rem;
  color: var(--site-text, #f1f0eb);
}

.homepage-process-inner,
.homepage-tools-inner {
  max-width: var(--ls-content-width, 1240px);
  margin-inline: auto;
}

.homepage-process-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.homepage-process-intro h2 {
  max-width: 21ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.homepage-process-intro p,
.homepage-process-steps p {
  margin: 0;
  color: var(--site-muted, #b8b7b1);
  font-size: 1rem;
  line-height: 1.65;
}

.homepage-process-intro p { max-width: 38ch; }

.homepage-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.homepage-process-steps > li {
  min-width: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--site-rule, #33332f);
}

.homepage-process-number {
  display: block;
  margin-bottom: 2rem;
  color: var(--orange, #ff6a1a);
  font-size: .875rem;
  font-weight: 500;
}

.homepage-process-steps h3 {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.homepage-tools {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(3rem, 5vw, 5rem) 2.5rem;
  background: #000;
  color: #f5f5f4;
}

.homepage-tools-inner {
  position: relative;
}

.homepage-tools h2 {
  max-width: 25ch;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  color: #f5f5f4;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.homepage-tools-groups {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

.homepage-tools-connection {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 64px;
  transform: translateX(-50%);
  fill: none;
  stroke: #ff5000;
  stroke-width: 1;
  opacity: .65;
  pointer-events: none;
}

.homepage-tools-connection path { vector-effect: non-scaling-stroke; }
.homepage-tools-connection path:last-child { opacity: .4; }
.homepage-tools-connection .homepage-tools-connection-halo { stroke-width: 10; opacity: .07; }

.homepage-tools-group {
  position: relative;
  min-width: 0;
  padding-top: 62px;
}

.homepage-tools-node {
  position: absolute;
  top: 15px;
  left: 0;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 2px solid #f5f5f4;
  border-radius: 50%;
  background: #000;
}

.homepage-tools-node::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #ff5000;
  border-radius: inherit;
}

.homepage-tools h3 {
  min-height: 2.8em;
  margin: 0 0 1.5rem;
  color: #f5f5f4;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.homepage-tools-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.homepage-tools-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: #e4e4e0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.homepage-tools-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f4;
}

.homepage-tools-list svg {
  display: block;
  width: 24px;
  height: 24px;
}

.hsc-copy .hsc-explanation {
  max-width: 65ch;
  margin: 1rem 0 0;
  color: var(--site-muted, #b8b7b1);
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 1050px) {
  .homepage-process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
}

@media (max-width: 1050px) {
  .homepage-tools-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  /* The second row has its own connection, at the height of its two nodes. */
  .homepage-tools-group:nth-of-type(3)::before {
    content: "";
    position: absolute;
    top: 26px;
    left: -2.5rem;
    width: 100vw;
    height: 1px;
    background: #ff5000;
    opacity: .65;
    pointer-events: none;
  }
}

@media (max-width: 700px) {
  .homepage-tools-group:nth-of-type(3)::before { content: none; }
  .homepage-process { padding-inline: 1.25rem; }
  .homepage-process-intro { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .homepage-process-intro p { max-width: 44ch; }
  .homepage-process-steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .homepage-process-steps > li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; }
  .homepage-process-number { margin: .15rem 0 0; }
  .homepage-process-steps p { max-width: 52ch; }
  .homepage-tools { padding: 3rem 1.25rem; }
  .homepage-tools h2 { max-width: 22ch; margin-bottom: 2rem; }
  .homepage-tools-groups { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .homepage-tools-connection { display: none; }
  .homepage-tools-group { padding: 0 0 0 2.5rem; }
  .homepage-tools-node { top: 2px; }
  .homepage-tools-group:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 11.5px;
    width: 1px;
    height: calc(100% + 1.5rem - 24px);
    background: linear-gradient(#ff500099, #ff500044, #ff500099);
  }
  .homepage-tools h3 { min-height: 0; margin-bottom: .75rem; font-size: 1rem; }
  .homepage-tools-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem .75rem; }
  .homepage-tools-list li { gap: .5rem; font-size: .875rem; }
  .homepage-tools-icon { width: 30px; height: 30px; }
  .homepage-tools-list svg { width: 20px; height: 20px; }
}

/* Service heading, followed directly by the service list. */
.sv-section-header { margin-bottom: 3rem; }
.sv-section-header .sv-heading { margin: 0; }
@media (max-width: 767px) {
  .sv-section-header { margin-bottom: 2rem; }
}
