/** * Research Papers Modal Component * Displays curated research papers grouped by recency when triggered * from the homepage hero "Read the Research" button. */ class ResearchPapersModal { constructor() { this.isOpen = false; this.papers = [ { group: 'Recent Papers', items: [ { code: 'STO-RES-0010', title: 'Taonga-Centred Steering Governance', subtitle: 'Polycentric Authority for Sovereign Small Language Models', description: 'Proposes polycentric governance replacing platform hierarchy with co-equal steering authorities, drawing on te ao M\u0101ori concepts.', date: 'February 2026', status: 'Draft', href: '/docs.html?doc=taonga-centred-steering-governance-polycentric-authority-for-sovereign-small-language-models' }, { code: 'STO-RES-0009', title: 'Steering Vectors and Mechanical Bias', subtitle: 'Inference-Time Debiasing for Sovereign Small Language Models', description: 'Investigates whether LLM biases operate at a sub-reasoning level and how sovereign SLM deployments enable inference-time debiasing.', date: 'February 2026', status: 'v1.1', href: '/docs.html?doc=steering-vectors-mechanical-bias-sovereign-ai' } ] }, { group: 'Foundational Papers', items: [ { code: 'STO-INN-0003', title: 'Architectural Alignment', subtitle: 'Interrupting Neural Reasoning Through Constitutional Inference Gating', description: 'The core Tractatus paper presenting architectural alignment as a formal specification for interrupted neural reasoning. Available in three editions.', date: 'January 2026', status: 'v2.1 \u2014 3 editions', href: '/architectural-alignment.html' } ] } ]; this.init(); } init() { this.renderModal(); this.attachEventListeners(); } renderModal() { const papersHTML = this.papers.map(group => `

${group.group}

${group.items.map(paper => `

${paper.title}

${paper.code}

${paper.subtitle}

${paper.description}

${paper.date} ${paper.status}
`).join('')}
`).join(''); const modalHTML = ` `; document.body.insertAdjacentHTML('beforeend', modalHTML); } attachEventListeners() { const backdrop = document.getElementById('research-papers-backdrop'); const closeBtn = document.getElementById('research-papers-close'); backdrop.addEventListener('click', () => this.close()); closeBtn.addEventListener('click', () => this.close()); document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && this.isOpen) { this.close(); } }); document.addEventListener('click', (e) => { if (e.target.closest('[data-research-papers-trigger]')) { e.preventDefault(); this.open(); } }); } open() { const modal = document.getElementById('research-papers-modal'); modal.classList.remove('hidden'); this.isOpen = true; document.body.classList.add('overflow-hidden'); } close() { const modal = document.getElementById('research-papers-modal'); modal.classList.add('hidden'); this.isOpen = false; document.body.classList.remove('overflow-hidden'); } } // Auto-initialize when DOM is ready if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { window.researchPapersModal = new ResearchPapersModal(); }); } else { window.researchPapersModal = new ResearchPapersModal(); }