/* Practice examples only. Load after global/body/emphasis styles.
   The figure stays readable in .waiting; .seen animates ONLY SVG/pin decor.
   The existing IntersectionObserver unobserves it after its first reveal. */
.pc-scene {
  --pc-ink: #f2ede2;
  --pc-muted: #b7b2a5;
  --pc-accent: #ff885a;
  --pc-wire: #6f6255;
  position: relative;
  isolation: isolate;
  margin: 38px 0 40px;
  padding: 25px 24px 21px;
  color: var(--pc-ink);
  background: #151715;
  border-block: 1px solid #635044;
  box-shadow: inset 0 1px 0 #d2af7d0a;
  font-family: var(--sans, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif);
}
.pc-scene::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 18%, #ff885a0c, transparent 52%),
    repeating-linear-gradient(90deg, transparent 0 39px, #eee5cf05 39px 40px);
}
/* Higher specificity than the host's .motion-ready .reveal.waiting rule.
   No text opacity, translate, draw-on, or transition is permitted here. */
.pc-scene.reveal,
.motion-ready .pc-scene.reveal,
.motion-ready .pc-scene.reveal.waiting {
  opacity: 1;
  transform: none;
  transition: none;
}
.pc-scene .pc-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid #ded2b923;
}
.pc-scene .pc-eyebrow {
  color: var(--pc-accent);
  font: 500 9px/1.5 var(--mono, monospace);
  letter-spacing: .15em;
}
.pc-scene .pc-title {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: .07em;
}
.pc-scene .pc-map { position: relative; margin-top: 21px; }
.pc-scene .pc-wide-rail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 114px;
  overflow: visible;
  pointer-events: none;
}
.pc-scene .pc-wire,
.pc-scene .pc-pulse {
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pc-scene .pc-wire { stroke: var(--pc-wire); }
.pc-scene .pc-pulse {
  stroke: #ffbe85;
  stroke-width: 2;
  stroke-dasharray: .035 1;
  stroke-dashoffset: .04;
  opacity: 0;
  filter: drop-shadow(0 0 3px #ff7349);
}
.pc-scene .pc-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}
.pc-scene .pc-node {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0 9px;
  border: 0;
}
.pc-scene .pc-emblem {
  position: relative;
  display: flex;
  justify-content: center;
  height: 119px;
  color: #e5d6b9;
}
.pc-scene .pc-symbol { width: 61px; height: 61px; flex: none; }
.pc-scene .pc-node-draft .pc-symbol { transform: rotate(-5deg); }
.pc-scene .pc-node-share .pc-symbol { transform: rotate(4deg); }
.pc-scene .pc-pin {
  position: absolute;
  top: 84px;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  border: 1px solid #dca877;
  border-radius: 50%;
  background: #24211b;
  box-shadow: 0 0 0 5px #151715;
}
.pc-scene .pc-pin::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--pc-accent);
  box-shadow: 0 0 5px #ff885a50;
}
.pc-scene .pc-pin-flare {
  position: absolute;
  inset: -7px;
  border: 1px solid #ffac73;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 16px #ff885a80;
}
.pc-scene .pc-type {
  display: block;
  margin-bottom: 9px;
  color: var(--pc-muted);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .2em;
}
.pc-scene .pc-source {
  margin: 0;
  color: var(--pc-ink);
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 550;
  line-height: 1.85;
  letter-spacing: .005em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-break: strict;
  text-wrap: pretty;
}
/* Preserve rich markup without letting highlighted text become animation. */
.pc-scene .pc-source strong,
.pc-scene .pc-source b { color: inherit; font-weight: 750; }
.pc-scene .pc-note {
  margin: 22px 0 0;
  padding-top: 15px;
  border-top: 1px solid #ded2b923;
  color: var(--pc-muted);
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: .025em;
}
.pc-scene .pc-mobile-rail { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .pc-scene.seen .pc-wide-rail .pc-pulse {
    animation: pc-travel 2.55s linear .25s 1 both;
  }
  .pc-scene.seen .pc-pin-flare {
    animation: pc-pin-light .72s ease-out calc(.25s + var(--pc-i) * .85s) 1 both;
  }
}
@keyframes pc-travel {
  0% { opacity: 0; stroke-dashoffset: .04; }
  3% { opacity: 1; }
  96% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -1; }
}
@keyframes pc-pin-light {
  0% { opacity: 0; transform: scale(.68); }
  22% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* Normal-flow text determines each node height. Vertical SVG rails stretch
   from one pin to the next, making a single connected path even at text zoom. */
@media (max-width: 680px) {
  .pc-scene { margin-block: 29px 33px; padding: 22px 19px 20px; }
  .pc-scene .pc-caption { gap: 7px 13px; padding-bottom: 15px; }
  .pc-scene .pc-title { font-size: 17px; }
  .pc-scene .pc-map { margin-top: 23px; }
  .pc-scene .pc-wide-rail { display: none; }
  .pc-scene .pc-nodes { grid-template-columns: minmax(0, 1fr); }
  .pc-scene .pc-node {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 19px;
    padding: 0 0 28px;
  }
  .pc-scene .pc-node:last-child { padding-bottom: 0; }
  .pc-scene .pc-emblem {
    height: 55px;
    z-index: 1;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .pc-scene .pc-symbol {
    position: absolute;
    top: 1px;
    left: -6px;
    width: 56px;
    height: 56px;
    opacity: .32;
  }
  .pc-scene .pc-pin { top: 28px; left: 22px; }
  .pc-scene .pc-copy { padding-top: 2px; }
  .pc-scene .pc-type { margin-bottom: 6px; }
  .pc-scene .pc-source { font-size: 18px; line-height: 1.8; }
  .pc-scene .pc-mobile-rail {
    display: block;
    position: absolute;
    pointer-events: none;
    left: 0;
    top: 28px;
    width: 44px;
    height: 100%;
    overflow: hidden;
  }
  .pc-scene .pc-note { margin-top: 21px; }
}
@media (max-width: 680px) and (prefers-reduced-motion: no-preference) {
  .pc-scene.seen .pc-mobile-rail .pc-pulse {
    animation: pc-travel .85s linear calc(.25s + var(--pc-i) * .85s) 1 both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pc-scene .pc-pulse,
  .pc-scene .pc-pin-flare { display: none; animation: none !important; }
}
@media (forced-colors: active) {
  .pc-scene { color: CanvasText; background: Canvas; border-color: CanvasText; }
  .pc-scene::before { display: none; }
  .pc-scene .pc-source, .pc-scene .pc-title,
  .pc-scene .pc-symbol, .pc-scene .pc-type,
  .pc-scene .pc-note, .pc-scene .pc-eyebrow { color: CanvasText; }
  .pc-scene .pc-wire { stroke: CanvasText; }
  .pc-scene .pc-pin { border-color: CanvasText; background: Canvas; box-shadow: none; }
  .pc-scene .pc-pin::before { background: CanvasText; box-shadow: none; }
  .pc-scene .pc-pulse, .pc-scene .pc-pin-flare { display: none; }
  .pc-scene .pc-caption, .pc-scene .pc-note { border-color: CanvasText; }
}
@media print {
  .pc-scene { color: #191919; background: #fff; box-shadow: none; break-inside: avoid; }
  .pc-scene::before, .pc-scene .pc-pulse, .pc-scene .pc-pin-flare { display: none; }
  .pc-scene .pc-source, .pc-scene .pc-title { color: #191919; }
  .pc-scene .pc-type, .pc-scene .pc-note,
  .pc-scene .pc-eyebrow, .pc-scene .pc-symbol { color: #555; }
  .pc-scene .pc-wire { stroke: #777; }
  .pc-scene .pc-pin { background: #fff; border-color: #555; box-shadow: none; }
  .pc-scene .pc-pin::before { background: #555; box-shadow: none; }
}
