/* Nine chapters, with user-paced builds. The person is one persistent DOM node. */
.scene-chapter .verso { padding: 65px 24px 32px; }
.scene-chapter .recto { padding: 42px clamp(28px,4cqw,56px); }
.anchor-dock { position: relative; align-self: stretch; height: 100%; min-height: 0; }
.person-anchor { display: grid; grid-template-rows: minmax(0,1fr) 16px; width: 100%; height: 100%; min-height: 0; }
.person-map { display: block; width: 100%; height: 100%; min-height: 0; overflow: visible; }
.anchor-caption { text-align: center; font-size: 11px; color: var(--muted); align-self: end; }
.identity-circle { fill: none; stroke: #c8c0b3; stroke-width: 1.6; }
.ring-number-disc { fill: var(--paper); stroke: #c8c0b3; stroke-width: 1; }
.ring-number { fill: var(--muted); font: 12px var(--sans); }
.identity-layer { opacity: .8; transition: opacity .32s,stroke .32s; }
.has-focus .identity-layer { opacity: .3; }
.has-focus .identity-layer.lit { opacity: 1; }
.identity-layer.lit .identity-circle { stroke: var(--orange); stroke-width: 2; }
.identity-layer.lit .ring-number-disc { stroke: var(--orange); }
.identity-layer.lit .ring-number { fill: var(--orange); }
.anchor-human { transform: translateX(var(--travel,0px)); transition: transform .4s ease; }
.time-world, .route-orbit, .return-path { opacity: 0; transition: opacity .32s; }
.person-anchor[data-mode=time] .time-world, .person-anchor[data-mode=time] .route-orbit { opacity: 1; }
.time-axis { fill: none; stroke: var(--line); stroke-width: 2; }
.time-progress { fill: none; stroke: var(--orange); stroke-width: 2; }
.time-marker { fill: var(--orange); transition: cx .4s; }
.time-world text { font: 17px var(--sans); fill: var(--muted); }
.route-point { color: var(--muted); opacity: .55; transition: opacity .32s,color .32s; }
.route-point > circle { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.route-point text { font: 18px var(--sans); fill: currentColor; }
.route-point.lit { color: var(--orange); opacity: 1; }
.route-point.lit > circle { stroke: var(--orange); }
.feedback-path, .return-path path { fill: none; stroke: var(--orange); stroke-width: 1.5; }
.feedback-path { opacity: 0; }
.person-anchor[data-feedback=true] .route-point { opacity: .75; }
.person-anchor[data-feedback=true] .feedback-path { opacity: 1; }
.person-anchor[data-mode=return] .return-path, .person-anchor[data-mode=tomorrow] .return-path { opacity: 1; }
.chapter-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; width: 100%; }
.scene-chapter h1 { font-size: clamp(27px,5.1cqw,66px); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.build-body { font-size: clamp(14px,1.6cqw,19px); color: var(--ink); line-height: 1.5; }
.build-note { font-size: 12px; color: var(--muted); line-height: 1.45; }
.focus-layers { display: flex; flex-wrap: wrap; gap: 5px 12px; list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.5; color: var(--orange); }
.focus-layers li+li:before { content: '·'; padding-right: 12px; }
.lens-glyph .ink-icon { width: 50px; height: 50px; color: var(--orange); }
.build-tools button { background: none; padding: 4px 0; border: 0; min-height: 44px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.build-tools button span { padding-left: 6px; }
.vc-equation { display: flex; gap: .16em; align-items: baseline; white-space: nowrap; font: 500 clamp(34px,5cqw,64px)/1.2 var(--serif); color: var(--ink); }
.vc-equation sub,.value-letter sub { font-size: .43em; }
.vc-equation .operator { color: var(--orange); }
.value-letter { font: 500 clamp(48px,7cqw,84px)/1.1 var(--serif); color: var(--orange); }
.anchor-overlays { position: absolute; right: 0; bottom: 25px; }
.bounded-stamp { width: 155px; aspect-ratio: 1; border: 1px solid var(--orange); outline: 1px solid var(--orange); outline-offset: -6px; border-radius: 3px; background: #fffdf8f5; color: var(--orange); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; transform: rotate(-7deg); text-align: center; animation: bounded-arrival .52s ease-out both; }
.bounded-stamp > span { text-transform: uppercase; font-size: 10px; letter-spacing: .05em; }
.bounded-stamp .ink-icon { width: 30px; height: 30px; }
.bounded-stamp strong { font-size: 16px; line-height: 1.25; font-weight: 450; }
.claims-key,.systems-key,.programme-key { display: flex; gap: 20px; align-items: center; }
.claims-key > span,.systems-key > span,.programme-key > span { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.claims-key .ink-icon,.systems-key .ink-icon,.programme-key .ink-icon { width: 38px; height: 38px; color: var(--orange); }
.claims-key small,.systems-key small,.programme-key small { color: var(--muted); font-size: 11px; }
.future-leaves { position: relative; height: 55px; width: 120px; }
.future-leaves i { position: absolute; width: 90px; height: 48px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); transform: rotate(-9deg); }
.future-leaves i:nth-child(2) { left: 12px; top: -5px; transform: rotate(0); }
.future-leaves i:nth-child(3) { left: 24px; top: -10px; transform: rotate(9deg); }
.build-changing .chapter-copy { animation: build-ink .28s ease-out both; }
.page-counter { min-width: 44px; }
@keyframes build-ink { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounded-arrival { from { opacity: 0; transform: translateY(-55px) scale(1.2) rotate(-10deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(-7deg); } }

@media (max-width:1100px) and (orientation:portrait) {
  .scene-chapter { grid-template-rows: 50% 50%; }
  .scene-chapter .verso { padding: 36px 14px 5px; }
  .scene-chapter .recto { padding: 13px 25px 17px; }
  .chapter-copy { gap: 11px; }
  .scene-chapter h1 { font-size: clamp(29px,8.5cqw,45px); line-height: 1.08; }
  .build-body { font-size: 13px; }
  .build-note { font-size: 11px; }
  .focus-layers { font-size: 11px; gap: 3px 8px; }
  .focus-layers li+li:before { padding-right: 8px; }
  .lens-glyph .ink-icon { width: 34px; height: 34px; }
  .anchor-human { transform: translateX(0); }
  .anchor-caption { font-size: 10px; }
  .vc-equation { font-size: clamp(35px,10cqw,50px); }
  .value-letter { font-size: 47px; }
  .build-tools button { font-size: 12px; }
  .anchor-overlays { right: 6px; bottom: 22px; }
  .bounded-stamp { width: 111px; gap: 5px; }
  .bounded-stamp > span { font-size: 8px; }
  .bounded-stamp strong { font-size: 12px; }
  .bounded-stamp .ink-icon { width: 22px; height: 22px; }
  .claims-key,.systems-key,.programme-key { gap: 15px; }
  .claims-key .ink-icon,.systems-key .ink-icon,.programme-key .ink-icon { width: 30px; height: 30px; }
  .claims-key small,.systems-key small,.programme-key small { font-size: 10px; }
}
@media (min-width:651px) and (max-width:1100px) and (orientation:portrait) {
  .scene-chapter .verso { padding: 56px 28px 14px; }
  .scene-chapter .recto { padding: 24px 42px; }
  .chapter-copy { gap: 20px; }
  .build-body { font-size: 17px; }
  .build-note,.focus-layers { font-size: 13px; }
  .lens-glyph .ink-icon { width: 46px; height: 46px; }
  .anchor-caption { font-size: 12px; }
  .build-tools button { font-size: 14px; }
  .anchor-overlays { right: 16px; bottom: 30px; }
  .bounded-stamp { width: 145px; }
  .bounded-stamp strong { font-size: 16px; }
  .bounded-stamp > span { font-size: 10px; }
  .claims-key .ink-icon,.systems-key .ink-icon,.programme-key .ink-icon { width: 40px; height: 40px; }
  .claims-key small,.systems-key small,.programme-key small { font-size: 13px; }
  .vc-equation { font-size: 58px; }
}
@media (max-width:650px) and (max-height:650px) and (orientation:portrait) {
  .scene-chapter .verso { padding-top: 28px; }
  .scene-chapter .recto { padding: 9px 20px 12px; }
  .chapter-copy { gap: 7px; }
  .scene-chapter h1 { font-size: 26px; }
  .build-body { font-size: 12px; }
  .build-note { font-size: 10px; }
  .focus-layers { font-size: 10px; }
  .lens-glyph { display: none; }
  .anchor-caption { font-size: 9px; }
  .value-letter { font-size: 34px; }
  .vc-equation { font-size: 34px; }
  .bounded-stamp { width: 88px; gap: 3px; }
  .bounded-stamp strong { font-size: 10px; }
  .bounded-stamp > span { font-size: 7px; }
  .bounded-stamp .ink-icon { width: 18px; height: 18px; }
  .claims-key,.systems-key,.programme-key { gap: 12px; }
  .claims-key .ink-icon,.systems-key .ink-icon,.programme-key .ink-icon { width: 24px; height: 24px; }
  .claims-key small,.systems-key small,.programme-key small { font-size: 9px; }
  .future-leaves { height: 36px; transform: scale(.72); transform-origin: left center; }
}
@media (max-height:530px) and (orientation:landscape) {
  .scene-chapter .verso { padding: 30px 12px 13px; }
  .scene-chapter .recto { padding: 22px 25px; }
  .chapter-copy { gap: 8px; }
  .scene-chapter h1 { font-size: clamp(23px,5cqw,31px); }
  .build-body { font-size: 11px; }
  .build-note,.focus-layers { font-size: 10px; }
  .lens-glyph { display: none; }
  .anchor-caption { font-size: 9px; }
  .value-letter { font-size: 35px; }
  .vc-equation { font-size: 32px; }
  .bounded-stamp { width: 88px; gap: 3px; }
  .bounded-stamp > span { font-size: 7px; }
  .bounded-stamp strong { font-size: 10px; }
  .bounded-stamp .ink-icon { width: 18px; height: 18px; }
  .claims-key .ink-icon,.systems-key .ink-icon,.programme-key .ink-icon { width: 26px; height: 26px; }
  .claims-key,.systems-key,.programme-key { gap: 12px; }
  .claims-key small,.systems-key small,.programme-key small { font-size: 9px; }
  .future-leaves { height: 30px; transform: scale(.65); transform-origin: left center; }
}
@media (prefers-reduced-motion:reduce) { .person-anchor *, .bounded-stamp { transition: none !important; animation: none !important; } }

@media (max-width:650px) and (max-height:540px) and (orientation:portrait) {
  .resource-dialog { padding: 10px 18px; }
  .resource-dialog .dialog-head { margin-bottom: 6px; }
  .resource-links { gap: 2px; }
}

@media(max-width:650px) and (orientation:portrait) { .route-point text { display:none; } }
