/* Entity Search litepaper
   Visual language: white field, deep navy type, one confident blue,
   monospace technical labels, hairline cards, a live network in the hero. */

:root {
  color-scheme: light;
  --white: #FFFFFF;
  --tint: #F5F8FC;
  --navy: #0A1F3C;
  --text: #2C3A4F;
  --muted: #5A6A80;
  --line: #D8E1EC;
  --line-soft: #E7EDF5;
  --blue: #0B5CAD;
  --blue-dark: #084985;
  --blue-50: #EEF4FB;
  --blue-100: #DCE8F6;

  --c-integrity: #0B5CAD;
  --c-coverage: #0B7F73;
  --c-corroboration: #A86400;
  --c-distribution: #5641C2;
  --c-retrievability: #BE3640;

  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 64px;
  --radius: 6px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--white); z-index: 60; }

h1, h2, h3, h4 { color: var(--navy); margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 0.78rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); margin: 1.8rem 0 0.6rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }
code { font-family: var(--mono); font-size: 0.85em; background: var(--blue-50); color: var(--navy); padding: 0.08em 0.35em; border-radius: 3px; }
img, svg, canvas { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 70; background: var(--navy); color: #fff; padding: 0.6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 700 0.98rem/1 var(--sans); text-decoration: none; letter-spacing: -0.005em;
  padding: 0.95rem 1.4rem; border-radius: 4px; border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 0.65rem 1rem; font-size: 0.9rem; }
.btn-sky { background: #E3F0FC; color: var(--blue); border-color: #B7D6F3; }
.btn-sky:hover { background: #D2E7FA; border-color: #8FBDE9; color: var(--blue-dark); }
.header-actions { display: flex; gap: 0.5rem; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--blue); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em; }
.brand-mark { fill: currentColor; flex: none; }
.brand span { white-space: nowrap; }
.btn { white-space: nowrap; }
.header-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.header-nav a { white-space: nowrap; }
.header-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.header-nav a:hover { color: var(--blue); }
@media (max-width: 1240px) { .header-nav { display: none; } .header-actions { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-network { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 30% 50%, rgba(255,255,255,0.88), rgba(255,255,255,0.35) 60%, rgba(255,255,255,0) 80%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(4.5rem, 11vw, 8.5rem) clamp(4rem, 9vw, 7rem); }
.eyebrow {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem;
  font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--blue);
}
.eyebrow-mark { width: 8px; height: 8px; background: var(--blue); display: inline-block; }
.hero h1 {
  font-size: clamp(3rem, 1.6rem + 6vw, 5.6rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.045em;
  margin-bottom: 1.8rem;
}
.hero-lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.6; max-width: 36rem; color: var(--text); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }
.hero-tags { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; font: 500 0.72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.hero-byline { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section-tint { background: var(--tint); border-block: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-bottom: 2.4rem; }
.section-head h2 { flex: 0 1 auto; max-width: 100%; overflow-wrap: break-word; }
.section-head p { color: var(--muted); max-width: 30rem; margin: 0; font-size: 1rem; line-height: 1.5; }
.subhead { margin: 3.5rem 0 1.4rem; font-size: 1.35rem; font-weight: 800; }
.prose { max-width: 44rem; }
.prose.note { margin-top: 2rem; color: var(--muted); }
.cite { font: 500 0.72em/1 var(--mono); text-decoration: none; color: var(--blue); white-space: nowrap; letter-spacing: 0.02em; }
.cite:hover { text-decoration: underline; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.5rem; }
.card-num { font: 500 0.75rem/1 var(--mono); color: var(--blue); letter-spacing: 0.06em; margin: 0 0 1.1rem; }
.card h3 { margin-bottom: 0.6rem; }
.card p:last-child { margin-bottom: 0; }
.card > p:not(.card-num) { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.96rem; }
.card li { margin-bottom: 0.35rem; }
.card-grid { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1rem; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cards-4 { grid-template-columns: 1fr; } }

/* comparison table */
.table-scroll { overflow-x: auto; margin-top: 2.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-soft); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 500 0.72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); background: var(--blue-50); }
.compare tbody th { color: var(--navy); font-weight: 700; width: 22%; }
.compare td:last-child { color: var(--navy); }

/* stats */
.stat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; }
.stat-figure { font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--blue); margin-bottom: 0.8rem; font-variant-numeric: tabular-nums; }
.stat-claim { color: var(--text); font-size: 0.96rem; line-height: 1.55; flex: 1; }
.stat-source { margin: 0; font: 500 0.7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-source a { color: var(--muted); text-decoration: none; }
.stat-source a:hover { color: var(--blue); text-decoration: underline; }
.stat-inline { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 1.3rem; border-left: 3px solid var(--cc, var(--blue)); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 0.8rem; background: var(--tint); border-top: 0; border-right: 0; border-bottom: 0; }
.stat-inline .stat-figure { grid-row: span 2; color: var(--cc, var(--blue)); font-size: 2rem; margin: 0; }
.stat-inline .stat-claim { margin-bottom: 0.5rem; }
@media (max-width: 560px) { .stat-inline { grid-template-columns: 1fr; } .stat-inline .stat-figure { grid-row: auto; margin-bottom: 0.6rem; } }

/* fan-out diagram */
.fanout { margin: 2.4rem 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.fanout-controls { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 1rem; }
.fanout-controls button { font: 600 0.88rem/1 var(--sans); padding: 0.7rem 1rem; background: #fff; color: var(--navy); border: 0; border-right: 1px solid var(--line); cursor: pointer; }
.fanout-controls button:last-child { border-right: 0; }
.fanout-controls button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.fanout-stage { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#fanout-svg { display: block; width: 100%; min-width: 760px; height: auto; }
.fanout-copy p { margin: 1rem 0 0.4rem; max-width: 46rem; }
.fanout figcaption { font: 500 0.7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.fo-edge { fill: none; stroke: var(--blue); stroke-opacity: 0.35; stroke-width: 1.4; }
.fo-edge.is-drawing { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: fo-draw 700ms ease-out forwards; animation-delay: var(--d); }
@keyframes fo-draw { to { stroke-dashoffset: 0; } }
.fo-node rect { stroke-width: 1; }
.fo-node text { font: 600 13px var(--sans); }
.fo-node.is-in { opacity: 0; animation: fo-in 400ms ease-out forwards; animation-delay: var(--d); }
@keyframes fo-in { to { opacity: 1; } }
.fo-col-label { font: 500 10.5px var(--mono); letter-spacing: 0.12em; fill: var(--muted); text-transform: uppercase; }
.fo-pulse { fill: var(--blue); }
@media (prefers-reduced-motion: reduce) {
  .fo-edge.is-drawing, .fo-node.is-in { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .fo-pulse { display: none; }
}

/* callout */
.callout { margin-top: 1.6rem; padding: 1.4rem 1.6rem; border: 1px solid var(--blue-100); background: var(--blue-50); border-radius: var(--radius); max-width: 52rem; }
.callout-label { font: 500 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue); margin-bottom: 0.7rem; }
.callout p:last-child { margin: 0; }

/* ---------- components ---------- */
[data-c="integrity"] { --cc: var(--c-integrity); }
[data-c="coverage"] { --cc: var(--c-coverage); }
[data-c="corroboration"] { --cc: var(--c-corroboration); }
[data-c="distribution"] { --cc: var(--c-distribution); }
[data-c="retrievability"] { --cc: var(--c-retrievability); }

.component-tabs {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 40;
  display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1) 1.6rem; padding: 0.75rem var(--pad);
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.component-tabs::-webkit-scrollbar { display: none; }
.component-tabs a {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.88rem; color: var(--navy); text-decoration: none;
  padding: 0.5rem 0.85rem; border: 1px solid var(--line); border-radius: 4px; background: #fff;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.component-tabs a::before { content: ""; width: 8px; height: 8px; background: var(--cc); }
.component-tabs a[aria-current="true"] { background: var(--cc); border-color: var(--cc); color: #fff; }
.component-tabs a[aria-current="true"]::before { background: #fff; }

.component {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--cc); border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.6rem); margin-bottom: 1.2rem;
}
.comp-head { position: sticky; top: calc(var(--header-h) + 84px); align-self: start; }
.comp-head .card-num { color: var(--cc); }
.comp-head h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.9rem; }
.comp-q { font-size: 1.12rem; line-height: 1.5; color: var(--text); max-width: 24rem; }
.comp-body h4 { color: var(--cc); }
.comp-body h4:first-child { margin-top: 0; }
.comp-body ul { margin: 0; padding-left: 1.15rem; }
.comp-body li { margin-bottom: 0.5rem; }
.comp-body li::marker { color: var(--cc); }
.for-agents { margin: 1.6rem 0 0; padding: 1rem 1.2rem; background: var(--tint); border-radius: 4px; font-size: 0.98rem; }
.for-agents strong { color: var(--navy); }
.comp-fail { margin: 1rem 0 0; font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.crawler-toggle { margin-top: 1.4rem; }
@media (max-width: 860px) { .component { grid-template-columns: 1fr; } .comp-head { position: static; } }

/* ---------- playbook steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; position: relative; max-width: 50rem; }
.steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--blue-100); }
.step { position: relative; padding: 0 0 2.2rem 2.6rem; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.step .card-num { margin-bottom: 0.5rem; }
.step h3 { margin-bottom: 0.5rem; }
.step p:last-child { margin: 0; color: var(--muted); }

/* ---------- measurement ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.metric-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.metric-list li { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-soft); display: grid; gap: 0.2rem; }
.metric-list li:last-child { border-bottom: 0; }
.metric-name { font-weight: 700; color: var(--navy); }
.metric-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

/* ---------- diagnostic ---------- */
.diag-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 860px) { .diag-grid { grid-template-columns: 1fr; } .diag-result { order: -1; } }
.diag-hint { font-size: 0.92rem; color: var(--muted); }
.diag-presets { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.4rem; }
.chip { font: 600 0.82rem/1.2 var(--sans); color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0.5rem 0.75rem; cursor: pointer; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.slider { display: grid; grid-template-columns: 10rem 1fr 1.5rem; align-items: center; gap: 0.9rem; padding: 0.5rem 0; border-top: 1px solid var(--line-soft); }
.slider-name { font-weight: 700; font-size: 0.95rem; color: var(--cc); }
.slider input { width: 100%; accent-color: var(--cc); height: 1.6rem; }
.slider output { font-weight: 800; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.slider.is-constraint .slider-name::after { content: " (ceiling)"; color: var(--muted); font-weight: 500; font-size: 0.82em; }
@media (max-width: 440px) { .slider { grid-template-columns: 1fr 1.5rem; } .slider-name { grid-column: 1 / -1; } }
.diag-result { display: flex; flex-direction: column; align-items: center; }
.radar { display: block; width: 100%; max-width: 400px; height: auto; overflow: visible; }
.radar .ring { fill: none; stroke: var(--line); }
.radar .axis { stroke: var(--line); }
.radar .shape { fill: rgba(11,92,173,0.12); stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; transition: all 360ms cubic-bezier(.3,.8,.3,1); }
.radar .ceiling { fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-dasharray: 6 6; transition: all 360ms cubic-bezier(.3,.8,.3,1); }
.radar .pt { stroke: #fff; stroke-width: 2.5; transition: cx 360ms cubic-bezier(.3,.8,.3,1), cy 360ms cubic-bezier(.3,.8,.3,1); }
.radar .lbl { font: 700 15px var(--sans); }
@media (prefers-reduced-motion: reduce) { .radar .shape, .radar .ceiling, .radar .pt { transition: none; } }
.diag-readout { width: 100%; max-width: 26rem; margin-top: 0.8rem; }
.diag-scores { display: flex; gap: 1.8rem; font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); align-items: baseline; }
.diag-scores strong { font: 800 1.6rem/1 var(--sans); color: var(--navy); margin-left: 0.4rem; letter-spacing: -0.02em; }
.diag-constraint { font-weight: 700; color: var(--navy); }
.diag-move { color: var(--muted); }
.fineprint { margin-top: 1rem; font: 500 0.7rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }


/* sources */
.sources { padding-left: 1.4rem; margin: 0; max-width: 52rem; font-size: 0.95rem; }
.sources li { margin-bottom: 0.65rem; padding-left: 0.3rem; color: var(--muted); }
.sources li::marker { font: 500 0.8rem var(--mono); color: var(--blue); }
.sources li:target { background: var(--blue-50); outline: 6px solid var(--blue-50); border-radius: 2px; }

/* footer */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 2.5rem; font-size: 0.9rem; color: var(--muted); }
.footer-inner p { margin: 0 0 0.4rem; }
.brand-footer { font-weight: 800; letter-spacing: 0.04em; color: var(--blue); margin-bottom: 0.8rem !important; }

.crawler-banner { position: sticky; top: 0; z-index: 80; }

.fanout-hint { display: none; font: 500 0.7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.6rem; }
@media (max-width: 760px) {
  .fanout { padding: 1rem; }
  .fanout-controls { display: flex; width: 100%; }
  .fanout-controls button { flex: 1 1 0; padding: 0.7rem 0.4rem; font-size: 0.8rem; }
  .fanout-hint { display: block; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .header-inner { gap: 0.75rem; }
  .header-actions { gap: 0.4rem; }
  .header-inner .btn-sm { padding: 0.55rem 0.7rem; font-size: 0.8rem; }
}

/* ---------- what changed: ticker + timeline ---------- */
.section-shift { background: var(--navy); color: #DCE6F3; padding-top: 0; position: relative; overflow: hidden; }
.section-shift h2 { color: #fff; }
.section-shift .section-head { margin-top: clamp(3rem, 7vw, 5rem); }
.section-shift .section-head p { color: #B7C7DC; max-width: 34rem; }
.shift-from { font: 500 0.72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: #8FB6E6; margin-bottom: 0.8rem; }
.shift-source { margin: 0; font: 500 0.68rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.shift-source, .shift-source a { color: #8FA6C2; }
.shift-source a:hover { color: #fff; }

.ticker { background: var(--blue); border-bottom: 1px solid rgba(255,255,255,0.15); overflow: hidden; white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track, .section-shift.is-paused .ticker-track { animation-play-state: paused; }
.ticker-list { list-style: none; display: flex; margin: 0; padding: 0; }
.ticker-list li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.85rem 2.2rem 0.85rem 0; font: 500 0.74rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #CFE0F5; }
.ticker-list li::before { content: ""; width: 6px; height: 6px; background: #fff; opacity: 0.7; align-self: center; margin-right: 0.4rem; }
.ticker-list strong { font: 800 1.05rem/1 var(--sans); letter-spacing: -0.01em; text-transform: none; color: #fff; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker { overflow-x: auto; } }

.tl-rail { position: relative; height: 92px; margin: 0 1.2rem 1.6rem; }
.tl-track { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: rgba(255,255,255,0.14); border-radius: 2px; }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #4E8FD6, #9CC6F2); border-radius: 2px; transition: width 600ms cubic-bezier(.3,.8,.3,1); }
.tl-tabs { position: absolute; inset: 0; }
.tl-tab {
  position: absolute; left: var(--pos); top: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  background: none; border: 0; padding: 4px 4px 6px; cursor: pointer; color: #8FA6C2; font-family: var(--sans);
}
.tl-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 2px solid #4E6B8E; box-sizing: border-box; transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease; }
.tl-month { font: 500 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.tl-tag { font-size: 0.82rem; font-weight: 600; line-height: 1.25; text-align: center; width: 6.8rem; color: #8FA6C2; }
.tl-tab:hover .tl-dot { border-color: #9CC6F2; }
.tl-tab:hover, .tl-tab[aria-selected="true"] { color: #fff; }
.tl-tab[aria-selected="true"] .tl-tag { color: #fff; }
.tl-tab[aria-selected="true"] .tl-dot { background: #9CC6F2; border-color: #fff; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(156,198,242,0.18); animation: tl-pulse 2.2s ease-out infinite; }
.tl-tab.is-past .tl-dot { border-color: #9CC6F2; background: #2F5D90; }
@keyframes tl-pulse { 0% { box-shadow: 0 0 0 0 rgba(156,198,242,0.45); } 100% { box-shadow: 0 0 0 14px rgba(156,198,242,0); } }
.tl-tab:focus-visible { outline: 2px solid #9CC6F2; outline-offset: 2px; }
.tl-now { position: absolute; right: 0; top: 0; transform: translateX(50%); display: flex; flex-direction: column; align-items: center; gap: 0.45rem; font: 500 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #8FB6E6; padding-top: 4px; }
.tl-now::before { content: ""; width: 10px; height: 10px; margin: 5px 0; background: #8FB6E6; transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .tl-tab[aria-selected="true"] .tl-dot { animation: none; } .tl-fill { transition: none; } }

/* panels: a plain list without JS, a stacked carousel with it */
.tl-panels { display: grid; gap: 1rem; }
.tl-panel { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.2rem, 4vw, 3rem); align-items: center; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); background: rgba(255,255,255,0.03); }
.tl-panel:focus-visible { outline: 2px solid #9CC6F2; outline-offset: 2px; }
.tl-figure { font-weight: 800; font-size: clamp(3.2rem, 2rem + 4.5vw, 5.6rem); line-height: 0.95; letter-spacing: -0.05em; color: #fff; margin: 0; font-variant-numeric: tabular-nums; }
.tl-copy h3 { color: #fff; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.tl-copy p { color: #C9D6E8; }
.tl.is-enhanced .tl-panels { gap: 0; }
.tl.is-enhanced .tl-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 380ms ease, transform 380ms ease, visibility 0s linear 380ms; }
.tl.is-enhanced .tl-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 380ms ease, transform 380ms ease, visibility 0s; }
.tl.is-enhanced .tl-panel.is-active .tl-figure { animation: tl-rise 520ms cubic-bezier(.2,.8,.2,1); }
@keyframes tl-rise { from { opacity: 0; transform: translateY(18px); letter-spacing: -0.02em; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tl.is-enhanced .tl-panel, .tl.is-enhanced .tl-panel.is-active { transition: none; transform: none; } .tl.is-enhanced .tl-panel.is-active .tl-figure { animation: none; } }
.tl:not(.is-enhanced) .tl-rail, .tl:not(.is-enhanced) .tl-controls { display: none; }

.tl-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.tl-btn { font: 600 0.85rem/1 var(--sans); color: #fff; background: transparent; border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; padding: 0.6rem 0.9rem; cursor: pointer; }
.tl-btn:hover { border-color: #fff; }
.tl-btn:focus-visible { outline: 2px solid #9CC6F2; outline-offset: 2px; }
.tl-count { margin-left: 0.6rem; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; color: #8FA6C2; }
.tl-timer { flex: 1; min-width: 4rem; height: 2px; background: rgba(255,255,255,0.12); margin-left: 0.6rem; overflow: hidden; border-radius: 2px; }
.tl-timer span { display: block; height: 100%; width: 0; background: #9CC6F2; }
.tl.is-playing .tl-timer span { animation: tl-timer var(--dur, 5200ms) linear forwards; }
@keyframes tl-timer { to { width: 100%; } }

@media (max-width: 760px) {
  .tl-tag { display: none; }
  .tl-rail { height: 58px; margin-inline: 0.8rem; }
  .tl-panel { grid-template-columns: 1fr; }
}

/* author */
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 2rem; align-items: start; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.author { max-width: 36rem; }
.author .card-num { margin-bottom: 0.8rem; }
.author-name { font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin: 0 0 0.2rem !important; }
.author-role { font-weight: 600; color: var(--blue); margin: 0 0 0.8rem !important; }
.author-bio { color: var(--text); margin: 0 0 1.2rem !important; }

/* ---------- AI visibility checker ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.checker-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); grid-template-rows: auto auto; gap: 1rem; align-items: start; }
.checker-url { grid-row: span 2; }
@media (max-width: 900px) { .checker-grid { grid-template-columns: 1fr; } .checker-url { grid-row: auto; } }
.checker-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.checker-fine { margin-top: 0.9rem; margin-bottom: 0 !important; }
.bookmarklet { cursor: grab; border-style: dashed; border-color: var(--blue); }
.crawler-link { margin-top: 1.4rem; }
.url-form { display: flex; gap: 0.5rem; margin-top: 1.3rem; flex-wrap: wrap; }
.url-form input { flex: 1 1 16rem; min-width: 0; font: 500 1rem/1.2 var(--sans); color: var(--navy); padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.url-form input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.url-results:empty { display: none; }
.url-results { margin-top: 1.4rem; border-top: 1px solid var(--line-soft); padding-top: 1.4rem; }
.ur-msg { color: var(--muted); }
.ur-msg.is-error { color: var(--c-retrievability); }
.ur-loading { display: flex; align-items: center; gap: 0.7rem; color: var(--muted); }
.ur-spin { width: 16px; height: 16px; border: 2px solid var(--blue-100); border-top-color: var(--blue); border-radius: 50%; animation: ur-spin 800ms linear infinite; }
@keyframes ur-spin { to { transform: rotate(360deg); } }
.ur-top { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.2rem; }
.ur-ring { flex: none; }
.ur-ring circle { fill: none; stroke-width: 8; }
.ur-ring .bg { stroke: var(--line-soft); }
.ur-ring .fg { stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 900ms cubic-bezier(.3,.8,.3,1); }
.ur-ring text { font: 800 24px var(--sans); fill: var(--navy); }
.ur-head p { margin: 0; }
.ur-label { font: 500 0.7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); margin-bottom: 0.3rem !important; }
.ur-verdict { font-weight: 700; color: var(--navy); }
.ur-url { font-size: 0.85rem; color: var(--muted); word-break: break-all; }
.ur-parts { display: grid; gap: 0.6rem; margin-bottom: 1.4rem; }
.ur-part { display: grid; grid-template-columns: 11rem 1fr 3.5rem; gap: 0.8rem; align-items: center; font-size: 0.9rem; }
.ur-part .lbl { font-weight: 600; color: var(--navy); }
.ur-part .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 700; }
.ur-part .note { grid-column: 1 / -1; color: var(--muted); font-size: 0.82rem; margin-top: -0.4rem; }
.ur-track { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.ur-track i { display: block; height: 100%; background: var(--blue); border-radius: 3px; width: 0; transition: width 700ms cubic-bezier(.3,.8,.3,1); }
@media (max-width: 520px) { .ur-part { grid-template-columns: 1fr 3rem; } .ur-part .ur-track { grid-column: 1 / -1; grid-row: 2; } }
.url-results h4 { margin: 1.6rem 0 0.6rem; }
.ur-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.ur-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 460px; }
.ur-table th, .ur-table td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ur-table tr:last-child td { border-bottom: 0; }
.ur-table th { font: 500 0.68rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); background: var(--blue-50); }
.ur-table td.yes { color: var(--c-coverage); font-weight: 700; }
.ur-table td.no { color: var(--c-retrievability); font-weight: 700; }
.ur-table .muted { color: var(--muted); }
.ur-flags { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.ur-flags .yes::before { content: "✓ "; color: var(--c-coverage); font-weight: 700; }
.ur-flags .no::before { content: "✗ "; color: var(--c-retrievability); font-weight: 700; }
.ur-warn { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: 4px; background: #FDF1F1; color: #7A1F26; font-size: 0.92rem; border: 1px solid #F3C9CC; }
.ur-preview { font: 0.82rem/1.6 var(--mono); color: var(--text); background: var(--tint); border: 1px solid var(--line-soft); border-radius: 4px; padding: 0.9rem 1rem; max-height: 14rem; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.ur-fine { margin-top: 1rem; font-size: 0.82rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ur-spin { animation: none; } .ur-ring .fg, .ur-track i { transition: none; } }

.site-line { font-size: 0.85rem; }
@media (max-width: 380px) {
  .header-inner .btn-sm { padding: 0.5rem 0.55rem; font-size: 0.76rem; }
  .header-actions { gap: 0.3rem; }
}

/* ---------- two outcomes ---------- */
.outcome-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.6rem; }
.outcome { background: var(--tint); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.outcome h3 { margin-bottom: 0.5rem; }
.outcome p:last-child { margin: 0; color: var(--text); font-size: 0.98rem; }
.outcome-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 52rem; }
@media (max-width: 760px) { .outcome-map { grid-template-columns: 1fr; } }
.outside-model { margin-top: 1.6rem; }

/* ---------- score rubric ---------- */
.rubric { margin-top: 1.2rem; border-top: 1px solid var(--line-soft); padding-top: 0.9rem; font-size: 0.92rem; }
.rubric summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.rubric ul { margin: 0.8rem 0; padding-left: 1.1rem; color: var(--text); }
.rubric li { margin-bottom: 0.45rem; }
.rubric p { color: var(--muted); margin: 0; }

/* ---------- contents menu (shown when the header nav is hidden) ---------- */
.toc { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: none; }
.toc summary { list-style: none; cursor: pointer; font: 700 0.85rem/1 var(--sans); color: #fff; background: var(--navy); border-radius: 999px; padding: 0.75rem 1.05rem; box-shadow: 0 8px 24px rgba(10,31,60,0.25); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: ""; display: inline-block; width: 10px; height: 8px; margin-right: 0.5rem; vertical-align: 0.05em; background: linear-gradient(#fff 0 0) top/100% 2px no-repeat, linear-gradient(#fff 0 0) center/100% 2px no-repeat, linear-gradient(#fff 0 0) bottom/100% 2px no-repeat; }
.toc nav { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(18rem, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 50px rgba(10,31,60,0.2); padding: 0.4rem; display: grid; }
.toc nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.92rem; padding: 0.6rem 0.75rem; border-radius: 4px; }
.toc nav a:hover, .toc nav a:focus-visible { background: var(--blue-50); color: var(--blue); }
@media (max-width: 1240px) { .toc { display: block; } }
.card > p.fineprint { font: 500 0.68rem/1.5 var(--mono); text-transform: none; letter-spacing: 0.02em; color: var(--muted); }

/* ---------- Neuromancer homage (footer) ---------- */
.footer-brandrow { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.footer-brandrow .brand-footer { margin: 0 !important; }
.homage { position: relative; display: inline-flex; line-height: 0; border-radius: 3px; }
.homage-icon { width: 32px; height: 32px; image-rendering: pixelated; transition: transform 160ms ease; }
.homage:hover .homage-icon, .homage:focus-visible .homage-icon { transform: translateY(-2px) scale(1.08); }
.px-holo { animation: px-flicker 2.4s steps(1, end) infinite; }
.px-cursor { animation: px-blink 1.1s steps(1, end) infinite; }
@keyframes px-flicker { 0%, 100% { opacity: 1; } 48% { opacity: 0.35; } 52% { opacity: 1; } 76% { opacity: 0.7; } }
@keyframes px-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.homage-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px);
  width: 16.5rem; padding: 0.7rem 0.85rem; border-radius: 6px; background: var(--navy); color: #DCE6F3;
  font: 500 0.8rem/1.45 var(--sans); text-align: left; box-shadow: 0 12px 30px rgba(10,31,60,0.25);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms; z-index: 5;
}
.homage-tip cite { font-style: italic; color: #fff; }
.homage-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--navy); }
.homage:hover .homage-tip, .homage:focus-visible .homage-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 160ms ease, transform 160ms ease, visibility 0s; }
@media (max-width: 760px) { .footer-brandrow { position: relative; } .homage { position: static; } .homage-tip { left: 0; width: min(16.5rem, 100%); transform: translate(0, 4px); } .homage:hover .homage-tip, .homage:focus-visible .homage-tip { transform: translate(0, 0); } .homage-tip::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .px-holo, .px-cursor { animation: none; } .homage-icon, .homage-tip { transition: none; } }

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.2rem; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
