@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f7fb;
  --line: #e3e8f0;
  --ink: #0b1b33;
  --muted: #56627a;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #eaf1ff;
  --brand-pale: #93b4fb;
  --on-brand: #ffffff;
  --night-text: #e8eef9;
  --night-muted: #b6c2d6;
  --night-accent: #9cbcff;
  --warn: #b42318;
  --verified-ink: #1d4ed8;
  --verified-bg: #eaf1ff;
  --supported-ink: #0f766e;
  --supported-bg: #e6f6f4;
  --hypothesis-ink: #92400e;
  --hypothesis-bg: #fef3c7;
  --unknown-ink: #475569;
  --unknown-bg: #eef2f6;
  --shadow: 0 1px 2px rgba(11, 27, 51, 0.06), 0 10px 28px rgba(11, 27, 51, 0.07);
  --shadow-lift: 0 2px 4px rgba(11, 27, 51, 0.05), 0 28px 64px rgba(11, 27, 51, 0.12);
  --radius: 14px;
  --deep: #0b1b33;
  --cta: #2563eb;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --line-strong: #c3cad6;
  --blob-a: #b9cdfd;
  --blob-b: #dbe6ff;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071a3d;
  --surface: #0c2452;
  --line: #1d3d7c;
  --line-strong: #2f5aa8;
  --ink: #eaf1ff;
  --muted: #a9bde6;
  --brand: #5b9bff;
  --brand-strong: #93bdff;
  --brand-soft: #12306a;
  --brand-pale: #3d6fd6;
  --on-brand: #04122e;
  --warn: #ff9a8f;
  --verified-ink: #a8c8ff;
  --verified-bg: #12306a;
  --supported-ink: #74e2d2;
  --supported-bg: #0b3a48;
  --hypothesis-ink: #f7cb70;
  --hypothesis-bg: #3a2d0c;
  --unknown-ink: #c6d3ef;
  --unknown-bg: #17305f;
  --shadow: 0 1px 2px rgba(0, 8, 30, 0.5), 0 10px 28px rgba(0, 8, 30, 0.45);
  --shadow-lift: 0 2px 4px rgba(0, 8, 30, 0.5), 0 28px 64px rgba(0, 8, 30, 0.55);
  --deep: #031030;
  --cta: #1d4ed8;
  --glass: rgba(16, 44, 98, 0.6);
  --glass-strong: rgba(7, 26, 61, 0.86);
  --glass-edge: rgba(147, 189, 255, 0.24);
  --blob-a: #1d4ed8;
  --blob-b: #0f2f6e;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brand-soft);
}

[id] {
  scroll-margin-top: 84px;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-strong);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--glass-strong);
  backdrop-filter: saturate(1.4) blur(10px);
}

.masthead {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
}

.wordmark {
  display: inline-flex;
  border-radius: 8px;
}

.wordmark img {
  display: block;
  width: auto;
  height: 34px;
}

.site-nav {
  display: flex;
  gap: 2px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.account {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-size: 0.9rem;
  white-space: nowrap;
}

.account > a:not(.target) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--deep);
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
}

.account > a:not(.target):hover {
  background: var(--brand-strong);
  color: #ffffff;
}

.account .target {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  text-decoration: none;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--ink);
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1168px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

main.home {
  max-width: none;
  padding: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
}

h2 {
  margin: 44px 0 14px;
  font-size: 1.3rem;
}

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.error {
  color: var(--warn);
  font-weight: 600;
}

.error:empty {
  display: none;
}

.button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: 650 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover {
  background-color: var(--brand-strong);
  color: var(--on-brand);
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.secondary:hover {
  background: var(--surface);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 0 96px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero .lede {
  margin: 0 0 28px;
}

.hero .note {
  margin: 14px 0 0;
}

.official-contract {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  margin: 18px 0 0;
  padding: 10px 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.85rem;
}

.official-contract span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.official-contract .target {
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.official-contract .target:hover {
  text-decoration: underline;
}

.copy-button {
  padding: 4px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.copy-button:hover {
  background-color: var(--brand-soft);
}

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.modes legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.mode {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mode:hover {
  border-color: var(--brand);
}

.mode:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.mode input {
  margin: 4px 0 0;
  accent-color: var(--brand);
}

.mode strong {
  display: block;
  font-size: 0.92rem;
}

.mode .note {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.scan-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scan-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow);
}

.scan-form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1rem var(--sans);
}

.scan-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.scan-form input:focus {
  outline: none;
}

.scan-form button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: 650 0.95rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.scan-form button:hover {
  background-color: var(--brand-strong);
}

.scan-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hero .scan-form {
  position: relative;
  margin: 0;
  border-color: var(--glass-edge);
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 14px 36px rgba(37, 99, 235, 0.16);
  backdrop-filter: blur(16px) saturate(1.5);
}

.hero .mode {
  border-color: var(--glass-edge);
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.4);
}

.hero .scan-form::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 4px solid var(--brand);
  border-radius: 50%;
  background: radial-gradient(circle at 64% 36%, var(--ink) 0 3px, transparent 3.5px);
  pointer-events: none;
}

.hero .scan-form input {
  padding-left: 52px;
}

.preview {
  position: relative;
  isolation: isolate;
  margin: 0;
}

.preview-card {
  padding: 22px 24px;
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 2px 6px rgba(11, 27, 51, 0.05), 0 30px 70px rgba(37, 99, 235, 0.18);
  backdrop-filter: blur(22px) saturate(1.6);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
}

.preview-status {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.75rem;
}

.preview-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-rows > li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.preview-rows > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.preview-rows > li > p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.preview figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.trace {
  position: relative;
  margin: 14px 0 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--brand-soft);
}

.trace::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -16px;
  width: 15px;
  height: 34px;
  border-bottom: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
  border-bottom-left-radius: 10px;
}

.trace-head {
  margin: 0 0 6px;
  color: var(--ink);
  font: 600 0.75rem var(--mono);
}

.trace dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  margin: 0;
  font: 0.8rem/1.5 var(--mono);
}

.trace dl > div {
  display: contents;
}

.trace dt {
  color: var(--muted);
}

.trace dd {
  margin: 0;
  color: var(--ink);
}

.proof {
  padding: 44px 0 110px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.facts > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.facts dt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.block {
  padding: 96px 0;
}

.block.mist {
  background: var(--surface);
}

.block h2 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  letter-spacing: -0.03em;
}

.block .lede {
  margin: 0 0 40px;
  max-width: 680px;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

.coverage {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.coverage th,
.coverage td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.coverage thead th {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
}

.coverage thead th:not(:first-child),
.coverage td {
  width: 170px;
  text-align: center;
}

.coverage tbody th {
  color: var(--ink);
  font-weight: 550;
}

.coverage td.on {
  background:
    radial-gradient(circle, var(--bar) 0 7px, transparent 7.5px),
    linear-gradient(var(--bar), var(--bar)) center / 4px 100% no-repeat;
}

.coverage td.on.first {
  background:
    radial-gradient(circle, var(--bar) 0 7px, transparent 7.5px),
    linear-gradient(var(--bar), var(--bar)) center bottom / 4px 50% no-repeat;
}

.coverage td.on.last {
  background:
    radial-gradient(circle, var(--bar) 0 7px, transparent 7.5px),
    linear-gradient(var(--bar), var(--bar)) center top / 4px 50% no-repeat;
}

.coverage td.depth-1 {
  --bar: var(--brand-pale);
}

.coverage td.depth-2 {
  --bar: var(--brand);
}

.coverage td.depth-3 {
  --bar: var(--ink);
}

.coverage td.off::after {
  content: "—";
  color: var(--line-strong);
}

.coverage tr.meta th,
.coverage tr.meta td {
  background: var(--surface);
  font-weight: 650;
}

.coverage tr:last-child th,
.coverage tr:last-child td {
  border-bottom: 0;
}

.explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.explorer-list {
  display: grid;
  gap: 10px;
}

.explorer-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  font: 500 1rem/1.5 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.explorer-item:hover {
  border-color: var(--brand);
}

.explorer-item[aria-pressed="true"] {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand), var(--shadow);
}

.explorer-item .confidence {
  margin: 0;
}

.explorer-panel {
  position: sticky;
  top: 96px;
  min-height: 280px;
  padding: 26px;
  border-radius: 20px;
  background: var(--deep);
  color: var(--night-text);
}

.explorer-panel .eyebrow {
  color: var(--night-accent);
}

.explorer-panel .meaning {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
}

.explorer-panel .note {
  color: var(--night-muted);
}

.evidence-card {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.evidence-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--night-muted);
  font: 600 0.8rem var(--mono);
}

.evidence-card ul {
  margin: 0;
  padding: 0;
  color: var(--night-text);
  font: 0.85rem/1.6 var(--mono);
  list-style: none;
}

.explorer-panel .cite {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.explorer-panel .cite::before {
  border-color: var(--night-accent);
  background: radial-gradient(circle at 66% 34%, #ffffff 0 1.4px, transparent 1.8px);
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.flow li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  counter-increment: step;
}

.flow li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.85rem;
  font-weight: 750;
}

.flow strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.flow p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.status-note {
  display: inline-flex;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
}

.closing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 clamp(8px, 2vw, 24px) clamp(8px, 2vw, 24px);
  padding: 96px 0;
  border-radius: clamp(24px, 4vw, 48px);
  background: var(--cta);
  text-align: center;
}

.closing h2 {
  margin: 0 0 28px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.closing .button {
  background: #ffffff;
  color: #0b1b33;
}

.closing .button:hover {
  background-color: var(--brand-soft);
  color: #0b1b33;
}

.sign-in {
  margin: 24px 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 20px;
}

main > .note:first-child {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 650;
}

.status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin: 20px 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.status > div {
  padding: 14px 18px;
  background: var(--surface);
}

.status dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.status dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.status.succeeded > div:first-child dd {
  color: var(--brand-strong);
}

.status.failed > div:first-child dd {
  color: var(--warn);
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.summary .confidence {
  margin: 0;
  padding: 4px 12px;
  font-size: 0.8rem;
}

.report {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.toc p {
  margin: 44px 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  background: var(--surface);
  color: var(--ink);
}

.target {
  font-family: var(--mono);
  word-break: break-all;
}

h1.target {
  font-family: var(--sans);
  word-break: normal;
  overflow-wrap: anywhere;
}

.findings {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.findings li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.section-risk h2 {
  color: var(--warn);
}

.confidence {
  display: inline-flex;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--unknown-bg);
  color: var(--unknown-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 2px;
}

.confidence.verified_observation {
  background: var(--verified-bg);
  color: var(--verified-ink);
}

.confidence.supported_inference {
  background: var(--supported-bg);
  color: var(--supported-ink);
}

.confidence.hypothesis {
  background: var(--hypothesis-bg);
  color: var(--hypothesis-ink);
}

.cites {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.cites a,
.cite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 9px 1px 6px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: 600 0.78rem var(--mono);
  text-decoration: none;
}

.cites a::before,
.cite::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: radial-gradient(circle at 66% 34%, var(--ink) 0 1.4px, transparent 1.8px);
}

.cites a:hover {
  box-shadow: inset 0 0 0 1px var(--brand);
}

.preview .cites {
  display: flex;
  margin: 8px 0 0;
}

.evidence {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

.evidence th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
}

.evidence td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.evidence tbody tr:last-child td {
  border-bottom: 0;
}

.evidence td.source {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  word-break: break-all;
}

.evidence tr:target td {
  background: var(--brand-soft);
}

.outcome-failed,
.outcome-blocked {
  color: var(--warn);
}

.site-footer {
  background: var(--deep);
  color: var(--night-muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 44px;
}

.footer-brand img {
  display: block;
  width: auto;
  height: 34px;
}

.footer-brand p {
  max-width: 360px;
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px 22px;
}

.footer-links a {
  color: var(--night-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.colophon {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  line-height: 1.6;
}

.liquid-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero-lens {
  position: absolute;
  top: -150px;
  right: -190px;
  z-index: -1;
  width: 500px;
  height: 500px;
  opacity: 0.9;
}

.liquid-pupil {
  fill: var(--ink);
  transform-box: fill-box;
  transform-origin: center;
  animation: look 9s ease-in-out infinite;
}

@keyframes look {
  0%,
  100% {
    transform: translate(0, 0);
  }

  30% {
    transform: translate(-26px, 18px);
  }

  60% {
    transform: translate(10px, 30px);
  }
}

.rea-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--deep);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.rea-chip strong {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.rea-chip:hover {
  background: var(--brand-strong);
  color: #ffffff;
}

.pulse {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.pulse-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.pulse-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 750;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: beat 2s ease-out infinite;
}

@keyframes beat {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  }

  100% {
    box-shadow: 0 0 0 12px rgba(22, 163, 74, 0);
  }
}

.pulse-body {
  flex: 1 1 520px;
  min-width: 0;
}

.pulse-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 0;
}

.pulse-figures div {
  display: flex;
  flex-direction: column-reverse;
}

.pulse-figures dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.pulse-figures dd {
  margin: 0;
  color: var(--ink);
  font: 600 1.05rem var(--mono);
  letter-spacing: -0.01em;
}

.pulse-wait,
.pulse-facts {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.pulse-facts {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.rea {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 24px clamp(8px, 2vw, 24px) 96px;
  padding: 96px 0;
  border-radius: clamp(24px, 4vw, 48px);
  background: var(--deep);
  color: var(--night-text);
}

.rea::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -240px;
  z-index: -1;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.5), rgba(37, 99, 235, 0) 68%);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-90px, 70px) scale(1.15);
  }
}

.rea-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.rea-word {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.rea-word text {
  font: 800 250px "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.05em;
}

.rea h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  letter-spacing: -0.03em;
}

.rea .eyebrow {
  color: var(--night-accent);
}

.rea .lede {
  margin: 0;
  color: var(--night-muted);
}

.rea-letters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.rea-letters li {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.rea-letter {
  display: block;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #ffffff, #9cbcff 60%, #3b82f6);
  background-clip: text;
  color: transparent;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rea-letters strong {
  display: block;
  color: #ffffff;
  font-size: 1.2rem;
}

.rea-letters p {
  margin: 8px 0 0;
  color: var(--night-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.rea-subtitle {
  margin: 64px 0 18px;
  color: #ffffff;
  font-size: 1.4rem;
}

.rea-layers {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: layer;
  list-style: none;
}

.rea-layers > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  counter-increment: layer;
}

.rea-layer-text h4 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.08rem;
}

.rea-layer-text h4::before {
  content: counter(layer, decimal-leading-zero);
  color: var(--night-accent);
  font: 600 0.8rem var(--mono);
}

.rea-layer-text p {
  margin: 0;
  color: var(--night-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.rea-finding {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
}

.rea-finding > p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.rea-finding .cites {
  display: flex;
  margin: 8px 0 0;
}

.rea-finding.quiet {
  background: rgba(255, 255, 255, 0.06);
  color: var(--night-muted);
}

.rea-finding.quiet > p {
  margin: 0;
}

.rea-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
}

.rea-foot p {
  margin: 0;
  color: var(--night-muted);
  font-size: 0.85rem;
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules li {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.rules li::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  border: 4px solid var(--brand);
  border-radius: 50%;
  background: radial-gradient(circle at 64% 36%, var(--ink) 0 3.5px, transparent 4px);
}

.faq-more {
  margin: 20px 0 0;
  color: var(--muted);
}

.closing-lens {
  position: absolute;
  top: -150px;
  right: -110px;
  z-index: -1;
  width: 460px;
  height: 460px;
}

.closing-lens .liquid-pupil {
  fill: rgba(255, 255, 255, 0.28);
}

main.docs-page {
  max-width: 1168px;
}

.docs-hero {
  max-width: 760px;
  padding: 24px 0 8px;
}

.docs-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin-top: 24px;
}

.docs-nav ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.docs-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.doc {
  padding: 8px 0 40px;
  border-bottom: 1px solid var(--line);
}

.doc:last-child {
  border-bottom: 0;
}

.doc h2 {
  margin: 32px 0 14px;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
}

.doc h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.doc p,
.doc li,
.doc dd {
  max-width: 72ch;
}

.doc .pulse {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.doc .pulse .wrap {
  padding-right: 20px;
  padding-left: 20px;
}

.docs-rea-word {
  max-width: 420px;
  margin: 8px 0 16px;
  padding: 18px 24px 8px;
  border-radius: 24px;
  background: var(--deep);
}

.letters,
.labels,
.glossary {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.letters > div,
.labels > div,
.glossary > div {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.letters dt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 750;
}

.letters .rea-letter {
  display: inline;
  margin: 0;
  background: linear-gradient(120deg, var(--brand), var(--ink));
  background-clip: text;
  font-size: 1.8rem;
}

.letters dd,
.labels dd,
.glossary dd {
  margin: 0;
  color: var(--muted);
}

.glossary dt {
  display: flex;
  flex-direction: column;
}

.glossary dt strong {
  font-family: var(--mono);
  font-size: 0.95rem;
}

.glossary dt span {
  color: var(--muted);
  font-size: 0.85rem;
}

.doc-layers {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  counter-reset: layer;
  list-style: none;
}

.doc-layers > li {
  padding: 18px 20px 18px 64px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  counter-increment: layer;
  position: relative;
}

.doc-layers > li::before {
  content: counter(layer, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--brand);
  font: 600 0.85rem var(--mono);
}

.doc-layers p {
  margin: 0 0 8px;
  color: var(--muted);
}

.doc-finding {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
}

.doc-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding-left: 22px;
}

.docs-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.docs-table th,
.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-table thead th {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
}

.docs-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.docs-table tr:last-child th,
.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-table code,
.doc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface);
  font: 0.85em var(--mono);
}

.wordmark .logo-dark {
  display: none;
}

:root[data-theme="dark"] .wordmark .logo-light {
  display: none;
}

:root[data-theme="dark"] .wordmark .logo-dark {
  display: block;
}

.header-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.social-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  transition: background-color 0.2s ease, transform 0.3s ease;
}

.social-x:hover {
  background: var(--brand-soft);
  transform: scale(1.06);
}

.theme-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  background: var(--brand-soft);
  transform: rotate(-18deg);
}

.theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.header-tools + .account {
  margin-left: 0;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

.has-wave {
  position: relative;
}

.wave {
  position: absolute;
  top: -79px;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
}

.wave path {
  fill: var(--wave, var(--bg));
}

.proof {
  --wave: var(--surface);
  border-bottom: 0;
}

.block.mist {
  --wave: var(--surface);
}

.has-blobs {
  position: relative;
  isolation: isolate;
}

.blob-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.morph-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 35% 35%, var(--blob-a), var(--blob-b) 70%);
  opacity: 0.45;
  filter: blur(36px);
  animation: blob-morph 16s ease-in-out infinite;
}

.morph-blob.blob-left {
  bottom: 40px;
  left: -140px;
}

.morph-blob.blob-right {
  top: 120px;
  right: -120px;
  animation-delay: -5s;
}

.morph-blob.blob-top {
  top: -60px;
  right: 8%;
  width: 360px;
  height: 360px;
  animation-delay: -9s;
}

@keyframes blob-morph {
  0%,
  100% {
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    border-radius: 63% 37% 41% 59% / 55% 62% 38% 45%;
    transform: translate(40px, -30px) rotate(60deg);
  }

  66% {
    border-radius: 36% 64% 57% 43% / 62% 38% 62% 38%;
    transform: translate(-30px, 30px) rotate(140deg);
  }
}

.explorer-item:hover,
.rea-letters li:hover,
.flow li:hover,
.rules li:hover,
.mode:hover,
.faq details:hover,
.doc-layers > li:hover {
  animation: melt 1.4s ease-in-out;
}

@keyframes melt {
  0%,
  100% {
    transform: translateY(0);
  }

  35% {
    border-radius: 24px 14px 26px 12px / 14px 26px 12px 24px;
    transform: translateY(-3px);
  }

  70% {
    border-radius: 12px 26px 14px 24px / 26px 12px 24px 14px;
    transform: translateY(-1px);
  }
}

.docs-hero {
  position: relative;
  isolation: isolate;
}

.docs-lens {
  position: absolute;
  top: -30px;
  right: -380px;
  z-index: -1;
  width: 300px;
  height: 300px;
  opacity: 0.85;
}

@media (min-width: 1100px) {
  .report {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
  }

  .toc {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 112px);
    overflow: auto;
  }
}

@media (max-width: 1099px) {
  .toc {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer {
    grid-template-columns: minmax(0, 1fr);
  }

  .explorer-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .rules,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .masthead {
    gap: 10px 12px;
    padding: 10px 16px;
  }

  .wordmark img {
    height: 28px;
  }

  .header-tools {
    gap: 6px;
  }

  .social-x,
  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .account {
    gap: 10px;
  }

  .hero {
    padding: 36px 0 56px;
  }

  .block {
    padding: 64px 0;
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .scan-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .scan-form input {
    flex: none;
  }

  .scan-form button {
    width: 100%;
  }

  .hero .scan-form::before {
    top: 30px;
  }

  .evidence {
    display: block;
    overflow-x: auto;
  }

  .evidence th:nth-child(4),
  .evidence td:nth-child(4) {
    display: none;
  }
}

.button,
.scan-form button {
  background-image: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.38) 46%, transparent 60%);
  background-position: 130% 0;
  background-repeat: no-repeat;
  background-size: 250% 100%;
  transition: background-position 0.7s ease, background-color 0.15s ease;
}

.button:hover,
.scan-form button:hover {
  background-position: -30% 0;
}

.button.secondary {
  background-image: none;
}

.explorer-panel {
  view-transition-name: evidence-panel;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.25s;
}

::view-transition-group(evidence-panel) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crew-figure {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.crew-figure * {
  transform-box: view-box;
}

.crew-figure .crew-sticker {
  transform-origin: 200px 384px;
}

.crew-figure .crew-eyes {
  transform-origin: 200px 176px;
}

.crew-figure .mina-chip,
.crew-figure .paige-flip,
.crew-figure .vera-marks text {
  opacity: 0;
}

.crew-figure.is-working .crew-sticker {
  animation: crew-breathe 2.4s ease-in-out infinite;
}

.crew-figure.is-working .crew-eyes,
.crew-line .crew-eyes {
  animation: crew-blink 4.6s infinite;
}

.crew-figure.is-working .crew-sparkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: crew-twinkle 1.2s ease-in-out infinite;
}

.crew-mina.is-working .mina-dig {
  transform-origin: 258px 256px;
  animation: mina-dig 1.1s ease-in-out infinite;
}

.crew-mina.is-working .mina-wave {
  transform-origin: 142px 254px;
  animation: mina-wave 1.6s ease-in-out infinite;
}

.crew-mina .mina-chip-a {
  transform-origin: 340px 352px;
}

.crew-mina .mina-chip-b {
  transform-origin: 352px 356px;
}

.crew-mina.is-working .mina-chip {
  animation: mina-chip 2.2s ease-out infinite;
}

.crew-mina.is-working .mina-chip-b {
  animation-delay: 1.1s;
}

.crew-mina.is-working .mina-tail-left {
  transform-origin: 104px 176px;
  animation: crew-sway 1.1s ease-in-out infinite;
}

.crew-mina.is-working .mina-tail-right {
  transform-origin: 296px 176px;
  animation: crew-sway 1.1s ease-in-out infinite reverse;
}

.crew-paige.is-working .paige-flip {
  transform-origin: 200px 330px;
  animation: paige-flip 2.4s ease-in-out infinite;
}

.crew-paige.is-working .crew-iris {
  animation: paige-read 1.6s ease-in-out infinite;
}

.crew-paige.is-working .paige-point {
  transform-origin: 256px 254px;
  animation: paige-point 1.2s ease-in-out infinite;
}

.crew-paige.is-working .paige-aha {
  animation: crew-flash 1.2s ease-in-out infinite;
}

.crew-paige.is-working .paige-buns {
  transform-origin: 200px 90px;
  animation: crew-bob 1.2s ease-in-out infinite;
}

.crew-vera.is-working .vera-lens {
  transform-origin: 298px 238px;
  animation: vera-lens 2.2s ease-in-out infinite;
}

.crew-vera.is-working .vera-phone {
  transform-origin: 112px 300px;
  animation: crew-bob 1.4s ease-in-out infinite;
}

.crew-vera.is-working .vera-pom {
  transform-origin: 200px 40px;
  animation: crew-sway 0.9s ease-in-out infinite;
}

.crew-vera.is-working .vera-marks text:first-child {
  animation: vera-ask 2.4s ease-in-out infinite;
}

.crew-vera.is-working .vera-marks text:last-child {
  animation: vera-found 2.4s ease-in-out infinite;
}

.crew-ada.is-working .ada-wrench {
  transform-origin: 299px 229px;
  animation: ada-wrench 0.9s ease-in-out infinite;
}

.crew-ada.is-working .ada-cube {
  transform-origin: 104px 238px;
  animation: ada-cube 2s ease-in-out infinite;
}

.crew-ada.is-working .ada-tail {
  transform-origin: 280px 110px;
  animation: crew-sway 1.2s ease-in-out infinite;
}

.crew-holly.is-working .holly-lens {
  transform-origin: 290px 230px;
  animation: holly-lens 2s ease-in-out infinite;
}

.crew-holly.is-working .holly-tick {
  stroke-dasharray: 46;
  animation: holly-tick 2s ease-in-out infinite;
}

.crew-holly.is-working .holly-mark {
  transform-origin: 333px 160px;
  animation: crew-bob 1.6s ease-in-out infinite;
}

.crew-holly.is-working .holly-braid {
  transform-origin: 290px 206px;
  animation: crew-sway 2s ease-in-out infinite;
}

.crew-inka.is-working .inka-stamp {
  transform-origin: 256px 254px;
  animation: inka-stamp 1.3s cubic-bezier(0.5, 0, 0.4, 1) infinite;
}

.crew-inka.is-working .inka-seal {
  transform-origin: 96px 326px;
  animation: inka-seal 1.3s ease-out infinite;
}

.crew-inka.is-working .inka-bow {
  transform-origin: 200px 70px;
  animation: crew-bob 1.3s ease-in-out infinite;
}

.crew-stage {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 8px 0 24px;
  padding: 28px 16px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(90% 70% at 50% 30%, var(--brand-soft), var(--surface) 70%);
}

.crew-spot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  width: min(100%, 560px);
  min-height: clamp(230px, 52vw, 330px);
}

.crew-slot {
  position: relative;
  width: min(300px, 76%);
}

.crew-spot[data-count="2"] .crew-slot {
  width: min(260px, 48%);
}

.crew-slot.is-arriving {
  animation: crew-arrive 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.crew-slot.is-leaving {
  animation: crew-leave 0.45s ease-in forwards;
}

.crew-poof {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.crew-poof span {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px;
  border-radius: 50%;
  background: #ffd43b;
  opacity: 0;
  animation: crew-poof 0.8s ease-out forwards;
}

.crew-poof span:nth-child(1) {
  --dx: 0px;
  --dy: -120px;
}

.crew-poof span:nth-child(2) {
  --dx: 104px;
  --dy: -60px;
  background: #ff8fb1;
}

.crew-poof span:nth-child(3) {
  --dx: 104px;
  --dy: 60px;
  background: #8fb8ff;
}

.crew-poof span:nth-child(4) {
  --dx: 0px;
  --dy: 120px;
}

.crew-poof span:nth-child(5) {
  --dx: -104px;
  --dy: 60px;
  background: #ff8fb1;
}

.crew-poof span:nth-child(6) {
  --dx: -104px;
  --dy: -60px;
  background: #8fb8ff;
}

.crew-label {
  max-width: 34ch;
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.crew-roster {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.crew-roster li {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 62px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.crew-roster li.is-active {
  color: var(--ink);
  opacity: 1;
  transform: translateY(-4px);
}

.crew-roster .crew-figure {
  width: 54px;
}

.crew-parade {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 8px 0 24px;
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(90% 80% at 50% 20%, var(--brand-soft), var(--surface) 70%);
}

.crew-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crew-line li {
  display: grid;
  justify-items: center;
  width: clamp(72px, 13vw, 116px);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.crew-line .crew-figure {
  animation: crew-jump 0.9s ease-in-out 3 both;
}

.crew-line li:nth-child(2) .crew-figure {
  animation-delay: 0.12s;
}

.crew-line li:nth-child(3) .crew-figure {
  animation-delay: 0.24s;
}

.crew-line li:nth-child(4) .crew-figure {
  animation-delay: 0.36s;
}

.crew-line li:nth-child(5) .crew-figure {
  animation-delay: 0.48s;
}

.crew-line li:nth-child(6) .crew-figure {
  animation-delay: 0.6s;
}

.crew-confetti span {
  position: absolute;
  top: -14px;
  width: 9px;
  height: 13px;
  border-radius: 3px;
  background: #2563eb;
  opacity: 0;
  animation: crew-confetti 2.6s linear both;
}

.crew-confetti span:nth-child(1) { left: 6%; }
.crew-confetti span:nth-child(2) { left: 13%; background: #ff8fb1; animation-delay: 0.2s; }
.crew-confetti span:nth-child(3) { left: 20%; background: #ffd43b; animation-delay: 0.5s; }
.crew-confetti span:nth-child(4) { left: 27%; background: #7ed6c0; animation-delay: 0.1s; }
.crew-confetti span:nth-child(5) { left: 34%; background: #b9a6ff; animation-delay: 0.7s; }
.crew-confetti span:nth-child(6) { left: 41%; animation-delay: 0.35s; }
.crew-confetti span:nth-child(7) { left: 48%; background: #ff8a65; animation-delay: 0.9s; }
.crew-confetti span:nth-child(8) { left: 55%; background: #ffd43b; animation-delay: 0.15s; }
.crew-confetti span:nth-child(9) { left: 62%; background: #ff8fb1; animation-delay: 0.6s; }
.crew-confetti span:nth-child(10) { left: 69%; animation-delay: 0.45s; }
.crew-confetti span:nth-child(11) { left: 76%; background: #7ed6c0; animation-delay: 0.8s; }
.crew-confetti span:nth-child(12) { left: 83%; background: #b9a6ff; animation-delay: 0.25s; }
.crew-confetti span:nth-child(13) { left: 90%; background: #ffd43b; animation-delay: 0.55s; }
.crew-confetti span:nth-child(14) { left: 95%; background: #ff8a65; animation-delay: 1s; }

.crew-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crew-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
}

.crew-card h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.crew-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.crew-card .crew-modes {
  margin-top: 8px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@keyframes crew-breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.012, 0.985); }
}

@keyframes crew-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes crew-twinkle {
  0%, 100% { transform: scale(0.7) rotate(0deg); }
  50% { transform: scale(1.15) rotate(18deg); }
}

@keyframes crew-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

@keyframes crew-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes crew-flash {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes mina-dig {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  45% { transform: translate(-4px, -14px) rotate(-6deg); }
  60% { transform: translate(2px, 6px) rotate(3deg); }
}

@keyframes mina-wave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-10deg); }
}

@keyframes mina-chip {
  0%, 30% { opacity: 0; transform: translate(0, 10px) scale(0.5); }
  40% { opacity: 1; }
  80% { opacity: 1; transform: translate(26px, -96px) rotate(18deg) scale(1); }
  100% { opacity: 0; transform: translate(32px, -110px) rotate(22deg) scale(0.9); }
}

@keyframes paige-flip {
  0%, 40% { opacity: 0; transform: scaleX(1); }
  45% { opacity: 1; }
  75% { opacity: 1; transform: scaleX(-1); }
  80%, 100% { opacity: 0; transform: scaleX(-1); }
}

@keyframes paige-read {
  0%, 100% { transform: translate(-4px, 4px); }
  50% { transform: translate(4px, 4px); }
}

@keyframes paige-point {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-8deg); }
}

@keyframes vera-lens {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: translate(-6px, 0) rotate(-10deg); }
  65% { transform: rotate(6deg); }
}

@keyframes vera-ask {
  0%, 45% { opacity: 1; transform: translateY(0); }
  50%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes vera-found {
  0%, 50% { opacity: 0; }
  60%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes ada-wrench {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-22deg); }
}

@keyframes ada-cube {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-4deg); }
}

@keyframes holly-lens {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12) rotate(-4deg); }
}

@keyframes holly-tick {
  0% { stroke-dashoffset: 46; }
  40%, 100% { stroke-dashoffset: 0; }
}

@keyframes inka-stamp {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-16px) rotate(-6deg); }
  55% { transform: translateY(10px); }
  62% { transform: translateY(6px); }
}

@keyframes inka-seal {
  0%, 50% { opacity: 0; transform: scale(0.4); }
  58% { opacity: 1; transform: scale(1.25); }
  70%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes crew-arrive {
  0% { opacity: 0; transform: translateY(40px) scale(0.6) rotate(-8deg); }
  60% { opacity: 1; transform: translateY(-8px) scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes crew-leave {
  0% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate(-30px, 20px) scale(0.7) rotate(-10deg); }
}

@keyframes crew-poof {
  0% { opacity: 1; transform: translate(0, 0) scale(0.4); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}

@keyframes crew-jump {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-18px) rotate(-3deg); }
}

@keyframes crew-confetti {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translateY(260px) rotate(420deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 1100px) {
  .docs {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
  }

  .docs-nav {
    position: sticky;
    top: 88px;
    align-self: start;
  }
}

@media (max-width: 1099px) {
  .docs-nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .docs-nav a {
    background: var(--surface);
  }
}

@media (max-width: 860px) {
  .docs-lens {
    display: none;
  }

  .rea-head,
  .rea-letters,
  .rea-layers > li,
  .letters > div,
  .labels > div,
  .glossary > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .rea {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .hero-lens {
    top: -60px;
    right: -150px;
    width: 340px;
    height: 340px;
  }

  .hero-lens g,
  .closing-lens g,
  .rea-word text {
    filter: none;
  }
}
