:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --r: 0;
  --r-lg: 0;
  --space-section: 56px;
  --space-section-sm: 40px;
  --space-footer-gap: 56px;
  --space-stack: 24px;
  --nav-height: 64px;
  --shell-max: 1180px;
  --gutter: 32px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #0f1113;
  --panel: #16191c;
  --raised: #1b1f23;
  --line: #262b30;
  --line2: #343a40;
  --fg: #e7e9ea;
  --fg2: #9aa2a9;
  --fg3: #757e86;
  --accent: #7aa7d9;
  --accent-bg: #18232e;
  --neg: #e08585;
  --neg-bg: #2a1a1a;
  --pos: #7fbf8e;
  --pos-bg: #16241a;
  --warn: #d9ae6a;
  --warn-bg: #2a2216;
}

@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: page-roll-out 140ms ease-out both;
  transform-origin: left center;
}

::view-transition-new(root) {
  animation: page-roll-in 200ms var(--ease-out) both;
  transform-origin: right center;
}

@keyframes page-roll-out {
  to { opacity: 0; transform: translateX(-4px); }
}

@keyframes page-roll-in {
  from { opacity: 0; transform: perspective(1200px) translateX(10px) rotateY(2deg); }
  to { opacity: 1; transform: perspective(1200px) translateX(0) rotateY(0); }
}

* { box-sizing: border-box; }
html { background: var(--bg); min-height: 100%; }
body { min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; align-items: stretch; }
::selection { background: var(--accent-bg); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: fixed; z-index: 100; top: 8px; left: 8px; min-height: 44px;
  display: flex; align-items: center; padding: 0 14px; background: var(--accent-bg);
  color: var(--fg); border: 1px solid var(--accent); border-radius: var(--r);
  text-decoration: none; transform: translateY(-160%); transition: transform 140ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: sticky; top: 0; z-index: 50; min-height: var(--nav-height);
  background: var(--bg); border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
.site-header__inner, .site-footer__inner, .shell {
  width: 100%; min-width: 0; max-width: var(--shell-max); margin-inline: auto; padding-inline: var(--gutter);
}
.site-header__inner { min-height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 2px; }
.wordmark { color: var(--fg); display: inline-flex; align-items: center; gap: 7px; text-decoration: none; min-height: 44px; line-height: 1; view-transition-name: wordmark; }
.wordmark__text { color: var(--fg); font: 500 18px/1 var(--mono); letter-spacing: -.01em; }
.identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.live-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 18px; line-height: 1;
  cursor: default;
  min-height: 32px;
}
.live-badge:focus-visible { outline: 2px solid var(--pos); outline-offset: 2px; }
.live-badge:focus:not(:focus-visible) { outline: none; }
.live-badge:active { transform: none; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pos); flex-shrink: 0;
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.live-label { color: var(--pos); font: 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.live-tooltip {
  position: absolute; top: calc(100% + 8px); left: 0;
  transform: translateY(-4px); white-space: nowrap;
  background: var(--raised); border: .5px solid var(--line2); border-radius: 6px;
  padding: 5px 9px; font: 11px var(--mono); font-variant-numeric: tabular-nums;
  color: var(--fg2); opacity: 0; pointer-events: none;
  transition: opacity 150ms ease-out, transform 150ms ease-out; z-index: 10;
}
.live-badge.is-active .live-tooltip { opacity: 1; transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
  .live-badge:hover .live-tooltip,
  .live-badge:focus-visible .live-tooltip { opacity: 1; transform: translateY(0); }
  .live-badge:hover .live-dot,
  .live-badge:focus-visible .live-dot { animation-play-state: paused; opacity: 1; transition: opacity 140ms ease; }
}
.site-nav { display: flex; align-items: stretch; gap: 8px; height: var(--nav-height); }
.site-nav a:link, .site-nav a:visited, .site-nav a:active { position: relative; min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; color: var(--fg2); font-size: 13px; line-height: 1; text-decoration: none; transition: color 150ms ease; }
.site-nav a:focus-visible { color: var(--fg); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: var(--fg); text-decoration: none; } }
.site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 8px; right: 8px; height: 2px; background: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; color: var(--fg); background: transparent; border: 0; border-radius: var(--r); }
.menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-toggle svg { width: 18px; height: 18px; }

.site-footer { margin-top: auto; background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -1px 0 var(--line), 0 -2px 0 rgba(122, 167, 217, .03); font-family: var(--mono); color: var(--fg3); }
.site-footer__inner { padding-block: 14px 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.footer-wordmark { grid-column: 1; display: flex; align-items: center; min-height: 44px; margin: 0; color: var(--fg); font-size: 13px; line-height: 20px; }
.footer-contact { grid-column: 2; justify-self: end; margin: 0; line-height: 20px; }
.footer-meta { grid-column: 1 / -1; margin: 14px 0 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); border-top: 1px solid var(--line); }
.footer-meta dt { padding: 10px 0; color: var(--fg3); font: 10px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.footer-meta dd { min-width: 0; margin: 0; padding: 4px 0; color: var(--fg2); font-size: 12px; line-height: 1.7; }
.footer-meta dt:not(:first-of-type), .footer-meta dt:not(:first-of-type) + dd { border-top: 1px solid var(--line); }
.footer-sources span { display: block; }
.footer-disclaimer { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--fg3); font-size: 12px; line-height: 1.65; text-wrap: pretty; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 2px 24px; }
.footer-nav a:link, .footer-nav a:visited, .footer-nav a:active { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg3); font-size: 12px; line-height: 20px; text-decoration: none; transition: color 150ms ease; }
.footer-nav a:focus-visible { color: var(--fg); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover { color: var(--fg); text-decoration: none; }
  .footer-nav a:link, .footer-nav a:visited, .footer-nav a:active { min-height: 32px; }
  .footer-contact a:link, .footer-contact a:visited, .footer-contact a:active { min-height: 32px; }
  .footer-wordmark { min-height: 32px; }
}
.footer-contact a:link, .footer-contact a:visited, .footer-contact a:active { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg3); font-size: 12px; text-decoration: none; transition: color 150ms ease; }
.footer-contact a:focus-visible { color: var(--accent); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-contact a:hover { color: var(--accent); text-decoration: none; } }




.page-wrap { width: min(100% - 48px, 720px); margin: 0 auto; padding-top: 64px; padding-bottom: var(--space-footer-gap); flex: 1 0 auto; }
.page-title { margin: 0 0 28px; color: var(--fg); font-size: 32px; font-weight: 500; letter-spacing: -.01em; line-height: 1.16; }
.page-intro { max-width: 65ch; margin: 0; color: var(--fg2); font-size: 16px; line-height: 1.6; }
.prose-section { margin-top: var(--space-section); }
.prose-section h2 { margin: 0 0 14px; color: var(--fg); font-size: 24px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.prose-section h3 { margin: 24px 0 12px; color: var(--fg2); font-size: 16px; font-weight: 500; }
.prose-section p, .prose-section li { color: var(--fg2); font-size: 14px; line-height: 1.65; }
.prose-section p { margin: 0 0 16px; }
.prose-section ul { padding-left: 20px; margin: 0; }
.prose-section li + li { margin-top: 8px; }
.prose-section code { color: var(--accent); font: 13px var(--mono); }
.todo { margin: 20px 0; padding: 16px; color: var(--fg3); background: var(--warn-bg); border: 1px solid var(--line); border-left-color: var(--warn); border-radius: var(--r); font-size: 13px; font-style: italic; line-height: 1.55; }
.todo strong { color: var(--warn); font: 12px var(--mono); letter-spacing: .06em; font-style: normal; }
.data-table-wrap { position: relative; overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); }
.data-table { width: 100%; min-width: 610px; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--fg3); font: 11px var(--mono); letter-spacing: .07em; }
.data-table td { color: var(--fg2); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--fg); font-family: var(--mono); }

.draft-badge { display: inline-flex; min-height: 30px; align-items: center; margin-bottom: 30px; padding: 0 9px; background: var(--warn-bg); border-radius: var(--r); color: var(--warn); font: 12px var(--mono); }
.manifesto-mission { max-width: 540px; margin: 0 auto 64px; color: var(--fg); font-size: 28px; font-weight: 500; line-height: 1.3; text-align: center; }
.principle { max-width: 65ch; }
.principle + .principle { margin-top: 56px; }
.principle h2 { display: inline-block; margin: 0 0 14px; padding-bottom: 7px; border-bottom: 2px solid var(--accent); color: var(--fg); font-size: 22px; font-weight: 500; }
.principle p, .manifesto-closing { color: var(--fg2); font-size: 16px; line-height: 1.65; }
.manifesto-closing { max-width: 56ch; margin: 96px auto 0; text-align: center; }

.contact-note { max-width: 65ch; }
.page-wrap--contact { padding-bottom: 88px; }
.contact-note p { margin: 0 0 16px; color: var(--fg2); font-size: 16px; line-height: 1.65; }
.contact-note p:last-child { margin-bottom: 0; }
.contact-sig { margin-top: 40px; padding-left: 20px; border-left: 2px solid var(--accent); }
.contact-sig__label { margin: 0 0 6px; color: var(--fg3); font: 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.contact-sig__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact-sig__email { color: var(--fg); font: 20px/1.4 var(--mono); letter-spacing: -.01em; text-decoration: none; word-break: break-all; border-bottom: 1px solid var(--line2); transition: color 150ms ease, border-color 150ms ease; }
.contact-copy { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; color: var(--fg2); background: transparent; border: 1px solid var(--line2); border-radius: var(--r); cursor: pointer; font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: transform 160ms var(--ease-out), border-color 160ms ease, color 160ms ease; }
.contact-copy:active { transform: scale(.97); }
.contact-copy__label { display: inline-block; transition: filter 200ms ease, opacity 200ms ease; }
.contact-copy[data-swapping] .contact-copy__label { filter: blur(2px); opacity: .55; }
@media (hover: hover) and (pointer: fine) {
  .contact-sig__email:hover { color: var(--accent); border-color: var(--accent); }
  .contact-copy:hover { color: var(--fg); }
}
main, section, [id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

@media (min-width: 768px) {
  .manifesto-page .principle { max-width: 72ch; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --space-footer-gap: clamp(72px, 18vw, 96px); }
  .site-header__inner { min-height: 56px; }
  .wordmark__text, .live-badge { font-size: 17px; }
  .site-nav { position: fixed; z-index: 90; inset: 0; height: 100dvh; padding: 88px 24px 24px; flex-direction: column; align-items: stretch; background: rgba(15, 17, 19, .98); opacity: 0; visibility: hidden; transition: opacity 180ms var(--ease-out), visibility 0s linear 180ms; }
  .site-nav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav a { min-height: 48px; padding: 0 8px; font-size: 16px; }
  .site-nav a[aria-current="page"]::after { right: auto; width: 32px; bottom: 3px; }
  .menu-toggle { position: relative; z-index: 91; display: inline-grid; place-items: center; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .page-wrap { width: min(100% - 32px, 720px); padding-top: 48px; padding-bottom: var(--space-footer-gap); }
  .page-wrap--contact { padding-bottom: clamp(104px, 26vw, 128px); }
  .site-footer__inner { padding-block: 12px 20px; }
  .footer-meta { margin-top: 16px; }
  .footer-meta { grid-template-columns: 76px minmax(0, 1fr); }
  .footer-nav { gap: 0 18px; }
  .data-table-wrap::after { content: ""; position: sticky; right: 0; display: block; float: right; width: 10px; height: 1px; background: linear-gradient(90deg, transparent, var(--bg)); pointer-events: none; }
}

@media (width: 768px) {
  :root { --space-footer-gap: 96px; }
  .page-wrap--contact { padding-bottom: 120px; }
}

@media (hover: hover) and (pointer: fine) {
  button:not(.contact-copy):hover, .btn:hover, .submit-button:hover { box-shadow: 0 0 0 1px var(--line2); }
}

button:active, .btn:active, .submit-button:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .live-dot { animation: none !important; opacity: 1; }
  .contact-copy:active { transform: none; }
  .contact-copy__label { transition: none !important; }
  .contact-copy[data-swapping] .contact-copy__label { filter: none; opacity: 1; }
}

/* Methodology page */
.page-wrap--wide { width: min(100% - (var(--gutter) * 2), 1120px); }
.page-wrap--wide .page-title { margin-bottom: 16px; text-wrap: pretty; }
.page-eyebrow { margin: 0 0 16px; color: var(--fg3); font: 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.guarantee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.guarantee { min-width: 0; padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.guarantee__kicker { margin: 0 0 14px; color: var(--accent); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.guarantee h2 { margin: 0 0 12px; color: var(--fg); font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.guarantee > p { margin: 0 0 20px; color: var(--fg2); font-size: 14px; line-height: 1.65; text-wrap: pretty; }

.claim-demo { background: var(--bg); border: 1px solid var(--line); }
.claim-demo__item + .claim-demo__item .claim-demo__row { border-top: 1px solid var(--line); }
.claim-demo__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--fg3); font: 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.claim-demo__verdict { color: var(--pos); }
.claim-demo__quote { margin: 0; padding: 12px; border-left: 2px solid var(--pos); color: var(--fg2); font: 12px/1.6 var(--mono); }
.claim-demo__item--dropped .claim-demo__verdict { color: var(--neg); }
.claim-demo__item--dropped .claim-demo__quote { border-left-color: var(--neg); color: var(--fg3); text-decoration: line-through; }

.score-table { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.score-table th { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--fg3); font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.score-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--fg2); vertical-align: top; }
.score-table__dir, .score-table__weight { width: 68px; text-align: right; font-family: var(--mono); }
.score-table td.score-table__weight { color: var(--fg); font-variant-numeric: tabular-nums; }
.score-table td.score-table__dir--pos { color: var(--pos); }
.score-table td.score-table__dir--neg { color: var(--neg); }
.score-table tfoot td { border-bottom: 0; background: var(--neg-bg); color: var(--warn); }
.score-table tfoot .score-table__weight { color: var(--neg); }

.state-strip { display: flex; margin: 0 0 32px; padding: 0; list-style: none; border: 1px solid var(--line); }
.state-strip li { flex: 1; min-width: 0; padding: 12px 14px; background: var(--panel); border-right: 1px solid var(--line); }
.state-strip li + li { margin-top: 0; }
.state-strip li:last-child { border-right: 0; background: var(--accent-bg); }
.state-strip__num { display: block; margin-bottom: 7px; color: var(--fg3); font: 10px/1 var(--mono); letter-spacing: .08em; }
.state-strip li:last-child .state-strip__num { color: var(--accent); }
.state-strip__name { color: var(--fg); font-size: 13px; }

.stage-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stage { display: grid; grid-template-columns: minmax(112px, 160px) minmax(0, 1fr) minmax(172px, 260px); border-bottom: 1px solid var(--line); transition: background 140ms var(--ease-out); }
.stage__meta { padding: 22px clamp(14px, 1.8vw, 24px) 22px 0; border-right: 1px solid var(--line); }
.stage__num { display: block; color: var(--accent); font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.stage__phase { display: block; margin-top: 6px; color: var(--fg3); font: 10px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.stage__body { min-width: 0; padding: 22px clamp(18px, 2.2vw, 28px); border-right: 1px solid var(--line); }
.stage__body h3 { margin: 0 0 8px; color: var(--fg); font-size: 16px; font-weight: 500; }
.stage__body p { margin: 0; color: var(--fg2); font-size: 13.5px; line-height: 1.65; text-wrap: pretty; }
.stage__triage { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.stage__chip { padding: 5px 9px; background: var(--panel); border: 1px solid var(--line); color: var(--fg2); font: 11px/1 var(--mono); }
.stage__chip--severe { background: var(--warn-bg); border-color: var(--warn-bg); color: var(--warn); }
p.stage__state { margin: 0; padding: 22px 0 22px clamp(16px, 1.8vw, 24px); color: var(--fg2); font-family: var(--mono); font-size: 11.5px; line-height: 1.7; }

@media (hover: hover) and (pointer: fine) {
  .stage:hover { background: #131619; }
}

@media (max-width: 899px) {
  .page-wrap--wide { width: min(100% - (var(--gutter) * 2), 720px); }
  .guarantee-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .stage__body, .stage__meta { padding-inline: unset; }
  .state-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .state-strip li { border-bottom: 1px solid var(--line); }
  .state-strip li:nth-child(3n) { border-right: 0; }
  .state-strip li:nth-last-child(-n + 3) { border-bottom: 0; }
  .stage { grid-template-columns: 132px minmax(0, 1fr); }
  .stage__meta { padding: 20px 20px 20px 0; }
  .stage__body { padding: 20px 0 12px 24px; border-right: 0; }
  p.stage__state { grid-column: 2; justify-self: start; margin: 0 0 18px 24px; padding: 4px 8px; background: var(--panel); border: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
  .stage__num { font-size: 11px; }
  .stage__phase { font-size: 9.5px; }
  .stage__body h3 { font-size: 15px; }
  .stage__body p { max-width: 62ch; font-size: 13px; }
  .stage__chip { padding: 4px 8px; font-size: 10.5px; }
  .guarantee h2 { font-size: 18px; }
  .guarantee > p { font-size: 13.5px; }
}

@media (max-width: 767px) {
  .page-wrap--wide .page-title { font-size: 24px; }
  .guarantee { padding: 20px 18px; }
  .guarantee h2 { font-size: 18px; }
  .stage { grid-template-columns: 1fr; }
  .stage__meta { display: flex; align-items: baseline; gap: 10px; padding: 18px 0 0; border-right: 0; }
  .stage__num, .stage__phase { display: inline; margin: 0; font-size: 11px; }
  .stage__body { padding: 8px 0 12px; }
  p.stage__state { grid-column: 1; margin: 0 0 18px; font-size: 11px; }
  .score-table th, .score-table td { padding-inline: 8px; }
  .score-table__dir { width: 44px; }
  .score-table__weight { width: 60px; }
  .score-table td.score-table__weight--pos { color: var(--pos); }
  .score-table td.score-table__weight--neg { color: var(--neg); }
}

@media (max-width: 479px) {
  .state-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-strip li:nth-child(3n) { border-right: 1px solid var(--line); }
  .state-strip li:nth-child(2n) { border-right: 0; }
  .state-strip li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .state-strip li:nth-last-child(-n + 2) { border-bottom: 0; }
}
