.signalwerkstatt-chapter {
  --sw-mint: #76e4cb;
  --sw-line: #3b756e;
  position: absolute;
  inset: calc(var(--public-nav-height) + var(--chapter-offset)) 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  color: #eaf4f3;
  background:
    radial-gradient(circle, #b6e8de50 .65px, transparent 1px) 19px 13px / 149px 123px,
    radial-gradient(ellipse at 46% 53%, #13383b9c, transparent 63%), #04080f;
}
.signalwerkstatt-chapter[hidden] { display: none; }
#signalwerkstatt-chapter-title:focus { outline: none; }
.sw-flow {
  width: min(75rem, calc(100% - 3rem));
  margin: auto;
  padding: clamp(1rem, 4vh, 2.6rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr) minmax(0, 1.32fr);
  align-items: center;
  --sw-gap: clamp(1.25rem, 4vw, 4rem);
  gap: var(--sw-gap);
}
.sw-stage, .sw-use {
  position: relative;
  min-width: 0;
  border: 1px solid #325551;
  border-radius: .85rem;
  background: #0b1b22;
}
.sw-stage {
  display: grid;
  justify-items: center;
  align-content: center;
  align-self: stretch;
  padding: clamp(1.1rem, 3vw, 2rem);
  text-align: center;
}
.sw-stage::after, .sw-uses::before, .sw-use::before {
  content: '';
  position: absolute;
  pointer-events: none;
}
.sw-stage::after {
  top: 50%;
  left: 100%;
  width: var(--sw-gap);
  height: 2px;
  background: var(--sw-line) linear-gradient(90deg, transparent, #9bfbe2, transparent) no-repeat -1.5rem center / 1.5rem 100%;
  animation: sw-transfer 3s linear infinite;
}
.sw-stage--process {
  border-color: #64b6a6;
  background: radial-gradient(ellipse at top, #13443d, #0b1b22 73%);
}
.sw-stage--process::after { width: calc(var(--sw-gap) / 2); animation-delay: 1s; }
.sw-icon { fill: none; stroke: var(--sw-mint); stroke-width: 1.35; }
.sw-world { width: 7.5rem; height: 6rem; stroke: #78bdaf; }
.sw-signal { fill: var(--sw-mint); stroke: #133438; }
.sw-engine { display: grid; width: 6rem; height: 6rem; place-items: center; position: relative; }
.sw-engine::after {
  content: '';
  position: absolute;
  inset: .35rem;
  border: 1px solid #54a294;
  border-top-color: #b6ffec;
  border-radius: 50%;
  animation: sw-scan 7s linear infinite;
}
.sw-engine img { display: block; }
.sw-flow h3 { margin: .6rem 0 .45rem; color: #e7fff7; font: 600 1.25rem/1.16 var(--universe-font); text-wrap: balance; }
.sw-flow p { margin: 0; color: #b8ced1; font-size: .92rem; line-height: 1.45; }
.sw-uses { position: relative; display: grid; grid-template-rows: repeat(2, 1fr); gap: 1rem; }
.sw-uses::before {
  left: calc(var(--sw-gap) / -2);
  top: 25%;
  bottom: 25%;
  width: 2px;
  background: var(--sw-line);
}
.sw-use { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: start; gap: .7rem; padding: 1rem; }
.sw-use::before { right: 100%; top: 50%; width: calc(var(--sw-gap) / 2); height: 2px; background: var(--sw-line); }
.sw-use:first-child::before { top: calc(50% + .25rem); }
.sw-use:last-child::before { top: calc(50% - .25rem); }
.sw-use h3 { margin-top: 0; }
.sw-use svg { width: 2rem; height: 2rem; }
.sw-footer { flex: none; padding: .5rem 1rem 1rem; text-align: center; }
.sw-footer a { color: var(--sw-mint); font-size: .87rem; text-underline-offset: .22em; }
.sw-footer a:focus-visible { outline: 2px solid var(--sw-mint); outline-offset: 3px; }
@keyframes sw-transfer { to { background-position: calc(100% + 1.5rem) center; } }
@keyframes sw-scan { to { transform: rotate(1turn); } }

@media (max-width: 760px) {
  .sw-flow { width: min(34rem, calc(100% - 2rem)); grid-template-columns: minmax(0, 1fr); --sw-gap: 1.35rem; }
  .sw-stage { padding: 1rem; }
  .sw-stage::after {
    top: 100%;
    left: 50%;
    width: 2px;
    height: var(--sw-gap);
    background: var(--sw-line);
    animation: none;
  }
  .sw-world, .sw-engine { height: 4rem; }
  .sw-engine { width: 4rem; }
  .sw-engine img { width: 2.4rem; height: 2.4rem; }
  .sw-uses { gap: .65rem; grid-template-rows: none; border-left: 2px solid var(--sw-line); padding-left: 1rem; margin-left: .7rem; }
  .sw-uses::before { left: -2px; top: 0; width: calc(50% - .7rem); height: 2px; }
  .sw-use:is(:first-child, :last-child)::before { top: 50%; width: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-stage::after, .sw-engine::after { animation: none; }
}
