/* The surface is drawn stroke by stroke; no typeset narrative overlays. */
.scratched-words{display:block;width:100%;height:auto;overflow:visible;pointer-events:none}
/* One owner for surface lettering. The outer mask reveals light; each inner
   slab clip permanently contains glyphs, repetitions, shadows and cuts. */
.carvings,
.background-traces {
  position: absolute;
  inset: 0;
  opacity: var(--awakened);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 700ms;
}
.carvings {
  mask-image: radial-gradient(ellipse 24% 30% at var(--stone-x) var(--stone-y), #000 5%, #0009 35%, transparent 85%);
}
.slab-inscriptions {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mask-image: url('/assets/inscription-grain.svg');
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  /* clip-path comes from the asset-space silhouette in scene.js. */
}
.carving {
  position: absolute;
  width: 17%;
  margin: 0;
  color: #a1a19b;
  line-height: 1;
  opacity: .62;
  transform: rotate(var(--angle));
  transform-origin: 10% 50%;
  filter: brightness(var(--pressure, 1)) drop-shadow(0 .45px .15px #08090b);
}
.carving.central { width: 12.2%; opacity: .7; }
.carving.repeat { opacity: .18; transform: rotate(var(--angle)) scaleY(.83); }
.carving.small { width: 9.2%; }
.carving.urgent { width: 12.8%; color: #c2c0b6; }
.carving.marginal { width: 13%; opacity: .34; }
.carving.cut::after {
  content: '';
  position: absolute;
  left: -6%;
  top: 40%;
  width: 110%;
  height: 1px;
  background: #6e706b;
  transform: rotate(6deg);
  box-shadow: 2px 2px #040506;
}
.scene.is-near .carving:not(.central) { opacity: .1; }
.scene.is-near .carving.central { opacity: .7; }
.scene.is-near .carving.repeat { opacity: .28; }
.scene.is-near .carving.marginal { opacity: .35; }
.scene.is-near:not(.reveal-all) .carvings {
  mask-image: radial-gradient(ellipse 9% 12.5% at var(--stone-x) var(--stone-y), #000 10%, #000b 43%, transparent 92%);
}
.scene.reveal-all .carving { color: #aaa99e; opacity: .7; }
.scene.reveal-all .carving.repeat { opacity: .26; }
.scene.reveal-all .carving.urgent { color: #bfbdb0; }
.carving.residue {
  width: 8%;
  color: #8e918c;
  transform: rotate(var(--angle)) scaleY(.75);
}
.scene .carving.central.residue { opacity: .18; }
/* The background stays in scene/viewport space, outside the monument camera.
   Its light mask has no dependency on slab geometry or approach state. */
.background-traces {
  --trace-width-extra:0;
  mask-image: radial-gradient(ellipse 26% 34% at var(--light-x) var(--light-y), #000, transparent 90%);
}
.background-writing { display:block;width:100%;height:100%;pointer-events:none; }
.scene.reveal-all .carvings,
.scene.reveal-all .background-traces { mask-image: none; }
@media (max-width: 650px) {
  .background-traces { --trace-width-extra:5; }
}
@media (prefers-reduced-motion: reduce) {
  .carvings, .background-traces { transition: none; }
}
.edge-control{width:156px;min-height:44px;padding:12px 4px;color:#b2b1a9}
.edge-control .scratched-words{max-height:23px}
#index{width:64px;transform:rotate(5deg)}
.withdraw{width:93px;transform:rotate(-5deg)}
.slab-target span{width:64px;max-width:55%;font:inherit}
.david-mark{width:26px;padding:6px;opacity:.65;color:#aead9e}
.david-mark .scratched-words{width:17px}
/* Keep the accessible transcript calm and readable, away from the surface. */
dialog{border-color:#41423d;background:#151614;box-shadow:0 15px 100px #000c}
.viewer-top{border-bottom-style:dashed}
.eyebrow,.close-button,.status,.back-button,.revision-meta,.index-list small,.range-labels,.authoring-label{font-family:var(--serif);letter-spacing:.02em}
.eyebrow,.authoring-label{text-transform:none}
.note-sheet{background:transparent;border-left:1px solid #65675d}
@media(max-width:650px){.edge-control{width:145px}.withdraw{width:90px}.david-mark{width:26px}.scene-tools{gap:16px}}
