:root {
  --bg: #f8fbfc;
  --bg-soft: #eef6f9;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(240, 248, 251, 0.94);
  --line: rgba(16, 56, 72, 0.11);
  --line-strong: rgba(16, 56, 72, 0.21);
  --text: #102f3c;
  --muted: #55717d;
  --faint: #7d939d;
  --accent: #16B8F3;
  --accent-strong: #5BC2E7;
  --accent-deep: #0E8BD8;
  --accent-ink: #087da9;
  --accent-soft: rgba(22, 184, 243, 0.12);
  --lineage: #b97813;
  --danger: #c65353;
  --radius: 14px;
  --maxw: 1320px;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 78% 8%, rgba(22, 184, 243, 0.1), transparent 28%),
    radial-gradient(circle at 12% 34%, rgba(22, 184, 243, 0.045), transparent 22%);
}

::selection { background: var(--accent); color: #041823; }

a { color: var(--accent-ink); text-decoration: none; }

button { font-family: inherit; }

/* ---------- Atmosphere layers ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.flow-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
}

.hero,
.section,
.site-footer { position: relative; z-index: 2; }

.cursor-glow {
  display: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  background: linear-gradient(90deg, var(--accent), #5a9eff);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0.85;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent);
  color: #041823;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(248, 251, 252, 0.94), rgba(248, 251, 252, 0));
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-nav.is-scrolled {
  background: rgba(248, 251, 252, 0.84);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.96rem;
}
.site-nav nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.site-nav nav a {
  color: var(--muted);
  font-size: 0.88rem;
  position: relative;
  padding: 4px 0;
}
.site-nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.site-nav nav a:hover { color: var(--text); }
.site-nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px clamp(24px, 5vw, 64px) 80px;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 14% clamp(24px, 5vw, 64px) 8%;
  pointer-events: none;
  border-left: 1px solid rgba(22, 184, 243, 0.14);
  border-bottom: 1px solid rgba(22, 184, 243, 0.1);
  -webkit-mask-image: linear-gradient(135deg, #000 0 42%, transparent 78%);
  mask-image: linear-gradient(135deg, #000 0 42%, transparent 78%);
}

.hero::after {
  content: "L / 00\A CONNECTION FIELD";
  white-space: pre;
  position: absolute;
  right: clamp(24px, 5vw, 64px);
  top: 118px;
  color: var(--faint);
  font: 0.58rem/1.65 var(--font-mono);
  letter-spacing: 0.16em;
  text-align: right;
}

.hero-copy {
  position: relative;
  isolation: isolate;
  z-index: 2;
  width: 100%;
}
.hero-copy > :not(.hero-visual) {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--accent-ink);
  margin: 0 0 clamp(28px, 5vh, 52px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 6.2vw, 5.25rem);
  line-height: 1.1;
  font-weight: 680;
  letter-spacing: -0.06em;
}
.hero h1 .accent { color: var(--accent); }

.mask-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  white-space: nowrap;
}
.mask-line > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js body.is-loaded .mask-line > span { transform: translateY(0); }

.subtitle {
  margin: clamp(28px, 5vh, 44px) 0 0;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: var(--muted);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(34px, 6vh, 54px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 550;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary {
  background: var(--accent);
  color: #073245;
  box-shadow: 5px 5px 0 rgba(16, 56, 72, 0.1);
}
.btn-primary:hover {
  background: #5BC2E7;
  box-shadow: 7px 7px 0 rgba(16, 56, 72, 0.12);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.hero-boundary {
  margin-top: clamp(30px, 6vh, 54px);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* Connection graph visual */
.hero-visual {
  position: absolute;
  bottom: 0;
  right: -7%;
  aspect-ratio: 38 / 25;
  width: min(62vw, 820px);
  z-index: 0;
  display: grid;
  place-items: center;
  opacity: 0.28;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.34) 14%, #000 36%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.34) 14%, #000 36%);
}
.hero-visual::before,
.hero-visual::after {
  display: none;
}
.hero-graph {
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0.46;
}
.constellation-aura path {
  stroke: rgba(14, 139, 216, 0.065);
  stroke-width: 1;
  stroke-dasharray: 2 9;
  vector-effect: non-scaling-stroke;
}
.hero-edges path {
  stroke: rgba(14, 139, 216, 0.2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hero-edges .hero-edge-unverified {
  stroke: rgba(185, 120, 19, 0.2);
  stroke-dasharray: 4 7;
}
.tree-node .tree-halo {
  fill: rgba(22, 184, 243, 0.025);
  stroke: rgba(22, 184, 243, 0.1);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.tree-node .tree-ring {
  fill: #f8fbfc;
  stroke: rgba(14, 139, 216, 0.52);
  stroke-width: 1;
}
.tree-node .tree-dot {
  fill: var(--accent);
  stroke: none;
}
.tree-node-major .tree-halo,
.tree-node-root .tree-halo {
  stroke: rgba(22, 184, 243, 0.2);
}
.tree-node-amber .tree-ring {
  stroke: rgba(185, 120, 19, 0.65);
}
.tree-node-amber .tree-dot {
  fill: var(--lineage);
}
.tree-node-root rect {
  fill: var(--accent);
}
.tree-core .tree-core-orbit {
  fill: rgba(22, 184, 243, 0.035);
  stroke: rgba(22, 184, 243, 0.2);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.tree-core polygon {
  fill: rgba(22, 184, 243, 0.07);
  stroke: rgba(14, 139, 216, 0.34);
  stroke-width: 1;
  filter: none;
}
.tree-core > circle:not(.tree-core-orbit) {
  fill: rgba(248, 251, 252, 0.82);
}
.tree-core > path {
  stroke: rgba(7, 50, 69, 0.55);
  stroke-width: 1;
}
.tree-core polygon,
.tree-node-major .tree-dot,
.tree-node-root rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-breathe 4.2s ease-in-out infinite;
}
.hero-node-labels text {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  fill: rgba(16, 56, 72, 0.38);
}
.hero-node-labels .tree-core-label {
  fill: var(--accent-ink);
  font-weight: 700;
}
.hero-pulse path {
  stroke: var(--accent);
  stroke-width: 1.1;
  stroke-opacity: 0.42;
  stroke-linecap: round;
  stroke-dasharray: 3 12;
  animation: hero-pulse-move 3.2s linear infinite;
}
.hero-pulse path.p1 { animation-duration: 4.4s; }
.hero-pulse path.p2 { animation-duration: 6.4s; animation-delay: -2.2s; }
.hero-pulse path.p3 { animation-duration: 5.4s; animation-delay: -3.6s; }
.hero-pulse path.p4 { animation-duration: 7.2s; animation-delay: -4.8s; }
@keyframes node-breathe {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.14); opacity: 0.9; }
}
@keyframes hero-pulse-move { to { stroke-dashoffset: -15; } }
/* ---------- Sections ---------- */

.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(110px, 18vh, 190px) clamp(24px, 5vw, 64px);
  overflow: clip;
}

.section-ghost::before {
  content: attr(data-ghost);
  position: absolute;
  top: clamp(20px, 5vh, 60px);
  right: clamp(0px, 2vw, 30px);
  z-index: 0;
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(16, 56, 72, 0.055);
  user-select: none;
  pointer-events: none;
}

.section-head {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(48px, 8vh, 84px);
  max-width: 760px;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--accent-ink);
  margin: 0 0 18px;
}
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 640;
}
.section-lead { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* Reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].mask-line {
  opacity: 1;
  transform: none;
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Cards ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.5vw, 38px);
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 50px -42px rgba(16, 56, 72, 0.5);
}
.card > * { position: relative; z-index: 1; }
.card::marker { color: var(--accent); }
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  left: auto;
  right: 0;
  width: 34px;
  height: 34px;
  opacity: 0.72;
  background: linear-gradient(225deg, rgba(22, 184, 243, 0.16) 0 49%, transparent 50%);
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 184, 243, 0.32);
}
.card:hover::after { opacity: 0.9; animation: card-flow 1.6s linear infinite; }
@keyframes card-flow {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* A hovered surface becomes an endpoint in the shared connection field. */
.probe-surface {
  isolation: isolate;
}
.probe-surface::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: -1px;
  width: auto;
  height: auto;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    150px circle at var(--probe-x, 50%) var(--probe-y, 50%),
    rgba(22, 184, 243, 0.96) 0,
    rgba(22, 184, 243, 0.38) 34%,
    transparent 72%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 180ms ease;
}
.probe-surface.is-probed::after {
  opacity: 1;
  animation: none;
}
.probe-surface.is-probed {
  border-color: rgba(22, 184, 243, 0.26);
}
.card h3 { margin: 0 0 10px; font-size: 1.12rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.value-close {
  position: relative;
  z-index: 1;
  margin: clamp(48px, 8vh, 84px) 0 0;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  color: var(--text);
  max-width: 680px;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}

/* ---------- Value ledger ---------- */

.value-ledger {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid rgba(22, 184, 243, 0.34);
}
.value-ledger::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 63px;
  width: 1px;
  background: linear-gradient(rgba(22, 184, 243, 0.08), rgba(22, 184, 243, 0.42), rgba(22, 184, 243, 0.08));
}
.value-entry {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(260px, 0.92fr) minmax(380px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  min-height: 190px;
  padding: 38px 24px 38px 18px;
  border-bottom: 1px solid var(--line);
}
.value-number {
  position: relative;
  z-index: 1;
  align-self: start;
  width: 48px;
  padding: 7px 0;
  background: var(--bg);
  color: var(--faint);
  font: 0.62rem/1 var(--font-mono);
  letter-spacing: 0.14em;
}
.value-number::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 0;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}
.value-statement { min-width: 0; }
.value-audience {
  display: block;
  margin-bottom: 15px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
}
.value-statement h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(1.35rem, 2.45vw, 2rem);
  font-weight: 590;
  line-height: 1.3;
  letter-spacing: -0.035em;
}
.value-statement h3 em {
  color: var(--accent-ink);
  font-style: normal;
  font-weight: inherit;
}
.value-evidence {
  min-width: 0;
  padding-left: clamp(22px, 3vw, 38px);
  border-left: 1px solid rgba(16, 56, 72, 0.12);
}
.value-evidence > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.value-signal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  min-height: 28px;
  color: var(--faint);
  font: 0.64rem/1.35 var(--font-mono);
  letter-spacing: 0.035em;
}
.value-route { flex-wrap: nowrap; }
.value-route span { color: var(--text); white-space: nowrap; }
.value-route i {
  flex: 1;
  min-width: 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(22, 184, 243, 0.6), rgba(22, 184, 243, 0.12));
}
.value-diagnostic span {
  padding-left: 9px;
  border-left: 1px solid rgba(22, 184, 243, 0.32);
  color: var(--muted);
}
.value-denominator span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.value-denominator i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.value-denominator span:nth-child(2) i { background: var(--accent); }
.value-denominator span:nth-child(3) i { border-color: var(--lineage); }
.value-controls span {
  padding: 5px 9px;
  border: 1px solid rgba(22, 184, 243, 0.22);
  color: var(--accent-ink);
}

/* ---------- Why / broken chain ---------- */

.inequality {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 0 clamp(48px, 8vh, 72px);
}
.ineq-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.inequality-note {
  margin: 0;
  max-width: 720px;
  text-align: center;
  color: var(--faint);
  font-size: 0.86rem;
  line-height: 1.7;
}
.ineq-node {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.ineq-node.ok { color: var(--accent); border-color: rgba(22, 184, 243, 0.45); }
.ineq-node.warn { color: var(--lineage); border-color: rgba(232, 184, 92, 0.45); }
.ineq-node.fail { color: var(--danger); border-color: rgba(242, 125, 125, 0.45); }
.ineq-link {
  position: relative;
  width: clamp(42px, 7vw, 84px);
  height: 2px;
}
.ineq-link.ok {
  background: linear-gradient(90deg, var(--accent), rgba(22, 184, 243, 0.25));
}
.ineq-link.ok::after {
  content: "可验证";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}
.ineq-link.broken {
  background: repeating-linear-gradient(90deg, rgba(242, 125, 125, 0.7) 0 4px, transparent 4px 9px);
}
.ineq-link.broken::after {
  content: "≠";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--danger);
  background: var(--bg);
  padding: 0 6px;
}

.why-chain {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(48px, 8vh, 72px);
  padding: 18px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chain-node {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--panel);
  white-space: nowrap;
}
.chain-link {
  position: relative;
  width: clamp(16px, 2.4vw, 30px);
  height: 1px;
  background: linear-gradient(90deg, rgba(22, 184, 243, 0.5), rgba(22, 184, 243, 0.12));
  overflow: visible;
}
.chain-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: chain-pulse 2.6s linear infinite;
  animation-delay: calc(var(--i, 0) * 0.18s);
}
.why-chain .chain-link:nth-of-type(2n) { --i: 2; }
.why-chain .chain-link:nth-of-type(2n+1) { --i: 0; }
@keyframes chain-pulse {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 4px); opacity: 0; }
}

.fault-map {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 0;
}
.fault-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  overflow: hidden;
  background: linear-gradient(transparent, rgba(22, 184, 243, 0.2) 7%, rgba(22, 184, 243, 0.2) 93%, transparent);
}
.fault-spine i {
  position: absolute;
  top: -80px;
  left: 0;
  width: 1px;
  height: 80px;
  background: linear-gradient(transparent, var(--accent));
  box-shadow: 0 0 10px rgba(22, 184, 243, 0.55);
  animation: fault-spine-scan 4.8s linear infinite;
}
@keyframes fault-spine-scan { to { transform: translateY(1050px); } }

.fault-node {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: center;
  min-height: 224px;
  border-top: 1px solid rgba(16, 56, 72, 0.075);
}
.fault-node:last-child { border-bottom: 1px solid rgba(16, 56, 72, 0.075); }
.fault-node::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(22, 184, 243, 0.035), transparent);
  transition: opacity 400ms ease;
}
.fault-node:hover::before { opacity: 1; }
.fault-copy {
  position: relative;
  z-index: 2;
  max-width: 440px;
  padding: 30px clamp(18px, 4vw, 54px) 30px 0;
}
.fault-reverse .fault-copy {
  grid-column: 3;
  padding: 30px 0 30px clamp(18px, 4vw, 54px);
}
.fault-code {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-ink);
  font: 0.62rem/1.2 var(--font-mono);
  letter-spacing: 0.17em;
}
.fault-copy h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.fault-copy > p {
  margin: 0;
  max-width: 390px;
  color: var(--muted);
  font-size: 0.9rem;
}
.fault-junction {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  justify-self: center;
  border: 1px solid rgba(22, 184, 243, 0.22);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 8px rgba(248, 251, 252, 0.82);
  transition: border-color 350ms ease, box-shadow 350ms ease;
}
.fault-junction::before,
.fault-junction::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.fault-junction::before {
  inset: 8px;
  border: 1px dashed rgba(22, 184, 243, 0.32);
}
.fault-junction::after {
  width: 5px;
  height: 5px;
  background: var(--accent);
}
.fault-junction::before { transform: scale(1); }
.fault-junction span {
  position: absolute;
  top: -22px;
  color: var(--faint);
  font: 0.58rem/1 var(--font-mono);
  letter-spacing: 0.08em;
}
.fault-node:hover .fault-junction {
  border-color: rgba(22, 184, 243, 0.58);
  box-shadow: 0 0 0 8px rgba(248, 251, 252, 0.9);
}
.fault-rule:hover .fault-junction,
.fault-absorb:hover .fault-junction {
  border-color: rgba(185, 120, 19, 0.58);
  box-shadow: 0 0 0 8px rgba(248, 251, 252, 0.9);
}
.fault-rule .fault-junction::after,
.fault-absorb .fault-junction::after { background: var(--lineage); }

.fault-visual {
  position: relative;
  z-index: 2;
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: auto minmax(65px, 1fr) 54px auto;
  align-items: center;
  gap: 9px;
  padding: 30px 0 30px clamp(18px, 4vw, 54px);
  color: var(--faint);
  font: 0.62rem/1.4 var(--font-mono);
  letter-spacing: 0.04em;
}
.fault-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -46px;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(22, 184, 243, 0.34), rgba(22, 184, 243, 0.08));
  transform-origin: left;
  transition: transform 650ms var(--ease-out), background 350ms ease;
}
.fault-reverse .fault-visual {
  grid-column: 1;
  padding: 30px clamp(18px, 4vw, 54px) 30px 0;
}
.fault-reverse .fault-visual::before {
  left: auto;
  right: -46px;
  background: linear-gradient(90deg, rgba(22, 184, 243, 0.08), rgba(22, 184, 243, 0.34));
  transform-origin: right;
}
.fault-node:hover .fault-visual::before {
  transform: scaleX(1.18);
  background: var(--accent);
}
.fault-explain {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 56, 72, 0.09);
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.75;
  letter-spacing: 0;
}
.fault-input,
.fault-output { white-space: nowrap; transition: color 300ms ease, opacity 300ms ease; }
.fault-output { color: var(--muted); }
.fault-channel {
  position: relative;
  height: 24px;
}
.fault-channel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(22, 184, 243, 0.55), rgba(22, 184, 243, 0.12));
}
.fault-channel i {
  position: absolute;
  top: calc(50% - 2px);
  left: calc(var(--x, 12%) - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.62;
  transition: transform 700ms var(--ease-out), opacity 500ms ease;
}
.fault-channel i:nth-child(2) { --x: 34%; }
.fault-channel i:nth-child(3) { --x: 56%; }
.fault-channel i:nth-child(4) { --x: 78%; }
.fault-channel i:nth-child(5) { --x: 25%; top: 3px; }
.fault-channel i:nth-child(6) { --x: 65%; top: 17px; }
.fault-event {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px dashed rgba(185, 120, 19, 0.42);
  border-radius: 50%;
  color: var(--lineage);
  font-size: 0.58rem;
  transition: background 350ms ease, border-color 350ms ease;
}
.fault-node:hover .fault-event {
  background: rgba(185, 120, 19, 0.035);
  animation: fault-event-glow 1.25s ease-in-out infinite;
}
@keyframes fault-event-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185, 120, 19, 0); }
  50% { box-shadow: 0 0 0 5px rgba(185, 120, 19, 0.08), 0 0 20px rgba(185, 120, 19, 0.34); }
}
.fault-compress:hover .fault-channel i:nth-child(-n+3) { transform: translateX(30px); }
.fault-compress:hover .fault-channel i:nth-child(n+3) { opacity: 0; transform: scale(0); }
.fault-rule .fault-channel::before {
  background: linear-gradient(90deg, rgba(22, 184, 243, 0.55) 0 43%, transparent 43% 57%, rgba(198, 83, 83, 0.34) 57% 100%);
}
.fault-rule .fault-event { border-color: rgba(198, 83, 83, 0.45); color: var(--danger); }
.fault-rule:hover .fault-event {
  background: rgba(198, 83, 83, 0.035);
  animation-name: fault-event-glow-danger;
}
@keyframes fault-event-glow-danger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 83, 83, 0); }
  50% { box-shadow: 0 0 0 5px rgba(198, 83, 83, 0.08), 0 0 20px rgba(198, 83, 83, 0.34); }
}
.fault-rule:hover .fault-channel i { transform: translateX(42px); opacity: 0; }
.fault-noise .fault-channel::before {
  background: repeating-linear-gradient(90deg, rgba(185, 120, 19, 0.32) 0 3px, transparent 3px 7px);
}
.fault-noise:hover .fault-channel i:nth-child(odd) { transform: translateY(-10px) scale(1.5); }
.fault-noise:hover .fault-channel i:nth-child(even) { transform: translateY(10px) scale(0.7); }
.fault-noise .fault-output { opacity: 0.45; }
.fault-absorb .fault-output { opacity: 0.28; }
.fault-absorb .fault-channel::before {
  background: linear-gradient(90deg, rgba(22, 184, 243, 0.55), transparent 82%);
}
.fault-absorb:hover .fault-channel i { transform: translateX(22px); opacity: 0.12; }
.fault-node:hover .fault-input { color: var(--text); }

.js .fault-map[data-reveal] .fault-node {
  opacity: 0;
  transform: translateY(24px);
}
.js .fault-map[data-reveal].is-revealed .fault-node {
  animation: fault-row-in 780ms var(--ease-out) forwards;
  animation-delay: calc(var(--fault-i, 0) * 110ms);
}
.fault-node:nth-of-type(2) { --fault-i: 1; }
.fault-node:nth-of-type(3) { --fault-i: 2; }
.fault-node:nth-of-type(4) { --fault-i: 3; }
@keyframes fault-row-in {
  to { opacity: 1; transform: translateY(0); }
}
.why-resolution {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 76px) 0 0;
  border-top: 1px solid rgba(22, 184, 243, 0.36);
  background: transparent;
}
.why-resolution::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(22, 184, 243, 0.42), transparent);
}
.resolution-label {
  position: relative;
  display: block;
  width: max-content;
  margin: 0 auto 18px;
  color: var(--accent-ink);
  font: 0.65rem/1.2 var(--font-mono);
  letter-spacing: 0.18em;
}
.why-resolution > p {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  line-height: 1.55;
  letter-spacing: -0.025em;
  text-align: center;
}

/* ---------- Runtime architecture ---------- */

.runtime-architecture {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 28px;
  overflow: hidden;
  border-top: 1px solid rgba(22, 184, 243, 0.3);
  border-bottom: 1px solid rgba(16, 56, 72, 0.14);
  background:
    radial-gradient(circle at 50% 24%, rgba(22, 184, 243, 0.065), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(240, 248, 251, 0.28));
  box-shadow: 0 34px 90px -78px rgba(16, 56, 72, 0.75);
}
.architecture-console {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font: 0.58rem/1.2 var(--font-mono);
  letter-spacing: 0.13em;
}
.architecture-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-ink);
}
.architecture-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(22, 184, 243, 0.09);
}
.architecture-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 260px 370px 170px;
  min-height: 800px;
  padding: 24px 28px 0;
  isolation: isolate;
}
.architecture-links {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.architecture-links marker path { fill: rgba(22, 184, 243, 0.5); }
.architecture-link {
  fill: none;
  stroke: rgba(22, 184, 243, 0.24);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  marker-end: url(#architecture-arrow);
  transition: stroke 320ms ease, stroke-width 320ms ease, opacity 320ms ease, filter 320ms ease;
}
.architecture-link-return { stroke: rgba(185, 120, 19, 0.24); }
.architecture-observe-link {
  stroke: rgba(16, 56, 72, 0.14);
  stroke-dasharray: 2 7;
  marker-end: none;
}
.architecture-link.is-active {
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 7 9;
  filter: drop-shadow(0 0 4px rgba(22, 184, 243, 0.42));
  animation: architecture-signal 1.1s linear infinite;
}
.architecture-observe-link.is-active { stroke: var(--lineage); }
@keyframes architecture-signal { to { stroke-dashoffset: -32; } }

.architecture-zone {
  position: relative;
  z-index: 2;
  align-self: stretch;
  margin: 16px 12px;
  padding: 24px 22px 22px;
  overflow: hidden;
  border-top: 1px solid rgba(22, 184, 243, 0.3);
  border-left: 1px solid rgba(16, 56, 72, 0.1);
  background: rgba(248, 251, 252, 0.88);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: opacity 320ms ease, border-color 320ms ease, background 320ms ease, box-shadow 320ms ease;
}
.architecture-zone::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(22, 184, 243, 0.24);
  transform: rotate(-45deg) translate(-5px, -7px);
  transform-origin: center;
}
.architecture-zone:hover,
.architecture-zone:focus-visible,
.architecture-zone.is-active {
  outline: none;
  border-top-color: var(--accent);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 52px -44px rgba(14, 139, 216, 0.62);
}
.architecture-map.has-active .architecture-zone:not(.is-active):not(.is-connected) { opacity: 0.38; }
.architecture-map.has-active .architecture-zone.is-connected { opacity: 0.74; }
.architecture-ingress { grid-column: 1 / 4; grid-row: 1; }
.architecture-core {
  grid-column: 5 / 9;
  grid-row: 1 / 3;
  margin: 0 18px 18px;
  padding: 34px 30px 28px;
  border: 1px solid rgba(22, 184, 243, 0.25);
  background: rgba(255, 255, 255, 0.9);
}
.architecture-delivery { grid-column: 10 / 13; grid-row: 1; }
.architecture-recall { grid-column: 1 / 5; grid-row: 2; margin: 38px 26px 24px 0; }
.architecture-memory { grid-column: 9 / 13; grid-row: 2; margin: 38px 0 24px 26px; }
.architecture-observe {
  grid-column: 1 / 13;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1.6fr;
  align-items: center;
  gap: 28px;
  margin: 18px 0 0;
  padding: 24px 28px;
  border-top-color: rgba(185, 120, 19, 0.36);
  background: rgba(246, 250, 251, 0.94);
}
.architecture-index {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-ink);
  font: 0.59rem/1.2 var(--font-mono);
  letter-spacing: 0.16em;
}
.architecture-zone h3 {
  position: relative;
  margin: 0 0 9px;
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.architecture-zone > p,
.architecture-observe-copy p {
  position: relative;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}
.architecture-modules {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--text);
  font: 0.68rem/1.4 var(--font-mono);
}
.architecture-modules span {
  position: relative;
  padding-left: 10px;
}
.architecture-modules span::before {
  content: "";
  position: absolute;
  top: 0.57em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--accent);
  transform: rotate(45deg);
}
.architecture-events {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font: 0.56rem/1.35 var(--font-mono);
}
.architecture-events span::before {
  content: "↳ ";
  color: var(--accent-ink);
  opacity: 0.72;
}
.architecture-core-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 158px;
  height: 158px;
  margin: 4px auto 28px;
  color: var(--accent-ink);
  font: 0.58rem/1.45 var(--font-mono);
  letter-spacing: 0.13em;
  text-align: center;
}
.architecture-core-mark i {
  position: absolute;
  border: 1px solid rgba(22, 184, 243, 0.22);
  transform: rotate(45deg);
  transition: border-color 320ms ease, transform 650ms var(--ease-out);
}
.architecture-core-mark i:nth-child(1) { inset: 12px; }
.architecture-core-mark i:nth-child(2) { inset: 34px; border-style: dashed; }
.architecture-core-mark i:nth-child(3) { inset: 55px; background: rgba(22, 184, 243, 0.055); }
.architecture-core.is-active .architecture-core-mark i,
.architecture-core:hover .architecture-core-mark i { border-color: rgba(22, 184, 243, 0.58); }
.architecture-core.is-active .architecture-core-mark i:nth-child(1),
.architecture-core:hover .architecture-core-mark i:nth-child(1) { transform: rotate(135deg); }
.architecture-core-mark span { position: relative; z-index: 1; }
.architecture-observe .architecture-index { color: var(--lineage); }
.architecture-observe .architecture-modules span::before { background: var(--lineage); }
.architecture-observe .architecture-events { margin: 0; padding: 0; border: 0; }

/* ---------- Trace ---------- */

.badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel);
}
.badge.source-reconstructed { color: var(--lineage); border-color: rgba(232, 184, 92, 0.4); }

.trace-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr) 62px;
  height: clamp(570px, 72vh, 720px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 34px 90px -52px rgba(16, 56, 72, 0.52);
}

.app-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(240, 246, 248, 0.88);
}
.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(16, 56, 72, 0.16);
}
.window-close { background: #ff605c; }
.window-minimize { background: #ffbd44; }
.window-expand { background: #00ca4e; }

.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.chat-window {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 5vw, 60px) clamp(20px, 6vw, 88px);
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 56, 72, 0.18) transparent;
  scroll-behavior: smooth;
}
.chat-window::-webkit-scrollbar { width: 7px; }
.chat-window::-webkit-scrollbar-track { background: transparent; }
.chat-window::-webkit-scrollbar-thumb {
  background: rgba(16, 56, 72, 0.14);
  border-radius: 999px;
}
.chat-bubbles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 82%;
}
.chat-message.user { align-self: flex-end; justify-content: flex-end; }
.chat-message.agent { align-self: flex-start; }
.chat-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
}
.chat-avatar.agent {
  color: var(--accent-ink);
  background: rgba(22, 184, 243, 0.08);
  border-color: rgba(22, 184, 243, 0.2);
  border-radius: 9px;
}
.chat-avatar svg { width: 17px; height: 17px; }

.chat-bubble {
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.chat-bubble.is-in { opacity: 1; transform: none; }
.chat-bubble.user {
  background: rgba(22, 184, 243, 0.1);
  border: 1px solid rgba(22, 184, 243, 0.32);
  border-bottom-right-radius: 4px;
}
.chat-bubble.agent {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.bubble-meta {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--faint);
}

.chat-bubble.system {
  align-self: stretch;
  max-width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}
.trace-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  position: relative;
}
.chat-message.is-new,
.trace-step.is-new,
.trace-processing.is-new {
  animation: trace-entry 580ms var(--ease-out) both;
}
@keyframes trace-entry {
  from { opacity: 0; transform: translateY(14px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.trace-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 31px;
  bottom: -17px;
  width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
}
.trace-step-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
}
.trace-step-icon svg {
  width: 18px;
  height: 18px;
}
.trace-step.is-warn .trace-step-icon {
  color: var(--lineage);
}
.trace-step-content {
  display: grid;
  min-width: 0;
}
.system-step {
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}
.trace-step-detail { color: var(--muted); }
.chat-bubble.system.is-warn .system-step { color: var(--lineage); }
.system-meta {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--faint);
}
.system-chips {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}
.memory-line {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--muted);
}
.memory-line b { font-weight: 500; color: var(--muted); }
.memory-symbol { color: var(--accent-ink); text-align: center; }
.memory-line.rejected { opacity: 0.42; }
.memory-line.rejected b { text-decoration: line-through; }

.trace-processing {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding-left: 4px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.processing-spinner {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(22, 184, 243, 0.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: processing-spin 850ms linear infinite;
}
.processing-dots { display: inline-flex; align-items: center; gap: 3px; }
.processing-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-ink);
  animation: processing-dot 1.1s ease-in-out infinite;
}
.processing-dots i:nth-child(2) { animation-delay: 120ms; }
.processing-dots i:nth-child(3) { animation-delay: 240ms; }
@keyframes processing-spin { to { transform: rotate(360deg); } }
@keyframes processing-dot {
  0%, 70%, 100% { opacity: 0.22; transform: translateY(0); }
  35% { opacity: 0.9; transform: translateY(-2px); }
}

.trace-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(248, 251, 252, 0.62);
}
.trace-position {
  font-family: var(--font-mono);
  color: var(--faint);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}
.trace-player-actions { display: flex; align-items: center; gap: 6px; }
.trace-icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}
.trace-icon-button:hover { color: var(--accent-ink); background: var(--accent-soft); }
.trace-icon-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.trace-icon-button svg { width: 19px; height: 19px; }
.trace-load-error { margin: auto; color: var(--faint); font-size: 0.86rem; }

/* ---------- Status ---------- */

.status-deck {
  --deck-color: var(--accent);
  --deck-tint: rgba(22, 184, 243, 0.075);
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}
.status-deck[data-active-status="EXPERIMENTAL"] {
  --deck-color: var(--lineage);
  --deck-tint: rgba(185, 120, 19, 0.07);
}
.status-deck[data-active-status="HORIZON"] {
  --deck-color: var(--faint);
  --deck-tint: rgba(125, 147, 157, 0.07);
}
.status-folder-tabs {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding: 0 18px;
}
.status-folder-tab {
  --folder-color: var(--accent);
  --folder-tint: rgba(22, 184, 243, 0.07);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 5px 12px;
  min-height: 74px;
  padding: 14px 18px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(240, 246, 248, 0.78);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: min-height 220ms var(--ease-out), background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.status-folder-tab.experimental {
  --folder-color: var(--lineage);
  --folder-tint: rgba(185, 120, 19, 0.07);
}
.status-folder-tab.horizon {
  --folder-color: var(--faint);
  --folder-tint: rgba(125, 147, 157, 0.07);
}
.status-folder-tab:hover { border-color: color-mix(in srgb, var(--folder-color) 34%, transparent); }
.status-folder-tab.is-active {
  min-height: 84px;
  border-color: color-mix(in srgb, var(--folder-color) 42%, transparent);
  background: linear-gradient(180deg, var(--folder-tint), rgba(255, 255, 255, 0.97));
  color: var(--text);
}
.status-folder-tab:focus-visible {
  z-index: 2;
  outline: 2px solid var(--folder-color);
  outline-offset: -2px;
}
.status-tab-index {
  grid-row: 1 / span 2;
  color: var(--folder-color);
  font: 0.58rem/1 var(--font-mono);
  letter-spacing: 0.12em;
}
.status-tab-name {
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  font: 0.67rem/1.2 var(--font-mono);
  letter-spacing: 0.11em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-tab-label {
  color: var(--faint);
  font-size: 0.72rem;
}
.status-tab-count {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--folder-color);
  font: 1.1rem/1 var(--font-mono);
}
.status-folder-shell {
  position: relative;
  z-index: 2;
  border-color: var(--deck-color);
}
.status-folder {
  --folder-color: var(--accent);
  position: relative;
  min-height: 460px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid color-mix(in srgb, var(--folder-color) 34%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--folder-color) 7%, white), rgba(255, 255, 255, 0.95) 180px),
    var(--panel);
  box-shadow:
    8px 8px 0 -1px rgba(240, 246, 248, 0.96),
    8px 8px 0 0 rgba(16, 56, 72, 0.09),
    16px 16px 0 -1px rgba(240, 246, 248, 0.72),
    16px 16px 0 0 rgba(16, 56, 72, 0.055),
    0 34px 80px -62px rgba(16, 56, 72, 0.62);
}
.status-folder.experimental { --folder-color: var(--lineage); }
.status-folder.horizon { --folder-color: var(--faint); }
.status-folder[hidden] { display: none; }
.status-folder.is-active { animation: status-folder-in 240ms var(--ease-out) both; }
@keyframes status-folder-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.status-folder-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.4fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 54px);
  padding-bottom: 28px;
  border-bottom: 1px solid color-mix(in srgb, var(--folder-color) 24%, transparent);
}
.status-folder-code {
  display: block;
  margin-bottom: 8px;
  color: var(--folder-color);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}
.status-folder-head h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.status-folder-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}
.status-folder-total {
  color: var(--faint);
  font: 0.62rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.status-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.status-record {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-content: start;
  gap: 0 16px;
  min-width: 0;
  padding: 28px 28px 24px 0;
  border-bottom: 1px solid var(--line);
}
.status-record:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--line);
}
.status-record:nth-child(even) { padding-left: 32px; }
.status-record-index {
  grid-row: 1 / span 3;
  color: var(--faint);
  font: 0.56rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
}
.status-record-copy { min-width: 0; }
.status-record h4 {
  margin: 0 0 9px;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.status-record-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}
.status-record details {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(16, 56, 72, 0.08);
}
.status-record summary {
  color: var(--faint);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  list-style: none;
}
.status-record summary::-webkit-details-marker { display: none; }
.status-record summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  color: var(--folder-color);
}
.status-record details[open] summary::before { content: "−"; }
.status-record-detail { padding: 12px 0 2px 16px; }
.status-record-detail p,
.status-record-detail ul {
  margin: 0;
  color: var(--faint);
  font-size: 0.75rem;
  line-height: 1.6;
}
.status-record-detail p b {
  margin-right: 8px;
  color: var(--folder-color);
  font: 0.56rem/1 var(--font-mono);
  letter-spacing: 0.1em;
}
.status-record-detail ul { margin-top: 7px; padding-left: 16px; }
.status-record-evidence {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.status-record-evidence a,
.status-record-evidence > span {
  color: var(--muted);
  font: 0.58rem/1.2 var(--font-mono);
}
.status-record-evidence a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(22, 184, 243, 0.24);
}
.status-record-evidence a:hover { color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Experiments ---------- */

.experiments-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.experiment-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.45s var(--ease-out), border-color 0.35s ease;
}
.experiment-card:hover { transform: translateY(-3px); border-color: rgba(22, 184, 243, 0.28); }
.exp-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--lineage);
  border: 1px solid rgba(232, 184, 92, 0.32);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.experiment-card h3 { margin: 0 0 10px; font-size: 1.08rem; letter-spacing: -0.01em; }
.exp-detail {
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.exp-detail div { display: grid; gap: 4px; }
.exp-detail dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.exp-detail dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}
.exp-artifact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 0;
  color: var(--accent-ink);
  border-top: 1px solid var(--line);
  padding: 15px 2px 0;
  text-decoration: none;
}
.exp-artifact > span:first-child { display: grid; gap: 4px; }
.exp-artifact strong {
  font-size: 0.78rem;
  font-weight: 650;
}
.exp-artifact small {
  color: var(--faint);
  font: 0.58rem/1.35 var(--font-mono);
}
.exp-artifact-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(22, 184, 243, 0.24);
  border-radius: 50%;
  background: rgba(22, 184, 243, 0.06);
  transition: transform 0.28s var(--ease-out), background 0.2s ease;
}
.exp-artifact:hover .exp-artifact-arrow,
.exp-artifact:focus-visible .exp-artifact-arrow {
  transform: translate(2px, -2px);
  background: rgba(22, 184, 243, 0.13);
}

/* ---------- Evidence ---------- */

.evidence-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}
.evidence-item {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  transition: border-color 0.3s ease;
}
.evidence-item:hover { border-color: rgba(22, 184, 243, 0.26); }
.ev-type {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  text-transform: uppercase;
}
.evidence-item h3 { margin: 0; font-size: 0.94rem; letter-spacing: -0.01em; }
.ev-status {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--lineage);
  border: 1px dashed rgba(232, 184, 92, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.evidence-item .btn { padding: 7px 16px; font-size: 0.76rem; }

/* ---------- Boundary ---------- */

.boundary-section::after {
  content: "";
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 5vw, 64px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}
.boundary-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(156px, 17vw, 218px) minmax(0, 1fr);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 34px 90px -68px rgba(16, 56, 72, 0.68);
}
.boundary-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, rgba(22, 184, 243, 0.16), var(--accent) 48%, rgba(22, 184, 243, 0.08));
}
.boundary-axis {
  position: relative;
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(22, 184, 243, 0.13), rgba(22, 184, 243, 0.025)),
    rgba(238, 247, 250, 0.7);
  border-right: 1px solid rgba(22, 184, 243, 0.16);
}
.boundary-axis::before,
.boundary-axis::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.boundary-axis::before {
  inset: 0;
  background-image: radial-gradient(circle, rgba(14, 139, 216, 0.22) 0 1px, transparent 1.4px);
  background-size: 21px 21px;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 74%);
  mask-image: linear-gradient(180deg, #000, transparent 74%);
}
.boundary-axis::after {
  top: 88px;
  bottom: 82px;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(22, 184, 243, 0.34) 18%, rgba(22, 184, 243, 0.34) 82%, transparent);
}
.boundary-axis span,
.boundary-axis small {
  position: relative;
  z-index: 1;
  color: var(--accent-ink);
  font: 0.62rem/1.4 var(--font-mono);
  letter-spacing: 0.12em;
}
.boundary-axis small { color: var(--faint); }
.boundary-axis strong {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  color: var(--accent-deep);
  border: 1px solid rgba(22, 184, 243, 0.28);
  border-radius: 50%;
  background: rgba(248, 251, 252, 0.94);
  box-shadow:
    0 0 0 12px rgba(22, 184, 243, 0.045),
    0 22px 52px rgba(14, 139, 216, 0.12);
  font: 400 4.6rem/1 var(--font-mono);
}
.boundary-content {
  min-width: 0;
  padding: clamp(28px, 4vw, 52px) clamp(26px, 5vw, 66px) 0;
}
.boundary-register {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(84px, 10vw, 140px) minmax(0, 1fr);
  padding: 0 0 17px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font: 0.6rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
}
.boundary-register span:last-child { grid-column: 3; }
.boundary-claims {
  margin: 0;
  padding: 0;
  list-style: none;
}
.boundary-claim {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(84px, 10vw, 140px) minmax(0, 1fr);
  align-items: center;
  min-height: 142px;
  border-bottom: 1px solid var(--line);
}
.boundary-claim::before {
  content: "";
  position: absolute;
  inset: 8px -18px;
  z-index: -1;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(22, 184, 243, 0.055), transparent 43%, rgba(185, 120, 19, 0.045));
  opacity: 0;
  transition: opacity 0.28s ease;
}
.boundary-claim:hover::before { opacity: 1; }
.boundary-term {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.boundary-term > span {
  color: var(--accent-ink);
  font: 0.58rem/1.25 var(--font-mono);
  letter-spacing: 0.11em;
}
.boundary-term strong {
  font-size: clamp(1.12rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.boundary-term-limit > span { color: var(--lineage); }
.boundary-term-limit strong { color: #4d626b; }
.boundary-term-limit small {
  max-width: 250px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}
.boundary-operator {
  display: flex;
  align-items: center;
  color: var(--faint);
}
.boundary-operator i {
  height: 1px;
  flex: 1;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 3px, transparent 3px 7px);
}
.boundary-operator span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font: 1.2rem/1 var(--font-mono);
  transition: color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.boundary-claim:hover .boundary-operator span {
  color: var(--accent-deep);
  border-color: rgba(22, 184, 243, 0.48);
  box-shadow: 0 0 0 5px rgba(22, 184, 243, 0.07);
}
.boundary-links {
  counter-reset: boundary-link;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}
.boundary-links a {
  counter-increment: boundary-link;
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 78px;
  align-content: center;
  padding: 14px 24px 22px 0;
  color: var(--text);
  border-right: 1px solid var(--line);
  font-size: 0.8rem;
  transition: color 0.22s ease;
}
.boundary-links a:not(:first-child) { padding-left: 22px; }
.boundary-links a:last-child { border-right: 0; }
.boundary-links a::before {
  content: "0" counter(boundary-link) " / ROUTE";
  color: var(--faint);
  font: 0.54rem/1.2 var(--font-mono);
  letter-spacing: 0.1em;
}
.boundary-links a::after {
  content: "↗";
  position: absolute;
  right: 16px;
  bottom: 21px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  transition: transform 0.24s var(--ease-out);
}
.boundary-links a:hover { color: var(--accent-ink); }
.boundary-links a:hover::after { transform: translate(2px, -2px); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 8vh, 80px) clamp(24px, 5vw, 64px);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-brand { font-family: var(--font-mono); font-weight: 700; color: var(--text); letter-spacing: 0.18em; margin: 0 0 8px; }
.site-footer > div > p:not(.footer-brand) { margin: 0; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--accent); }
.footer-meta { color: var(--faint); font-size: 0.78rem; }
.footer-meta p { margin: 0 0 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .hero {
    padding-top: 130px;
    min-height: 860px;
  }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(3.1rem, 7.2vw, 4.8rem); }
  .hero-visual {
    bottom: 0;
    right: -18%;
    width: min(92vw, 800px);
  }
  .hero-graph { opacity: 0.4; }
}

@media (max-width: 1080px) {
  .value-entry {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 24px 32px;
    min-height: 0;
    padding-block: 36px;
  }
  .value-number { grid-column: 1; grid-row: 1 / span 2; }
  .value-statement { grid-column: 2; }
  .value-evidence {
    grid-column: 2;
    padding-left: 0;
    border-left: 0;
  }
  .architecture-map { padding-inline: 18px; }
  .architecture-zone { margin-inline: 8px; padding-inline: 18px; }
  .architecture-core { margin-inline: 12px; padding-inline: 22px; }
  .architecture-recall { margin-right: 18px; }
  .architecture-memory { margin-left: 18px; }
  .architecture-zone > p,
  .architecture-observe-copy p { font-size: 0.78rem; }
  .evidence-item { grid-template-columns: 150px 1fr; }
  .evidence-item .ev-status { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 820px) {
  .site-nav nav { display: none; }
  .hero {
    min-height: min(100svh, 620px);
    align-items: flex-start;
    padding-top: 136px;
    padding-bottom: 56px;
  }
  .hero::after { display: none; }
  .eyebrow { margin-bottom: 30px; }
  .hero h1 {
    font-size: clamp(2.15rem, 8.8vw, 3.15rem);
    line-height: 1.08;
  }
  .subtitle { margin-top: 30px; }
  .hero-cta { margin-top: 30px; }
  .hero-boundary {
    max-width: 31rem;
    margin-top: 30px;
    line-height: 1.65;
  }
  .experiments-grid { grid-template-columns: 1fr; }
  .fault-map { padding-left: 8px; }
  .fault-spine { left: 21px; }
  .fault-node,
  .fault-node.fault-reverse {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
    padding: 34px 0;
  }
  .fault-copy,
  .fault-reverse .fault-copy {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 24px 20px;
  }
  .fault-junction {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    width: 38px;
    height: 38px;
  }
  .fault-visual,
  .fault-reverse .fault-visual {
    grid-column: 2;
    grid-row: 2;
    padding: 0 0 0 20px;
    grid-template-columns: auto minmax(50px, 1fr) 46px auto;
  }
  .fault-visual::before,
  .fault-reverse .fault-visual::before {
    top: 50%;
    left: -23px;
    right: auto;
    width: 23px;
  }
  .fault-event { width: 46px; height: 46px; }
  .fault-explain { margin-top: 14px; padding-top: 12px; }
  .status-folder-tabs {
    grid-template-columns: repeat(3, minmax(142px, 1fr));
    overflow-x: auto;
    padding-inline: 8px;
    scrollbar-width: none;
  }
  .status-folder-tabs::-webkit-scrollbar { display: none; }
  .status-folder-tab { padding-inline: 13px; }
  .status-folder {
    min-height: 0;
    padding: 28px 20px;
    box-shadow:
      6px 6px 0 -1px rgba(240, 246, 248, 0.96),
      6px 6px 0 0 rgba(16, 56, 72, 0.09),
      12px 12px 0 -1px rgba(240, 246, 248, 0.72),
      12px 12px 0 0 rgba(16, 56, 72, 0.055);
  }
  .status-folder-head {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 14px 20px;
  }
  .status-folder-head > p { grid-column: 1 / -1; grid-row: 2; }
  .status-folder-total { grid-column: 2; grid-row: 1; align-self: end; }
  .status-records { grid-template-columns: 1fr; }
  .status-record,
  .status-record:nth-child(odd),
  .status-record:nth-child(even) {
    padding: 25px 0;
    border-right: 0;
  }
  .architecture-console span:last-child { display: none; }
  .architecture-map {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: none;
    min-height: 0;
    padding: 14px 0 0;
  }
  .architecture-map::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 0;
    left: 19px;
    width: 1px;
    background: linear-gradient(rgba(22, 184, 243, 0.08), rgba(22, 184, 243, 0.42), rgba(185, 120, 19, 0.28));
  }
  .architecture-links { display: none; }
  .architecture-zone,
  .architecture-ingress,
  .architecture-core,
  .architecture-delivery,
  .architecture-recall,
  .architecture-memory,
  .architecture-observe {
    grid-column: 2;
    grid-row: auto;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 26px 18px 30px 20px;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    clip-path: none;
    box-shadow: none;
  }
  .architecture-zone::after { display: none; }
  .architecture-zone:hover,
  .architecture-zone:focus-visible,
  .architecture-zone.is-active { background: rgba(255, 255, 255, 0.62); box-shadow: none; }
  .architecture-index { position: relative; }
  .architecture-index::before {
    content: "";
    position: absolute;
    top: 0.15em;
    left: -34px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 5px rgba(248, 251, 252, 0.9);
  }
  .architecture-core-mark {
    float: right;
    width: 92px;
    height: 92px;
    margin: -4px 0 10px 18px;
  }
  .architecture-core-mark i:nth-child(1) { inset: 8px; }
  .architecture-core-mark i:nth-child(2) { inset: 23px; }
  .architecture-core-mark i:nth-child(3) { inset: 35px; }
  .architecture-observe .architecture-index::before { border-color: var(--lineage); }
  .architecture-observe .architecture-events { margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); }
  .chat-window { min-height: 0; }
  .boundary-panel { grid-template-columns: 1fr; }
  .boundary-axis {
    min-height: 0;
    height: 120px;
    flex-direction: row;
    align-items: center;
    padding: 22px 26px;
    border-right: 0;
    border-bottom: 1px solid rgba(22, 184, 243, 0.16);
  }
  .boundary-axis::after {
    top: 50%;
    right: 92px;
    bottom: auto;
    left: 92px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 184, 243, 0.34) 18%, rgba(22, 184, 243, 0.34) 82%, transparent);
  }
  .boundary-axis strong {
    width: 74px;
    height: 74px;
    font-size: 3rem;
  }
  .boundary-content { padding: 24px 26px 0; }
  .boundary-register { display: none; }
  .boundary-claim {
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 16px 18px;
    min-height: 0;
    padding: 28px 0;
  }
  .boundary-term-observed { grid-column: 2; grid-row: 1; }
  .boundary-term-limit { grid-column: 2; grid-row: 2; }
  .boundary-operator {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
    flex-direction: column;
  }
  .boundary-operator i {
    width: 1px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 3px, transparent 3px 7px);
  }
  .boundary-operator span { width: 34px; height: 34px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; }
  .section { padding-top: clamp(90px, 14vh, 130px); padding-bottom: clamp(90px, 14vh, 130px); }
  .section-ghost::before { font-size: 110px; }
  .hero-visual {
    top: 12px;
    right: -51%;
    bottom: auto;
    width: 146vw;
    -webkit-mask-image: radial-gradient(ellipse 62% 54% at 58% 34%, #000 0 34%, rgba(0, 0, 0, 0.5) 56%, transparent 80%);
    mask-image: radial-gradient(ellipse 62% 54% at 58% 34%, #000 0 34%, rgba(0, 0, 0, 0.5) 56%, transparent 80%);
  }
  .hero-graph { opacity: 0.42; }
  .hero-node-labels { display: none; }
  .hero-pulse {
    display: block;
    opacity: 0.48;
  }
  .hero-pulse .p3,
  .hero-pulse .p4 { display: none; }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 122px;
    padding-bottom: 44px;
  }
  .hero h1 { font-size: clamp(1.85rem, 8.25vw, 2.35rem); letter-spacing: -0.065em; }
  .eyebrow { font-size: 0.58rem; letter-spacing: 0.14em; }
  .subtitle br { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-visual {
    top: 8px;
    right: -58%;
    bottom: auto;
    width: 156vw;
  }
  .hero-graph { opacity: 0.4; }
  .fault-visual,
  .fault-reverse .fault-visual {
    grid-template-columns: 1fr 48px 1fr;
    gap: 7px;
  }
  .fault-channel { grid-column: 1 / -1; grid-row: 2; }
  .fault-event { grid-column: 2; grid-row: 1; }
  .fault-input { grid-column: 1; grid-row: 1; }
  .fault-output { grid-column: 3; grid-row: 1; text-align: right; }
  .fault-explain { grid-row: 3; }
  .value-ledger::before { left: 26px; }
  .value-entry {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 20px 16px;
    padding: 30px 0;
  }
  .value-number { width: 28px; }
  .value-number::after { right: -1px; }
  .value-route { gap: 7px; }
  .value-route i { min-width: 14px; }
  .why-resolution { padding: 52px 0 0; }
  .why-resolution > p { text-align: left; }
  .resolution-label { margin-left: 0; }
  .boundary-axis { height: 104px; padding: 18px; }
  .boundary-axis small { display: none; }
  .boundary-axis strong { width: 64px; height: 64px; font-size: 2.6rem; }
  .boundary-content { padding-inline: 20px; }
  .boundary-links { grid-template-columns: 1fr; margin-top: 16px; }
  .boundary-links a,
  .boundary-links a:not(:first-child) {
    min-height: 66px;
    padding: 13px 32px 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .boundary-links a:last-child { border-bottom: 0; }
  .boundary-links a::after { right: 4px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js body.is-loaded .mask-line > span { transform: none; }
  .hero-pulse path { animation: none; }
  .tree-core polygon,
  .tree-node-major .tree-dot,
  .tree-node-root rect { animation: none; }
  .card::after { animation: none; }
  .cursor-glow { display: none; }
  .fault-spine i { animation: none; }
  .js .fault-map[data-reveal] .fault-node { opacity: 1; transform: none; animation: none; }
  .architecture-link.is-active { animation: none; }
  .architecture-core-mark i { transition: none; }
}
