:root {
  --paper: #f3f1ea;
  --ink: #171814;
  --muted: #67685f;
  --line: #c8c7bd;
  --signal: #e84b4b;
  --brand: #20142f;
  --brand-soft: #eeeaf3;
  --dark: #20142f;
  --acid: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Manrope", sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; min-height: 76px; padding: 0 4vw; border-bottom: 1px solid var(--line); background: rgba(243,241,234,.92); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; text-decoration: none; }
.brand strong { font-weight: 700; }
.brand img { width: 150px; height: auto; display: block; }
.brand-divider { width: 1px; height: 26px; background: var(--line); }
.header-actions { display: flex; align-items: center; gap: 26px; }
.text-link { font-size: .88rem; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 46px; padding: 0 18px; border: 1px solid currentColor; font-weight: 600; font-size: .86rem; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--brand); color: white; border-color: var(--brand); border-radius: 999px; padding-left: 22px; padding-right: 22px; box-shadow: 0 3px 0 rgba(32,20,47,.22); }
.button-dark:hover { background: var(--signal); border-color: var(--signal); }

main { overflow: hidden; }
.intro { display: grid; grid-template-columns: 1.6fr .8fr; gap: 8vw; align-items: end; min-height: 530px; padding: 7rem 4vw 4.5rem; border-bottom: 1px solid var(--line); }
.eyebrow, .section-number, .updated { font: 600 .72rem "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 2rem; }
.live-dot { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(232,75,75,.14); }
.intro h1 { max-width: 980px; margin: 0; font-size: clamp(4rem, 9.4vw, 9.2rem); line-height: .9; letter-spacing: -.055em; font-weight: 700; }
.intro-copy { max-width: 420px; padding-bottom: .7rem; }
.intro-copy > p:first-child { margin: 0 0 3rem; font-size: clamp(1.05rem, 1.55vw, 1.35rem); line-height: 1.55; }
.updated { color: var(--muted); }

.ledger { padding: 4.5rem 4vw 6rem; }
.ledger-bar { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.section-number { margin: 0 0 .9rem; color: var(--muted); }
.ledger h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 500; letter-spacing: -.04em; }
.about-button { padding: 0 0 .45rem; background: none; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; }
.about-button span { display: inline-block; margin-left: 25px; transition: transform .2s ease; }
.about-button[aria-expanded="true"] span { transform: rotate(45deg); }
.about-panel { max-width: 720px; margin: -1rem 0 2rem auto; padding: 1.4rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.about-panel p { margin: 0; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 1.2rem; }
.search-wrap { display: flex; align-items: center; gap: 10px; width: min(400px, 100%); padding: .7rem .8rem; border-bottom: 1px solid var(--ink); }
.search-wrap input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; }
.search-wrap input::placeholder { color: #77786f; }
kbd { border: 1px solid var(--line); padding: 1px 6px; color: var(--muted); font: 600 .7rem "Manrope", sans-serif; }
.filter-group { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.filter { padding: .42rem .72rem; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: .75rem; }
.filter:hover, .filter.active { background: var(--brand); border-color: var(--brand); color: white; }
.table-shell { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { padding: 1rem .7rem; text-align: left; color: var(--muted); font: 600 .68rem "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
th:nth-child(1) { width: 9%; } th:nth-child(2) { width: 23%; } th:nth-child(3) { width: 19%; } th:nth-child(4) { width: 38%; } th:nth-child(5) { width: 11%; }
td { padding: 1.35rem .7rem; border-top: 1px solid var(--line); vertical-align: top; font-size: .88rem; }
td:first-child, td:last-child { font: 500 .78rem "Manrope", sans-serif; }
.property-name { font-weight: 700; }
.property-type { display: block; margin-top: .2rem; color: var(--muted); font-size: .73rem; }
.flaw-tag { display: inline-block; margin-bottom: .5rem; padding: .15rem .38rem; background: var(--brand-soft); color: var(--brand); font: 700 .64rem "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.flaw-title { display: block; font-weight: 600; }
.empty-state { padding: 4rem 1rem; text-align: center; }
.empty-state button { background: none; border: 0; text-decoration: underline; cursor: pointer; }
.disclaimer { max-width: 760px; margin: 1.2rem 0 0; color: var(--muted); font-size: .72rem; }

.methodology { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; padding: 6rem 4vw; border-top: 1px solid var(--line); }
.methodology h2 { margin: 0; font-size: clamp(3rem, 6vw, 6.5rem); line-height: .96; letter-spacing: -.045em; font-weight: 700; }
.method-steps article { display: grid; grid-template-columns: 55px 1fr; gap: 1rem; padding: 1.7rem 0; border-top: 1px solid var(--line); }
.method-steps article > span { font: 700 .75rem "Manrope", sans-serif; color: var(--signal); }
.method-steps h3 { margin: 0 0 .5rem; font-size: 1rem; }
.method-steps p { max-width: 560px; margin: 0; color: var(--muted); font-size: .9rem; }

.cta { display: flex; flex-direction: column; align-items: flex-start; min-height: 500px; padding: 5rem 4vw; background: var(--dark); color: white; }
.cta .eyebrow { color: var(--acid); }
.cta h2 { margin: auto 0 3rem; max-width: 1000px; font-size: clamp(3rem, 6.5vw, 7rem); line-height: .98; letter-spacing: -.045em; font-weight: 700; }
.button-light { background: var(--acid); color: var(--brand); border-color: var(--acid); border-radius: 999px; padding-left: 24px; padding-right: 24px; box-shadow: 0 3px 0 rgba(255,255,255,.2); }
.button-light:hover { background: white; border-color: white; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.2rem 4vw; background: var(--dark); color: #9c9e94; border-top: 1px solid #383b34; font-size: .75rem; }
.footer-brand { color: white; }
.footer-brand img { filter: brightness(0) invert(1); }
.footer-brand .brand-divider { background: #5f526d; }

@media (max-width: 860px) {
  .text-link { display: none; }
  .intro { grid-template-columns: 1fr; align-items: start; min-height: auto; padding-top: 5rem; }
  .intro-copy { margin-top: 2rem; }
  .controls { align-items: stretch; flex-direction: column; }
  .filter-group { justify-content: flex-start; }
  .methodology { grid-template-columns: 1fr; }
  table { table-layout: auto; }
  th:nth-child(1), td:nth-child(1), th:nth-child(3), td:nth-child(3), th:nth-child(5), td:nth-child(5) { display: none; }
}

@media (max-width: 560px) {
  .site-header { min-height: 66px; }
  .brand { gap: 8px; font-size: .76rem; }
  .brand img { width: 118px; }
  .header-actions .button { min-height: 38px; padding: 0 12px; gap: 10px; font-size: .75rem; }
  .intro { padding: 4rem 5vw 3rem; }
  .intro h1 { font-size: clamp(3.7rem, 20vw, 6rem); }
  .ledger, .methodology, .cta { padding-left: 5vw; padding-right: 5vw; }
  .ledger-bar { align-items: flex-start; flex-direction: column; }
  .about-button { align-self: flex-end; }
  td { padding: 1.1rem .45rem; }
  th { padding: .8rem .45rem; }
  th:nth-child(2) { width: 36%; }
  .methodology h2 { font-size: 3.6rem; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
