/* ---------- ECHO STEPS (2026-11-16, his request): the orbit timeline he sent, rebuilt without React and turned into
   an echo. One ring per step, rings appear from the centre outward, echo waves run out through them and light each
   ring as they pass. Driven by echo-orbit.js. Since 2026-11-16 it sits inside the lifecycle section, under the five
   steps with the line, and reads its text from them; without JS only the list shows.
   2026-11-16 (his note "predebele linije, low quality"): rings and waves are SVG strokes now (crisp at any zoom,
   no CSS masks or blur glows), thinner; nodes, labels and the card sit on whole pixels. ---------- */

/* five steps on the line instead of four (desktop; phones keep the vertical list) */
@media (min-width: 901px) {
  [data-echo-orbit] .beats ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.eo { display: none; }
.js .eo { display: block; }

.eo { position: relative; height: 760px; margin-top: 64px; overflow: hidden; color: #fff; -webkit-tap-highlight-color: transparent;
  --eo-ac: #C9B8FF; --eo-on-ac: #1C1048; --eo-fg: 255, 255, 255; --eo-card: rgba(28, 16, 72, .82); }
@media (max-width: 640px) { .eo { height: 620px; margin-top: 40px; } .eo-label { font-size: 13px !important; letter-spacing: .02em !important; } }
.eo *, .eo *::before { box-sizing: border-box; }

/* rings: one <g> per step in a single SVG */
.eo-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.eo-rings circle { fill: none; }
.eo-orbit { --eo-ping: 0; opacity: 1; transform: scale(1); transition: opacity .6s, transform 1s cubic-bezier(.2, .8, .2, 1); }
.eo-orbit.eo-hidden { opacity: 0; transform: scale(.2); }
/* 2026-11-16 (his note): rings thinner, quieter and silver, so the coloured icons lead */
.eo-orbit .eo-ln { stroke: url(#eo-ring-ink); stroke-width: .75; transition: opacity .45s; }   /* 2026-11-17: "jedva da se vide" */
/* the echo passing through: the ring flares silver-lilac as a wave crosses it */
/* 2026-11-17 (his note "bez highlighta"): no flare as the echo passes; the open step's ring is only a touch brighter */
.eo-orbit .eo-pg { display: none; }
.eo-orbit .eo-ac { stroke: #E2E5EE; stroke-opacity: .5; stroke-width: .75; opacity: 0; transition: opacity .45s; }
.eo-orbit.eo-on .eo-ac { opacity: 1; }
.eo-orbit.eo-on .eo-ln { opacity: 0; }
.eo.eo-focus .eo-orbit:not(.eo-on) .eo-ln { opacity: .55; }
.eo-wave { stroke: #DCD6F2; stroke-width: .75; opacity: 0; }
/* rocks and dust on the rings (echo-orbit.js); they ride in the ring's group, so they grow in with it */
.eo-rings .eo-rock { stroke: none; }
.eo.eo-focus .eo-orbit:not(.eo-on) .eo-rock { filter: opacity(.5); }

/* "Step 1" labels sit in a gap at the top of each ring */
.eo-label { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; cursor: pointer; background: none; border: 0; padding: 2px 4px; margin: 0;
  font: 500 16px/1 var(--sans); letter-spacing: .02em; color: rgba(226, 229, 238, .86);   /* 2026-11-16: bigger, he could not read them */ transition: color .35s, opacity .6s; z-index: 2; }
.eo-label:hover { color: rgba(var(--eo-fg), .95); }
.eo-label:focus-visible, .eo-node:focus-visible, .eo-card button:focus-visible { outline: 2px solid rgba(var(--eo-fg), .7); outline-offset: 2px; }
.eo-label.eo-on { color: var(--eo-ac); }
.eo.eo-focus .eo-label:not(.eo-on) { color: rgba(var(--eo-fg), .45); }
.eo-label.eo-hidden { opacity: 0; }

/* the source of the echo: the Echon mark stays still and sharp; only the glow behind it breathes */
.eo-core { position: absolute; left: 50%; top: 50%; z-index: 1; }
.eo-core::before { content: ""; position: absolute; inset: -35%; border-radius: 50%; z-index: -1; animation: eo-breathe 6.4s ease-in-out infinite;
  background: radial-gradient(closest-side, rgba(113, 70, 217, .6), rgba(113, 70, 217, 0)); }
.eo-logo { display: block; width: 100%; height: 100%; }
@keyframes eo-breathe { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }

/* one node per step, drifting on its ring */
/* 2026-11-16 (his note): bigger, and the icons in violet instead of white, so they stand out from the silver lines */
.eo-node { position: absolute; left: 0; top: 0; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer; z-index: 3; color: #B9A6F3;
  background: #24145C; border: 1px solid rgba(185, 166, 243, .6); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55);
  transition: color .3s, opacity .35s, box-shadow .3s, background .3s, border-color .3s; }
/* one flat, clearly violet colour (he: no light-to-dark shimmer, "stavi neku boju normalnu") */
.eo-node svg { width: 28px; height: 28px; stroke: #9D7BFF; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .eo-node { width: 52px; height: 52px; margin: -26px 0 0 -26px; } .eo-node svg { width: 24px; height: 24px; } }
@media (hover: hover) { .eo-node:hover { border-color: #B9A6F3; background: #2C1A6E; } }
.eo .eo-node.eo-on { border-color: var(--eo-ac); background: #2C1A6E; }
.eo .eo-node.eo-sel svg { stroke: currentColor; }
.eo.eo-focus .eo-node:not(.eo-on) { opacity: .85; }
.eo .eo-node.eo-sel { background: var(--eo-ac); color: var(--eo-on-ac); border-color: var(--eo-ac);
  box-shadow: 0 0 0 6px rgba(201, 184, 255, .16), 0 0 18px rgba(201, 184, 255, .4); }
.eo-node.eo-hidden { opacity: 0 !important; pointer-events: none; }

/* the step card */
.eo-card { position: absolute; left: 0; top: 0; width: 290px; padding: 18px 18px 16px; border-radius: 16px; z-index: 4; text-align: left;
  background: var(--eo-card); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(var(--eo-fg), .14); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.eo-card.eo-open { opacity: 1; transform: none; pointer-events: auto; }
.eo-card-meta { display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1 var(--sans); letter-spacing: .06em; color: var(--eo-ac); }
.eo-card-meta span:last-child { color: rgba(var(--eo-fg), .5); }
.eo-card-title { margin: 12px 0 6px; font: 500 22px/1.2 var(--sans); letter-spacing: -.01em; color: #fff; }
.eo-card-text { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(var(--eo-fg), .78); }
.eo-card-nav { display: flex; gap: 6px; margin-top: 16px; }
.eo-card-nav button { appearance: none; flex: 1; border: 1px solid rgba(var(--eo-fg), .2); background: transparent; color: rgba(var(--eo-fg), .85);
  font: 500 13px/1 var(--sans); padding: 9px 8px; border-radius: 10px; cursor: pointer; transition: border-color .2s, color .2s; }
@media (hover: hover) { .eo-card-nav button:hover { border-color: rgba(var(--eo-fg), .45); color: #fff; } }
.eo-card-nav button:active { transform: scale(.97); }
.eo-card-nav button:disabled { opacity: .35; cursor: default; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { .eo-core::before { animation: none !important; } .eo-wave { display: none; } }
