/* Transparent stage shared by the portrait, Red, Blue and Purple chapters. */
#energy {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* The entrance is a pigment print on warm paper. Its ink reverses as the
   paper travels into the first charcoal chapter. */
.entrance { --entry-ink:#23201d; color:var(--entry-ink); }
.entrance h1 span,.entrance .kicker { color:#8c4234; }
.entrance .disciplines,.entrance .enter-scroll { color:var(--entry-ink); }
.entrance .disciplines i,.entrance .enter-scroll span::after { background:currentColor; }
.entrance .enter-scroll span { border-color:currentColor; }
.entrance .avatar-focus img { filter:drop-shadow(2px 8px 4px #49362930); }
.orbit-stage button.force-anchor {
  pointer-events:auto;
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
  -webkit-tap-highlight-color:transparent;
  border:0;
  border-radius:50%;
  padding:0;
  z-index:2;
  background:transparent;
  translate:var(--force-drift,0px) 0;
  cursor:grab;
}
.orbit-stage button.force-anchor[data-charging] { cursor:grabbing; }
.orbit-stage button.force-anchor span { transition:scale .16s,color .16s; }
.orbit-stage button.force-anchor:is(:focus-visible,:hover) span { color:white; }
.orbit-stage button.force-anchor[data-charging] span { scale:.84; color:white; opacity:1; }
.orbit-stage button.force-anchor:focus-visible { outline:2px dashed var(--accent);outline-offset:5px; }

.grain-flight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  width: 100%;
  height: 100%;
}
.orbital-picture {
  mask-mode: alpha;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
}
.orbital-clip[data-grains="forming"] .orbital-label { opacity: var(--grain-label, 0); }
.orbital-clip[data-grains="empty"]:not(:focus-visible) { pointer-events:none; }
.orbital-clip[data-grains="empty"]:not(:focus-visible) .orbital-picture,
.orbital-clip[data-grains="empty"]:not(:focus-visible) .orbital-label { visibility:hidden; }
.orbital-clip:focus-visible .orbital-picture { mask-image:none !important; -webkit-mask-image:none !important; }

.force-anchor.painted-force span { visibility:hidden; }
.volume-control { position:relative; }
.volume-panel { position:absolute; top:100%; right:0; width:10.5rem; padding:.85rem 1rem; display:grid; grid-template-columns:1fr auto; gap:.55rem; color:#f2e9da; background:#211c24; border:1px solid #806f80; }
.volume-panel[hidden] { display:none; }
.volume-panel input { grid-column:1/-1; width:100%; accent-color:#d5afea; }
.model-intro { margin:.5rem auto; color:#efdff8; font:italic clamp(1rem,2.1vw,1.5rem)/1.3 Georgia,serif; opacity:0; transition:opacity .45s; }
#fusion[data-force=purple] .model-intro { opacity:1; }
#fusion .fusion-heading {
  position:absolute;
  inset:17% 0 auto;
}
#fusion .fusion-actions {
  position:absolute;
  inset:auto 0 17%;
  justify-content:center;
}
@media (max-height:560px) {
  #fusion .fusion-heading { top:8%; }
  #fusion .fusion-actions { bottom:7%; }
}

#models [data-gallery-portal] {
  clip-path: circle(var(--portal-opening, 150%) at 50% 50%);
}

#models [data-gallery-portal]:focus-within {
  clip-path: none;
}

@media (prefers-reduced-motion: reduce) {
  .grain-flight { display:none; }
  #models [data-gallery-portal] { clip-path: none; }
}
