:root {
  color-scheme: dark;
  --ink: #03100e;
  --ink-deep: #020a09;
  --panel: rgba(5, 23, 20, 0.86);
  --panel-strong: rgba(3, 15, 13, 0.96);
  --signal: #2cf4bf;
  --signal-bright: #71ffd8;
  --signal-soft: rgba(44, 244, 191, 0.14);
  --text: #f3f5ef;
  --muted: #a4b2ae;
  --subtle: #72827e;
  --line: rgba(126, 178, 163, 0.26);
  --amber: #f1ad32;
  --header: 82px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink-deep);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--ink-deep);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--signal-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--signal);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  width: 100%;
  height: var(--header);
  padding: 0 3.8vw;
  border-bottom: 1px solid rgba(69, 164, 138, 0.32);
  background: linear-gradient(180deg, rgba(3, 15, 13, 0.98), rgba(3, 15, 13, 0.84));
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  padding: 0;
  color: var(--signal);
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  width: 49px;
  height: 49px;
  filter: drop-shadow(0 0 10px rgba(44, 244, 191, 0.18));
}

.brand > span {
  display: grid;
  gap: 1px;
  text-align: left;
}

.brand strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.72rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand small {
  color: #a9b5b1;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.journey-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: clamp(18px, 2.4vw, 42px);
}

.journey-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0 0;
  color: #a6b2ae;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease;
}

.journey-nav button::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(44, 244, 191, 0.45);
  content: "";
  transform: scaleX(0);
  transition: transform 200ms ease;
}

.journey-nav button:hover,
.journey-nav button.active {
  color: var(--signal-bright);
}

.journey-nav button.active::after {
  transform: scaleX(1);
}

.journey-nav span {
  color: var(--subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 22px;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 35px;
  height: 40px;
  background: transparent;
  cursor: pointer;
}

.sound-toggle span {
  display: block;
  width: 1px;
  height: 13px;
  background: #b7c2be;
  animation: sound-wave 1.3s ease-in-out infinite alternate;
}

.sound-toggle span:nth-child(2) {
  height: 22px;
  animation-delay: -0.4s;
}

.sound-toggle span:nth-child(3) {
  height: 9px;
  animation-delay: -0.8s;
}

.sound-toggle[aria-pressed="true"] span {
  height: 2px;
  animation: none;
}

@keyframes sound-wave {
  to { transform: scaleY(0.45); opacity: 0.48; }
}

.pilot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 46px;
  min-width: 220px;
  padding: 0 20px;
  border: 1px solid var(--signal);
  border-radius: 3px;
  color: var(--text);
  background: rgba(3, 16, 14, .34);
  font-size: 0.94rem;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pilot-link:hover {
  color: var(--ink);
  background: var(--signal);
  box-shadow: 0 0 28px rgba(44, 244, 191, 0.17);
}

.menu-toggle,
.mobile-journey {
  display: none;
}

main {
  position: relative;
}

.act {
  position: relative;
  min-height: max(100svh, 760px);
  overflow: hidden;
  background: #03100e;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.act::before,
.act::after {
  position: absolute;
  z-index: 2;
  inset: var(--header) 0 0;
  pointer-events: none;
  content: "";
}

.act::before {
  background:
    linear-gradient(90deg, transparent 0 49.96%, rgba(113, 255, 216, .035) 50%, transparent 50.04%),
    linear-gradient(180deg, transparent 0 49.96%, rgba(113, 255, 216, .026) 50%, transparent 50.04%);
  background-size: 12vw 12vw;
  mask-image: linear-gradient(180deg, transparent, #000 26%, #000 82%, transparent);
  opacity: .42;
}

.act::after {
  margin-inline: 1.8vw;
  border: solid rgba(113, 255, 216, .08);
  border-width: 0 1px;
  box-shadow: inset 0 0 140px rgba(0, 0, 0, .28);
}

.scene-canvas,
.veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-canvas {
  z-index: 0;
  cursor: crosshair;
  touch-action: pan-y;
}

.veil {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 10, 9, 0.88) 0%, rgba(2, 10, 9, 0.54) 26%, rgba(2, 10, 9, 0.04) 52%, rgba(2, 10, 9, 0.05) 80%, rgba(2, 10, 9, 0.34) 100%),
    linear-gradient(180deg, rgba(2, 10, 9, 0.42) 0%, transparent 24%, transparent 73%, rgba(2, 10, 9, 0.62) 100%);
}

.act-copy {
  position: absolute;
  z-index: 4;
  top: clamp(138px, 16vh, 180px);
  left: 3.8vw;
  width: min(650px, 41vw);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--signal-bright);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.8vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: #f4f5ef;
  font-family: var(--serif);
  font-size: clamp(4.1rem, 5vw, 6.1rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lede {
  max-width: 640px;
  margin: 18px 0 0;
  color: #aebbb7;
  font-size: clamp(1.15rem, 1.45vw, 1.55rem);
  font-weight: 350;
  line-height: 1.42;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
  color: #02100d;
  background: linear-gradient(135deg, #71ffd8, #21e6b1);
  font-size: 1rem;
  font-weight: 650;
  box-shadow: 0 9px 34px rgba(44, 244, 191, 0.11);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  transform: translateY(-2px);
}

.primary-action:hover {
  box-shadow: 0 11px 38px rgba(44, 244, 191, 0.23);
}

.secondary-action {
  border: 1px solid var(--signal);
  background: rgba(3, 17, 14, 0.72);
}

.secondary-action .play {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding-left: 2px;
  border: 1px solid var(--signal);
  border-radius: 50%;
  color: var(--signal);
  font-size: 0.66rem;
}

.scene-callout {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 230px;
  color: var(--text);
  pointer-events: none;
}

.scene-callout::before {
  position: absolute;
  top: 11px;
  left: 10px;
  width: 48px;
  height: 1px;
  background: rgba(187, 219, 210, 0.72);
  content: "";
}

.callout-anchor {
  position: relative;
  z-index: 2;
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border: 1px solid #d6e2dd;
  border-radius: 50%;
  background: #0b211c;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
  font-style: normal;
  line-height: 10px;
  text-align: center;
}

.scene-callout > span {
  min-width: 155px;
  margin-left: 38px;
}

.scene-callout small {
  display: block;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(163, 193, 184, 0.55);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.45;
  text-transform: uppercase;
}

.scene-callout b {
  display: block;
  margin-top: 7px;
  color: #9fada9;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
}

.scene-callout.amber,
.scene-callout.amber .callout-anchor {
  color: var(--amber);
  border-color: var(--amber);
}

.scene-callout.amber::before {
  background: var(--amber);
}

.verified-callout { top: 16.5%; right: 3.8%; }
.authority-callout { top: 34.5%; right: 13.5%; }
.provenance-callout { top: 61.5%; left: 16.5%; }
.uncertain-callout { top: 66%; right: 3.8%; }

.node-inspector {
  position: absolute;
  z-index: 7;
  left: 39%;
  bottom: 17.5%;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 262px;
  min-height: 34px;
  padding: 7px 15px 7px 10px;
  border: 1px solid var(--signal);
  border-radius: 3px;
  color: var(--signal-bright);
  background: rgba(2, 17, 14, 0.9);
  box-shadow: 0 0 30px rgba(44, 244, 191, 0.12);
  pointer-events: none;
  transition: left 180ms ease, top 180ms ease, opacity 180ms ease;
}

.node-inspector small,
.node-inspector strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.node-inspector small { color: #8ba29b; }
.node-inspector strong { font-weight: 600; }

.inspector-pulse {
  display: block;
  width: 11px;
  height: 11px;
  border: 2px solid var(--signal-bright);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 7px rgba(44, 244, 191, 0.11), 0 0 15px var(--signal);
}

.scene-footer {
  position: absolute;
  z-index: 6;
  right: 3.8vw;
  bottom: 22px;
  left: 3.8vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 60px;
  color: #a4b0ac;
  font-size: 0.73rem;
}

.explore-cue,
.context-cue,
.legend,
.legend span {
  display: flex;
  align-items: center;
}

.explore-cue { gap: 18px; }

.mouse-icon {
  position: relative;
  width: 17px;
  height: 26px;
  border: 1px solid #d7dfdc;
  border-radius: 9px;
}

.mouse-icon::after {
  position: absolute;
  top: 4px;
  left: 7px;
  width: 1px;
  height: 6px;
  background: #d7dfdc;
  content: "";
}

.explore-cue::after {
  width: 82px;
  height: 1px;
  margin-left: 12px;
  background: #7e8d88;
  content: "";
}

.legend { gap: 30px; }
.legend span { gap: 9px; }

.legend i {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.legend i::after {
  display: block;
  width: 4px;
  height: 4px;
  margin: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.legend .supported { color: var(--signal); }
.legend .related { color: #91aaa2; }
.legend .unresolved { color: var(--amber); }

.context-cue {
  justify-self: end;
  gap: 18px;
  padding-left: 27px;
  border-left: 1px solid rgba(164, 188, 181, 0.5);
}

.context-cue i {
  width: 30px;
  height: 30px;
  border: solid var(--signal);
  border-width: 1px 0 0 1px;
  transform: rotate(45deg);
}

.section-index {
  position: fixed;
  z-index: 30;
  top: 50%;
  right: 14px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #7e8d88;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  transform: translateY(-50%);
}

.section-index i {
  width: 1px;
  height: 70px;
  background: linear-gradient(var(--signal), rgba(113, 255, 216, 0.18));
}

.act-caption {
  position: absolute;
  z-index: 6;
  top: calc(var(--header) + 38px);
  right: 3.8vw;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: #7f938c;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.act-caption::before {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(113, 255, 216, .5));
  content: "";
}

.act-caption span { color: var(--signal-bright); }

.transition-gate {
  position: absolute;
  z-index: 10;
  bottom: 20px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 28px;
  align-items: center;
  gap: 1px 18px;
  padding: 10px 16px 10px 19px;
  border: 1px solid rgba(113, 255, 216, .18);
  border-radius: 3px;
  color: #bacac4;
  background: rgba(2, 13, 11, .72);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.transition-gate small {
  color: #748a82;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-align: left;
  text-transform: uppercase;
}

.transition-gate span {
  grid-column: 1;
  color: #e8eeeb;
  font-family: var(--serif);
  font-size: 1rem;
}

.transition-gate i {
  grid-row: 1 / 3;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--signal);
  border-radius: 50%;
  color: var(--signal-bright);
  font-style: normal;
  box-shadow: 0 0 18px rgba(44, 244, 191, .12);
}

.transition-gate:hover,
.transition-gate:focus-visible {
  border-color: rgba(113, 255, 216, .5);
  background: rgba(4, 26, 21, .9);
  box-shadow: 0 0 32px rgba(44, 244, 191, .08);
}

/* Root-cause descent */

.act-descent .veil {
  background:
    linear-gradient(90deg, rgba(2, 10, 9, 0.92) 0%, rgba(2, 10, 9, 0.57) 30%, rgba(2, 10, 9, 0.03) 55%, rgba(2, 10, 9, 0.08) 100%),
    linear-gradient(180deg, rgba(2, 10, 9, 0.45), transparent 24%, transparent 78%, rgba(2, 10, 9, 0.65));
}

.descent-copy {
  top: clamp(158px, 19vh, 205px);
  width: min(590px, 36vw);
}

.descent-copy .lede {
  max-width: 510px;
  font-size: clamp(1.08rem, 1.35vw, 1.43rem);
}

.demo-label {
  margin: 36px 0 23px;
  color: #98a6a2;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.descent-path,
.module-stage {
  position: absolute;
  z-index: 5;
  inset: var(--header) 0 0;
  pointer-events: none;
}

.trace-node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  background: transparent;
  transform: translate(-18px, -18px);
  pointer-events: auto;
  cursor: pointer;
}

.trace-node i {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  background: rgba(3, 16, 14, 0.84);
  box-shadow: 0 0 0 6px rgba(44, 244, 191, 0.06), 0 0 18px rgba(44, 244, 191, 0.25);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.trace-node i::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--signal-bright);
  content: "";
  opacity: 0.6;
}

.trace-node span {
  min-width: 210px;
  padding: 8px 14px;
  border: 1px solid rgba(44, 244, 191, 0.68);
  border-radius: 3px;
  color: #dce8e3;
  background: rgba(2, 17, 14, 0.86);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.trace-node:hover i,
.trace-node.active i {
  background: var(--signal);
  box-shadow: 0 0 0 8px rgba(44, 244, 191, 0.11), 0 0 27px rgba(44, 244, 191, 0.65);
}

.trace-node.active span {
  color: var(--signal-bright);
  border-color: var(--signal);
  box-shadow: 0 0 24px rgba(44, 244, 191, 0.08);
}

.trace-node.amber i,
.trace-node.amber span {
  border-color: rgba(241, 173, 50, 0.86);
}

.trace-node.amber i::after { background: var(--amber); }
.trace-node.amber.active i { background: var(--amber); box-shadow: 0 0 0 8px rgba(241, 173, 50, 0.1), 0 0 28px rgba(241, 173, 50, 0.5); }
.trace-node.amber.active span { color: #ffc967; border-color: var(--amber); }
.trace-node.root-cause i { width: 34px; height: 34px; }
.trace-node.root-cause i::after { inset: 8px; }
.trace-node.root-cause span { color: var(--signal-bright); border-color: var(--signal); }

.trace-detail {
  position: absolute;
  z-index: 7;
  right: 14vw;
  bottom: 5.2vh;
  display: grid;
  gap: 7px;
  width: 290px;
  padding: 18px 20px;
  border: 1px solid rgba(79, 155, 134, 0.54);
  border-radius: 4px;
  background: rgba(2, 15, 13, 0.82);
  backdrop-filter: blur(13px);
}

.trace-detail p { margin: 0; color: var(--signal); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.15em; }
.trace-detail small { color: #93a5a0; font-family: var(--mono); font-size: 0.61rem; letter-spacing: 0.2em; text-transform: uppercase; }
.trace-detail strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; line-height: 1.25; }
.trace-detail > span { color: #9eb0aa; font-size: 0.76rem; }

.depth-rail {
  position: absolute;
  z-index: 6;
  top: calc(var(--header) + 5vh);
  right: 1.8vw;
  bottom: 9vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 32px;
  color: #80918c;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.depth-rail i {
  position: absolute;
  top: 0;
  right: 4px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(#58726b, var(--signal), #42564f);
}

.depth-rail i::after {
  position: absolute;
  top: 42%;
  left: -6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px rgba(44, 244, 191, 0.1);
  content: "";
}

.authority-boundary {
  position: absolute;
  z-index: 7;
  right: 4.6vw;
  bottom: 4.6vh;
  display: none;
  align-items: center;
  gap: 20px;
  min-width: 300px;
  padding: 13px 19px;
  border: 1px solid rgba(103, 178, 157, 0.55);
  border-radius: 4px;
  color: #b8c5c1;
  background: rgba(2, 15, 13, 0.83);
  font-size: 0.9rem;
  line-height: 1.35;
}

.person-icon { color: var(--signal); font-size: 1.5rem; }

.depth-note {
  position: absolute;
  z-index: 5;
  bottom: 5vh;
  left: 3.8vw;
  display: grid;
  grid-template-columns: auto 42px;
  align-items: center;
  gap: 6px 14px;
  color: #879590;
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.depth-note small { font-size: inherit; }
.depth-note span { height: 1px; background: #81918c; }
.depth-note b { grid-column: 1 / -1; font-weight: 400; line-height: 1.55; }

/* Assurance canopy */

.act-canopy .veil {
  background:
    linear-gradient(90deg, rgba(2, 10, 9, 0.92) 0%, rgba(2, 10, 9, 0.52) 27%, rgba(2, 10, 9, 0.02) 48%, rgba(2, 10, 9, 0.05) 100%),
    linear-gradient(180deg, rgba(2, 10, 9, 0.37), transparent 27%, transparent 75%, rgba(2, 10, 9, 0.63));
}

.canopy-copy {
  top: clamp(146px, 17vh, 188px);
  width: min(590px, 32vw);
}

.canopy-copy h2 {
  font-size: clamp(3.9rem, 4.7vw, 5.75rem);
}

.canopy-copy .lede {
  max-width: 510px;
  font-size: clamp(1.05rem, 1.3vw, 1.38rem);
}

.canopy-copy .primary-action { margin-top: 26px; }

.module-node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: grid;
  justify-items: center;
  gap: 15px;
  width: 150px;
  padding: 0;
  color: #b7c5c0;
  background: transparent;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}

.module-node i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #8da49d;
  border-radius: 50%;
  background: rgba(2, 15, 13, 0.89);
  font-style: normal;
  transition: border 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.module-node i:empty::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.module-node span {
  min-width: 120px;
  padding: 8px 12px;
  border: 1px solid rgba(120, 154, 145, 0.5);
  border-radius: 3px;
  background: rgba(2, 15, 13, 0.83);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.module-node:hover i,
.module-node.active i {
  color: var(--signal-bright);
  border-color: var(--signal);
  box-shadow: 0 0 0 7px rgba(44, 244, 191, 0.09), 0 0 26px rgba(44, 244, 191, 0.4);
}

.module-node.active span { color: var(--signal-bright); border-color: var(--signal); }

.module-detail {
  position: absolute;
  z-index: 7;
  top: 28%;
  left: 28%;
  display: grid;
  width: min(330px, 21vw);
  padding: 18px 20px;
  border: 1px solid rgba(44, 244, 191, 0.75);
  border-radius: 4px;
  background: rgba(2, 15, 13, 0.92);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.module-detail::after {
  position: absolute;
  top: 50%;
  right: -52px;
  width: 52px;
  height: 1px;
  background: rgba(44, 244, 191, 0.76);
  content: "";
}

.module-detail small { color: var(--signal); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.15em; line-height: 1.45; text-transform: uppercase; }
.module-detail strong { margin-top: 7px; font-size: 1.08rem; font-weight: 550; }
.module-detail p { margin: 3px 0 8px; color: #a5b3af; font-size: 0.75rem; }
.module-detail-mode { display:flex;gap:5px;margin:11px 0 9px; }
.module-detail .module-detail-mode button { min-height:36px;margin:0;padding:6px 9px;border-color:#456c59;border-radius:999px;color:#a9c8b8; }
.module-detail .module-detail-mode button[aria-pressed="true"] { border-color:var(--signal);background:#123b2a;color:var(--signal-bright); }
.module-detail .module-want-label { margin-top:2px;color:#76cba5;font-family:var(--mono);font-size:.58rem;letter-spacing:.12em;text-transform:uppercase; }
.module-detail .module-want { margin-top:4px;color:#effff5;font-size:.9rem;line-height:1.35; }
.module-detail b { color: var(--signal); font-size: 0.78rem; font-weight: 600; }
.module-detail button { justify-self: start; margin-top: 12px; padding: 7px 10px; border: 1px solid var(--signal); border-radius: 2px; color: var(--signal-bright); background: transparent; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; cursor: pointer; }
.module-detail.inactive { border-color: rgba(140, 161, 155, 0.5); }
.module-detail.inactive b { color: #98a8a3; }
.module-detail.inactive button { color: #dce4e1; border-color: #7f928c; }

.human-core {
  position: absolute;
  z-index: 7;
  top: 57%;
  left: 61.5%;
  display: flex;
  align-items: center;
  gap: 28px;
  transform: translateX(-20%);
}

.human-core i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--signal-bright);
  border-radius: 50%;
  color: var(--signal-bright);
  background: rgba(2, 15, 13, 0.93);
  box-shadow: 0 0 0 8px rgba(44, 244, 191, 0.09), 0 0 28px rgba(44, 244, 191, 0.42);
  font-size: 0.8rem;
  font-style: normal;
}

.human-core span,
.unresolved-branch span {
  padding: 8px 16px;
  border: 1px solid rgba(44, 244, 191, 0.72);
  border-radius: 3px;
  color: #dfe8e5;
  background: rgba(2, 15, 13, 0.88);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.unresolved-branch {
  position: absolute;
  z-index: 7;
  top: 63%;
  right: 6.7%;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--amber);
}

.unresolved-branch i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  background: rgba(25, 18, 6, 0.86);
  box-shadow: 0 0 18px rgba(241, 173, 50, 0.26);
  font-style: normal;
}

.unresolved-branch span { color: var(--amber); border-color: rgba(241, 173, 50, 0.68); }

.core-plaque {
  position: absolute;
  z-index: 7;
  left: 61.5%;
  bottom: 5.5vh;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(520px, 32vw);
  padding: 13px 20px;
  border: 1px solid rgba(44, 244, 191, 0.7);
  border-radius: 4px;
  background: rgba(2, 15, 13, 0.9);
  transform: translateX(-50%);
}

.core-plaque strong { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }
.core-plaque span { color: #9dafaa; font-size: 0.69rem; text-align: center; }

.canopy-note {
  position: absolute;
  z-index: 5;
  bottom: 4.5vh;
  color: #9ba9a5;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  line-height: 1.55;
  text-transform: uppercase;
}

.canopy-note::before {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(206, 224, 218, 0.72);
  content: "";
}

.canopy-note.left { left: 3.8vw; padding-left: 22px; }
.canopy-note.left::before { left: 0; }
.canopy-note.right { right: 3.8vw; padding-right: 22px; text-align: right; }
.canopy-note.right::before { right: 0; }

@media (max-width: 1280px) {
  .site-header { grid-template-columns: minmax(280px, 1fr) auto minmax(220px, 1fr); padding-inline: 2.7vw; }
  .brand small { display: none; }
  .journey-nav { gap: 20px; }
  .pilot-link { min-width: 178px; gap: 22px; }
  .act-copy { left: 3.2vw; }
  h1, h2 { font-size: clamp(3.6rem, 5vw, 5rem); }
  .scene-footer { right: 3vw; left: 3vw; }
  .legend { gap: 16px; }
  .module-detail { left: 27%; width: 260px; }
  .trace-detail { right: 13vw; width: 265px; }
}

@media (max-width: 980px) {
  :root { --header: 68px; }
  html { scroll-snap-type: none; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 22px; }
  .journey-nav, .sound-toggle, .pilot-link { display: none; }
  .brand-mark { width: 43px; height: 43px; }
  .brand strong { font-size: 1.5rem; }
  .menu-toggle { display: grid; gap: 6px; width: 42px; height: 42px; padding: 12px 9px; background: transparent; cursor: pointer; }
  .menu-toggle i { display: block; height: 1px; background: var(--signal); }
  .mobile-journey[hidden] { display: none; }
  .mobile-journey { position: absolute; top: var(--header); right: 0; left: 0; display: grid; padding: 12px 22px 20px; border-bottom: 1px solid rgba(44,244,191,.26); background: rgba(2, 14, 12, .98); }
  .mobile-journey button { padding: 14px 0; border-bottom: 1px solid rgba(143,181,170,.13); color: #dbe6e2; background: transparent; text-align: left; }
  .act { min-height: 1020px; scroll-snap-align: none; }
  .act-copy, .descent-copy, .canopy-copy { top: 105px; left: 28px; width: min(620px, calc(100vw - 56px)); }
  h1, h2, .canopy-copy h2 { font-size: clamp(3.3rem, 8vw, 4.7rem); }
  .lede, .descent-copy .lede, .canopy-copy .lede { max-width: 580px; font-size: 1.15rem; }
  .veil { background: linear-gradient(180deg, rgba(2,10,9,.83) 0%, rgba(2,10,9,.42) 38%, transparent 70%, rgba(2,10,9,.65)); }
  .scene-callout { display: none; }
  .node-inspector { left: 28px; bottom: 142px; }
  .scene-footer { grid-template-columns: 1fr; bottom: 20px; }
  .explore-cue, .context-cue { display: none; }
  .legend { justify-self: start; flex-wrap: wrap; }
  .section-index { display: none; }
  .descent-path, .module-stage { inset: var(--header) 0 0; }
  .trace-node { left: max(42%, var(--x)); transform: translate(-50%, -50%); }
  .trace-node span { min-width: 190px; font-size: .58rem; }
  .trace-detail { right: 24px; bottom: 24px; width: 280px; }
  .depth-rail { display: none; }
  .depth-note { left: 28px; bottom: 28px; }
  .canopy-copy { width: min(560px, calc(100vw - 56px)); }
  .module-node { width: 125px; }
  .module-node:nth-child(1) { left: 24% !important; top: 53% !important; }
  .module-node:nth-child(2) { left: 44% !important; top: 49% !important; }
  .module-node:nth-child(3) { left: 65% !important; top: 49% !important; }
  .module-node:nth-child(4) { left: 84% !important; top: 53% !important; }
  .module-detail { top: auto; bottom: 195px; left: 28px; width: 290px; }
  .module-detail::after { display: none; }
  .human-core { top: 68%; left: 52%; }
  .unresolved-branch { top: 74%; right: 7%; }
  .core-plaque { left: 50%; bottom: 46px; width: min(520px, calc(100vw - 56px)); }
  .canopy-note { display: none; }
}

@media (max-width: 640px) {
  .site-header { padding-inline: 16px; }
  .brand strong { font-size: 1.35rem; }
  .brand-mark { width: 39px; height: 39px; }
  .act { min-height: 960px; }
  .act-copy, .descent-copy, .canopy-copy { top: 92px; left: 20px; width: calc(100vw - 40px); }
  .eyebrow { margin-bottom: 10px; font-size: .64rem; letter-spacing: .2em; }
  h1, h2, .canopy-copy h2 { font-size: clamp(2.85rem, 13vw, 3.75rem); }
  .lede, .descent-copy .lede, .canopy-copy .lede { margin-top: 14px; font-size: 1rem; line-height: 1.45; }
  .actions { display: grid; gap: 10px; margin-top: 22px; }
  .primary-action, .secondary-action { width: 100%; min-height: 52px; }
  .node-inspector { right: 20px; bottom: 126px; left: 20px; min-width: 0; }
  .legend { gap: 10px 16px; font-size: .66rem; }
  .legend i { width: 14px; height: 14px; }
  .legend i::after { margin: 4px; }
  .demo-label { margin: 24px 0 17px; }
  .descent-copy .primary-action { width: auto; }
  .trace-node { left: var(--x); }
  .trace-node span { display: none; }
  .trace-node i { width: 26px; height: 26px; }
  .trace-node.root-cause i { width: 38px; height: 38px; }
  .trace-detail { right: 20px; bottom: 22px; width: calc(100vw - 40px); }
  .depth-note { display: none; }
  .module-node { width: 72px; gap: 7px; }
  .module-node i { width: 38px; height: 38px; }
  .module-node span { min-width: 0; padding: 5px 6px; font-size: .48rem; letter-spacing: .07em; }
  .module-detail { right: 20px; bottom: 158px; left: 20px; width: auto; }
  .human-core { top: 72%; left: 38%; gap: 12px; }
  .human-core span { padding: 7px 9px; font-size: .52rem; }
  .unresolved-branch { top: 77%; right: 5%; gap: 8px; }
  .unresolved-branch span { display: none; }
  .core-plaque { bottom: 24px; width: calc(100vw - 40px); }
  .core-plaque span { font-size: .58rem; }
}

/* Readability: copy and detail cards own their space; the canvas stays behind them. */
.act {
  min-height: max(100svh, 860px);
  padding: calc(var(--header) + 64px) 3.8vw 130px;
}

.act .act-copy {
  position: relative;
  z-index: 8;
  inset: auto;
  width: 38%;
  max-width: 650px;
}

.act .evidence-copy { width: 44%; }
.act .canopy-copy { width: 34%; }
.act-copy { text-shadow: 0 2px 16px rgba(2, 10, 9, .7); }
.act-copy h1, .act-copy h2 { line-height: 1.05; }
.act-copy .lede { color: #bcc8c4; }
.scene-canvas { opacity: .82; }
.act-evidence .scene-canvas { opacity: .98; }
.act-descent .scene-canvas { opacity: .92; }
.act-canopy .scene-canvas { opacity: .96; }

.act-evidence .veil {
  background:
    radial-gradient(circle at 70% 34%, transparent 0 23%, rgba(2, 10, 9, .12) 54%, rgba(2, 10, 9, .56) 100%),
    linear-gradient(90deg, rgba(2, 10, 9, .96) 0%, rgba(2, 10, 9, .72) 31%, rgba(2, 10, 9, .04) 54%, rgba(2, 10, 9, .08) 88%, rgba(2, 10, 9, .38) 100%),
    linear-gradient(180deg, rgba(2, 10, 9, .38), transparent 28%, transparent 72%, rgba(2, 10, 9, .58));
}

.act-descent .veil {
  background:
    radial-gradient(circle at 65% 55%, transparent 0 20%, rgba(2, 10, 9, .18) 62%, rgba(2, 10, 9, .58) 100%),
    linear-gradient(90deg, rgba(2, 10, 9, .97) 0%, rgba(2, 10, 9, .76) 31%, rgba(2, 10, 9, .05) 54%, rgba(2, 10, 9, .1) 100%);
}

.act-canopy .veil {
  background:
    radial-gradient(circle at 67% 42%, transparent 0 25%, rgba(2, 10, 9, .16) 58%, rgba(2, 10, 9, .5) 100%),
    linear-gradient(90deg, rgba(2, 10, 9, .97) 0%, rgba(2, 10, 9, .7) 28%, rgba(2, 10, 9, .035) 48%, rgba(2, 10, 9, .06) 100%);
}

.act-copy h1,
.act-copy h2 {
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, .34));
}

.act-copy .eyebrow::before {
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 12px 3px 0;
  background: linear-gradient(90deg, var(--signal), transparent);
  box-shadow: 0 0 12px rgba(44, 244, 191, .45);
  content: "";
}

.act-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px -34px -28px -3.8vw;
  background: linear-gradient(90deg, rgba(2, 10, 9, .78) 55%, rgba(2, 10, 9, 0));
  pointer-events: none;
}

.act-copy .node-inspector,
.act-copy .trace-detail,
.act-copy .module-detail,
.act-copy .authority-boundary {
  position: relative;
  inset: auto;
  width: min(100%, 360px);
  min-width: 0;
  margin-top: 24px;
  transform: none;
  background: rgba(3, 16, 14, .97);
  text-shadow: none;
}

.act-copy .module-detail::after { display: none; }
.act-copy .node-inspector { width: fit-content; max-width: 100%; }
.module-detail button { min-height: 44px; }
.trace-detail > span, .module-detail p { color: #bcc8c4; }
.trace-detail strong { font-size: 1.125rem; }

.eyebrow, .demo-label,
.node-inspector small, .node-inspector strong,
.trace-detail p, .trace-detail small, .module-detail small,
.scene-callout small, .depth-rail, .depth-note, .canopy-note,
.core-plaque span { font-size: .75rem; }

.trace-detail > span, .module-detail p, .module-detail b,
.module-detail button, .module-node span, .human-core span,
.unresolved-branch span, .scene-callout b, .legend,
.journey-nav button { font-size: .875rem; }

.scene-callout { width: min(18vw, 280px); }
.scene-callout > span { min-width: 0; }
.scene-callout small { letter-spacing: .12em; }
.provenance-callout { top: auto; bottom: 145px; left: 8%; }
.provenance-callout b, .scene-callout b { color: #b5c3be; }

.trace-node {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.trace-node span {
  position: absolute;
  left: calc(100% + 8px);
  width: clamp(12rem, 17vw, 19rem);
  min-width: 0;
  font-size: .875rem;
  letter-spacing: .06em;
  white-space: normal;
  background: rgba(3, 16, 14, .97);
}

.trace-node[data-trace="0"] span,
.trace-node[data-trace="1"] span,
.trace-node[data-trace="3"] span {
  right: calc(100% + 8px);
  left: auto;
}

.module-node { width: 160px; transform: translate(-50%, -23px); }
.module-node span { min-width: 0; background: rgba(3, 16, 14, .97); }
.human-core span, .core-plaque { background: rgba(3, 16, 14, .97); }
.scene-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.legend { flex-wrap: wrap; }
.context-cue { margin-left: auto; }
.node-inspector.amber { border-color: var(--amber); color: var(--amber); }

@media (max-width: 1440px) {
  .brand small, .depth-rail, .explore-cue::after { display: none; }
  .act .act-copy { width: 38%; }
  .act .evidence-copy { width: 46%; }
  .act .canopy-copy { width: 34%; }
  .act-copy h1, .act-copy h2, .canopy-copy h2 { font-size: clamp(3rem, 4.5vw, 4.8rem); }
  .module-node { width: 130px; }
  .module-node span { font-size: .875rem; letter-spacing: .02em; }
  .human-core { gap: 16px; }
  .human-core span { max-width: 235px; }
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .journey-nav { display: none; }
}

@media (max-width: 980px) {
  .act { display: flex; flex-direction: column; min-height: 0; padding: calc(var(--header) + 28px) 24px 32px; }
  .act::before { background-size: 120px 120px; opacity: .24; }
  .act::after { margin-inline: 12px; }
  .act .act-copy { width: 100%; max-width: 650px; }
  .act-copy::before { inset: -28px -24px; background: rgba(2, 10, 9, .8); }
  .act-copy h1, .act-copy h2, .canopy-copy h2 { font-size: clamp(2.6rem, 8vw, 4.7rem); }
  .act-evidence { padding-bottom: 32px; }
  .act-evidence .scene-footer { position: relative; inset: auto; margin-top: 350px; }
  .act .scene-callout, .depth-note, .depth-rail { display: none; }
  .act-caption { top: calc(var(--header) + 18px); right: 24px; font-size: .68rem; }
  .act-caption::before { width: 28px; }
  .transition-gate { display: none; }
  .act-copy .node-inspector, .act-copy .trace-detail, .act-copy .module-detail { width: min(100%, 440px); }
  .descent-path, .module-stage { position: relative; inset: auto; flex: none; width: 100%; margin-top: 38px; }
  .descent-path { height: 680px; }
  .module-stage { height: 470px; }
  .trace-node { left: var(--x); }
  .trace-node span { display: block; width: min(46vw, 310px); font-size: .875rem; }
  .trace-node[data-trace] span { right: calc(100% + 8px); left: auto; }
  .trace-node[data-trace="2"] span,
  .trace-node[data-trace="4"] span,
  .trace-node[data-trace="5"] span { right: auto; left: calc(100% + 8px); }
  .trace-node[data-trace="2"], .trace-node[data-trace="4"], .trace-node[data-trace="5"] { left: 25%; }
  .module-node { width: 24%; gap: 10px; }
  .module-node:nth-child(1) { left: 14% !important; top: 36% !important; }
  .module-node:nth-child(2) { left: 38% !important; top: 36% !important; }
  .module-node:nth-child(3) { left: 62% !important; top: 36% !important; }
  .module-node:nth-child(4) { left: 86% !important; top: 36% !important; }
  .module-node i { width: 46px; height: 46px; }
  .module-node span { width: 100%; padding: 7px 4px; font-size: .875rem; letter-spacing: 0; overflow-wrap: anywhere; }
  .human-core, .core-plaque, .unresolved-branch { position: relative; inset: auto; transform: none; align-self: center; max-width: 100%; }
  .human-core { gap: 14px; }
  .human-core span { min-width: 0; max-width: none; font-size: .875rem; }
  .unresolved-branch { align-self: flex-end; margin-top: 24px; }
  .unresolved-branch span { display: block; font-size: .875rem; }
  .core-plaque { width: 100%; margin-top: 24px; }
  .core-plaque span { font-size: .875rem; }
  .authority-boundary { font-size: 1rem; }
  .legend { font-size: .875rem; gap: 14px 20px; }
}

@media (max-width: 640px) {
  .act { padding-inline: 20px; }
  .act-copy::before { inset-inline: -20px; }
  .act-copy h1, .act-copy h2, .canopy-copy h2 { font-size: clamp(2.3rem, 10.7vw, 3.5rem); }
  .primary-action, .secondary-action { gap: 12px; padding-inline: 16px; font-size: .9375rem; }
  .eyebrow, .demo-label { font-size: .75rem; letter-spacing: .14em; }
  .module-node { gap: 12px; }
  .module-node span { font-size: .875rem; line-height: 1.45; }
  .human-core i { flex: 0 0 46px; }
  .scene-footer .context-cue { display: none; }
  .act-caption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Sound is opt-in; its controls remain available in every scene and on mobile. */
.site-header { grid-template-columns: minmax(220px, 1fr) auto minmax(300px, 1fr); gap: 24px; }
.header-actions { gap: 12px; }
.pilot-link { min-width: 160px; gap: 16px; }
.audio-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  color: #b8c8c2;
  background: transparent;
  font-size: .875rem;
  white-space: nowrap;
  cursor: pointer;
}
.audio-toggle svg, .experience-settings summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.audio-toggle .audio-waves { display: none; }
.audio-toggle[aria-pressed="true"] { color: var(--signal-bright); }
.audio-toggle[aria-pressed="true"] .audio-waves { display: block; }
.audio-toggle[aria-pressed="true"] .audio-muted { display: none; }
.experience-settings summary { display: grid; place-items: center; width: 44px; min-height: 44px; color: var(--muted); list-style: none; cursor: pointer; }
.experience-settings summary::-webkit-details-marker { display: none; }
.experience-settings summary svg circle { fill: var(--ink); }
.experience-settings[open] summary { color: var(--signal); }
.settings-panel {
  position: fixed;
  top: calc(var(--header) + 12px);
  right: 3.8vw;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--header) - 32px);
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #071b16;
  box-shadow: 0 18px 70px #0009;
  font-size: .875rem;
}
.settings-panel > strong { font-size: 1.125rem; font-weight: 500; }
.settings-panel p { margin: 0; color: #bcc8c4; line-height: 1.6; }
.volume-label { display: flex; justify-content: space-between; }
.volume-label output { color: var(--signal-bright); font-variant-numeric: tabular-nums; }
.settings-panel input[type="range"] { width: 100%; min-height: 32px; margin: 0; accent-color: var(--signal); cursor: pointer; }
.hum-option { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.hum-option input { width: 18px; height: 18px; accent-color: var(--signal); }
.settings-panel button { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(44,244,191,.04); text-align: left; cursor: pointer; }
.settings-panel button:hover:not(:disabled) { border-color: var(--signal); }
input:focus-visible, summary:focus-visible { outline: 2px solid var(--signal-bright); outline-offset: 4px; }
button:disabled { opacity: .4; cursor: default; }

.evidence-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.evidence-picks button { min-height: 44px; padding: 8px 14px; color: #bacac3; border: 1px solid var(--line); border-radius: 24px; background: #061510; font-size: .875rem; cursor: pointer; transition: border-color 180ms, background 180ms; }
.evidence-picks button[aria-pressed="true"] { color: var(--signal-bright); border-color: #2cf4bf80; background: #0b2a21; }
.evidence-picks button[data-evidence="unresolved"][aria-pressed="true"] { color: #f4c365; border-color: #f1ad3280; background: #261e0e; }
.trace-controls { display: flex; align-items: center; gap: 12px; width: min(100%, 360px); margin-top: 18px; }
.trace-controls button { display: grid; place-items: center; flex: 0 0 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--signal-bright); background: #061510; cursor: pointer; }
.trace-progress { flex: 1; height: 3px; overflow: hidden; background: #2b3a34; border-radius: 3px; }
.trace-progress > span { display: block; width: var(--progress, 16.67%); height: 100%; background: var(--signal); transition: width 400ms ease; }
.trace-node.visited i { box-shadow: 0 0 16px #2cf4bf30; }
.module-selection { width: min(100%, 360px); margin-top: 14px; color: #a9bdb4; font-size: .875rem; }
.module-node.selected i { outline: 1px solid var(--signal-bright); outline-offset: 6px; }
.primary-action, .secondary-action, .trace-controls button, .module-node i { transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.primary-action:active, .secondary-action:active, .trace-controls button:active:not(:disabled) { transform: scale(.98); }
@media (hover: hover) {
  .evidence-picks button:hover, .trace-controls button:hover:not(:disabled) { border-color: var(--signal); }
  .module-node:hover i { transform: translateY(-3px); }
}
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; transition: none !important; }
.motion-paused { scroll-behavior: auto; }

@media (max-width: 1280px) {
  .site-header { grid-template-columns: 1fr auto; }
  .journey-nav { display: none; }
  .menu-toggle { display: grid; gap: 6px; width: 44px; height: 44px; padding: 12px 9px; background: transparent; cursor: pointer; }
  .menu-toggle i { display: block; height: 1px; background: var(--signal); }
  .mobile-journey[hidden] { display: none; }
  .mobile-journey { position: absolute; top: var(--header); right: 0; left: 0; display: grid; padding: 12px 22px 20px; border-bottom: 1px solid var(--line); background: #03100e; }
  .mobile-journey button { min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
}
@media (max-width: 980px) {
  .site-header { gap: 12px; }
  .header-actions { gap: 6px; }
  .trace-controls { width: min(100%, 440px); }
  .settings-panel { right: 16px; }
}
@media (max-width: 540px) {
  .brand-mark { display: none; }
  .header-actions { gap: 2px; }
  .audio-toggle { gap: 5px; }
  .experience-settings summary, .menu-toggle { width: 40px; }
}
@media (max-width: 380px) {
  .site-header { padding-inline: 12px; gap: 8px; }
  .brand strong { font-size: 1.15rem; }
}

/* Arrival v2 — monumental evidence landscape. */
.act-evidence {
  min-height: max(100svh, 860px);
  padding-top: calc(var(--header) + 70px);
}

.act-evidence .act-caption { display: none; }
.act-evidence .evidence-copy { width: min(46%, 760px); max-width: 760px; }
.act-evidence .evidence-copy h1 { font-size: clamp(4rem, 4.75vw, 5.75rem); line-height: 1.01; letter-spacing: -.048em; }
.act-evidence .evidence-copy .lede { max-width: 650px; font-size: clamp(1.08rem, 1.3vw, 1.42rem); }
.act-evidence .act-copy::before { inset: -28px -88px -34px -3.8vw; background: linear-gradient(90deg, rgba(2,10,9,.91) 0%, rgba(2,10,9,.78) 63%, rgba(2,10,9,0)); }
.act-evidence .actions { gap: 22px; }
.act-evidence .primary-action { min-width: 286px; }
.act-evidence .secondary-action { min-width: 228px; }
.act-evidence .evidence-picks { display: none; }

.act-evidence .node-inspector {
  position: absolute;
  z-index: 9;
  top: 73%;
  bottom: auto;
  left: 37.5%;
  min-width: 240px;
  margin: 0;
  transform: translate(-50%, -50%);
  background: rgba(2, 20, 16, .94);
  backdrop-filter: blur(12px);
}

.evidence-landmarks {
  position: absolute;
  z-index: 7;
  inset: var(--header) 0 96px;
  pointer-events: none;
}

.evidence-landmarks button {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 104px;
  padding: 0;
  color: #81958e;
  background: transparent;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}

.evidence-landmarks i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #708a81;
  border-radius: 50%;
  background: rgba(3, 17, 14, .9);
  font-family: var(--mono);
  font-size: 1rem;
  font-style: normal;
  box-shadow: 0 0 0 5px rgba(104, 151, 137, .035);
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.evidence-landmarks span {
  color: #94a49f;
  font-size: .78rem;
  white-space: nowrap;
}

.evidence-landmarks button:hover i,
.evidence-landmarks button:focus-visible i,
.evidence-landmarks button[aria-pressed="true"] i {
  color: var(--signal-bright);
  border-color: var(--signal);
  box-shadow: 0 0 0 6px rgba(44,244,191,.08), 0 0 24px rgba(44,244,191,.28);
  transform: translateY(-3px);
}

.evidence-landmarks button.amber:hover i,
.evidence-landmarks button.amber:focus-visible i,
.evidence-landmarks button.amber[aria-pressed="true"] i {
  color: #ffd06d;
  border-color: var(--amber);
  box-shadow: 0 0 0 6px rgba(241,173,50,.07), 0 0 24px rgba(241,173,50,.25);
}

.act-evidence .scene-callout {
  width: auto;
  min-width: 180px;
  padding: 9px 14px 9px 10px;
  border: 1px solid rgba(82, 151, 132, .52);
  border-radius: 3px;
  background: rgba(2, 18, 15, .8);
  backdrop-filter: blur(10px);
}

.act-evidence .scene-callout::before { display: none; }
.act-evidence .scene-callout > span { margin-left: 0; }
.act-evidence .scene-callout small { padding: 0; border: 0; color: #d7e3de; font-size: .7rem; letter-spacing: .18em; white-space: nowrap; }
.act-evidence .scene-callout .callout-anchor { margin-right: 4px; }
.act-evidence .verified-callout { top: 15%; right: 17%; }
.act-evidence .authority-callout { top: 39%; right: 14%; }
.act-evidence .provenance-callout { top: 21%; bottom: auto; left: 49%; }
.act-evidence .uncertain-callout { top: 61%; right: 8%; }
.act-evidence .uncertain-callout small { color: #f3bd51; }

.act-evidence .evidence-footer {
  right: 3.8vw;
  bottom: 18px;
  left: 3.8vw;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
  min-height: 66px;
  padding-top: 14px;
  border-top: 1px solid rgba(116, 162, 149, .18);
}

.capability-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
}

.capability-rail > span {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-inline: clamp(10px, 1.4vw, 24px);
  border-left: 1px solid rgba(116, 162, 149, .22);
  color: #aab9b4;
  font-size: .76rem;
  line-height: 1.35;
}

.capability-rail i {
  grid-row: 1 / 3;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 1.7rem;
  font-style: normal;
  text-align: center;
  text-shadow: 0 0 18px rgba(44,244,191,.25);
}

.network-controls {
  position: absolute;
  top: 30px;
  right: 4%;
  width: min(54%, 650px);
  z-index: 12;
  pointer-events: auto;
}
.network-controls[hidden], .module-node[hidden] { display: none; }
.network-controls button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(146, 216, 191, .28);
  background: rgba(3, 16, 14, .94);
  border-radius: 4px;
  color: #d4e8df;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.network-controls button:hover,
.network-controls button[aria-pressed="true"] {
  background: #103c30;
  border-color: #70cdae;
  color: #eefff7;
}
.network-controls button:focus-visible { outline: 2px solid #a7ffe0; outline-offset: 4px; }
.network-switcher { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
#network-location { margin: 18px 0 4px; font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.8rem); color: #e5f7ed; }
.network-controls small { color: #acbfb5; font-size: .8125rem; }
.module-node i { width: var(--node-size, 46px); height: var(--node-size, 46px); }
.module-stage { scroll-margin-top: calc(var(--header) + 18px); }
.network-focused .human-core,
.network-focused .unresolved-branch,
.network-focused .core-plaque,
.network-focused .canopy-note { visibility: hidden; }
.network-focused .scene-canvas { opacity: 1; }
/* The camera owns positioning. CSS only fades the attached labels. */
.module-stage .module-node {
  left: 0 !important;
  top: 0 !important;
  will-change: transform;
  transition: opacity 420ms ease;
}
.network-focused .module-node { opacity: 0; pointer-events: none; }
.act-canopy .module-detail,
.act-canopy .module-selection,
#network-location {
  transition: opacity 650ms cubic-bezier(.22, 1, .36, 1), transform 650ms cubic-bezier(.22, 1, .36, 1);
}
.act-canopy.network-travelling .module-detail,
.act-canopy.network-travelling .module-selection,
.network-travelling #network-location {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  pointer-events: none;
  transition-duration: 160ms;
}
.network-controls { isolation: isolate; }
.network-controls::before {
  content: "";
  position: absolute;
  inset: -14px -16px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 10, 9, .94), rgba(2, 10, 9, .75) 65%, transparent);
  pointer-events: none;
}
.network-controls button { border-radius: 24px; }
.network-switcher { gap: 8px; }
.network-controls button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(112, 205, 174, .18), 0 0 22px rgba(44, 244, 191, .08); }
@media (max-width: 980px) {
  .network-controls { top: 0; left: 0; right: 0; width: 100%; }
  .network-switcher { gap: 5px; }
  .network-controls button { padding: 10px; }
  #network-location { font-size: 1.6rem; }
}

@media (max-width: 1180px) {
  .act-evidence .evidence-copy { width: 52%; }
  .act-evidence .evidence-copy h1 { font-size: clamp(3.45rem, 5.2vw, 4.7rem); }
  .act-evidence .secondary-action { min-width: 206px; }
  .capability-rail > span { grid-template-columns: 28px 1fr; padding-inline: 9px; font-size: .7rem; }
  .capability-rail i { font-size: 1.35rem; }
}

@media (max-width: 980px) {
  .act-evidence { padding-top: calc(var(--header) + 42px); }
  .act-evidence .evidence-copy { width: 100%; }
  .act-evidence .evidence-copy h1 { font-size: clamp(3rem, 8.8vw, 4.8rem); }
  .act-evidence .act-copy::before { inset: -30px -24px; background: linear-gradient(180deg, rgba(2,10,9,.96) 0%, rgba(2,10,9,.83) 78%, rgba(2,10,9,0)); }
  .act-evidence .evidence-picks { display: flex; }
  .evidence-landmarks { display: none; }
  .act-evidence .node-inspector { position: relative; inset: auto; width: fit-content; max-width: 100%; min-width: 0; margin-top: 18px; transform: none; }
  .act-evidence .evidence-footer { position: relative; inset: auto; grid-template-columns: 1fr; margin-top: 370px; }
  .capability-rail { grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(116,162,149,.16); }
  .capability-rail > span { min-height: 64px; border-bottom: 1px solid rgba(116,162,149,.12); }
}

@media (max-width: 640px) {
  .act-evidence .evidence-copy h1 { font-size: clamp(2.65rem, 11.4vw, 3.65rem); }
  .act-evidence .primary-action,
  .act-evidence .secondary-action { min-width: 0; }
  .act-evidence .evidence-footer { margin-top: 320px; }
  .capability-rail { grid-template-columns: repeat(2, 1fr); }
  .capability-rail > span { padding: 10px 8px; font-size: .68rem; }
}
