/* George's painted characters are paper ornaments, never event illustrations.
   The copy remains in front of both the drawing and its local white veil. */
#panel-about.about-panel { background: #fff; overflow-x: clip; }
#biography .bio-story-page {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding-bottom: 24px;
  overflow: visible;
}
#biography .bio-story-page > :not(.bio-figure):not(.bio-story-stage) { position: relative; z-index: 2; }
#biography .bio-story-page > .bio-copy { align-self: start; }
#biography .bio-story-stage {
  position: absolute;
  inset: -50px 0 -20px 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
}
#biography .bio-story-stage > .bio-figure { left: 0; }
/* The original full-resolution raster is also the no-WebGL fallback. The
   continuous mesh uses only its pixels; there are no overlapping cutout limbs. */
#biography .bio-figure .bio-figure-mesh { position: absolute; display: block; filter: saturate(.52); pointer-events: none; }
#biography .bio-mesh-ready > img { visibility: hidden; }
/* Feather just the reading surface, not the margins. Dark text is never
   transparent, and decorative marks never sit on top of the words. */
#biography .bio-story-page > .bio-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -16px -16px;
  background: rgba(255, 255, 255, .79);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 17px, #000 calc(100% - 17px), transparent), linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 17px, #000 calc(100% - 17px), transparent), linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
}
#biography .bio-figure {
  position: absolute;
  z-index: 0;
  margin: 0;
  left: 0;
  top: 40px;
  width: 180px;
  opacity: .34;
  pointer-events: none;
  user-select: none;
  transform: translate3d(var(--story-x, 0px), var(--story-y, 0px), 0) rotate(var(--story-turn, 0deg));
  transform-origin: 50% 65%;
  contain: layout style;
}
#biography .bio-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.52);
  pointer-events: none;
}
#biography .bio-figure:not([data-ready]) { visibility: hidden; }
/* Give the timeline its own narrow gutter, shared by every event. Its shaft
   and marker positions are measured from the existing date and copy nodes. */
#biography .bio-lamp-journey { position: relative; padding-left: 52px; }
#biography .bio-lamp-timeline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 1px;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  color: #93816b;
}
#biography .bio-lamp-shaft {
  position: absolute;
  top: var(--lamp-start);
  height: calc(var(--lamp-end) - var(--lamp-start));
  left: -1px;
  width: 3px;
  border-inline: 1px solid rgba(91, 82, 69, .54);
  background: #ddd0b7;
  border-radius: 2px;
}
#biography .bio-lamp-shaft::before,
#biography .bio-lamp-shaft::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 5px;
  height: 6px;
  border-block: 1px solid #97866c;
  background: #d6c5a7;
}
#biography .bio-lamp-shaft::before { top: 10px; }
#biography .bio-lamp-shaft::after { bottom: 15px; }
#biography .bio-lamp-head {
  position: absolute;
  width: 46px;
  height: 78px;
  max-width: none;
  left: -23px;
  top: calc(var(--lamp-start) - 77px);
  object-fit: contain;
  object-position: center bottom;
}
#biography .bio-lamp-event {
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid #93816b;
  background: #e2d3b7;
  border-radius: 50%;
  transform: translateY(-50%);
}
#biography .bio-lamp-event::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 20px;
  top: 2px;
  left: 6px;
  background: linear-gradient(90deg, #b4a286, #d5c9b5);
}
#biography .bio-lamp-star {
  position: absolute;
  width: 39px;
  height: 43px;
  max-width: none;
  left: -19px;
  top: calc(var(--lamp-end) - 12px);
  object-fit: contain;
}
@media (max-width: 767px) {
  #biography .bio-story-page { min-height: 0; padding-bottom: 18px; }
  #biography .bio-figure { opacity: .36; }
  #biography .bio-story-stage { inset-block: -28px -12px; }
  #biography .bio-story-page > .bio-copy::before { inset: -12px -10px; }
  #biography .bio-lamp-journey { padding-left: 28px; }
  #biography .bio-lamp-timeline { left: 0; }
  #biography .bio-lamp-head { width: 34px; height: 65px; left: -17px; top: calc(var(--lamp-start) - 64px); }
  #biography .bio-lamp-star { width: 29px; height: 35px; left: -14px; top: calc(var(--lamp-end) - 10px); }
  #biography .bio-lamp-event::after { width: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  /* JS fixes a visible edge-crossing pose. Preserve that measured translation;
     transform:none would incorrectly snap every character to the left edge. */
  #biography .bio-figure { transition: none !important; animation: none !important; }
  #biography .bio-mesh-ready > img { visibility: visible; }
  #biography .bio-figure .bio-figure-mesh { display: none; }
}
