/* ============================================================
   Signal — editorial site for the CS hiring argument
   Aesthetic: warm off-white, deep ink, single rust accent,
   serif display + clean sans + mono for data
   ============================================================ */

:root {
  /* Clean editorial palette, cool off-white + deep teal */
  --bg: #f3f3ef;
  --bg-deep: #e8e8e2;
  --paper: #ffffff;
  --ink: #111317;
  --ink-2: #2a2d33;
  --muted: #6a6e76;
  --rule: rgba(17, 19, 23, 0.08);
  --rule-strong: rgba(17, 19, 23, 0.18);
  --accent: #185c5c;
  --accent-soft: rgba(24, 92, 92, 0.10);
  --good: #2f7a55;
  --bad:  #b04632;
  --serif: "Instrument Serif", "Newsreader", Georgia, serif;
  --serif-2: "Newsreader", Georgia, serif;
  --sans: "Inter Tight", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Layout primitives ---------- */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .shell { padding: 0 22px; } }

.row { display: grid; grid-template-columns: 200px 1fr; gap: 64px; }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; gap: 12px; } }

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

hr.rule { border: none; border-top: 1px solid var(--rule-strong); margin: 0; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.brand-spacer { justify-self: start; }
.nav-tabs {
  display: flex; gap: 4px; align-items: center;
  justify-self: center;
  font-family: var(--mono);
}
.nav-tabs a {
  text-decoration: none;
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.18s;
}
.nav-tabs a:hover { background: var(--bg-deep); }
.nav-cta { justify-self: end; }
.nav-cta a.cta {
  text-decoration: none;
  font-size: 13px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.18s;
}
.nav-cta a.cta:hover { background: var(--accent); }
@media (max-width: 720px) {
  .nav-tabs { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .brand-spacer { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 48px; padding-bottom: 110px; position: relative; }
.hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 14px;
}
.hero .eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 22ch;
}
.hero h1 .em { color: var(--accent); font-weight: 500; font-family: var(--mono); }
.hero .lede {
  margin-top: 36px;
  max-width: 56ch;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
}
.hero .meta {
  margin-top: 48px;
  display: flex; gap: 48px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero .meta strong { color: var(--ink); font-weight: 500; display: block; margin-top: 4px; font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; }

/* Hero, graphic + display-size explanation */
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.hero-figure-wrap { display: flex; justify-content: center; }
.hero-figure.inline-figure {
  position: static;
  width: 100%;
  max-width: 420px;
  height: auto;
  opacity: 0.95;
}
.hero-lede {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
  font-weight: 500;
}
.hero-lede .em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}
@media (max-width: 1024px) {
  .hero-figure.inline-figure { max-width: 320px; }
  .hero-lede { max-width: 28ch; }
}

/* ---------- Section header ---------- */
.section { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--rule-strong); }
.section-head {
  display: grid; grid-template-columns: 200px 1fr; gap: 64px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; } }
.section-title {
  font-family: var(--mono);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  max-width: 26ch;
}
.section-title .em {
  color: var(--accent);
  font-weight: 500;
  font-family: var(--mono);
  font-style: normal;
}

.section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head.center .section-title { max-width: 32ch; }
.section-head.center .section-kicker { margin-left: auto; margin-right: auto; }
.section-kicker {
  font-family: var(--serif-2);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 24px 0 0 0;
}

/* ---------- Claim cards, distributed center ---------- */
.claim {
  padding: 48px 0 56px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.claim:first-of-type { border-top: 1px solid var(--rule-strong); }
.claim > div { width: 100%; max-width: 60ch; }
.claim-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
}
.claim h3 {
  margin: 0 auto 16px;
  font-family: var(--mono);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 28ch;
}
.claim p {
  margin: 0 auto 14px;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 17px;
}
.claim .pull-quote { margin-left: auto; margin-right: auto; text-align: left; }

/* ---------- Citation pills (inline source links) ---------- */
.cite {
  display: inline;
  cursor: pointer;
  position: relative;
  color: inherit;
  text-decoration: none;
  padding: 1px 2px;
  border-bottom: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s;
}
.cite:hover {
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
}
.cite .marker {
  display: none;
  vertical-align: baseline;
  font-size: 0.72em;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--accent);
  margin-left: 4px;
  padding: 1px 5px;
  letter-spacing: 0.06em;
  background: var(--accent-soft);
  border-radius: 3px;
  line-height: 1;
}
.cite:hover .marker { display: inline-block; }

.cite.cite-secondary {
  border-bottom: 1px dashed color-mix(in oklab, var(--accent) 55%, transparent);
}
.cite.cite-secondary:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--accent);
}
.versus .cite,
.scope-card .cite {
  border-bottom: 1px dashed rgba(255,255,255,0.45);
}
.versus .cite:hover,
.scope-card .cite:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--paper);
}

/* Citation popover, with a transparent bridge so the cursor can travel
   from the underlined text into the card without losing hover */
.cite-pop {
  position: absolute;
  z-index: 60;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 12px 40px -8px #14131033;
  padding: 18px 20px;
  width: 320px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 10px;
}
.cite-pop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
  background: transparent;
}
.cite-pop .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.cite-pop .src {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Data viz ---------- */
.data-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .data-grid { grid-template-columns: 1fr; } }

.data-card {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 28px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.data-card h4 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.data-card .big {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 14px 0 4px;
  font-weight: 400;
}
.data-card .big .em { color: var(--accent); }
.data-card .cap {
  font-size: 13px;
  color: var(--muted);
  max-width: 30ch;
}
.data-card .source {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* LeetCode vs GitHub bars */
.bench-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.bench-row:first-child { border-top: none; }
.bench-row .lbl { font-family: var(--mono); color: var(--ink-2); }
.bench-row .bar { height: 14px; background: var(--bg-deep); position: relative; overflow: hidden; border-radius: 2px; }
.bench-row .bar > span {
  display: block; height: 100%;
  background: var(--ink);
  transition: width 0.6s cubic-bezier(.2,.7,.2,1);
}
.bench-row.win .bar > span { background: var(--good); }
.bench-row.fail .bar > span { background: var(--bad); }
.bench-row .pct { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--ink-2); }

/* Funnel */
.funnel { display: flex; flex-direction: column; gap: 2px; }
.funnel-step {
  display: grid;
  grid-template-columns: 1fr 80px;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-deep);
  position: relative;
}
.funnel-step .lbl { font-size: 14px; }
.funnel-step .lbl small { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.funnel-step .v { font-family: var(--serif); font-size: 28px; text-align: right; font-style: italic; }
.funnel-step.machine { background: color-mix(in oklab, var(--bad) 18%, var(--bg-deep)); }
.funnel-step.human { background: color-mix(in oklab, var(--good) 22%, var(--bg-deep)); }

/* Survey donut */
.donut-wrap { display: flex; align-items: center; gap: 28px; }
.donut { width: 140px; height: 140px; flex-shrink: 0; }
.donut-legend { font-size: 13px; color: var(--ink-2); }
.donut-legend ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.donut-legend li { display: flex; align-items: center; gap: 10px; }
.donut-legend .sw { width: 12px; height: 12px; border-radius: 2px; }

/* ---------- Scorer / interactive demo ---------- */
.scorer {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  overflow: hidden;
}
.scorer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-deep);
}
.scorer-head .title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* App-menu-style scorer header */
.menu-bar { gap: 16px; }
.menu-left {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  min-width: 0;
  overflow: hidden;
}
.menu-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: color-mix(in oklab, var(--good) 65%, var(--bg-deep));
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--good) 22%, transparent);
  flex-shrink: 0;
}
.menu-app {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.menu-sep { color: color-mix(in oklab, var(--muted) 55%, transparent); }
.menu-crumb { color: var(--ink-2); }
.menu-crumb.active {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
}
.toggle button {
  border: none; background: transparent;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: all 0.18s;
}
.toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

.scorer-body {
  display: grid; grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 900px) { .scorer-body { grid-template-columns: 1fr; } }

.candidate-col { border-right: 1px solid var(--rule); }
@media (max-width: 900px) { .candidate-col { border-right: none; border-bottom: 1px solid var(--rule); } }

.candidate-list {
  list-style: none; padding: 0; margin: 0;
}
.candidate {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.15s;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.candidate:hover { background: var(--bg); }
.candidate.selected { background: var(--bg-deep); }
.candidate .name { font-family: var(--serif); font-size: 22px; }
.candidate .role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.candidate .tags { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.05em; margin-top: 6px; }
.candidate .score-pill {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  min-width: 64px;
  text-align: center;
  letter-spacing: 0.04em;
}
.candidate.pass .score-pill { background: color-mix(in oklab, var(--good) 22%, var(--bg)); color: var(--good); border-color: color-mix(in oklab, var(--good) 35%, transparent); }
.candidate.fail .score-pill { background: color-mix(in oklab, var(--bad) 18%, var(--bg)); color: var(--bad); border-color: color-mix(in oklab, var(--bad) 35%, transparent); }

.detail-col { padding: 24px 28px; min-height: 420px; }
.detail-col h5 { margin: 0 0 4px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.detail-col .sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.signal-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.signal-row:last-child { border-bottom: 1px solid var(--rule); }
.signal-row .desc { color: var(--ink-2); }
.signal-row .desc small { display: block; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.signal-row .weight {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  min-width: 70px;
}
.signal-row .pts {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  min-width: 50px;
}
.signal-row .pts.plus { color: var(--good); }
.signal-row .pts.minus { color: var(--bad); }
.score-final {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--rule-strong);
  display: flex; justify-content: space-between; align-items: baseline;
}
.score-final .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.score-final .val { font-family: var(--serif); font-size: 56px; font-weight: 400; line-height: 1; }
.verdict {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  display: inline-block;
  border-radius: 2px;
}
.verdict.pass { background: color-mix(in oklab, var(--good) 22%, transparent); color: var(--good); }
.verdict.fail { background: color-mix(in oklab, var(--bad) 18%, transparent); color: var(--bad); }

/* ---------- Solution cards ---------- */
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .path-grid { grid-template-columns: 1fr; } }
.path-card {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 28px;
  display: flex; flex-direction: column;
  border-radius: 4px;
}
.path-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
  text-transform: uppercase;
}
.path-card h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.15;
}
.path-card p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.path-card .path-cite {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.path-card .actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.path-card .actions a {
  text-decoration: none;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.15s;
}
.path-card .actions a:hover { border-color: var(--accent); color: var(--accent); }

.versus {
  margin-top: 64px;
  background: var(--ink);
  color: var(--paper);
  padding: 48px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 720px) { .versus { grid-template-columns: 1fr; padding: 32px; } }
.versus h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 60%, transparent);
  margin: 0 0 18px;
  font-weight: 500;
}
.versus .v-title {
  font-family: var(--mono);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 500;
  color: var(--paper);
}
.versus ul { list-style: none; padding: 0; margin: 0; }
.versus li {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 14px;
  line-height: 1.55;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: color-mix(in oklab, var(--paper) 88%, transparent);
}
.versus li:first-child { border-top: none; }
.versus li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* Citation styling inside dark blocks (.versus, .scope-card) */
.versus .cite:hover,
.scope-card .cite:hover {
  background: rgba(255,255,255,0.10);
  border-bottom-color: var(--paper);
}
.versus .cite .marker,
.scope-card .cite .marker {
  color: var(--paper);
  background: rgba(255,255,255,0.14);
}

/* ---------- Sources ---------- */
.sources-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
@media (max-width: 720px) { .sources-list { grid-template-columns: 1fr; } }
.source-item {
  padding: 24px 28px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.source-item:nth-child(2n+1) { border-left: none; }
@media (max-width: 720px) { .source-item { border-left: none; } }
.source-item .id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.source-item .t {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.source-item .meta {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 14px;
}
.source-item p { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule-strong);
  padding: 56px 0 80px;
  margin-top: 32px;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.footer p, .footer a { font-size: 13px; color: var(--ink-2); text-decoration: none; line-height: 1.7; display: block; }
.footer a:hover { color: var(--accent); }
/* Center Authors / Read / Use columns per Saurabh */
.footer-grid { grid-template-columns: 1fr 1fr 1fr; justify-items: center; text-align: center; }
.footer-grid > div { text-align: center; }
.footer-grid p { margin-inline: auto; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg-deep);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  color: var(--ink-2);
}

.pull-quote {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  padding: 18px 22px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  max-width: 60ch;
  color: var(--ink);
}
/* Bio block under the role in the scorer detail column */
.detail-col .bio {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: -14px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--sans);
}

/* Solution: shift-strip evidence row, spaced like .path-grid */
.shift-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 40px;
}
@media (max-width: 900px) { .shift-strip { grid-template-columns: 1fr; } }
.shift-strip > div {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.shift-strip .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.shift-strip .stat {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 10px;
}
.shift-strip .stat .em { color: var(--accent); }
.shift-strip .note { font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* Note-on-Scope big text (technical/mono, readable) */
.scope-card {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.scope-card .source {
  color: color-mix(in oklab, var(--paper) 60%, transparent);
}
.note-scope-line {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--paper);
}
.scope-body {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.82;
  margin: 0;
}

/* When tweak toggled off, citations behave like plain text */
body.hide-citations .cite { border-bottom: none; cursor: default; }
body.hide-citations .cite:hover { background: transparent; border-bottom: none; }
body.hide-citations .cite:hover .marker { display: none; }

.pull-quote .attr {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}

/* ---------- Magicui-inspired animation primitives ---------- */
.typing { white-space: pre-wrap; }
.typing-caret {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -0.12em;
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 0 40px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll linear infinite;
}
.marquee-pause:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex-shrink: 0; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 12px)); }
}

/* shift-strip (Drivers) as marquee cards */
.shift-strip-marquee .marquee-item { width: 360px; }
.shift-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.shift-card .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  text-align: center;
}
.shift-card .stat {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
  text-align: center;
}
.shift-card .stat .em { color: var(--accent); }
.shift-card .note { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* path-marquee sizing */
.path-marquee .marquee-item { width: 360px; }
.path-marquee .path-card { height: 100%; }

/* number ticker just inherits parent typography */

/* ---------- IntroTerminal: magicui terminal style ---------- */
body.intro-active { overflow: hidden; }
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(60px, 12vh, 140px) 24px 40px;
  gap: 36px;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.intro-overlay.intro-fade { opacity: 0; pointer-events: none; }

.intro-terminal {
  width: min(820px, 100%);
  background: var(--ink);
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 30px 80px -24px rgba(20,19,15,0.35),
    0 0 0 1px rgba(20,19,15,0.06);
  overflow: hidden;
  font-family: var(--mono);
}
.intro-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: color-mix(in oklab, var(--ink) 90%, white);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 78%, white);
}
.intro-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.intro-dot-r { background: #ff5f56; }
.intro-dot-y { background: #ffbd2e; }
.intro-dot-g { background: #27c93f; }
.intro-title {
  margin-left: 14px;
  font-size: 12px;
  color: color-mix(in oklab, var(--paper) 60%, transparent);
  letter-spacing: 0.04em;
}
.intro-body {
  padding: 32px 36px 36px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.85;
  color: var(--paper);
  min-height: 240px;
}
.intro-row {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
}
.intro-prompt {
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}
.intro-text { white-space: pre-wrap; }
.intro-caret {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -0.12em;
  animation: caret-blink 0.9s steps(1) infinite;
}
.intro-q-row { margin-top: 12px; align-items: baseline; }
.intro-q {
  font-size: 1em;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.intro-btn {
  background: var(--accent);
  color: var(--paper);
  border: none;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  animation: intro-btn-in 0.45s cubic-bezier(.2,.7,.2,1) both;
  transition: transform 0.15s ease, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 22px -8px color-mix(in oklab, var(--accent) 55%, transparent);
}
.intro-btn:hover {
  background: color-mix(in oklab, var(--accent) 88%, black);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px color-mix(in oklab, var(--accent) 65%, transparent);
}
.intro-btn:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}
@keyframes intro-btn-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

