/* "Egal, wo Ihr Wissen liegt": what AEDIL reads, as a stack of paper that unfolds like a leporello while the section scrolls in
   (js/site-sources.js sets the angles). Below it the systems AEDIL works in, as logos circling AEDIL.
   Yellow marks only AEDIL: its panel, its hub, the pulses on their way to it. */
.s-src{ position:relative; overflow-x:clip }
.og-head{ display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:24px clamp(32px, 5vw, 80px); align-items:end }
.og-head .h2{ max-width:20ch }
.og-lede{ display:grid; gap:16px; justify-items:start }
.og-lede .body{ margin:0; max-width:44ch }

/* the leporello. Without JS the panels simply sit side by side; .lep-3d hands their positions to the script. */
.lep{ --pad:clamp(16px, 1.7vw, 24px); list-style:none; position:relative; margin:clamp(34px, 6vh, 64px) 0 0; padding:0; display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)) }
.lep-p{ position:relative; min-width:0; background:var(--card-solid); box-shadow:inset 0 0 0 1px var(--line) }
.lep-f{ height:100%; display:flex; flex-direction:column; padding:var(--pad) }
.lep-v{ display:block; width:100%; height:auto; margin-bottom:auto; fill:none; stroke:var(--ink); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round }
.lep-v .f{ stroke:var(--line2); stroke-width:1.2 }
.lep-v circle{ fill:var(--card-solid) }
.lep-f h3{ margin:clamp(20px, 3vh, 36px) 0 0; font:600 clamp(20px, 1.75vw, 26px)/1.14 var(--f-display); letter-spacing:-.024em; color:var(--ink); text-wrap:balance }
.lep-f p{ margin:10px 0 0; font-size:clamp(14px, 1.08vw, 15.5px); line-height:1.45; color:var(--ink2); text-wrap:pretty }
.lep-ae{ background:var(--him); box-shadow:none }
.lep-ae .lep-f{ align-items:center; justify-content:center; gap:14px; color:var(--on-him); --mark:var(--on-him) }
.lep-ae svg{ width:clamp(56px, 5.4vw, 84px); height:auto; color:var(--on-him) }
.lep-ae b{ font:600 clamp(20px, 1.75vw, 26px)/1 var(--f-display); letter-spacing:.02em }
.lep-3d{ display:block; perspective:1700px; perspective-origin:50% 42% }
.lep-3d .lep-run{ position:absolute; inset:0; transform-style:preserve-3d; will-change:transform }
.lep-3d .lep-p{ position:absolute; left:0; top:0; transform-origin:0 0; backface-visibility:hidden; will-change:transform }
/* each pleat darkens toward its far crease */
.lep-3d .lep-p::after{ content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg, rgba(70,52,12,0) 25%, rgba(70,52,12,var(--a, .05))) }
.lep-3d .lep-p:nth-child(even)::after{ background:linear-gradient(270deg, rgba(70,52,12,0) 25%, rgba(70,52,12,var(--a, .05))) }
.lep-3d .lep-f{ opacity:var(--ta, 1) }
.lep-sh{ position:absolute; left:0; bottom:-22px; height:40px; border-radius:50%; background:rgba(70,52,12,.24); filter:blur(16px); pointer-events:none }

/* the systems: logos on two rings around AEDIL, a spoke from each, pulses running inward */
.orb-wrap{ margin-top:clamp(56px, 10vh, 110px); display:grid; justify-items:center; gap:clamp(8px, 2vh, 18px) }
.orb-k{ margin:0; font:600 clamp(28px, 3.3vw, 46px)/1.1 var(--f-display); letter-spacing:-.03em; color:var(--ink); text-align:center; text-wrap:balance }
.orb{ --r1:25.5cqw; --r2:42cqw; --s:clamp(54px, 12.2cqw, 92px); position:relative; width:min(760px, 100%); aspect-ratio:1; container-type:inline-size }
.orb-ring{ list-style:none; margin:0; padding:0; position:absolute; left:50%; top:50%; width:0; height:0; animation:orb-rot var(--t) linear infinite var(--dirn, normal); animation-play-state:paused }  /* no box of its own: a turning square would widen the page */
.orb-ring::before{ content:""; position:absolute; left:calc(-1 * var(--R)); top:calc(-1 * var(--R)); width:calc(2 * var(--R)); height:calc(2 * var(--R)); border-radius:50%; box-shadow:inset 0 0 0 1px var(--line) }
.orb.is-live .orb-ring, .orb.is-live .orb-n > span{ animation-play-state:running }
.orb:hover .orb-ring, .orb:hover .orb-n > span{ animation-play-state:paused }
@keyframes orb-rot{ to{ transform:rotate(1turn) } }
.orb-sp{ position:absolute; left:0; top:0; width:1px; height:var(--R); margin-left:-.5px; transform-origin:50% 0; transform:rotate(calc(var(--k) / var(--n) * 1turn)); background:var(--line); overflow:hidden }
.orb-sp::after{ content:""; position:absolute; left:-.5px; width:2px; height:26%; border-radius:2px; background:var(--him); animation:orb-pulse 3.3s cubic-bezier(.45, .05, .55, .95) var(--dl) infinite }
@keyframes orb-pulse{ 0%{ top:100%; opacity:0 } 12%{ opacity:1 } 70%{ opacity:1 } 82%, 100%{ top:-26%; opacity:0 } }
.orb-n{ position:absolute; left:0; top:0; width:var(--s); height:var(--s); margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform:rotate(calc(var(--k) / var(--n) * 1turn)) translateY(var(--R)) rotate(calc(var(--k) / var(--n) * -1turn)) }
.orb-n > span{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:100%; height:100%; border-radius:24%; background:#fff; box-shadow:inset 0 0 0 1px var(--line), var(--card-shadow);
  animation:orb-rot var(--t) linear infinite; animation-direction:var(--back, reverse); animation-play-state:paused }
.orb-r1{ z-index:2 }
.orb-r2{ --back:normal; z-index:1 }
.orb-n img{ display:block; width:44%; height:auto; max-height:46% }
.orb-n small{ font:600 clamp(9px, 1.45cqw, 11.5px)/1 var(--f-sans); letter-spacing:-.01em; color:var(--ink2); white-space:nowrap }
.orb-n-sap{ --s2:calc(var(--s) * 1.3); width:var(--s2); height:var(--s2); margin:calc(var(--s2) / -2) 0 0 calc(var(--s2) / -2) }
.orb-n-sap img{ width:68%; max-height:none }
.orb-r1 .orb-n:nth-of-type(2) img{ width:66%; max-height:none }
.orb-w{ font:800 clamp(15px, 3cqw, 23px)/1 var(--f-sans); letter-spacing:.01em }
.orb-w-s{ font-size:clamp(11px, 2.1cqw, 16px); font-weight:700; letter-spacing:-.01em }
.orb-n-own > span{ background:var(--card-solid); box-shadow:inset 0 0 0 1px var(--line2) }
.orb-own{ font:600 clamp(10px, 1.7cqw, 13px)/1.15 var(--f-sans); letter-spacing:-.01em; text-align:center; color:var(--ink); padding:0 clamp(2px, .8cqw, 6px) }
.orb-hub{ position:absolute; z-index:3; left:50%; top:50%; transform:translate(-50%, -50%) }
.orb-hub b{ display:grid; place-items:center; width:clamp(68px, 16cqw, 122px); aspect-ratio:1; border-radius:24%; background:var(--him); color:var(--on-him); --mark:var(--on-him);
  box-shadow:0 0 0 clamp(6px, 1.4cqw, 11px) color-mix(in srgb, var(--him) 22%, transparent), var(--card-shadow) }
.orb-hub svg{ width:54%; height:auto; color:var(--on-him) }

@media (max-width:900px){
  .og-head{ grid-template-columns:minmax(0, 1fr) }
  .lep{ grid-template-columns:minmax(0, 1fr) }
  .lep-f{ display:grid; grid-template-columns:minmax(0, 38%) minmax(0, 1fr); grid-template-rows:auto auto; align-content:center; column-gap:var(--pad) }
  .lep-v{ grid-row:1 / span 2; align-self:center; margin:0 }
  .lep-f h3{ margin:0; align-self:end }
  .lep-f p{ margin:6px 0 0 }
  .lep-ae .lep-f{ display:flex; flex-direction:row }
  .lep-ae svg{ width:48px }
  .lep-3d .lep-p:nth-child(even)::after{ background:linear-gradient(0deg, rgba(70,52,12,0) 25%, rgba(70,52,12,var(--a, .05))) }
  .lep-3d .lep-p::after{ background:linear-gradient(180deg, rgba(70,52,12,0) 25%, rgba(70,52,12,var(--a, .05))) }
  .lep-sh{ display:none }
}
@media (max-width:560px){
  .orb-n small{ display:none }
  .orb-n img{ width:54%; max-height:none }
  .orb-n-sap img{ width:70% }
  .orb{ --r1:23cqw; --r2:41.5cqw; --s:clamp(46px, 14.6cqw, 64px) }
}
@media (prefers-reduced-motion:reduce){
  .orb-ring, .orb-n > span, .orb-sp::after{ animation:none }
}

/* the ring now closes the "why" section; the way to the connectivity page sits under it */
.orb-wrap > .btn{ margin-top:clamp(10px, 2vh, 20px) }
.s-warum .orb{ width:min(620px, 100%) }

/* the two rings turn against each other: their radii differ by more than a tile's width, so tiles never meet */
.orb{ --r1:22cqw; --r2:43cqw }
@media (max-width:560px){
  .orb{ --r1:21.5cqw; --r2:43cqw }
  .orb-hub b{ width:60px }
}

/* spacing pass 18.11.: the ring keeps a section's distance from the cards above */
.orb-wrap{ margin-top:var(--sec); gap:clamp(24px, 4vh, 40px) } .orb-wrap > .btn{ margin-top:0 }

/* spacing pass 2, 18.11.: on the phone the ring stays inside the page gutter */
@media (max-width:560px){ .orb{ --r1:19cqw; --r2:40cqw } .orb-hub b{ width:52px } }
