:root {
  --obsidian: #080b0c;
  --ink: #101617;
  --graphite: #1b2325;
  --graphite-2: #263236;
  --slate: #6e7a7d;
  --bone: #f2eee6;
  --mist: #c8d0cd;
  --sea: #5ec6b8;
  --sea-dim: rgba(94, 198, 184, 0.12);
  --copper: #d58a5a;
  --ember: #f0b27a;
  --blue: #6d92f7;
  --violet: #8b7cf6;
  --amber: #d6a84c;
  --rose: #e06464;
  --green: #7ccb8a;
  --line: rgba(242, 238, 230, 0.11);
  --line-strong: rgba(242, 238, 230, 0.21);
  --panel: rgba(16, 22, 23, 0.76);
  --header-h: 72px;
  --page-pad: clamp(22px, 5vw, 78px);
  --content: 1440px;
  --radius: 8px;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--obsidian);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--bone);
  background:
    radial-gradient(circle at 77% 9%, rgba(94, 198, 184, 0.065), transparent 24rem),
    radial-gradient(circle at 15% 36%, rgba(213, 138, 90, 0.045), transparent 25rem),
    var(--obsidian);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.44;
  background-image:
    linear-gradient(rgba(242, 238, 230, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 230, 0.024) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  color: var(--obsidian);
  background: var(--sea);
}

:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  left: 18px;
  top: -80px;
  padding: 10px 14px;
  color: var(--obsidian);
  background: var(--bone);
  border-radius: 4px;
  text-decoration: none;
  transition: top 140ms ease;
}

.skip-link:focus {
  top: 14px;
}

.et-home-link {
  position: fixed;
  z-index: 130;
  right: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--slate);
  background: rgba(8, 11, 12, 0.9);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.et-home-link:hover,
.et-home-link:focus-visible {
  border-color: var(--sea);
  color: var(--sea);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--page-pad);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(8, 11, 12, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  text-decoration: none;
}

.brand-lockup img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.brand-word {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.19em;
}

.brand-sub {
  padding-left: 10px;
  color: var(--slate);
  border-left: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.chapter-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.chapter-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: 32px;
  padding: 0 8px;
  color: var(--slate);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.chapter-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sea);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.chapter-dot span {
  font-family: var(--mono);
  font-size: 8px;
}

.chapter-dot b {
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.chapter-dot:hover {
  color: var(--bone);
  border-color: var(--line-strong);
}

.chapter-dot.active {
  color: var(--bone);
  background: var(--sea-dim);
  border-color: rgba(94, 198, 184, 0.42);
}

.chapter-dot.active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  color: var(--mist);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-action:hover {
  color: var(--bone);
  border-color: rgba(94, 198, 184, 0.38);
  background: var(--sea-dim);
}

.header-action svg,
.search-dialog svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.header-action span {
  font-size: 11px;
}

.header-action i {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: var(--obsidian);
  background: var(--copper);
  border-radius: 9px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.progress-rail {
  position: fixed;
  z-index: 90;
  top: 50%;
  left: max(12px, calc((100vw - var(--content)) / 2 - 44px));
  display: grid;
  justify-items: center;
  gap: 12px;
  transform: translateY(-50%);
}

.progress-line {
  position: relative;
  display: block;
  width: 1px;
  height: 112px;
  background: var(--line);
}

.progress-line i {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
  background: var(--sea);
  box-shadow: 0 0 12px rgba(94, 198, 184, 0.7);
}

.progress-label {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.chapter {
  position: relative;
  display: flex;
  align-items: center;
  min-height: auto;
  padding: calc(var(--header-h) + clamp(42px, 6vh, 76px)) var(--page-pad) clamp(64px, 8vh, 100px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 0;
}

.chapter::before {
  content: attr(data-index);
  position: absolute;
  top: calc(var(--header-h) + 20px);
  right: var(--page-pad);
  color: rgba(242, 238, 230, 0.028);
  font-family: var(--serif);
  font-size: clamp(68px, 9vw, 128px);
  line-height: 0.8;
  pointer-events: none;
}

.chapter-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-transform: uppercase;
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sea);
  box-shadow: 0 0 18px rgba(94, 198, 184, 0.72);
}

.chapter h1,
.chapter h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 450;
  letter-spacing: -0.026em;
  line-height: 1.02;
}

.chapter h1 {
  max-width: 760px;
  font-size: clamp(48px, 5.4vw, 82px);
}

.chapter h2 {
  font-size: clamp(38px, 4vw, 58px);
}

.chapter h1 em,
.chapter h2 em {
  color: var(--sea);
  font-style: italic;
  font-weight: 400;
}

.chapter-heading {
  max-width: 1120px;
  margin-bottom: clamp(38px, 5vw, 62px);
}

.chapter-heading > p:last-child {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--mist);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.75fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
  max-width: none;
}

.split-heading > p:last-child {
  margin: 0 0 4px;
  color: var(--mist);
  font-size: 16px;
}

.hero {
  display: block;
  padding-top: calc(var(--header-h) + clamp(58px, 9vh, 116px));
  padding-bottom: 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: 10vh;
  width: 50vw;
  height: 50vw;
  border: 1px solid rgba(94, 198, 184, 0.04);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(94, 198, 184, 0.012), 0 0 0 160px rgba(94, 198, 184, 0.008);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 132px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-thesis {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--mist);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.58;
}

.hero-actions,
.desk-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.quiet-action {
  min-height: 46px;
  padding: 0 17px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-action {
  color: var(--obsidian);
  background: var(--sea);
  border: 1px solid var(--sea);
  font-size: 13px;
  font-weight: 750;
}

.primary-action span {
  margin-left: 24px;
}

.quiet-action {
  color: var(--mist);
  background: transparent;
  border: 1px solid var(--line-strong);
  font-size: 13px;
}

.primary-action:hover,
.quiet-action:hover {
  transform: translateY(-2px);
}

.quiet-action:hover {
  color: var(--bone);
  border-color: rgba(94, 198, 184, 0.46);
}

.hero-boundary {
  max-width: 660px;
  margin: 44px 0 0;
  padding-left: 16px;
  color: var(--slate);
  border-left: 1px solid var(--copper);
  font-size: 13px;
}

.hero-boundary strong {
  color: var(--ember);
  font-weight: 650;
}

.aperture-figure {
  position: relative;
  width: min(100%, 580px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.aperture-field {
  position: absolute;
  inset: 12%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 238, 230, 0.06);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 198, 184, 0.075), transparent 58%);
  box-shadow: inset 0 0 110px rgba(94, 198, 184, 0.035), 0 0 90px rgba(0, 0, 0, 0.42);
  animation: fieldBreath 9s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border: 1px solid;
  border-radius: 50%;
  transform-origin: center;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.orbit-a {
  inset: 7%;
  color: var(--sea);
  border-color: rgba(94, 198, 184, 0.36);
  animation: orbitSpin 28s linear infinite;
}

.orbit-b {
  inset: 22%;
  color: var(--copper);
  border-color: rgba(213, 138, 90, 0.28);
  animation: orbitSpinReverse 18s linear infinite;
}

.orbit-c {
  inset: 35%;
  color: var(--bone);
  border-color: rgba(242, 238, 230, 0.19);
  animation: orbitSpin 13s linear infinite;
}

.breath-wave {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 88px;
  transform: translateY(-50%);
  background:
    radial-gradient(ellipse at 18% 50%, transparent 46%, rgba(94, 198, 184, 0.62) 47%, rgba(94, 198, 184, 0.62) 49%, transparent 50%) 0 0 / 50% 100% no-repeat,
    radial-gradient(ellipse at 82% 50%, transparent 46%, rgba(94, 198, 184, 0.62) 47%, rgba(94, 198, 184, 0.62) 49%, transparent 50%) 100% 0 / 50% 100% no-repeat;
  filter: drop-shadow(0 0 12px rgba(94, 198, 184, 0.35));
}

.delta-marker {
  position: absolute;
  top: 18%;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 31px solid var(--copper);
  filter: drop-shadow(0 0 16px rgba(213, 138, 90, 0.34));
}

.aperture-core {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: var(--ember);
  background: rgba(8, 11, 12, 0.7);
  border: 1px solid rgba(242, 238, 230, 0.16);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 30px;
  box-shadow: 0 0 40px rgba(94, 198, 184, 0.1);
}

.aperture-figure figcaption {
  position: absolute;
  left: 50%;
  bottom: 4%;
  display: grid;
  justify-items: center;
  color: var(--slate);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.aperture-figure figcaption b {
  margin: 3px 0;
  color: var(--mist);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.field-label {
  position: absolute;
  display: grid;
  gap: 2px;
  padding-left: 10px;
  color: var(--slate);
  border-left: 1px solid var(--line-strong);
}

.field-label small {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-label b {
  color: var(--mist);
  font-size: 11px;
  font-weight: 600;
}

.label-intent { left: 2%; top: 24%; }
.label-actuator { right: 0; top: 42%; }
.label-map { left: 8%; bottom: 22%; }

.status-ribbon {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: calc(100% + var(--page-pad) * 2);
  margin: 30px calc(var(--page-pad) * -1) 0;
  border-top: 1px solid var(--line);
  background: rgba(16, 22, 23, 0.48);
}

.status-ribbon > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  min-height: 94px;
  padding: 20px clamp(16px, 2.5vw, 38px);
  border-right: 1px solid var(--line);
}

.status-ribbon > div:last-child {
  border-right: 0;
}

.status-index {
  grid-row: 1 / span 2;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 9px;
}

.status-ribbon strong {
  color: var(--slate);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-ribbon b {
  color: var(--mist);
  font-size: 13px;
  font-weight: 600;
}

.status-ribbon .status-pass {
  color: var(--green);
}

.loop-layout {
  display: grid;
  grid-template-columns: minmax(680px, 1.55fr) minmax(300px, 0.55fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.loop-stage {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 48%, rgba(94, 198, 184, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(242, 238, 230, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(242, 238, 230, 0.025) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.loop-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.loop-edges path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.fast-path {
  stroke: rgba(94, 198, 184, 0.35);
  stroke-width: 1.6;
  stroke-dasharray: 3 7;
  marker-end: url(#loopArrow);
  animation: dashFlow 18s linear infinite;
}

#loopArrow path {
  fill: rgba(94, 198, 184, 0.75);
}

.slow-path {
  stroke: rgba(139, 124, 246, 0.35);
  stroke-width: 1.4;
  stroke-dasharray: 9 7;
  marker-end: url(#slowArrow);
}

#slowArrow path {
  fill: rgba(139, 124, 246, 0.75);
}

.outer-path {
  stroke: rgba(213, 138, 90, 0.4);
  stroke-width: 1.2;
  stroke-dasharray: 2 8;
}

.loop-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  gap: 2px;
  width: 154px;
  min-height: 76px;
  padding: 11px 13px;
  text-align: left;
  background: rgba(8, 11, 12, 0.87);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.loop-node:hover,
.loop-node.active {
  border-color: rgba(94, 198, 184, 0.56);
  background: rgba(19, 31, 31, 0.94);
  transform: translate(-50%, -50%) translateY(-3px);
  box-shadow: 0 0 0 1px rgba(94, 198, 184, 0.08), 0 18px 38px rgba(0, 0, 0, 0.4);
}

.loop-node small {
  color: var(--sea);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loop-node b {
  color: var(--bone);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.loop-node span {
  color: var(--slate);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.loop-node.slow-node {
  border-top-color: rgba(139, 124, 246, 0.56);
}

.loop-node.outer-node {
  border-top-color: rgba(213, 138, 90, 0.56);
}

.loop-core {
  position: absolute;
  left: 50%;
  top: 48%;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  color: var(--mist);
  border: 1px solid rgba(94, 198, 184, 0.26);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 26px rgba(94, 198, 184, 0.02), 0 0 60px rgba(94, 198, 184, 0.08);
}

.loop-core span {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(94, 198, 184, 0.28);
  border-radius: 50%;
  animation: orbitSpin 24s linear infinite;
}

.loop-core b {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.loop-inspector,
.authority-inspector {
  padding: clamp(22px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(16, 22, 23, 0.78), rgba(8, 11, 12, 0.4));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inspector-kicker {
  margin: 0 0 13px;
  color: var(--sea);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loop-inspector h3,
.authority-inspector h3,
.truth-inspector h3,
.resolve-study h3,
.claim-deck h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 450;
  line-height: 1.06;
}

.loop-inspector > p:nth-of-type(2),
.authority-inspector > p:nth-of-type(2) {
  margin: 20px 0 0;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.6;
}

.inspector-facts {
  margin: 32px 0 0;
}

.inspector-facts > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.inspector-facts dt {
  margin-bottom: 4px;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.inspector-facts dd {
  margin: 0;
  color: var(--mist);
  font-size: 12px;
}

.truth-separation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 28px;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.truth-separation span {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.truth-separation i {
  color: var(--copper);
  font-style: normal;
}

.reality-chapter {
  background: linear-gradient(180deg, transparent, rgba(16, 22, 23, 0.46), transparent);
}

.reality-switcher {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reality-tab {
  display: grid;
  gap: 4px;
  padding: 15px 14px;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.reality-tab:last-child {
  border-right: 0;
}

.reality-tab span {
  color: var(--mist);
  font-size: 12px;
  font-weight: 650;
}

.reality-tab b {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reality-tab:hover,
.reality-tab.active {
  background: var(--sea-dim);
}

.reality-tab.active span {
  color: var(--sea);
}

.reality-ledger {
  border-top: 1px solid var(--line);
}

.reality-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(190px, 0.34fr);
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 3.4vw, 42px) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.reality-row.filtered-out {
  display: none;
}

.reality-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
}

.canonical-mark { color: var(--green); }
.implemented-mark { color: var(--sea); }
.proposed-mark { color: var(--violet); }
.absent-mark { color: var(--rose); }

.row-label {
  margin: 0 0 7px;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.reality-row h3,
.audio-bench h3,
.tightening-list h3 {
  margin: 0;
  color: var(--bone);
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 450;
  line-height: 1.15;
}

.reality-row p:not(.row-label),
.audio-bench p:not(.row-label),
.tightening-list p {
  max-width: 780px;
  margin: 9px 0 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.55;
}

.row-evidence {
  display: grid;
  gap: 5px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.row-evidence b {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.row-evidence span {
  color: var(--mist);
  font-family: var(--mono);
  font-size: 12px;
}

.row-evidence small {
  color: var(--slate);
  font-size: 10px;
  line-height: 1.4;
}

.sonic-chapter {
  overflow: hidden;
}

.sonic-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: clamp(28px, 4vw, 62px);
}

.sonic-visual-wrap {
  position: relative;
  min-width: 0;
  min-height: 530px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(94, 198, 184, 0.09), transparent 48%),
    rgba(8, 11, 12, 0.36);
}

#sonicCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 530px;
}

.sonic-readout {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 17px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(8, 11, 12, 0.76);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.sonic-readout > div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.sonic-readout > div:last-child {
  border-right: 0;
}

.sonic-readout small {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sonic-readout b {
  overflow: hidden;
  color: var(--mist);
  font-size: 10px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-caveat {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sonic-controls {
  border-top: 1px solid var(--line);
}

.control-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.control-block label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--mist);
  font-size: 12px;
}

.control-block label b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  color: var(--obsidian);
  background: var(--sea);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
}

.control-block output {
  color: var(--sea);
  font-family: var(--mono);
  font-size: 10px;
}

input[type="range"] {
  width: 100%;
  height: 18px;
  margin: 18px 0 4px;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(90deg, var(--sea), var(--copper));
}

input[type="range"]::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -6px;
  appearance: none;
  background: var(--bone);
  border: 2px solid var(--obsidian);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--sea);
}

input[type="range"]::-moz-range-track {
  height: 1px;
  background: linear-gradient(90deg, var(--sea), var(--copper));
}

input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: var(--bone);
  border: 2px solid var(--obsidian);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--sea);
}

.control-block p {
  margin: 7px 0 0;
  color: var(--slate);
  font-size: 11px;
  line-height: 1.5;
}

.audit-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.audit-toggle button {
  min-height: 38px;
  color: var(--slate);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-size: 10px;
}

.audit-toggle button:last-child {
  border-right: 0;
}

.audit-toggle button.active {
  color: var(--bone);
  background: var(--sea-dim);
}

.audit-copy {
  margin-top: 12px;
  padding: 16px;
  background: rgba(16, 22, 23, 0.68);
  border-left: 2px solid var(--copper);
}

.audit-copy strong {
  color: var(--ember);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 450;
}

.audit-copy p {
  margin: 7px 0 0;
  color: var(--mist);
  font-size: 11px;
  line-height: 1.55;
}

.resolve-study {
  margin-top: clamp(54px, 7vw, 94px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resolve-study > header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 40px;
  align-items: end;
  padding: 28px 0;
}

.resolve-study > header p:last-child {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
}

.resolve-study h3 {
  font-size: 29px;
}

.resolve-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
}

.resolve-step {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 102px;
  padding: 15px 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.resolve-step:last-child {
  border-right: 0;
}

.resolve-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--sea);
  transition: right 180ms ease;
}

.resolve-step:hover,
.resolve-step.active {
  background: rgba(94, 198, 184, 0.05);
}

.resolve-step.active::after {
  right: 0;
}

.resolve-step span,
.resolve-step small {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.resolve-step b {
  color: var(--mist);
  font-size: 12px;
}

.resolve-boundary {
  margin: 0;
  padding: 12px 0;
  color: var(--slate);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audio-bench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.audio-bench article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--obsidian);
}

.audio-bench h3 {
  font-size: 21px;
}

audio {
  width: min(260px, 28vw);
  height: 36px;
  opacity: 0.86;
  filter: grayscale(1) invert(0.86) hue-rotate(116deg);
}

.authority-layout {
  display: grid;
  grid-template-columns: minmax(500px, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(28px, 5vw, 72px);
}

.authority-track {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.authority-track::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--sea), var(--violet));
  opacity: 0.4;
}

.authority-track li {
  border-bottom: 1px solid var(--line);
}

.authority-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 122px;
  padding: 16px 12px 16px 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease;
}

.authority-step:hover,
.authority-step.active {
  background: linear-gradient(90deg, rgba(94, 198, 184, 0.07), transparent);
}

.authority-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 10px;
  color: var(--slate);
  background: var(--obsidian);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
}

.authority-step.active .authority-number {
  color: var(--obsidian);
  background: var(--sea);
  border-color: var(--sea);
}

.authority-step > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.authority-step small {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.authority-step b {
  color: var(--mist);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 450;
}

.authority-step em {
  color: var(--slate);
  font-size: 11px;
  font-style: normal;
}

.authority-step > i {
  padding: 4px 6px;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
}

.authority-inspector {
  align-self: stretch;
}

.include-exclude {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.include-exclude > div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.include-exclude small {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.include-exclude ul {
  margin: 9px 0 0;
  padding: 0;
  color: var(--mist);
  list-style: none;
  font-size: 11px;
}

.include-exclude li {
  margin: 6px 0;
}

.include-exclude li::before {
  content: "—";
  margin-right: 7px;
  color: var(--sea);
}

.include-exclude > div:last-child li::before {
  color: var(--rose);
}

.authority-rule {
  margin-top: 30px;
  padding: 14px;
  color: var(--mist);
  background: rgba(94, 198, 184, 0.07);
  border-left: 2px solid var(--sea);
  font-size: 11px;
}

.authority-rule span {
  display: block;
  margin-bottom: 4px;
  color: var(--sea);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.truth-chapter {
  background: linear-gradient(180deg, rgba(16, 22, 23, 0.34), transparent);
}

.truth-lanes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.truth-lane {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  min-height: 118px;
  padding: 20px;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: background 160ms ease;
}

.truth-lane:last-child {
  border-right: 0;
}

.truth-lane:hover,
.truth-lane.active {
  background: rgba(94, 198, 184, 0.06);
}

.truth-lane > span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--slate);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
}

.truth-lane.active > span {
  color: var(--obsidian);
  background: var(--sea);
  border-color: var(--sea);
}

.truth-lane small {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.truth-lane b {
  color: var(--mist);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.35;
}

.truth-inspector {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(200px, 0.8fr) minmax(200px, 0.8fr);
  gap: 34px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.truth-inspector > div:not(:first-child) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.truth-inspector h3 {
  font-size: 28px;
}

.truth-inspector > div:first-child > p:last-child,
.truth-does p {
  margin: 10px 0 0;
  color: var(--mist);
  font-size: 12px;
  line-height: 1.55;
}

.truth-does small {
  color: var(--sea);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.truth-does.not small {
  color: var(--rose);
}

.claim-deck {
  display: grid;
  grid-template-columns: 0.5fr 1fr 0.8fr;
  gap: 28px;
  align-items: start;
  margin-top: 54px;
}

.claim-deck h3 {
  font-size: 26px;
}

.claim-list {
  border-top: 1px solid var(--line);
}

.claim-list button {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 15px 4px;
  color: var(--mist);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.35;
}

.claim-list button:hover,
.claim-list button.active {
  color: var(--sea);
}

.claim-list i {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  text-transform: uppercase;
}

.claim-verdict {
  min-height: 190px;
  padding: 23px;
  background: rgba(16, 22, 23, 0.68);
  border-top: 2px solid var(--slate);
}

.claim-verdict.valid { border-top-color: var(--green); }
.claim-verdict.partial { border-top-color: var(--amber); }
.claim-verdict.blocked { border-top-color: var(--rose); }

.claim-verdict > span {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.claim-verdict h4 {
  margin: 10px 0 0;
  color: var(--bone);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 450;
  line-height: 1.15;
}

.claim-verdict p {
  margin: 12px 0 0;
  color: var(--slate);
  font-size: 11px;
  line-height: 1.55;
}

.tightening-list {
  border-top: 1px solid var(--line);
}

.tightening-list article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 110px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.tightening-list article > span {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 9px;
}

.tightening-list h3 {
  font-size: 22px;
}

.tension-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 112px;
  height: 34px;
  padding: 0 10px;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.tension-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate);
}

.tension-state b {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tension-state[data-state="working"] {
  color: var(--amber);
  border-color: rgba(214, 168, 76, 0.3);
}

.tension-state[data-state="working"] i { background: var(--amber); }

.tension-state[data-state="resolved"] {
  color: var(--green);
  border-color: rgba(124, 203, 138, 0.3);
}

.tension-state[data-state="resolved"] i { background: var(--green); }

.desk-actions {
  margin-top: 38px;
}

.desk-actions > span {
  margin-left: auto;
  color: var(--slate);
  font-size: 10px;
}

.source-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  margin-top: clamp(80px, 10vw, 150px);
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.source-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.source-footer img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.source-footer span {
  display: grid;
}

.source-footer b {
  letter-spacing: 0.16em;
  font-size: 11px;
}

.source-footer small {
  color: var(--slate);
  font-size: 9px;
}

.source-footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.source-footer a {
  color: var(--slate);
  font-size: 10px;
  text-decoration-color: rgba(94, 198, 184, 0.3);
  text-underline-offset: 3px;
}

.source-footer a:hover {
  color: var(--sea);
}

.tour-bar {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 18px;
  display: grid;
  grid-template-columns: 42px minmax(170px, 1fr) 42px 32px;
  gap: 7px;
  align-items: center;
  padding: 7px;
  background: rgba(8, 11, 12, 0.91);
  border: 1px solid rgba(94, 198, 184, 0.32);
  border-radius: 7px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.tour-bar[hidden] {
  display: none;
}

.tour-bar button {
  height: 36px;
  color: var(--mist);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.tour-bar button:hover {
  color: var(--sea);
}

.tour-bar span {
  display: grid;
  padding: 0 9px;
}

.tour-bar small {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.tour-bar b {
  color: var(--mist);
  font-size: 10px;
  font-weight: 600;
}

.tour-bar .tour-close {
  color: var(--slate);
  border-color: transparent;
}

.notes-drawer {
  position: fixed;
  z-index: 500;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto auto minmax(240px, 1fr) auto auto auto;
  width: min(470px, 94vw);
  padding: 24px;
  background: rgba(12, 17, 18, 0.98);
  border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.48);
  transform: translateX(104%);
  transition: transform 220ms cubic-bezier(0.2, 0.72, 0.25, 1);
}

.notes-drawer.open {
  transform: translateX(0);
}

.notes-drawer > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.notes-drawer h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 450;
}

.notes-drawer > header button {
  width: 34px;
  height: 34px;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.notes-chapter {
  display: grid;
  gap: 6px;
  margin: 24px 0 12px;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.notes-chapter select {
  height: 40px;
  padding: 0 10px;
  color: var(--mist);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
}

#notesText {
  width: 100%;
  min-height: 260px;
  resize: none;
  padding: 17px;
  color: var(--bone);
  background:
    linear-gradient(rgba(242, 238, 230, 0.055) 1px, transparent 1px),
    rgba(8, 11, 12, 0.42);
  background-size: 100% 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 30px;
}

#notesText:focus {
  border-color: rgba(94, 198, 184, 0.4);
}

.notes-save {
  margin: 9px 0 0;
  color: var(--slate);
  font-size: 9px;
}

.notes-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.notes-tools button {
  min-height: 38px;
  color: var(--mist);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
}

.notes-tools button:hover {
  border-color: rgba(94, 198, 184, 0.4);
}

.notes-map {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 18px;
}

.notes-map button {
  height: 6px;
  padding: 0;
  background: var(--graphite);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.notes-map button.has-note {
  background: var(--copper);
}

.drawer-scrim {
  position: fixed;
  z-index: 490;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(2px);
}

.drawer-scrim[hidden] {
  display: none;
}

.search-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 36px));
  padding: 0;
  color: var(--bone);
  background: rgba(12, 17, 18, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(24px);
}

.search-dialog::backdrop {
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(3px);
}

.search-dialog form > header,
.search-dialog form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 15px;
  color: var(--slate);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-dialog form > header button {
  color: var(--slate);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
}

.search-dialog label {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
}

.search-dialog label svg {
  width: 19px;
  height: 19px;
  color: var(--sea);
}

.search-dialog input {
  flex: 1;
  height: 62px;
  color: var(--bone);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--serif);
  font-size: 19px;
}

.search-dialog input::placeholder {
  color: var(--slate);
}

.search-results {
  max-height: 450px;
  overflow: auto;
  padding: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 10px;
  color: var(--mist);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.search-result:hover,
.search-result.active {
  background: var(--sea-dim);
}

.search-result > span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--sea);
  border: 1px solid rgba(94, 198, 184, 0.28);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 8px;
}

.search-result b {
  display: block;
  font-size: 12px;
  font-weight: 620;
}

.search-result small {
  display: block;
  margin-top: 2px;
  color: var(--slate);
  font-size: 9px;
}

.search-result > i {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
}

.search-empty {
  padding: 34px 18px;
  color: var(--slate);
  text-align: center;
  font-family: var(--serif);
}

.search-dialog form > footer {
  justify-content: flex-start;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.toast {
  position: fixed;
  z-index: 900;
  right: 18px;
  bottom: 18px;
  max-width: min(390px, calc(100vw - 36px));
  padding: 11px 14px;
  color: var(--mist);
  background: rgba(12, 17, 18, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fieldBreath {
  0%, 100% { transform: scale(0.975); }
  50% { transform: scale(1.015); }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -80; }
}

@media (max-width: 1180px) {
  .progress-rail { display: none; }
  .chapter-dot {
    justify-content: center;
    width: 31px;
    padding: 0;
    border-radius: 50%;
  }
  .chapter-dot b { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.65fr); }
  .loop-layout { grid-template-columns: 1fr; }
  .loop-inspector { display: grid; grid-template-columns: 0.7fr 1fr; gap: 24px; }
  .loop-inspector .inspector-facts { margin-top: 0; }
  .truth-separation { grid-column: 1 / -1; }
  .audio-bench article { grid-template-columns: 1fr; }
  audio { width: 100%; }
}

@media (max-width: 920px) {
  :root { --page-pad: clamp(18px, 4vw, 34px); }
  .site-header { grid-template-columns: 1fr auto; }
  .chapter-nav { display: none; }
  .brand-sub { display: none; }
  .header-action span { display: none; }
  .hero-grid,
  .split-heading,
  .sonic-lab,
  .authority-layout,
  .truth-inspector,
  .claim-deck {
    grid-template-columns: 1fr;
  }
  .hero-grid { min-height: 0; }
  .aperture-figure { width: min(100%, 520px); }
  .status-ribbon { grid-template-columns: 1fr 1fr; }
  .status-ribbon > div:nth-child(2) { border-right: 0; }
  .status-ribbon > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .loop-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    min-height: 0;
    padding: 8px 0;
    overflow: visible;
    background: linear-gradient(rgba(242, 238, 230, 0.022) 1px, transparent 1px);
    background-size: 100% 44px;
  }
  .loop-edges,
  .loop-core { display: none; }
  .loop-node,
  .loop-node:hover,
  .loop-node.active {
    position: static;
    width: 100%;
    min-height: 84px;
    transform: none;
  }
  .loop-node:hover,
  .loop-node.active { transform: translateY(-2px); }
  .loop-node.outer-node { grid-column: 1 / -1; }
  .loop-inspector { display: block; }
  .loop-inspector .inspector-facts { margin-top: 24px; }
  .reality-switcher { grid-template-columns: repeat(5, minmax(118px, 1fr)); overflow-x: auto; }
  .reality-row { grid-template-columns: 46px 1fr; }
  .row-evidence { grid-column: 2; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .sonic-visual-wrap { min-height: 480px; }
  #sonicCanvas { min-height: 480px; }
  .resolve-study > header { grid-template-columns: 1fr; gap: 18px; }
  .resolve-track { grid-template-columns: repeat(3, 1fr); }
  .resolve-step:nth-child(3) { border-right: 0; }
  .resolve-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .audio-bench { grid-template-columns: 1fr; }
  .truth-lanes { grid-template-columns: 1fr 1fr; }
  .truth-lane:nth-child(2) { border-right: 0; }
  .truth-lane:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .truth-inspector > div:not(:first-child) { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .claim-deck { gap: 22px; }
  .source-footer { grid-template-columns: 1fr; }
  .source-footer nav { justify-content: flex-start; }
}

@media (max-width: 620px) {
  :root { --header-h: 62px; }
  body::before { background-size: 34px 34px; }
  .brand-lockup img { width: 31px; height: 31px; }
  .header-actions { gap: 5px; }
  .header-action { width: 34px; padding: 0; justify-content: center; }
  .header-action i { position: absolute; top: 13px; right: 13px; min-width: 13px; height: 13px; font-size: 7px; }
  .chapter { min-height: auto; padding-top: calc(var(--header-h) + 62px); padding-bottom: 76px; }
  .chapter::before { top: calc(var(--header-h) + 12px); font-size: 76px; }
  .chapter h1 { font-size: clamp(44px, 13vw, 62px); }
  .chapter h2 { font-size: clamp(34px, 10vw, 48px); }
  .hero-thesis { font-size: 16px; }
  .hero-actions { align-items: stretch; }
  .primary-action, .quiet-action { flex: 1 1 100%; }
  .aperture-figure { margin-top: 28px; }
  .field-label { display: none; }
  .status-ribbon { grid-template-columns: 1fr; margin-top: 24px; }
  .status-ribbon > div { min-height: 70px; border-right: 0; border-bottom: 1px solid var(--line); }
  .status-ribbon > div:last-child { border-bottom: 0; }
  .reality-row { grid-template-columns: 38px 1fr; gap: 12px; }
  .reality-mark { width: 34px; height: 34px; font-size: 14px; }
  .sonic-readout { grid-template-columns: 1fr 1fr; }
  .sonic-readout > div:nth-child(2) { border-right: 0; }
  .sonic-readout > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .resolve-track { grid-template-columns: 1fr 1fr; }
  .resolve-step:nth-child(3) { border-right: 1px solid var(--line); }
  .resolve-step:nth-child(2n) { border-right: 0; }
  .resolve-step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .authority-step { grid-template-columns: 54px 1fr; }
  .authority-step > i { display: none; }
  .authority-step b { font-size: 19px; }
  .include-exclude { grid-template-columns: 1fr; }
  .truth-lanes { grid-template-columns: 1fr; }
  .truth-lane { border-right: 0; border-bottom: 1px solid var(--line); min-height: 86px; }
  .truth-lane:nth-child(2) { border-right: 0; }
  .tightening-list article { grid-template-columns: 32px 1fr; }
  .tension-state { grid-column: 2; justify-self: start; }
  .desk-actions > span { margin-left: 0; }
  .source-footer nav { display: grid; }
  .tour-bar { left: 12px; right: 12px; width: auto; transform: none; }
  .notes-drawer { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .progress-rail,
  .tour-bar,
  .notes-drawer,
  .drawer-scrim,
  .search-dialog,
  .toast,
  .hero-actions,
  audio {
    display: none !important;
  }
  body { color: #111; background: #fff; }
  body::before, body::after { display: none; }
  .chapter { display: block; min-height: 0; color: #111; border-color: #ccc; page-break-inside: avoid; }
  .chapter h1, .chapter h2, .chapter h3, .chapter p, .chapter span, .chapter b { color: #111 !important; }
}
