/* Ecosystem section (06.11.2026): Debi Group's six directions as on the website hero, and the route a client takes.
   On a wide screen the map stays in place while four steps scroll past it; each step lights its part of the route. */

.eco { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 72px; margin-top: 56px; }
.eco-side { position: sticky; top: 104px; align-self: start; padding-top: 4vh; }

/* the map: a hexagon of six directions around the group */
.eco-map { position: relative; aspect-ratio: 1; margin: 0; border-radius: 36px; background: radial-gradient(circle at 50% 50%, #EEF9F8 0, #F7FCFB 45%, #fff 75%); }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hex { fill: rgb(0 166 154 / .045); stroke: rgb(0 166 154 / .2); stroke-width: .25; }
.sp { stroke: #BFD3D1; stroke-width: .25; stroke-dasharray: .9 1.1; }
.rt { fill: none; stroke: var(--g); stroke-width: .7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.45,.05,.25,1); }
.eco[data-step="2"] .rt-ai, .eco[data-step="3"] .rt-ai, .eco[data-step="4"] .rt-ai,
.eco[data-step="4"] .rt-fin, .eco[data-step="4"] .rt-deals { stroke-dashoffset: 0; }
.eco[data-step="4"] .rt-fin { transition-delay: .2s; }
.eco[data-step="4"] .rt-deals { transition-delay: .35s; }

.eco-hub { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; gap: 4px; width: 22%; aspect-ratio: 1; padding-top: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #DCEAE8, 0 12px 30px -14px rgb(5 133 123 / .45); transform: translate(-50%, -50%); }
.eco-hub img { width: 30%; height: auto; }
.eco-hub b { font-size: 12px; font-weight: 600; white-space: nowrap; }
.eco-hub::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; box-shadow: 0 0 0 0 rgb(0 166 154 / .35); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .eco[data-step="1"] .eco-hub::after { opacity: 1; animation: eco-pulse 2.2s cubic-bezier(.2,.7,.2,1) infinite; }
  @keyframes eco-pulse { to { box-shadow: 0 0 0 22px rgb(0 166 154 / 0); } }
}

.eco-n { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); display: grid; justify-items: center; gap: 3px; width: clamp(104px, 31%, 164px); padding: 10px 10px 11px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #E1ECEA, 0 10px 22px -14px rgb(17 17 17 / .22); text-align: center; transform: translate(-50%, -50%); transition: box-shadow .4s, opacity .4s, transform .35s cubic-bezier(.2,.7,.2,1); }
.eco-i { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 3px; border-radius: 10px; background: var(--g); color: #fff; }
.eco-i .ic { width: 16px; height: 16px; stroke-width: 2; }
.eco-n b { font-size: 14px; font-weight: 600; line-height: 1.2; }
.eco-n em { font-style: normal; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.eco-n:hover, .eco-n:focus-visible { transform: translate(-50%, calc(-50% - 3px)); outline: 0; box-shadow: 0 0 0 1.5px var(--ink), 0 14px 26px -14px rgb(17 17 17 / .3); }
.eco-n.on { box-shadow: 0 0 0 2px var(--g), 0 14px 30px -14px rgb(0 166 154 / .55); }
.eco:not([data-step="0"]):not([data-step="1"]) .eco-n:not(.on):not(:hover) { opacity: .45; }
.eco-cap { min-height: 3em; margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* the route, step by step */
.eco-s { display: flex; flex-direction: column; justify-content: center; min-height: 76vh; padding: 6vh 0; opacity: .3; transition: opacity .5s; }
.eco-s.on { opacity: 1; }
.eco-k { font: 500 14px/1 var(--pop); color: var(--g); }
.eco-s h3 { margin-top: 10px; font: 500 26px/1.25 var(--pop); letter-spacing: -.015em; }
.eco-s p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.eco-win { position: relative; margin-top: 24px; padding-top: 26px; border-radius: 18px; overflow: hidden; background: #F3F5F5; box-shadow: 0 0 0 1px rgb(17 17 17 / .06), 0 26px 50px -28px rgb(17 17 17 / .35); }
.eco-win::before { content: ''; position: absolute; left: 14px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #D5DADC; box-shadow: 13px 0 #D5DADC, 26px 0 #D5DADC; }
.eco-win img { display: block; width: 100%; height: auto; }
.eco-win.pad img { padding: 18px; background: #E4F2F1; }
.eco-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--g-ink); text-decoration: none; align-self: flex-start; }
.eco-link:hover { text-decoration: underline; }
.eco-link .ic { width: 14px; height: 14px; }

/* a narrow screen: the map with the whole route, then the steps one under another */
@media (max-width: 900px) {
  .eco { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
  .eco-side { position: static; padding-top: 0; }
  .eco .rt { stroke-dashoffset: 0; transition: none; }
  .eco .eco-n { opacity: 1 !important; }
  .eco .eco-n[data-n="ai"], .eco .eco-n[data-n="fin"], .eco .eco-n[data-n="deals"] { box-shadow: 0 0 0 2px var(--g), 0 14px 30px -14px rgb(0 166 154 / .55); }
  .eco-s { min-height: 0; padding: 28px 0 8px; opacity: 1; }
}
@media (max-width: 460px) {
  .eco-map { border-radius: 24px; }
  .eco-n { width: 30%; padding: 8px 6px 9px; border-radius: 14px; }
  .eco-n em { display: none; }
  .eco-n b { font-size: 12px; }
  .eco-i { width: 26px; height: 26px; border-radius: 8px; }
  .eco-hub b { font-size: 10px; }
  .eco-s h3 { font-size: 22px; }
  .eco-win.pad img { padding: 10px; }
}

/* still frames (?still): the whole route, no motion */
.ds-still .eco *, .ds-still .eco *::before, .ds-still .eco *::after { transition: none !important; animation: none !important; }
.ds-still .eco-s { min-height: 0; padding: 28px 0; opacity: 1; }
.ds-still .eco-side { position: static; padding-top: 0; }
