/* The original moon joins the objects into a collage. The navigation stays still. */
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene-shell #scene { isolation: isolate; }
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-globe {
  position: absolute;
  left: 51%; top: 49%; width: 54%;
  aspect-ratio: 700 / 730;
  translate: -50% -50%;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-globe svg {
  position: absolute;
  display: block;
  height: auto;
  overflow: hidden;
  pointer-events: none;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-moon {
  left: 2%; top: 0; width: 96%;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-child {
  left: 55.43%; top: 51%; width: 28.857%;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-tire {
  left: 33.43%; top: 51%; width: 22%;
  transform-origin: 50% 76%;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] :is(.actor,.aerd-newsletter-object) { z-index: 4; }
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .frame { display: none; }
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-place .aerd-object-label {
  display: table;
  margin: 0 auto;
  padding: 4px 10px;
  background: #fffcfaed;
  border-radius: 3px 7px 2px 5px;
}
@media (min-width: 761px) {
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene-shell #scene {
    width: min(100%, 1100px);
    height: clamp(700px, 64vw, 800px);
    margin: 0 auto;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene-shell :is(.actor, .aerd-newsletter-object) {
    translate: -50% -50%;
    transform: none !important;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-place {
    left: 51%; top: 41%; width: 31%;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-learn {
    left: 48%; top: 13%; width: 20%;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-news {
    left: 33%; top: 16%; width: 18%;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-books {
    left: 59%; top: 84.5%; width: 11%;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-newsletter-object {
    left: 79.5%; top: 35%; width: 13%;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-key {
    left: 79%; top: 68%; width: 12%;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-mobility {
    left: 64%; top: 13%; width: 20%;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-blog {
    left: 32%; top: 76%; width: 11%;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-games {
    left: 20%; top: 55%; width: 14%;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-learn > .art { rotate: -6deg; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-news > .art { rotate: -7deg; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-books > .art { rotate: 5deg; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-key > .art { rotate: 11deg; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-games > .art { rotate: -4deg; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-blog > .art { rotate: 3deg; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-mobility > .art { rotate: -3deg; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-ambience .rd-cloud {
    left: 15%; top: 35%; width: 21%; opacity: .62;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-ambience .rd-insect {
    left: 77%; top: 62%; width: 28px; height: 28px;
  }
}
/* The central collage remains whole on a phone; links then flow in reading order. */
@media (max-width: 760px) {
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-insect { display: none; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene-shell #scene {
    column-gap: 22px;
    padding-top: 6px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-globe {
    position: relative;
    grid-column: 1 / -1; grid-row: 1;
    left: auto; top: auto;
    width: 100%; max-width: 440px;
    justify-self: center;
    translate: none;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene .actor-place {
    grid-column: 1 / -1; grid-row: 1;
    align-self: start;
    justify-self: center;
    width: 64%; max-width: 282px;
    margin: min(13vw, 79px) 0 0;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-place .aerd-object-label {
    font-size: 16px; padding: 3px 7px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-news { margin-top: 24px; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-key { margin-top: 20px; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-blog { margin-top: 22px; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-ambience .rd-cloud {
    top: 24px; left: 0; width: 28%; opacity: .4;
  }
}

@media (max-width: 760px) {
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-place .art img { clip-path: url("#clip-place"); }
}

/* The girl is the learning link. Its wrapper never intercepts the other objects.
   No transform on this wrapper: the fixed information panel retains the viewport as its reference. */
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-learner {
  position: absolute;
  left: 24%; top: calc(49% - 28.157143cqw); width: 54%;
  aspect-ratio: 700 / 730;
  z-index: 5;
  pointer-events: none;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-learner .actor-learn {
  position: absolute;
  left: 55.43%; top: 51%; width: 28.857%;
  height: auto; max-width: none;
  margin: 0; padding: 0;
  translate: none; transform: none !important; scale: 1;
  pointer-events: auto;
  touch-action: manipulation;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-learner .actor-learn > .art {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 202 / 304;
  padding: 0; margin: 0;
  rotate: none; transform: none !important;
  background: transparent;
  clip-path: none; box-shadow: none;
  filter: none;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-child-link {
  display: block;
  width: 100%; height: auto;
  overflow: hidden;
  pointer-events: none;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-learner .aerd-object-label {
  position: absolute;
  left: 94%; top: 5%;
  width: max-content; max-width: 150px;
  padding: 7px 10px;
  margin: 0;
  border-radius: 3px 6px 2px 5px;
  background: #fffcfaf2;
  color: var(--rd-ink);
  font-size: 18px; line-height: 1.3;
  text-align: left;
  box-sizing: border-box;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-learner .actor-learn:is(:hover,:focus-visible) .aerd-object-label {
  color: var(--rd-accent);
  text-decoration: underline;
  text-underline-offset: .22em;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-learner #scene-label { pointer-events: auto; }
@media (max-width: 760px) {
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-globe { margin-bottom: 46px; }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-learner {
    position: relative;
    grid-column: 1 / -1; grid-row: 1;
    align-self: start; justify-self: center;
    left: auto; top: auto;
    width: 100%; max-width: 440px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .scene .rd-learner .actor-learn {
    position: absolute;
    inset: 51% auto auto 55.43%;
    width: 28.857%;
    margin: 0;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-learner .aerd-object-label {
    top: calc(100% + 8px);
    left: 50%; translate: -50% 0;
    max-width: min(170px, 48vw);
    min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    font-size: 16px;
  }
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .aerd-newsletter-object {
    grid-column: 1 / -1;
    width: min(180px, 64%);
    justify-self: center;
  }
}

/* Fish above the roof; the cloud belongs behind the vehicle at every width. */
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-sky {
  position: absolute;
  left: 51%; top: 4%; width: 15%;
  translate: -50% 0;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-fishes {
  display: block;
  width: 100%; height: auto;
  pointer-events: none;
  transform-origin: center;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-mobility .rd-karbike-art {
  position: relative;
  isolation: isolate;
  mix-blend-mode: multiply;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-karbike-art img:not(.rd-karbike-cloud) {
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
}
html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-mobility .rd-karbike-art .rd-karbike-cloud {
  position: absolute;
  left: -18%; top: 12%; width: 136%; height: auto;
  max-width: none;
  z-index: 0;
  opacity: .7;
  pointer-events: none;
}
@media (max-width: 760px) {
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .rd-sky {
    position: relative;
    grid-column: 1 / -1; grid-row: 1;
    align-self: start; justify-self: center;
    left: auto; top: auto;
    width: 30%; max-width: 132px;
    margin: 2px 0 0 18%;
    translate: none;
  }
}

@media (max-width: 760px) {
  html[data-aerd-adaptation='1'] body[data-aerd-art='home'] .actor-mobility .rd-karbike-art .rd-karbike-cloud {
    left: -10%; top: 20%; width: 120%; height: auto;
  }
}
