const SELECTION_DOTS = Array.from({ length: 200 }, (_, i) => i < 41);

const Experience = () => (
  <section className="sec2" id="experience">
    <div className="sec2-wrap">
      <div className="sec2-label">
        <span className="num">03</span>
        <span className="name">experience</span>
        <span className="sub">events</span>
      </div>
      <div className="sec2-body">
        <h2>Experience.</h2>

        <article className="pcard">
          <div className="pcard-main">
            <h3 className="pcard-heading">
              <span className="pslice pslice--script">Insight Day</span>
              <span className="role">Microsoft</span>
            </h3>
            <dl className="dl-args">
              <dt>when</dt>
              <dd className="mono">Nov 2026 · 1 mo</dd>
              <dt>where</dt>
              <dd>London Area, United Kingdom · On-site</dd>
              <dt>what</dt>
              <dd>
                <ul>
                  <li>Selected as one of 41 King's College London students from over 200 applicants</li>
                  <li>Part of a team that pitched an AI agent and sensor solution for water leak detection to a panel of judges</li>
                  <li>Represented the Account Team Unit (ATU), defining the client's core problem</li>
                </ul>
              </dd>
              <dt>skills</dt>
              <dd>
                <div className="tag-list">
                  <span>Public Speaking</span>
                  <span>Artificial Intelligence (AI)</span>
                  <span>Customer Requirements</span>
                  <span>Teamwork</span>
                  <span>Problem Solving</span>
                </div>
              </dd>
            </dl>
          </div>
          <figure className="pcard-fig">
            <figcaption>selected from King's College London applicants</figcaption>
            <div className="pcard-fig-body">
              <div className="pstat-row">
                <span className="pstat-num">41</span>
                <span className="pstat-of">of 200+</span>
              </div>
              <div className="pdotgrid" aria-hidden="true">
                {SELECTION_DOTS.map((on, i) => (
                  <span key={i} style={{background: on ? "var(--k-script)" : "var(--line)"}}></span>
                ))}
              </div>
              <p className="pstat-caption">each square is one applicant · 200 shown, "over 200" applied</p>
            </div>
          </figure>
        </article>

        <article className="pcard">
          <div className="pcard-main">
            <h3 className="pcard-heading">
              <span className="pslice pslice--rose">eRaadi</span>
              <span className="role">S4S × SIT Climate Hackathon</span>
            </h3>
            <dl className="dl-args">
              <dt>when</dt>
              <dd className="mono">May 2026 · team of four</dd>
              <dt>what</dt>
              <dd>
                <ul>
                  <li>A platform that routes Somali pastoralists to wells that are working</li>
                  <li>Proposed the team's starting point: helping people through drought with a text-message alert</li>
                  <li>Presented a third of the winning pitch: the insight, the solution and how it works</li>
                  <li>Helped scope and design the service with the team</li>
                </ul>
              </dd>
            </dl>
          </div>
          <figure className="pcard-fig">
            <figcaption>result</figcaption>
            <div className="pcard-fig-body">
              <span className="pstat-num">Won</span>
              <span className="pstat-caption">S4S × SIT Climate Hackathon, May 2026</span>
            </div>
          </figure>
        </article>

      </div>
    </div>
  </section>
);

window.Experience = Experience;
