/* Vores tilgang — original JLDigital ecosystem illustration (/email-marketing + /en/email-marketing).
   HTML nodes over a measured SVG wire layer. Viewport-activated sequence:
   core activates, wires draw in, satellite nodes appear group by group,
   then slow pulses travel the three main connections on a loop.
   Hover/tap on a category highlights its group; reduced motion shows the
   completed diagram with no movement. */

.eco{position:relative;max-width:1060px;margin:14px auto 0;height:640px}
.eco-wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.eco-wire{fill:none;stroke:#ddd6c6;stroke-width:1.1;opacity:0;transition:opacity .7s ease var(--wd,.4s),stroke-dashoffset 1.1s ease var(--wd,.4s)}
.eco-wire-main{stroke:#c6bda6;stroke-width:1.3}
.eco-wire[data-eco-group="flows"]{--wd:1.6s}
.eco-wire[data-eco-group="campaigns"]{--wd:2.6s}
.eco-running .eco-wire{opacity:1;stroke-dashoffset:0!important}
.eco-pulse{fill:#1a1916;opacity:0}
.eco-running .eco-pulse{animation:eco-travel 9.6s linear infinite}
@keyframes eco-travel{0%{offset-distance:0%;opacity:0}7%{opacity:.85}86%{opacity:.85}100%{offset-distance:100%;opacity:0}}

/* Central node */
.eco-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.94);width:158px;height:158px;border-radius:50%;background:#1a1916;color:#f6f4ef;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;opacity:0;transition:opacity .8s ease,transform .8s ease;z-index:2}
.eco-core-a{font-size:10.5px;letter-spacing:.26em;text-transform:uppercase;color:#b9b2a2;font-weight:600}
.eco-core-b{font-family:'Playfair Display',serif;font-size:23px;letter-spacing:-.01em}
.eco-running .eco-core{opacity:1;transform:translate(-50%,-50%) scale(1);animation:eco-breathe 7s ease-in-out 2.2s infinite}
@keyframes eco-breathe{0%,100%{box-shadow:0 0 0 8px rgba(26,25,22,.05)}50%{box-shadow:0 0 0 17px rgba(26,25,22,.03)}}

/* Category nodes */
.eco-group{display:contents}
.eco-cat{position:absolute;transform:translate(-50%,-50%) translateY(10px);appearance:none;border:1px solid #ddd6c6;background:#fff;border-radius:999px;padding:12px 22px;display:flex;align-items:center;gap:10px;cursor:pointer;opacity:0;transition:opacity .7s ease,transform .7s ease,border-color .3s ease,box-shadow .3s ease;z-index:2;font:inherit}
.eco-cat .eco-n{font-family:'Playfair Display',serif;font-size:13px;color:#a9a294;letter-spacing:.08em}
.eco-cat .eco-t{font-size:12.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#1a1916;white-space:nowrap}
.eco-cat:hover{border-color:#1a1916;box-shadow:0 14px 30px -20px rgba(0,0,0,.35)}
.eco-cat:focus-visible{outline:2px solid #1a1916;outline-offset:3px}
.eco-cat-foundation{left:50%;top:13.5%}
.eco-cat-flows{left:23.5%;top:80%}
.eco-cat-campaigns{left:76.5%;top:80%}
.eco-running .eco-cat{opacity:1;transform:translate(-50%,-50%)}
.eco-running .eco-cat-foundation{transition-delay:.35s}
.eco-running .eco-cat-flows{transition-delay:1.55s}
.eco-running .eco-cat-campaigns{transition-delay:2.55s}

/* Satellite nodes */
.eco-sats{display:contents}
.eco-sat{position:absolute;transform:translate(-50%,-50%) translateY(8px);background:#faf8f3;border:1px solid #e7e2d5;border-radius:999px;padding:7px 14px;font-size:12px;font-weight:500;color:#3a3631;letter-spacing:.03em;white-space:nowrap;opacity:0;transition:opacity .6s ease,transform .6s ease,border-color .3s ease;transition-delay:var(--d,1s);z-index:1}
.eco-running .eco-sat{opacity:1;transform:translate(-50%,-50%)}
.eco-sat-f1{left:34%;top:4.5%}
.eco-sat-f2{left:66%;top:4.5%}
.eco-sat-f3{left:17.5%;top:13%}
.eco-sat-f4{left:82.5%;top:13%}
.eco-sat-f5{left:61%;top:25.5%}
.eco-sat-l1{left:6.5%;top:66%}
.eco-sat-l2{left:7.5%;top:85.5%}
.eco-sat-l3{left:21.5%;top:96.5%}
.eco-sat-l4{left:38%;top:92%}
.eco-sat-l5{left:39.5%;top:71.5%}
.eco-sat-c1{left:93.5%;top:66%}
.eco-sat-c2{left:92.5%;top:85.5%}
.eco-sat-c3{left:78.5%;top:96.5%}
.eco-sat-c4{left:62%;top:92%}
.eco-sat-c5{left:60.5%;top:71.5%}

/* Hover/tap focus: highlight one group, fade the rest */
.eco[data-focus] .eco-cat,.eco[data-focus] .eco-sat{opacity:.34;transition-delay:0s}
.eco[data-focus] .eco-wire{opacity:.16;transition-delay:0s}
.eco[data-focus] .eco-pulse{opacity:0;animation-play-state:paused}
.eco[data-focus="foundation"] .eco-cat-foundation,.eco[data-focus="foundation"] [data-eco-group="foundation"],
.eco[data-focus="flows"] .eco-cat-flows,.eco[data-focus="flows"] [data-eco-group="flows"],
.eco[data-focus="campaigns"] .eco-cat-campaigns,.eco[data-focus="campaigns"] [data-eco-group="campaigns"]{opacity:1}
.eco[data-focus="foundation"] .eco-wire[data-eco-group="foundation"],
.eco[data-focus="flows"] .eco-wire[data-eco-group="flows"],
.eco[data-focus="campaigns"] .eco-wire[data-eco-group="campaigns"]{opacity:1}
.eco[data-focus="foundation"] .eco-cat-foundation,.eco[data-focus="flows"] .eco-cat-flows,.eco[data-focus="campaigns"] .eco-cat-campaigns{border-color:#1a1916}

/* Compact 3-column summary below the illustration */
.eco-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;max-width:1060px;margin:64px auto 0}
.eco-sum{border-top:1px solid #e2dccc;padding-top:22px}
.eco-sum .n{font-family:'Playfair Display',serif;font-size:14px;color:#a9a294;letter-spacing:.1em;display:block;margin-bottom:10px}
.eco-sum h3{font-family:'Playfair Display',serif;font-weight:500;font-size:19px;letter-spacing:-.01em;margin-bottom:8px;color:#1a1916}
.eco-sum p{font-size:13.5px;color:#5a554c;line-height:1.65}

/* Mobile: vertical system — core on top, groups stacked, satellites wrap */
@media(max-width:860px){
  .eco{height:auto;display:flex;flex-direction:column;align-items:center;gap:30px;padding:8px 0 2px}
  .eco::before{content:"";position:absolute;left:50%;top:70px;bottom:30px;width:1px;background:#e2dccc}
  .eco-wires{display:none}
  .eco-core{position:static;transform:none;width:132px;height:132px;flex-shrink:0}
  .eco-core-b{font-size:20px}
  .eco-group{display:flex;flex-direction:column;align-items:center;gap:13px;position:relative;z-index:1}
  .eco-cat{position:static;transform:none}
  .eco-sats{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:340px}
  .eco-sat{position:static;transform:none}
  .eco-running .eco-core,.eco-running .eco-cat,.eco-running .eco-sat{transform:none}
  .eco-summary{grid-template-columns:1fr;gap:0;margin-top:48px}
  .eco-sum{padding:18px 0}
}

/* Reduced motion: completed diagram, no looping movement */
@media(prefers-reduced-motion:reduce){
  .eco-core,.eco-cat,.eco-sat{opacity:1!important;animation:none!important;transition:none!important}
  .eco-wire{opacity:1!important;stroke-dashoffset:0!important;transition:none!important}
  .eco-pulse{display:none}
  @media(min-width:861px){
    .eco-core,.eco-cat,.eco-sat{transform:translate(-50%,-50%)!important}
  }
  @media(max-width:860px){
    .eco-core,.eco-cat,.eco-sat{transform:none!important}
  }
}
