/* These rules affect only the two requested V5 sections. */
#top, #onderscheid { position: relative; isolation: isolate; overflow: hidden; }
#top > .v5-world-backdrop, #onderscheid > .v5-world-backdrop {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .46; mask-image: linear-gradient(90deg, transparent, #000 48%);
}
#onderscheid > .v5-world-backdrop { opacity: .32; }
#top .v5-world-backdrop canvas, #onderscheid .v5-world-backdrop canvas { display: block; width: 100%; height: 100%; }
#top > .hero-inner, #onderscheid > .difference-layout { position: relative; z-index: 1; }
#top .hero-galaxy { width: 100%; margin: 0; }
#top ecosystem-galaxy, #onderscheid ecosystem-galaxy { display: block; min-width: 0; min-height: 0; }
#top .v5-motion-controls, #onderscheid .v5-motion-controls { margin-top: 14px; }
#top .v5-motion-toggle, #onderscheid .v5-motion-toggle {
  min-height: 44px; border: 1px solid #6e83a4; border-radius: 10px;
  padding: 10px 14px; color: #d6e4f6; background: #101d3b88;
  font: 550 14px/1.5 var(--rs-font, 'Montserrat', sans-serif); cursor: pointer;
}
#top .v5-motion-toggle:hover, #onderscheid .v5-motion-toggle:hover { background: #ffffff0c; color: #fff; }
#top .v5-motion-toggle:focus-visible, #onderscheid .v5-motion-toggle:focus-visible { outline: 3px solid #ffb15a; outline-offset: 4px; }
@media (max-width: 760px) {
  #top .v5-world-backdrop, #onderscheid .v5-world-backdrop {
    display: block; opacity: .36; mask-image: linear-gradient(180deg, transparent, #000 34%, #000 88%, transparent);
  }
}

/* The headline and the Galaxy each have their own reading space. */
#top .hero-inner {
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
  min-height: clamp(51rem, 92svh, 58rem);
  padding-block: clamp(3.25rem, 5vw, 5rem);
}
#top .hero-copy { min-width: 0; container-type: inline-size; }
#top .brand-tagline-hero {
  display: flex; flex-wrap: wrap; column-gap: .3em;
  font-size: .875rem; line-height: 1.6;
}
#top .brand-tagline-hero span:first-child { color: inherit; }
#top h2 {
  margin: clamp(1.4rem, 2.3vw, 2rem) 0;
  font-size: clamp(2.15rem, 9.85cqi, 3.75rem);
  line-height: 1.06;
  text-wrap: balance;
}
#top .lead {
  max-width: 33ch; margin: 0 0 .6rem;
  color: var(--rs-surface); font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: var(--rs-weight-subheading); line-height: 1.4;
  text-wrap: balance;
}
#top .hero-explanation {
  max-width: 45ch; margin: 0;
  color: var(--rs-dark-copy); font-size: 1.0625rem; line-height: 1.65;
}
#top .hero-actions { margin-top: clamp(1.5rem, 2.5vw, 2rem); }

#top .hero-galaxy { position: relative; display: block; }
#top .has-chain-story .chain-story-summary, #top .chain-announcement {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
#top .chain-story-band {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'example count' 'caption controls';
  column-gap: 1rem; row-gap: .35rem;
  padding: 1rem clamp(1rem, 1.7vw, 1.5rem); margin-block-start: clamp(2rem, 3vw, 2.75rem);
  border-inline-start: 3px solid var(--rs-accent);
  border-radius: 0 var(--rs-radius) var(--rs-radius) 0;
  background: linear-gradient(100deg, var(--rs-deep-navy), rgb(7 27 63 / .48));
}
#top .chain-example {
  grid-area: example; color: var(--rs-dark-copy);
  font-size: .8125rem; line-height: 1.45; font-weight: 550;
}
#top .chain-topic { color: var(--rs-sky); font-weight: var(--rs-weight-subheading); }
#top .chain-topic::before { content: '·'; margin-inline: .2em .4em; }
#top .chain-count {
  grid-area: count; justify-self: end; align-self: center;
  color: var(--rs-dark-copy); font-size: .8125rem; font-weight: 550;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
#top .chain-caption {
  grid-area: caption; min-block-size: 2.6em;
  color: var(--rs-surface); font-size: clamp(1.125rem, 1.65vw, 1.5rem);
  line-height: 1.3; font-weight: var(--rs-weight-subheading); text-wrap: pretty;
}
#top .chain-controls {
  grid-area: controls; display: flex; align-self: center; justify-self: end;
}
#top .chain-control {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  color: var(--rs-dark-copy); background: transparent;
  border: 1px solid rgb(101 199 255 / .44); border-radius: 50%; cursor: pointer;
}
#top .chain-control[data-chain-prev], #top .chain-control[data-chain-next] { border-color: transparent; }
#top .chain-controls .chain-control:hover { border-color: var(--rs-sky); color: var(--rs-sky); }
#top .chain-control:focus-visible { outline: 2px solid var(--rs-orange-soft); outline-offset: 3px; }
/* Retain the band's dimensions when a node's details take focus. */
#top .chain-story-band :is(.chain-example, .chain-caption, .chain-controls)[hidden],
#top .chain-story-band:has(.chain-caption[hidden]) { visibility: hidden; }
#top .chain-example[hidden], #top .chain-caption[hidden] { display: block; }
#top .chain-control[hidden], #top [data-chain-control] path { display: none; }
#top .chain-control[data-mode="pause"] .chain-pause,
#top .chain-control[data-mode="play"] .chain-play { display: inline; }
@media (max-width: 950px) {
  #top .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0; gap: clamp(2rem, 5vw, 3rem);
    padding-block: clamp(3rem, 7vw, 4.5rem);
  }
  #top .hero-galaxy { justify-self: center; }
}
@media (max-width: 760px) {
  #top::before {
    inset: 0 0 auto;
    background: radial-gradient(ellipse at 100% 0%, var(--rs-primary), transparent 72%);
  }
  #top .hero-explanation { font-size: 1rem; }
  #top .chain-story-band { column-gap: .75rem; padding: .9rem .85rem; }
  #top .chain-example { font-size: .75rem; }
}
@container (max-width: 30rem) {
  #top .chain-story-band {
    grid-template-areas: 'example example' 'caption caption' 'count controls';
  }
  #top .chain-count { justify-self: start; }
}
