:root {
  --ink: #080806;
  --ink-soft: #11110e;
  --paper: #f1eee5;
  --paper-soft: #d8d3c6;
  --gold: #d9ad4f;
  --gold-bright: #f0c766;
  --gold-dark: #806520;
  --red: #e35843;
  --red-soft: #722d24;
  --blue: #7ba4dc;
  --line: rgba(241, 238, 229, .17);
  --line-light: rgba(8, 8, 6, .18);
  --muted: #9c988e;
  --max: 1440px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); }
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.visually-hidden { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--paper); color: var(--ink); transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(8, 8, 6, .9); backdrop-filter: blur(16px); }
.wordmark { text-decoration: none; color: var(--paper); font-size: 26px; font-weight: 800; letter-spacing: -.055em; }
.wordmark span { color: var(--gold); }
.main-nav { display: flex; justify-content: center; gap: clamp(18px, 2.3vw, 38px); }
.main-nav a { position: relative; color: var(--paper-soft); text-decoration: none; font-size: 13px; font-weight: 600; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 1px; background: var(--gold); transition: right .25s ease; }
.main-nav a:hover::after { right: 0; }
.wallet-button { min-width: 154px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 11px 15px; border: 1px solid var(--paper-soft); background: transparent; color: var(--paper); font-weight: 650; }
.wallet-button:hover { background: var(--paper); color: var(--ink); }
.wallet-icon { width: 17px; height: 13px; border: 1.5px solid currentColor; position: relative; }
.wallet-icon::after { content: ""; position: absolute; width: 6px; height: 5px; right: -3px; top: 3px; background: var(--ink); border: 1px solid currentColor; }
.wallet-button:hover .wallet-icon::after { background: var(--paper); }
.nav-toggle { display: none; border: 0; background: none; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 1px; margin: 6px 0; background: var(--paper); }

.hero { min-height: 680px; max-width: var(--max); margin: auto; display: grid; grid-template-columns: .76fr 1.24fr; align-items: stretch; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.hero-copy { padding: clamp(72px, 8vw, 126px) clamp(28px, 5vw, 76px); align-self: center; }
.overline { margin: 0 0 20px; color: var(--gold-bright); font: 700 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .15em; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--gold); }
h1 { margin: 0; font-size: clamp(54px, 6.1vw, 91px); line-height: .96; letter-spacing: -.065em; }
h1 em { color: var(--gold); font-style: normal; }
.hero-intro { max-width: 610px; margin: 28px 0 0; color: var(--paper-soft); font-size: 18px; line-height: 1.62; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 11px 18px; border: 1px solid transparent; text-decoration: none; font-weight: 700; }
.button-gold { background: var(--gold-bright); color: var(--ink); }
.button-gold:hover { background: var(--paper); }
.button-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.public-note { color: var(--paper-soft); font-size: 13px; }
.particle-stage { min-width: 0; position: relative; overflow: hidden; border-left: 1px solid var(--line); background: #060604; }
#dao-particles { width: 100%; height: 79%; display: block; }
.particle-stage::after { content: ""; pointer-events: none; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, transparent 25%, rgba(8,8,6,.34) 78%); }
.particle-labels { position: absolute; z-index: 2; top: 54%; left: 3%; right: 3%; display: grid; grid-template-columns: repeat(4,1fr); text-align: center; font: 650 13px var(--sans); }
.verification-path { position: absolute; z-index: 3; left: 8%; right: 8%; bottom: 30px; display: grid; grid-template-columns: repeat(3,1fr); }
.verification-path::before { content: ""; position: absolute; left: 8px; right: 12%; top: 7px; height: 1px; background: linear-gradient(90deg,var(--gold) 65%,var(--line) 65%); }
.path-step { position: relative; display: flex; gap: 11px; color: var(--paper); font-weight: 650; font-size: 12px; }
.path-step i { z-index: 1; width: 15px; height: 15px; border: 1px solid var(--paper); border-radius: 50%; background: var(--ink); }
.path-step.is-complete i { border-color: var(--gold); background: var(--gold); }
.path-step small { display: block; color: var(--muted); margin-top: 5px; font-weight: 400; }

.section-shell { max-width: var(--max); margin: auto; padding: 92px clamp(20px,4vw,64px); border: 1px solid var(--line); border-bottom: 0; }
.section-heading { display: grid; grid-template-columns: 1.05fr .55fr; align-items: end; gap: 60px; margin-bottom: 42px; }
.section-heading .overline { margin-bottom: 14px; }
h2 { margin: 0; font-size: clamp(40px,5vw,70px); line-height: .98; letter-spacing: -.055em; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.6; }
.compact-heading h2 { font-size: clamp(38px,4.6vw,64px); }

.attention { background: var(--paper); color: var(--ink); }
.attention .overline { color: var(--gold-dark); }
.attention .section-heading > p { color: #625e55; }
.attention-grid { display: grid; grid-template-columns: 1.35fr .65fr; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.attention-card { padding: 28px 30px 30px 0; }
.attention-card + .attention-card { padding-left: 30px; border-left: 1px solid var(--line-light); }
.attention-card .dao-line { display: flex; align-items: center; gap: 10px; color: #545047; font-size: 13px; }
.attention-card h3 { max-width: 770px; margin: 18px 0 14px; font-size: clamp(26px,3vw,42px); letter-spacing: -.035em; }
.attention-reason { max-width: 760px; color: #4d4942; line-height: 1.55; }
.attention-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.attention-card button { border: 0; padding: 0; background: none; color: var(--ink); font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }

.filter-bar { display: grid; grid-template-columns: minmax(280px,1fr) repeat(3,auto) auto; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-bar input, .filter-bar select { height: 44px; width: 100%; border: 1px solid var(--line); background: var(--ink-soft); color: var(--paper); padding: 0 40px 0 13px; border-radius: 0; }
.search-field { position: relative; }
.search-field svg { position: absolute; z-index: 1; left: 13px; top: 12px; width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.search-field input { padding-left: 42px; }
.index-status { min-height: 48px; display: flex; align-items: center; color: var(--muted); font: 12px var(--mono); }
.proposal-table { width: 100%; border-collapse: collapse; }
.proposal-table th { padding: 13px 12px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.proposal-table td { padding: 17px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.proposal-table tbody tr { transition: background .2s; }
.proposal-table tbody tr:hover { background: rgba(217,173,79,.06); }
.proposal-title-button { max-width: 520px; border: 0; background: none; color: var(--paper); padding: 0; text-align: left; font-weight: 650; line-height: 1.38; }
.proposal-title-button:hover { color: var(--gold-bright); }
.dao-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dao-cell img, .dao-avatar { width: 25px; height: 25px; border-radius: 50%; background: var(--paper); object-fit: cover; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border: 1px solid var(--line); font: 650 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.badge-active, .badge-finalized { border-color: var(--gold-dark); color: var(--gold-bright); }
.badge-high { border-color: var(--red-soft); color: #ff806d; }
.badge-medium { color: var(--gold-bright); }
.badge-low { color: var(--blue); }
.risk-none { color: var(--muted); }
.row-arrow { color: var(--gold); font-size: 20px; }
.mobile-proposals { display: none; }
.load-more { width: 100%; margin-top: 18px; padding: 14px; border: 1px solid var(--line); background: transparent; color: var(--paper); }

.assessments { background: #0c0c09; }
.assessment-list { border-top: 1px solid var(--line); }
.assessment-row { display: grid; grid-template-columns: 1.4fr .65fr .55fr .65fr auto; align-items: center; gap: 18px; min-height: 80px; border-bottom: 1px solid var(--line); }
.assessment-row button { border: 0; background: none; color: var(--paper); text-align: left; font-weight: 700; }
.assessment-row small { display: block; color: var(--muted); margin-top: 5px; }

.dao-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dao-card { min-height: 250px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dao-card img { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); }
.dao-card h3 { margin: 34px 0 8px; font-size: 22px; }
.dao-card p { min-height: 42px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.dao-card dl { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin: 22px 0 0; font-size: 12px; }
.dao-card dt { color: var(--muted); }
.dao-card dd { margin: 0; }
.dao-card a { display: inline-block; margin-top: 20px; color: var(--gold-bright); font-size: 12px; }

.method-section { background: var(--paper); color: var(--ink); }
.method-section .overline { color: var(--gold-dark); }
.method-section .section-heading > p { color: #625e55; }
.method-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.method-steps li { display: grid; grid-template-columns: 90px .8fr; gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line-light); }
.method-steps > li > span { color: var(--gold-dark); font: 700 12px var(--mono); }
.method-steps h3 { margin: 0 0 7px; font-size: 24px; }
.method-steps p { max-width: 680px; margin: 0; color: #57534b; line-height: 1.55; }
.method-note { max-width: 650px; margin: 38px 0 0 auto; padding-left: 25px; border-left: 3px solid var(--red); }
.method-note p { color: #57534b; line-height: 1.55; }

.about-section h2 { max-width: 1000px; }
.about-copy { max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 42px; margin: 35px 0; color: var(--paper-soft); font-size: 17px; line-height: 1.65; }
.about-links { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.about-links a { color: var(--gold-bright); font-size: 13px; }
.site-footer { max-width: var(--max); margin: auto; min-height: 130px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 35px; padding: 30px clamp(20px,4vw,64px); border: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.loading-block, .error-block, .empty-block { grid-column: 1/-1; padding: 38px 0; color: var(--muted); }
.error-block { color: #f49a8c; }

dialog { max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: inherit; background: transparent; }
dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.record-dialog[open] { width: 100%; height: 100%; }
.dialog-shell { width: min(1320px, calc(100% - 44px)); min-height: calc(100vh - 44px); margin: 22px auto; position: relative; background: var(--paper); color: var(--ink); }
.dialog-close { position: sticky; z-index: 5; float: right; top: 14px; right: 14px; width: 42px; height: 42px; border: 1px solid var(--line-light); background: var(--paper); color: var(--ink); font-size: 27px; }
.record-loading { display: grid; min-height: 70vh; place-items: center; color: #605c54; }
.record-hero { min-height: 330px; padding: 74px clamp(28px,6vw,90px) 55px; background-color: #090906; color: var(--paper); background-image: radial-gradient(circle at 75% 40%, rgba(217,173,79,.22), transparent 31%), radial-gradient(circle at 83% 37%, var(--gold) 0 1px, transparent 2px); background-size: auto, 11px 11px; }
.record-kicker { color: var(--gold-bright); font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.record-hero h2 { max-width: 900px; font-size: clamp(46px,6vw,86px); }
.record-hero > p:last-child { max-width: 760px; color: var(--paper-soft); font-size: 17px; line-height: 1.5; }
.record-layout { display: grid; grid-template-columns: minmax(0,1fr) 390px; }
.record-body { padding: 0 clamp(28px,5vw,72px) 80px; }
.record-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 30px; padding: 20px 0; border-bottom: 1px solid var(--line-light); background: var(--paper); }
.record-tabs a { color: #59554e; text-decoration: none; font-size: 13px; }
.record-body section { padding-top: 48px; }
.record-body h3 { font-size: 32px; margin: 0 0 24px; }
.record-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.record-facts div { padding: 18px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.record-facts dt { color: #6c675e; font: 11px var(--mono); text-transform: uppercase; }
.record-facts dd { margin: 8px 0 0; overflow-wrap: anywhere; }
.proposal-copy { white-space: pre-wrap; color: #34322d; font: 16px/1.78 var(--sans); }
.evidence-margin { padding: 52px 34px; border-left: 1px solid var(--line-light); background: #e7e2d8; }
.evidence-margin h3 { margin: 0; font-size: 20px; }
.verdict { padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.verdict strong { display: block; color: var(--red-soft); font-size: 42px; letter-spacing: -.04em; }
.verdict span { display: block; margin-top: 7px; font-weight: 650; }
.proof-steps { list-style: none; margin: 24px 0; padding: 0; }
.proof-steps li { position: relative; padding: 0 0 23px 31px; color: #5e5a51; font-size: 12px; }
.proof-steps li::before { content: "✓"; position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-dark); color: white; }
.proof-steps li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: -2px; width: 1px; background: var(--gold-dark); }
.evidence-list { margin: 22px 0; border-top: 1px solid var(--line-light); }
.evidence-item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-light); font-size: 12px; }
.evidence-item span { color: #69645c; }
.evidence-item strong, .evidence-item a { overflow-wrap: anywhere; }
.evidence-margin .button { width: 100%; margin-top: 10px; }

.wallet-dialog[open] { width: 100%; height: 100%; display: grid; place-items: center; }
.wallet-panel { width: min(540px,calc(100% - 32px)); position: relative; padding: 42px; background: var(--paper); color: var(--ink); }
.wallet-panel .dialog-close { position: absolute; }
.wallet-panel h2 { font-size: 45px; margin-bottom: 22px; }
.wallet-panel > p { color: #5c574f; line-height: 1.6; }
.wallet-panel ul { list-style: none; padding: 18px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.wallet-panel li { padding: 7px 0; }
.wallet-panel li::before { content: "✓"; margin-right: 10px; color: var(--gold-dark); }
.wallet-actions { display: flex; align-items: center; gap: 20px; margin-top: 25px; }
.text-button { border: 0; background: none; color: #4c4841; text-decoration: underline; text-underline-offset: 4px; }
.wallet-feedback { min-height: 24px; font: 12px var(--mono); }

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

@media (max-width: 1100px) {
  .site-header { gap: 20px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; }
  .particle-stage { min-height: 500px; border-left: 0; border-top: 1px solid var(--line); }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .search-field { grid-column: span 2; }
  .dao-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: auto 1fr auto; height: 68px; }
  .nav-toggle { display: block; justify-self: end; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; padding: 28px; background: var(--ink); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .wallet-button { min-width: 0; }
  .wallet-button .wallet-icon { display: none; }
  .section-heading, .attention-grid, .about-copy { grid-template-columns: 1fr; gap: 20px; }
  .attention-card + .attention-card { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .proposal-table-wrap { display: none; }
  .mobile-proposals { display: grid; gap: 1px; background: var(--line); }
  .mobile-card { padding: 20px; background: var(--ink); }
  .mobile-card button { width: 100%; border: 0; background: none; color: var(--paper); padding: 0; text-align: left; }
  .mobile-card h3 { margin: 12px 0; font-size: 19px; }
  .mobile-card-meta { display: flex; flex-wrap: wrap; gap: 7px; }
  .assessment-row { grid-template-columns: 1fr auto; padding: 17px 0; }
  .assessment-row > *:nth-child(2), .assessment-row > *:nth-child(4) { display: none; }
  .record-layout { grid-template-columns: 1fr; }
  .evidence-margin { border-left: 0; border-top: 1px solid var(--line-light); }
}

@media (max-width: 580px) {
  .site-header { padding: 0 16px; }
  .wordmark { font-size: 22px; }
  .wallet-button { padding: 9px; font-size: 11px; }
  .hero-copy { padding: 70px 20px; }
  h1 { font-size: 49px; }
  .hero-intro { font-size: 16px; }
  .particle-stage { min-height: 420px; }
  .particle-labels { font-size: 10px; }
  .verification-path { left: 20px; right: 5px; }
  .path-step { font-size: 10px; gap: 6px; }
  .path-step small { display: none; }
  .section-shell { padding: 68px 18px; }
  .filter-bar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .dao-grid { grid-template-columns: 1fr; }
  .method-steps li { grid-template-columns: 42px 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 8px; }
  .dialog-shell { width: 100%; min-height: 100vh; margin: 0; }
  .record-hero { min-height: 280px; padding: 70px 20px 40px; }
  .record-hero h2 { font-size: 46px; }
  .record-body { padding: 0 20px 60px; }
  .record-facts { grid-template-columns: 1fr; }
  .evidence-margin { padding: 40px 20px; }
  .wallet-panel { padding: 38px 24px; }
  .wallet-actions { align-items: stretch; flex-direction: column; }
}
