/* ============================================================
   Chapters A — 02 真实问题 / 03 定位与服务全景 / 05 品牌细节
   Scoped to .ch-02 / .ch-03 / .ch-05. Shares stage tokens only.
   Rectangular, no glow, no glass, no bevels, no third-party images.
   ============================================================ */

.ch-02,
.ch-03,
.ch-05 {
  padding: 0;
  overflow: hidden;
}

.ch-02 .eyebrow,
.ch-03 .eyebrow,
.ch-05 .eyebrow {
  font-size: 14px;
  letter-spacing: .14em;
}

/* ============================================================
   02 真实问题 — a work suspended in an empty field
   ============================================================ */

.ch-02 {
  background: transparent;
  overflow: hidden;
}

.ch02-field {
  position: absolute;
  left: 400px;
  top: 220px;
  width: 1120px;
  height: 480px;
  z-index: 1;
  opacity: 0;
  transition: opacity 600ms var(--ease-out) 60ms;
  pointer-events: none;
}
.chapter.is-active .ch02-field { opacity: 1; }

.ch02-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(214, 230, 226, .075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(214, 230, 226, .075) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 58% 58% at 50% 50%, #000 18%, transparent 78%);
          mask-image: radial-gradient(ellipse 58% 58% at 50% 50%, #000 18%, transparent 78%);
}

.ch02-tick {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(214, 230, 226, .24);
  border-style: solid;
}
.ch02-tick--tl { left: 0; top: 0; border-width: 1px 0 0 1px; }
.ch02-tick--tr { right: 0; top: 0; border-width: 1px 1px 0 0; }
.ch02-tick--bl { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.ch02-tick--br { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

.ch02-lines {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 952px;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}
.ch02-line {
  fill: none;
  stroke: rgba(214, 230, 226, .38);
  stroke-width: 1;
  stroke-dasharray: 2 7;
  opacity: 0;
  transition: opacity 520ms var(--ease-out) 160ms;
}
.ch02-line-node {
  fill: var(--bg);
  stroke: rgba(46, 233, 210, .62);
  stroke-width: 1;
  opacity: 0;
  transition: opacity 520ms var(--ease-out) 220ms;
}
.chapter.is-active .ch02-line { opacity: 1; }
.chapter.is-active .ch02-line-node { opacity: 1; }
.ch-02[data-state="docked"] .ch02-line { opacity: .32; }
.ch-02[data-state="docked"] .ch02-line-node { opacity: .55; }

.ch02-head {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 24px;
  z-index: 8;
  text-align: center;
  pointer-events: none;
}
.ch02-eyebrow { justify-content: center; }
.ch02-head > .ch02-eyebrow,
.ch02-head > .ch02-title,
.ch02-head > .ch02-lede,
.ch02-tag,
.ch02-work,
.ch02-q,
.ch02-notes,
.ch02-action {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.chapter.is-active .ch02-head > .ch02-eyebrow { opacity: 1; transform: none; transition-delay: 40ms; }
.chapter.is-active .ch02-head > .ch02-title { opacity: 1; transform: none; transition-delay: 90ms; }
.chapter.is-active .ch02-head > .ch02-lede { opacity: 1; transform: none; transition-delay: 140ms; }
.chapter.is-active .ch02-tag { opacity: 1; transform: none; transition-delay: 180ms; }
.chapter.is-active .ch02-work { opacity: 1; transform: translate(-50%, -50%); transition-delay: 150ms; }
.chapter.is-active .ch02-q--a { opacity: 1; transform: none; transition-delay: 190ms; }
.chapter.is-active .ch02-q--b { opacity: 1; transform: none; transition-delay: 230ms; }
.chapter.is-active .ch02-q--c { opacity: 1; transform: none; transition-delay: 270ms; }
.chapter.is-active .ch02-notes { opacity: 1; transform: none; transition-delay: 250ms; }
.chapter.is-active .ch02-action { opacity: 1; transform: none; transition-delay: 270ms; }

.ch02-title {
  margin-top: 18px;
  font-size: 64px;
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink);
}
.ch02-lede {
  margin-top: 14px;
  font-size: 26px;
  line-height: 1.6;
  color: var(--ink-2);
}

.ch02-tag {
  position: absolute;
  right: 120px;
  top: 34px;
  z-index: 9;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 18, .8);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}

.ch02-work {
  position: absolute;
  left: 50%;
  top: 420px;
  z-index: 6;
  width: 250px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 20, 26, .94);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .5);
  transform: translate(-50%, -50%);
  transition: transform 620ms var(--ease-out), opacity 520ms var(--ease-out) 150ms,
              border-color 400ms var(--ease-out), background-color 400ms var(--ease-out);
}
.ch02-work::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: 1px;
  height: 16px;
  background: var(--line-strong);
}
.ch02-work__tag {
  position: absolute;
  left: 14px;
  top: 11px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--teal);
}
.ch02-work__name {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink);
}
.ch02-work__meta {
  font-size: 18px;
  line-height: 1.4;
  color: var(--muted);
}
.ch-02[data-state="docked"] .ch02-work {
  transform: translate(-50%, calc(-50% + 245px));
  border-color: rgba(46, 233, 210, .55);
  background: #111a21;
}

.ch02-questions {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}
.ch02-q {
  position: absolute;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}
.ch02-q--a { left: 120px; top: 270px; width: 320px; }
.ch02-q--b { left: 1548px; top: 270px; width: 252px; }
.ch02-q--c { left: 120px; top: 590px; width: 360px; }
.ch02-q__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .16em;
  color: var(--faint);
}
.ch02-q__text {
  display: block;
  margin-top: 2px;
  font-size: 30px;
  line-height: 1.35;
  color: var(--ink);
}
.ch-02[data-state="docked"] .ch02-q { opacity: .5; }

.ch02-dock {
  position: absolute;
  left: 50%;
  top: 740px;
  z-index: 4;
  width: 860px;
  height: 88px;
  transform: translate(-50%, 30px);
  opacity: 0;
  border-top: 1px solid rgba(46, 233, 210, .55);
  background: linear-gradient(to bottom, #111a21 0, #111a21 58px, #0b1116 58px, #0b1116 100%);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .5);
  transition: transform 620ms var(--ease-out), opacity 520ms var(--ease-out);
  pointer-events: none;
}
.ch02-dock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 200px;
  height: 2px;
  transform: translateX(-50%);
  background: var(--teal);
}
.ch02-dock::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(46, 233, 210, .35) 22%, rgba(46, 233, 210, .35) 78%, transparent);
}
.ch-02[data-state="docked"] .ch02-dock {
  transform: translate(-50%, 0);
  opacity: 1;
}
.ch02-dock__face {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background-image: repeating-linear-gradient(45deg, rgba(214, 230, 226, .055) 0 1px, transparent 1px 8px);
}
.ch02-dock__top {
  position: absolute;
  left: 22px;
  top: 11px;
  right: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.ch02-dock__name {
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: .04em;
}
.ch02-dock__meta {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .08em;
  color: var(--faint);
  white-space: nowrap;
}
.ch02-dock__marks {
  position: absolute;
  left: 22px;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.ch02-dock__marks span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 7px;
  vertical-align: 2px;
  background: var(--teal);
}

.ch02-notes {
  position: absolute;
  left: 120px;
  top: 786px;
  z-index: 8;
  width: 390px;
}
.ch02-quote {
  font-size: 24px;
  line-height: 1.6;
  color: var(--ink-2);
}
.ch02-cite {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--faint);
}
.ch02-cite__type { color: var(--teal); margin-right: 6px; }

.ch02-action {
  position: absolute;
  right: 120px;
  top: 764px;
  z-index: 8;
  width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.ch02-state {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .1em;
  color: var(--muted);
}
.ch-02[data-state="docked"] .ch02-state { color: var(--teal); }
.ch02-btn {
  min-width: 286px;
  min-height: 56px;
  font-size: 20px;
}
.ch02-btn__meta { font-size: 14px; letter-spacing: .12em; }
.ch-02[data-state="docked"] .ch02-btn {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.ch-02[data-state="docked"] .ch02-btn:hover {
  border-color: var(--ink);
  background: rgba(238, 242, 240, .06);
  color: var(--ink);
}
.ch-02[data-state="docked"] .ch02-btn__meta { color: var(--muted); }
.ch02-hint {
  max-width: 330px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--faint);
}
.ch02-hint__type { color: var(--teal); }

/* ============================================================
   03 定位与服务全景 — one vertical axis, four attached service planes
   ============================================================ */

.ch-03 { background: transparent; }

.ch03-head {
  position: absolute;
  left: 120px;
  top: 34px;
  z-index: 8;
  width: 700px;
}
.ch03-head > .eyebrow,
.ch03-title,
.ch03-lede,
.ch03-legend {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
}
.chapter.is-active .ch03-head > .eyebrow { opacity: 1; transform: none; transition-delay: 40ms; }
.chapter.is-active .ch03-title { opacity: 1; transform: none; transition-delay: 90ms; }
.chapter.is-active .ch03-lede { opacity: 1; transform: none; transition-delay: 140ms; }
.chapter.is-active .ch03-legend { opacity: 1; transform: none; transition-delay: 200ms; }

.ch03-title {
  margin-top: 22px;
  font-size: 56px;
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink);
}
.ch03-lede {
  margin-top: 20px;
  font-size: 26px;
  line-height: 1.7;
  color: var(--ink-2);
}
.ch03-legend {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.ch03-legend__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--faint);
}
.ch03-legend p {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}
.ch03-legend b {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.ch03-legend__note { color: var(--faint); }

.ch03-axis {
  position: absolute;
  left: 1040px;
  top: 104px;
  z-index: 2;
  width: 1px;
  height: 576px;
  pointer-events: none;
}
.ch03-axis__line {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--line-strong);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 620ms var(--ease-out) 80ms;
}
.chapter.is-active .ch03-axis__line { transform: scaleY(1); }
.ch03-axis__cap {
  position: absolute;
  left: -9px;
  top: -28px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  color: var(--teal);
}
.ch03-axis__label {
  position: absolute;
  left: 18px;
  top: -29px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .12em;
  color: var(--faint);
  white-space: nowrap;
}
.ch03-axis__foot {
  position: absolute;
  right: 16px;
  bottom: -29px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .12em;
  color: var(--faint);
  white-space: nowrap;
  text-align: right;
}

.ch03-services {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.ch03-svc {
  position: absolute;
  left: 1080px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 24px 10px 25px;
  border: 0;
  border-top: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(-16px, 0, 0);
  transition: opacity 520ms var(--ease-out) var(--d, 0ms),
              transform 520ms var(--ease-out) var(--d, 0ms),
              background-color 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              color 200ms var(--ease-out);
}
.ch03-svc[data-svc="discover"] { top: 138px; width: 500px; --d: 80ms; }
.ch03-svc[data-svc="release"]  { top: 284px; width: 640px; --d: 130ms; }
.ch03-svc[data-svc="hosting"]  { top: 430px; width: 560px; --d: 180ms; }
.ch03-svc[data-svc="tools"]    { top: 576px; width: 680px; --d: 230ms; }
.chapter.is-active .ch03-svc { opacity: 1; transform: none; }
.ch03-svc:hover {
  background: rgba(238, 242, 240, .035);
  border-top-color: var(--line-strong);
}
.ch03-svc:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  z-index: 2;
}
.ch03-svc.is-selected {
  background: rgba(238, 242, 240, .065);
  border-top-color: var(--line-strong);
  border-left-color: var(--teal);
  color: var(--ink);
}
.ch03-svc__stem {
  position: absolute;
  left: -40px;
  top: 34px;
  width: 40px;
  height: 1px;
  background: var(--line-strong);
  transition: background-color 200ms var(--ease-out), height 200ms var(--ease-out), top 200ms var(--ease-out);
}
.ch03-svc__stem::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -2px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.ch03-svc.is-selected .ch03-svc__stem { top: 33px; height: 3px; background: var(--teal); }
.ch03-svc.is-selected .ch03-svc__stem::before { background: var(--teal); border-color: var(--teal); }

.ch03-svc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}
.ch03-svc__idx {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .14em;
  color: var(--faint);
}
.ch03-svc.is-selected .ch03-svc__idx { color: var(--teal); }
.ch03-svc__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .06em;
  color: var(--muted);
}
.ch03-svc__mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1px solid var(--faint);
  background: transparent;
}
.ch03-svc.is-selected .ch03-svc__mark { border-color: var(--teal); background: var(--teal); }
.ch03-svc__state-text { display: none; }
.ch03-svc.is-selected .ch03-svc__state-text { display: inline; color: var(--teal); }
.ch03-svc__name {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.ch03-svc.is-selected .ch03-svc__name { color: var(--ink); }
.ch03-svc__line {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--muted);
}
.ch03-svc.is-selected .ch03-svc__line { color: var(--ink-2); }

.ch03-hint {
  position: absolute;
  left: 1080px;
  top: 690px;
  z-index: 8;
  width: 720px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--faint);
}
.ch03-hint__date { white-space: nowrap; color: var(--faint); }

.ch03-detail {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 720px;
  height: 190px;
  z-index: 8;
  border-top: 1px solid var(--line-strong);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 560ms var(--ease-out) 240ms, transform 560ms var(--ease-out) 240ms;
}
.chapter.is-active .ch03-detail { opacity: 1; transform: none; }

.ch03-panel {
  position: absolute;
  inset: 0;
  padding-top: 20px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 540px;
  column-gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--ease-out), visibility 0s linear 220ms;
}
.ch03-panel.is-shown {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms var(--ease-out), visibility 0s;
}
.ch03-panel__side { min-width: 0; }
.ch03-panel__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--teal);
}
.ch03-panel__name {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 500;
  color: var(--ink);
}
.ch03-panel__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.ch03-panel__mark { width: 8px; height: 8px; background: var(--teal); }
.ch03-panel__body,
.ch03-panel__ev {
  min-width: 0;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.ch03-panel__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--faint);
}
.ch03-panel__value {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.6;
  color: var(--ink);
}
.ch03-panel__evidence {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink-2);
}
.ch03-ev__type {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--teal);
  border-bottom: 1px solid rgba(46, 233, 210, .35);
}

/* ============================================================
   05 品牌细节 — decomposed vector, read-only sample terminal
   ============================================================ */

.ch-05 { background: transparent; overflow: hidden; }

.ch05-head {
  position: absolute;
  left: 120px;
  top: 30px;
  z-index: 9;
  width: 780px;
}
.ch05-head > .eyebrow,
.ch05-title,
.ch05-lede,
.ch05-controls,
.ch05-note,
.ch05-spec {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.chapter.is-active .ch05-head > .eyebrow { opacity: 1; transform: none; transition-delay: 40ms; }
.chapter.is-active .ch05-title { opacity: 1; transform: none; transition-delay: 90ms; }
.chapter.is-active .ch05-lede { opacity: 1; transform: none; transition-delay: 140ms; }
.chapter.is-active .ch05-controls { opacity: 1; transform: none; transition-delay: 190ms; }
.chapter.is-active .ch05-note { opacity: 1; transform: none; transition-delay: 220ms; }
.chapter.is-active .ch05-spec { opacity: 1; transform: none; transition-delay: 240ms; }

.ch05-title {
  margin-top: 20px;
  font-size: 56px;
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink);
}
.ch05-lede {
  margin-top: 16px;
  font-size: 26px;
  line-height: 1.62;
  color: var(--ink-2);
}
.ch05-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.ch05-controls__label {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .12em;
  color: var(--faint);
  white-space: nowrap;
}
.ch05-seg .seg__btn {
  min-width: 106px;
  min-height: 46px;
  font-size: 16px;
}
.ch05-seg .seg__meta {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .06em;
}
.ch05-mode {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}
.ch05-note {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: .02em;
}
.ch05-spec {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--ink-2);
}
.ch05-spec__path { color: var(--faint); }
.ch05-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .08em;
  color: var(--ink-2);
  white-space: nowrap;
}
.ch05-tag--teal { border-color: rgba(46, 233, 210, .42); color: var(--teal); }
.ch05-tag--ghost { border-color: var(--line); color: var(--muted); }

.ch05-stage {
  position: absolute;
  left: 120px;
  top: 452px;
  z-index: 6;
  width: 940px;
  height: 348px;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 520ms var(--ease-out) 160ms, transform 520ms var(--ease-out) 160ms;
}
.chapter.is-active .ch05-stage { opacity: 1; transform: none; }

.ch05-frame {
  position: absolute;
  left: 310px;
  top: 14px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(214, 230, 226, .1);
  pointer-events: none;
  transition: border-color 240ms var(--ease-out);
}
.ch05-stage[data-logo="exploded"] .ch05-frame { border-color: rgba(214, 230, 226, .055); }
.ch05-frame__tick {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--line-strong);
  border-style: solid;
}
.ch05-frame__tick--tl { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.ch05-frame__tick--tr { right: -1px; top: -1px; border-width: 1px 1px 0 0; }
.ch05-frame__tick--bl { left: -1px; bottom: -1px; border-width: 0 0 1px 1px; }
.ch05-frame__tick--br { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }

.ch05-mark {
  position: absolute;
  left: 330px;
  top: 34px;
  width: 280px;
  height: 280px;
  overflow: visible;
}
.ch05-mark g {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition: transform 540ms var(--ease-out), opacity 480ms var(--ease-out) var(--d, 0ms);
}
.ch05-mark .lg-arc { --d: 80ms; }
.ch05-mark .lg-triangle { --d: 150ms; }
.ch05-mark .lg-node { --d: 210ms; }
.ch05-mark .lg-arrow { --d: 260ms; }
.chapter.is-active .ch05-mark g { opacity: 1; }

.ch05-stage[data-logo="exploded"] .lg-arc--ne { transform: translate(160px, -115px); }
.ch05-stage[data-logo="exploded"] .lg-arc--se { transform: translate(0, 200px); }
.ch05-stage[data-logo="exploded"] .lg-arc--sw { transform: translate(-160px, -115px); }
.ch05-stage[data-logo="exploded"] .lg-triangle { transform: translate(0, 46px); }
.ch05-stage[data-logo="exploded"] .lg-node--n { transform: translate(0, -210px); }
.ch05-stage[data-logo="exploded"] .lg-node--sw { transform: translate(-190px, 150px); }
.ch05-stage[data-logo="exploded"] .lg-node--se { transform: translate(190px, 150px); }
.ch05-stage[data-logo="exploded"] .lg-arrow { transform: translate(0, 40px); }

.ch05-leaders {
  position: absolute;
  inset: 0;
  width: 940px;
  height: 348px;
  z-index: 2;
  opacity: 0;
  transition: opacity 240ms var(--ease-out) 140ms;
  pointer-events: none;
}
.ch05-stage[data-logo="exploded"] .ch05-leaders { opacity: 1; }
.ch05-leaders path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.ch05-leaders rect { fill: var(--bg); stroke: var(--line-strong); }

.ch05-tags {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.ch05-lab {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 4px, 0);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.ch05-stage[data-logo="exploded"] .ch05-lab {
  opacity: 1;
  transform: none;
  transition-delay: 160ms;
}
.ch05-lab::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  vertical-align: 2px;
  background: var(--teal);
}
.ch05-lab--arcs { left: 170px; top: 82px; }
.ch05-lab--tri { left: 650px; top: 132px; }
.ch05-lab--nodes { left: 650px; top: 270px; }
.ch05-lab--arrow { left: 650px; top: 208px; }
.ch05-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--faint);
  white-space: nowrap;
}

.ch05-term {
  position: absolute;
  left: 1080px;
  top: 96px;
  z-index: 7;
  width: 720px;
  height: 680px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: #0a1016;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 520ms var(--ease-out) 220ms, transform 520ms var(--ease-out) 220ms;
}
.chapter.is-active .ch05-term { opacity: 1; transform: none; }
.ch05-term__head {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}
.ch05-term__title {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: .14em;
  color: var(--ink);
}
.ch05-term__sub {
  padding: 10px 22px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--faint);
}
.ch05-term__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 22px 0;
  overflow: hidden;
}
.ch05-term__row {
  display: grid;
  grid-template-columns: 28px 112px minmax(0, 1fr) 62px;
  column-gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(214, 230, 226, .05);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.ch05-term__row:last-of-type { border-bottom: 0; }
.ch05-term__ln {
  font-size: 14px;
  line-height: 1.3;
  color: #3f4d50;
}
.ch05-term__cmd {
  grid-column: 2 / -1;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch05-term__k {
  font-size: 16px;
  line-height: 1.4;
  color: var(--teal);
  letter-spacing: .02em;
}
.ch05-term__v {
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
}
.ch05-term__o {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--faint);
  text-align: right;
}
.ch05-term__note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  max-width: 620px;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .02em;
  color: var(--muted);
}
.ch05-term__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--faint);
}
.ch05-term__meta-k { color: var(--teal); }
.ch05-term__foot {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .08em;
  color: var(--faint);
}
.ch05-term__cursor {
  width: 8px;
  height: 14px;
  background: var(--teal);
  opacity: .8;
}

.ch05-bottom {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 808px;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 520ms var(--ease-out) 300ms, transform 520ms var(--ease-out) 300ms;
}
.chapter.is-active .ch05-bottom { opacity: 1; transform: none; }
.ch05-bottom__label {
  flex: 0 0 240px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .1em;
  color: var(--faint);
}
.ch05-var {
  flex: 0 0 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ch05-var__tile {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
}
.ch05-var__tile--paper {
  background: var(--paper);
  border-color: var(--paper-line);
}
.ch05-var__name {
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
  white-space: nowrap;
}
.ch05-var__meta {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--faint);
  white-space: nowrap;
}
.ch05-bottom__note {
  margin-left: auto;
  max-width: 600px;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .02em;
  color: var(--muted);
}

/* ---------- hover guard: no pointer-only affordance on touch ---------- */
@media (hover: none), (pointer: coarse) {
  .ch03-svc:hover {
    background: transparent;
    border-top-color: var(--line);
    color: var(--ink-2);
  }
  .ch03-svc.is-selected:hover {
    background: rgba(238, 242, 240, .065);
    border-top-color: var(--line-strong);
    border-left-color: var(--teal);
    color: var(--ink);
  }
  .ch-02[data-state="docked"] .ch02-btn:hover {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
  }
}

/* ---------- reduced motion: state stays complete, durations collapse ---------- */
html[data-motion="reduced"] .ch-02 *,
html[data-motion="reduced"] .ch-03 *,
html[data-motion="reduced"] .ch-05 * {
  transition-duration: 1ms !important;
  transition-delay: 0ms !important;
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
}
@media (prefers-reduced-motion: reduce) {
  .ch-02 *,
  .ch-03 *,
  .ch-05 * {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}