/* Keep the same ice-crack exposure, while caching the filtered photograph
   independently of its static edge mask. No animation geometry is changed. */
#philosophy .glaze-macro {
  filter: none;
  contain: paint;
}
#philosophy .glaze-macro img {
  filter: brightness(1.18) contrast(1.1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* The SVG silhouette is static; only its wrapper moves and fades. */
#philosophy .philosophy-stage > .texture-frame {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  #philosophy .glaze-macro img,
  #philosophy .philosophy-stage > .texture-frame { will-change: auto; }
}

/* The native photograph is cached separately from the fixed alpha edge mask.
   The original scroll timeline moves its transport without moving the mask. */
.philosophy-background-cache,
.philosophy-plate-cache { display: none; }
#philosophy .glaze-macro.material-background-ready {
  filter: none;
  mask-image: var(--material-static-mask);
  -webkit-mask-image: var(--material-static-mask);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-composite: add;
  -webkit-mask-composite: source-over;
  will-change: opacity;
}
#philosophy .philosophy-stage.has-material-background .glaze-study {
  mask: none;
  -webkit-mask: none;
}
#philosophy .glaze-macro.material-background-ready img {
  opacity: 0;
  filter: none;
  will-change: auto;
}
#philosophy .texture-frame.material-plate-ready > img {
  opacity: 0;
  filter: none;
  mask: none;
  -webkit-mask: none;
}
#philosophy .material-background-ready .philosophy-background-cache,
#philosophy .material-plate-ready > .philosophy-plate-cache {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
@media (min-width: 761px) {
  #philosophy .philosophy-stage > .texture-frame { --material-plate-max: 464px; width: min(100%, var(--material-plate-max)); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  #philosophy .philosophy-stage > .texture-frame { --material-plate-max: 400px; }
}
@media (min-width: 761px) and (max-height: 660px) {
  #philosophy .philosophy-stage > .texture-frame { width: min(100%, var(--material-plate-max), calc(105.5svh - 278.52px)); }
}
@media (max-width: 760px) {
  #philosophy .philosophy-stage { gap: 8px; padding-top: 18px; padding-bottom: 10px; }
  #philosophy .philosophy-stage > .texture-frame { width: min(72vw, 252px); }
}
