// Speaking & Events — past + upcoming + booking inquiry CTA
// Past engagements drawn from Daniel B. Garrie's 2025 master CV (lectures section, 600+ entries condensed).

const UPCOMING = [
  // Empty / placeholder — Daniel can populate. Render "By invitation" if empty.
];

const PAST_BY_YEAR = {
  2024: [
    { t: 'A Constitutional Quagmire: Ethical Minefields of AI, Cyber, and Privacy', v: 'RSA Conference 2024', m: 'May 2024' },
    { t: 'Authenticating Insights: Navigating Social Media Evidence', v: 'CeriFi West LegalEdcenter', m: 'Oct 2024' },
    { t: 'Coins & Codes: Decrypting the Financial Sector Cybersecurity Regulatory Landscape', v: 'CeriFi West LegalEdcenter', m: 'Oct 2024' },
    { t: 'Using AI in Your Practice: Balancing the Benefits with the Practical and Ethical Issues', v: 'CeriFi West LegalEdcenter', m: 'Oct 2024' },
    { t: 'After the Hack: Guide to Navigating Ethical Obligations after Data Breaches', v: 'CeriFi West LegalEdcenter', m: 'Oct 2024' },
    { t: 'To Pay or Not to Pay: What Lawyers Should Know About Ransomware', v: 'CeriFi West LegalEdcenter', m: 'Oct 2024' },
    { t: 'Privacy and AI Regulation in Europe Today', v: 'CeriFi West LegalEdcenter', m: 'Oct 2024' },
    { t: 'Policy Puzzles: Guide to Decoding Cyber Insurance', v: 'CeriFi West LegalEdcenter', m: 'Oct 2024' },
    { t: 'Chain of Evidence: Blockchain and Cryptocurrencies for Lawyers', v: 'CeriFi West LegalEdcenter', m: 'Jul 2024' },
    { t: 'License to Code: Navigating the Complexity of Software Patents', v: 'CeriFi West LegalEdcenter', m: 'Jul 2024' },
    { t: 'Regulating The Digital Frontier: Attorney Guide to the EU AI Act', v: 'Thomson Reuters West LegalEdcenter', m: 'May 2024' },
    { t: 'Deep Fakes, Real Stakes: Attorney Guide to Artificial Intelligence', v: 'Thomson Reuters West LegalEdcenter', m: 'May 2024' },
    { t: 'A Year In: Navigating SEC Cyber Rules and Increased Risk in Individual Liability', v: 'Thomson Reuters West LegalEdcenter', m: 'May 2024' },
    { t: 'Digital Divides: Insights on Data Breach Mediation', v: 'Thomson Reuters West LegalEdcenter', m: 'May 2024' },
    { t: 'Chain Reactions: Mediation\u2019s Role in Streamlining Crypto Disputes', v: 'Thomson Reuters West LegalEdcenter', m: 'May 2024' },
    { t: 'Fundamentals of Cyber Warfare and Applicable International Law', v: 'Thomson Reuters West LegalEdcenter', m: 'May 2024' },
    { t: 'Artificial Intelligence and Cryptocurrency As Subjects of ADR', v: 'JAMS', m: 'Feb 2024' },
    { t: 'eDiscovery Issues in Data Privacy Class Actions', v: 'Eqip Mass & Class Conference', m: 'Mar 2024' },
    { t: 'Developments in Discovery', v: 'California Lawyers Association Antitrust & Unfair Competition Section', m: 'Jan 2024' },
  ],
  2023: [
    { t: 'Counsel\u2019s How To: Advising the Board on Cyber Incident Response Planning', v: 'Thomson Reuters West LegalEdcenter', m: 'Mar 2024' },
    { t: 'Code of Ethics: Understanding Attorneys\u2019 Ethical Obligations with Data Breaches', v: 'Thomson Reuters West LegalEdcenter', m: 'Jan 2024' },
    { t: 'Guide to Navigating AI and Its Ethical Challenges', v: 'Thomson Reuters West LegalEdcenter', m: 'Jan 2024' },
    { t: 'Don\u2019t Gamble on Vendors: Legal Strategies for Third-Party Cyber Risk Mitigation', v: 'Thomson Reuters West LegalEdcenter', m: 'Jan 2024' },
    { t: 'Zero Day Exploits: Navigating Cybersecurity Challenges in a Rapidly Evolving Digital Landscape', v: 'Thomson Reuters West LegalEdcenter', m: 'Dec 2023' },
    { t: 'Trending Up: Review of Cyber Litigations in 2023', v: 'Thomson Reuters West LegalEdcenter', m: 'Dec 2023' },
    { t: 'New SEC Cyber Rules and Balancing Risk to Trade Secrets', v: 'Thomson Reuters West LegalEdcenter', m: 'Dec 2023' },
    { t: 'Counsel\u2019s Code: 10 Cybersecurity Practices To Adopt and Master', v: 'Thomson Reuters West LegalEdcenter', m: 'Nov 2023' },
    { t: 'eDiscovery 2.0: Decoding the Role of Artificial Intelligence', v: 'Thomson Reuters West LegalEdcenter', m: 'Oct 2023' },
    { t: 'Cracking the (Digital) Case: Digital Forensics for Lawyers', v: 'Thomson Reuters West LegalEdcenter', m: 'Sep 2023' },
    { t: 'From Pocket to Plaintiff: Guide to Smartphone eDiscovery', v: 'Thomson Reuters West LegalEdcenter', m: 'Jun 2023' },
  ],
  2022: [
    { t: 'Digital Forensics for Legal Professionals: Working with Forensic Experts', v: 'Webinar', m: 'May 2022' },
    { t: 'Attorney\u2019s Guide to the Basics of Blockchain in 2022', v: 'Webinar', m: 'Apr 2022' },
    { t: 'Understanding Cyber Insurance: Act of War in a Cyber Attack Case', v: 'Webinar', m: 'Apr 2022' },
    { t: 'Mediation for Attorneys: The 2022 Tool Kit', v: 'Webinar', m: 'Mar 2022' },
    { t: 'Facing Technology: Legal Ethics Developments in 2021 and 2022', v: 'Webinar', m: 'Mar 2022' },
    { t: 'Cyber Attacks and Ethical Obligations of In-House and Outside Counsel', v: 'Webinar', m: 'Feb 2022' },
    { t: 'Patent Law and Software in 2022', v: 'Webinar', m: 'Jan 2022' },
  ],
  2021: [
    { t: 'A Guide to eDiscovery in Artificial Intelligence', v: 'EDRM', m: 'Jul 2021' },
    { t: 'Cybersecurity for Autonomous Vehicles', v: 'TAI Symposium', m: 'Sep 2021' },
    { t: 'Cybersecurity and Privacy', v: 'TAI Symposium', m: 'Sep 2021' },
    { t: '5 Commandments for Lawyers Working with Special Masters in Federal Court', v: 'Webinar', m: 'Sep 2021' },
    { t: 'Cyber Warfare in the Digital Age', v: 'Harvard Extension School', m: 'Jun 2021' },
    { t: 'Smart Contracts Rules: Blockchain, Bitcoin, and Dispute Resolution', v: 'JAMS ADR', m: 'Feb 2021' },
    { t: 'At the Intersection of Information Governance and Cybersecurity, Risk, & Compliance', v: 'ARMA International', m: 'Apr 2021' },
    { t: 'Malware or Malinformation?', v: 'ACC Foundation Virtual Summit', m: 'Mar 2021' },
  ],
  2020: [
    { t: 'Utilizing ADR, ODR, and Court Litigation to Resolve Disputes in the ERA of COVID-19', v: 'ABA Business Law Section Annual Meeting', m: 'Sep 2020' },
    { t: 'Cybersecurity, Lawyers and Legal Ethics \u2014 A Perfect Storm', v: '42nd Annual Entertainment & Sports Industries Conference', m: 'Sep 2020' },
    { t: 'Designing Smart Contracts', v: 'Thomson Reuters Legal Executive Institute', m: 'Nov 2020' },
    { t: 'Customizing Traditional Models of Mediation for COVID-19', v: 'National Business Institute', m: 'Aug 2020' },
    { t: 'How to Conduct a Successful Virtual Mediation', v: 'Webinar', m: 'Jul 2020' },
    { t: 'How to Use Discovery Special Masters, Forensic Neutral and Technical Special Masters', v: 'National Business Institute', m: 'Jun 2020' },
    { t: 'Trade Secret Litigation on the Rise \u2014 How ADR Can Help', v: 'Webinar', m: 'Jun 2020' },
    { t: '7 Steps to CCPA Compliance: Enforcement and Litigation Update', v: 'National Business Institute', m: 'Nov 2020' },
  ],
  2019: [
    { t: 'Managing International Cyber Incidents', v: 'Tel Aviv Cyber Week', m: 'Jun 2019' },
    { t: 'Designing Smart Contracts (Chicago)', v: 'Thomson Reuters Legal Executive Institute', m: 'Jun 2019' },
    { t: 'Data Breaches: Essential Knowledge for Corporate Counsel to Advise the Board', v: 'CLM Cyber Conference', m: 'Jul 2019' },
    { t: 'Cloud INsecurity & Incident Response', v: 'Philadelphia Cyber Summit', m: 'Apr 2019' },
    { t: 'Legal Ethics and Digital Technology', v: 'Georgetown International Trade Update', m: 'Mar 2019' },
    { t: 'Court Perspective on e-Discovery and ESI', v: 'Webinar', m: 'Jul 2019' },
  ],
  2018: [
    { t: 'Cybersecurity in Mass Tort Cases', v: 'Mass Torts Judicial Forum', m: 'Apr 2018' },
    { t: 'Cyber Coverage Mediation for Claims Handlers and In-House Counsel', v: 'Chubb', m: 'Feb 2018' },
    { t: 'Cyber Coverage Mediation Training For Broker Claims Advocates', v: 'Willis Towers Watson', m: 'Feb 2018' },
    { t: 'Common Disputes in Trade Secret Matters', v: 'Webinar (with J. Pooley)', m: 'Feb 2018' },
  ],
  2017: [
    { t: 'How to Prepare for and Defend Against Cyberattacks', v: 'Journal of Law and Cyber Warfare Annual Symposium', m: 'Sep 2017' },
    { t: 'Cybersecurity in the Courts', v: 'Academy for the Interchange & Exchange of Judicial Matters', m: 'Jun 2017' },
    { t: 'Cybersecurity & The Media', v: 'The Newseum Institute', m: 'Oct 2017' },
    { t: 'Forensics 101: Tools of the Trade', v: 'Daily Journal Cyber Boot Camp, Los Angeles', m: 'Jan 2017' },
  ],
};

const SpeakingPage = ({ onNav }) => {
  const years = Object.keys(PAST_BY_YEAR).sort((a, b) => b - a);
  return (
    <div className="page-fade">
      <section style={{ background: 'var(--ink)', color: 'var(--paper)', padding: '120px 0 80px' }}>
        <div className="container">
          <div className="eyebrow on-dark">Speaking · Events · Faculty</div>
          <h1 className="display" style={{ fontSize: 'clamp(56px, 7.5vw, 104px)', marginTop: 16, color: 'var(--paper)' }}>
            On the<br/>
            <em style={{ color: 'var(--gold)', fontStyle: 'italic', fontWeight: 300 }}>podium.</em>
          </h1>
          <p style={{ marginTop: 32, fontSize: 19, color: 'var(--slate-300)', maxWidth: 720, lineHeight: 1.6 }}>
            Daniel has presented at 600+ seminars and conferences globally — for federal and state judges, CISOs, general counsel, and law students. RSA Conference, ABA, JAMS ADR, Tel Aviv Cyber Week, Harvard Extension, Georgetown International Trade Update, Sedona Conference, EDRM, and dozens more.
          </p>
        </div>
      </section>

      {/* Upcoming */}
      <section className="section-tight" style={{ background: 'var(--paper-2)' }}>
        <div className="container">
          <div className="eyebrow" style={{ marginBottom: 24 }}>Upcoming</div>
          {UPCOMING.length === 0 ? (
            <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 64, alignItems: 'center' }}>
              <div>
                <h2 className="display" style={{ fontSize: 'clamp(32px, 4vw, 48px)', lineHeight: 1.05 }}>
                  Daniel speaks by invitation.
                </h2>
                <p className="serif" style={{ fontSize: 19, color: 'var(--slate-700)', marginTop: 20, lineHeight: 1.55, fontStyle: 'italic' }}>
                  Confirmed engagements are added as season permits. Bar associations, CLE providers, judicial colleges, and corporate convenings welcome.
                </p>
              </div>
              <div style={{ background: 'var(--paper)', border: '1px solid var(--line-soft)', padding: 36 }}>
                <div className="mono" style={{ fontSize: 11, color: 'var(--gold-deep)', letterSpacing: '0.18em', marginBottom: 12 }}>
                  BOOKING INQUIRY
                </div>
                <h3 className="display" style={{ fontSize: 26, lineHeight: 1.15 }}>Invite Daniel to speak</h3>
                <p style={{ fontSize: 15, color: 'var(--slate-700)', marginTop: 12, lineHeight: 1.6 }}>
                  CLE, panel, keynote, judicial college, in-house training. Topics span AI, cyber, forensics, eDiscovery, and ADR. Honorarium and travel handled per engagement.
                </p>
                <button className="btn btn-primary" style={{ marginTop: 24 }} onClick={() => onNav('contact')}>
                  Send invitation <span className="arrow">→</span>
                </button>
              </div>
            </div>
          ) : (
            <div style={{ display: 'grid', gridTemplateColumns: 'repeat(2, 1fr)', gap: 24 }}>
              {UPCOMING.map((e, i) => (
                <div key={i} className="card">
                  <div className="mono" style={{ fontSize: 11, color: 'var(--gold-deep)', letterSpacing: '0.18em' }}>{e.m}</div>
                  <h3 className="serif" style={{ fontSize: 22, marginTop: 8 }}>{e.t}</h3>
                  <div className="mono" style={{ fontSize: 11, color: 'var(--slate-700)', letterSpacing: '0.14em', marginTop: 12 }}>{e.v}</div>
                </div>
              ))}
            </div>
          )}
        </div>
      </section>

      {/* Past — by year */}
      <section className="section">
        <div className="container">
          <div className="eyebrow" style={{ marginBottom: 16 }}>Selected Past Engagements</div>
          <h2 className="display" style={{ fontSize: 'clamp(34px, 4vw, 52px)', lineHeight: 1.05, marginBottom: 48 }}>
            A working corpus of <em style={{ fontStyle: 'italic', color: 'var(--gold-deep)' }}>600+ presentations.</em>
          </h2>
          {years.map(y => (
            <div key={y} style={{ marginBottom: 56 }}>
              <div style={{ display: 'flex', alignItems: 'baseline', gap: 24, marginBottom: 24, paddingBottom: 16, borderBottom: '1px solid var(--line-soft)' }}>
                <h3 className="display" style={{ fontSize: 48, color: 'var(--gold-deep)', fontWeight: 300, lineHeight: 1 }}>
                  {y}
                </h3>
                <span className="mono" style={{ fontSize: 11, letterSpacing: '0.18em', color: 'var(--slate-700)' }}>
                  {PAST_BY_YEAR[y].length} ENGAGEMENTS · CURATED
                </span>
              </div>
              <div style={{ display: 'grid', gridTemplateColumns: 'repeat(2, 1fr)', gap: '0 48px' }}>
                {PAST_BY_YEAR[y].map((e, i) => (
                  <div key={i} style={{ padding: '14px 0', borderBottom: '1px solid var(--line-soft)' }}>
                    <div className="serif" style={{ fontSize: 17, lineHeight: 1.35, color: 'var(--ink)' }}>
                      {e.t}
                    </div>
                    <div className="mono" style={{ fontSize: 10, letterSpacing: '0.16em', color: 'var(--slate-700)', marginTop: 5, textTransform: 'uppercase' }}>
                      {e.v} · {e.m}
                    </div>
                  </div>
                ))}
              </div>
            </div>
          ))}
          <p className="serif" style={{ fontSize: 14, color: 'var(--slate-700)', fontStyle: 'italic', lineHeight: 1.6, marginTop: 32 }}>
            Selected from 600+ presentations to lawyers, judges, regulators, and students worldwide. Full list available on request.
          </p>
        </div>
      </section>

      {/* CTA */}
      <section className="section" style={{ background: 'var(--ink)', color: 'var(--paper)' }}>
        <div className="container center">
          <div className="eyebrow on-dark">Convene Daniel</div>
          <h2 className="display" style={{ fontSize: 'clamp(36px, 4.5vw, 60px)', marginTop: 16, color: 'var(--paper)' }}>
            For your bench, bar, or board.
          </h2>
          <p className="serif" style={{ fontSize: 19, color: 'var(--slate-300)', marginTop: 16, fontStyle: 'italic', maxWidth: 600, marginLeft: 'auto', marginRight: 'auto', lineHeight: 1.55 }}>
            CLE programs, judicial colleges, in-house training, conference keynotes, panel moderation. International travel undertaken.
          </p>
          <button className="btn btn-gold" style={{ marginTop: 32 }} onClick={() => onNav('contact')}>
            Speaking inquiry <span className="arrow">→</span>
          </button>
        </div>
      </section>
    </div>
  );
};

window.SpeakingPage = SpeakingPage;
