/* ============================================================
   2 · Her Ecosystem — light #F7F5F2 band (approved design): dark
   olive frame with notched chevrons, four accent-coloured cards
   in a 2×2 (equal height per row), white venn box in the clear
   centre channel. Stacks below 900px.
   ============================================================ */
.eco {
  --eco-divider: rgba(38, 37, 31, 0.15);
  background: var(--c-ecosystem);
}

/* grid: card column | centre channel (venn) | card column. 1fr rows keep
   all four cards the same height — sized by the longest card's content. */
.eco__stage {
  position: relative;
  max-width: 1320px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr clamp(250px, 26vw, 330px) 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(28px, 4.5vw, 60px) clamp(16px, 2vw, 28px);
  padding: clamp(30px, 4.5vw, 56px) clamp(40px, 6.5vw, 88px);
}
.eco__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.eco__frame-line {
  fill: none;
  stroke: var(--c-eco-frame);
  stroke-width: 1.8;
}
.eco__frame-notch rect { fill: var(--c-ecosystem); }
.eco__frame-arrows path {
  fill: none;
  stroke: var(--c-eco-frame);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* cards — accent border per stage, anchored to the outer edges with a
   clear centre channel; both cards of a row share the same height.
   Identical internal order: number · divider · text · icon. */
.eco__card {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  padding: clamp(16px, 2vw, 28px) clamp(14px, 1.8vw, 26px);
  border: 1.4px solid var(--stage-c, var(--c-maroon));
  border-radius: 10px;
}
.eco__card--1 { grid-area: 1 / 1; }
.eco__card--2 { grid-area: 1 / 3; }
.eco__card--3 { grid-area: 2 / 3; }
.eco__card--4 { grid-area: 2 / 1; }

.eco__card-num {
  font-family: var(--f-accent);
  font-size: clamp(26px, 3.3vw, 46px);
  line-height: 1;
  color: var(--stage-c, var(--c-maroon));
}
.eco__card-divider {
  align-self: stretch;
  width: 1px;
  background: var(--eco-divider);
}
.eco__card-title {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(11px, 1.05vw, 14.5px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stage-c, var(--c-maroon));
  line-height: 1.3;
}
.eco__card-subtitle {
  font-family: var(--f-accent);
  font-size: clamp(10px, 1vw, 12.5px);
  color: var(--c-muted);
  margin-top: 3px;
}
.eco__card-text {
  font-size: clamp(10px, 1vw, 12.4px);
  line-height: 1.62;
  color: var(--c-muted);
  margin-top: 8px;
}
.eco__card-icon {
  color: var(--stage-c, var(--c-maroon));
  flex: none;
  margin-left: auto;
}
.eco__card-icon svg { width: clamp(20px, 2.3vw, 30px); height: auto; }

/* centre venn box — fits the channel between the card columns */
.eco__venn {
  grid-area: 1 / 2 / 3 / 3;
  place-self: center;
  width: min(100%, 310px);
  aspect-ratio: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -30px rgba(38, 37, 31, .35);
  padding: 3.5%;
}
.eco__venn svg { width: 100%; height: 100%; }
.eco__venn-label {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  color: #fff;
}

/* closing note */
.eco__note {
  text-align: center;
  max-width: 78ch;
  margin: clamp(44px, 6vw, 72px) auto 0;
}
.eco__note h3 {
  font-family: var(--f-accent);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--c-maroon);
}
.eco__note p {
  margin-top: 16px;
  color: var(--c-muted);
  font-size: 15.5px;
}

/* stacked layout — frame/arrows hidden rather than squashed */
@media (max-width: 900px) {
  .eco__stage {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
    padding: 0;
  }
  .eco__frame { display: none; }
  .eco__card { width: 100%; padding: 20px 18px; gap: 16px; }
  .eco__card-num { font-size: 34px; }
  .eco__card-title { font-size: 13.5px; }
  .eco__card-subtitle { font-size: 12px; }
  .eco__card-text { font-size: 12.4px; }
  .eco__card-icon svg { width: 26px; }
  .eco__venn {
    order: -1;
    width: min(300px, 80%);
    margin-inline: auto;
  }
}
